1. 14 Apr, 2020 1 commit
  2. 06 Apr, 2020 1 commit
  3. 02 Mar, 2020 1 commit
  4. 20 Feb, 2020 1 commit
  5. 19 Feb, 2020 1 commit
  6. 17 Feb, 2020 1 commit
  7. 10 Feb, 2020 2 commits
  8. 04 Feb, 2020 1 commit
  9. 03 Feb, 2020 1 commit
  10. 31 Jan, 2020 10 commits
  11. 22 Jan, 2020 1 commit
  12. 21 Jan, 2020 1 commit
  13. 16 Jan, 2020 2 commits
  14. 14 Jan, 2020 6 commits
  15. 17 Dec, 2019 1 commit
    • Jan Kiszka's avatar
      cobalt: sched-quota: Fix live-updating if quotas, once more · 133e9969
      Jan Kiszka authored
      f116e7eb already tried to enable live updates of a quota group but
      got one thing wrong and missed another catch:
      
      First, we must not use group_is_active() to check if the group is
      currently consuming time. That has to be the same logic as in
      xnsched_quota_pick(), i.e. a check of the currently running thread on
      the target sched belongs to the modified group.
      
      The second issue is that, if a group had no budget on refill or consumed
      it in this period already, an extension of the budget missed to move
      expired threads back to the runqueue.
      Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
      133e9969
  16. 12 Dec, 2019 1 commit
  17. 09 Dec, 2019 1 commit
  18. 06 Dec, 2019 2 commits
  19. 05 Dec, 2019 1 commit
  20. 02 Dec, 2019 4 commits
    • Philippe Gerum's avatar
      cobalt/sched: guard against missed rescheduling upon CPU migration · d540b504
      Philippe Gerum authored
      Kicking the rescheduling procedure (xnsched_run()) from call sites
      running over the root thread with hard irqs enabled may lead to
      missing a rescheduling opportunity as a consequence of a CPU
      migration, e.g.:
      
          CPU0					CPU1
          ----                         		----
          t0: ...
                  <context switch>
          t1: xnthread_resume(t0)
                   xnsched_run()
                   <CPU MIGRATION -->
                        |                             |
                        |                             |
                        x                             |
                (missed rescheduling)                 v
                                          ___xnsched_run(CPU1.sched)
      
      To address this issue, make sure every call to xnsched_run() either
      runs from the head domain which is not affected by CPU migration, or
      moves into the latest atomic section which might have changed the
      scheduler state.
      
      Turning on CONFIG_XENO_OPT_DEBUG_COBALT also enables a (oneshot)
      assertion which detects invalid calls from the root domain with hard
      irqs enabled.
      Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
      Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
      d540b504
    • Philippe Gerum's avatar
      net/cap: fix non-rt signal overflow · b2f253fd
      Philippe Gerum authored
      rtdm_nrtsig_pend() is based on ipipe_post_root_work(), which keeps a
      copy of every request descriptor internally until it is consumed by
      the secondary mode handler. Triggering rtdm_nrtsig_pend() every time a
      packet is relayed from the stack to the tap device may cause such
      request buffer to overflow under pressure.
      
      To address this issue, trigger the non-rt signal only when the RX
      queue transitions from empty to non-empty state as a result of
      enqueuing the next skb.
      Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
      Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
      b2f253fd
    • Jan Kiszka's avatar
      debian: Enable lazy-setsched in userspace package · 1070b04b
      Jan Kiszka authored
      This feature is useful for applications tuning scheduling parameters
      from within RT contexts. Primarily a topic for legacy applications. But
      as this doesn't come with noteworthy downsides, make it available in the
      generic package configuration.
      Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
      1070b04b
    • Jan Kiszka's avatar
      testsuite/smokey: Add pthread_setschedprio to setsched test case · 32cce80f
      Jan Kiszka authored
      Now that this path goes via an own syscall, better test it.
      Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
      32cce80f