Skip to content
  1. Mar 30, 2018
  2. Mar 20, 2018
    • Masayuki Ishikawa's avatar
      Merged in masayuki2009/nuttx.nuttx/fix_smp_bugs (pull request #615) · 1d958980
      Masayuki Ishikawa authored
      
      
      Fix SMP related bugs
      
      * sched/sched: Fix a deadlock in SMP mode
      
          Two months ago, I introduced sched_tasklist_lock() and
          sched_tasklist_unlock() to protect tasklists in SMP mode.
          Actually, this change works pretty well for HTTP audio
          streaming aging test with lc823450-xgevk.
      
          However, I found a deadlock in the scheduler when I tried
          similar aging tests with DVFS autonomous mode where CPU
          clock speed changed based on cpu load. In this case, call
          sequences were as follows;
      
          cpu1: sched_unlock()->sched_mergepending()->sched_addreadytorun()->up_cpu_pause()
          cpu0: sched_lock()->sched_mergepending()
      
          To avoid this deadlock, I added sched_tasklist_unlock() when calling
          up_cpu_pause() and sched_addreadytorun(). Also, added
          sched_tasklist_lock() after the call.
      
      Signed-off-by: default avatarMasayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
      
      * libc: Add critical section in lib_filesem.c for SMP
      
          To set my...
      1d958980
  3. Mar 13, 2018
  4. Mar 12, 2018
    • Gregory Nutt's avatar
      net/tcp: In tcp_input(), add the logic to detect, decode, and respond to TCP... · ae399b9b
      Gregory Nutt authored
      net/tcp:  In tcp_input(), add the logic to detect, decode, and respond to TCP Keep-Alive packets.  In tcp_timer(), fix some problems with the way that TCP Keep-Alive probes were being formatted.
      ae399b9b
    • Gregory Nutt's avatar
      Squashed commit of the following: · 251924a7
      Gregory Nutt authored
          net/tcp:  Add logic to send probes when SO_KEEPALIVE is enabled.
          net/tcp:  TCP socket should not have to be connected to configure KeepAlive.
          net/: Add a separate configuration to enable/disable KEEPALIVE socket options.
          net/tcp: Arguments to TCP keep-alive timing functions probably should be struct timeval as are the times for other time-related socket options.
          net/tcp:  Fix a backward conditional
          net/tcp:  Add some more checks and debug output to TCP-protocol socket options.
          net/tcp:  Cosmetic changes to some alignment.
          net/:  Adds socket options needed to manage TCP-keepalive and TCP state machine logic to detect if that the remote peer is alive.  Still missing the timer poll logic to send the keep-alive probes and the state machine logic to respond to probes.
      251924a7
  5. Feb 23, 2018
  6. Feb 22, 2018
  7. Feb 20, 2018
  8. Feb 14, 2018
  9. Feb 13, 2018
  10. Feb 06, 2018
  11. Feb 01, 2018
  12. Jan 30, 2018
    • Gregory Nutt's avatar
      Squashed commit of the following: · 3521aaf9
      Gregory Nutt authored
          binfmt/, configs/, grahics/, libc/, mm/, net/, sched/:  OS references to the errno variable should always use the set_errno(), get_errno() macros
          arch/arm/src/stm32 and stm32f7:  Architecture-specific code is not permitted to modify the errno variable.  drivers/ and libc/:  OS references to the errno variable should always use the set_errno(), get_errno() macros
      3521aaf9
  13. Jan 25, 2018
  14. Jan 24, 2018
  15. Jan 23, 2018
  16. Jan 22, 2018