Various tsc/clocksource fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest7 patches 5 repliesIn review
- v15 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- fix __clocksource_change_rating() locking
- removed work->kthread->watchdog hoops
- fixed up comment
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | x86,tsc: Always unregister clocksource_tsc_earlyarch/ | +6 | 0 replies | |
| 2/7 | clocksource: Allow clocksource_mark_unstable() on unregisered clocksourceskernel/ | +31 | 2 replies | |
| 3/7 | clocksource: Initialize cs->wd_listkernel/ | +2 | 2 replies | |
| 4/7 | x86,tsc: Fix mark_tsc_unstable()arch/ | +5 | 0 replies | |
| 5/7 | clocksource: Consistent de-rate when marking unstablekernel/ | +8 | 0 replies | |
| 6/7 | clocksource: Rework stale commentkernel/ | +2 | 0 replies | |
| 7/7 | clocksource: Remove kthreadkernel/ | +10 | 0 replies |
Reviews trailers per patch
None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Diego Viola | Rafael J. Wysocki |
|---|---|---|
| Series | R-b | |
| 1/7 | Reported-and-Tested-by | |
| 2/7 | T-b T-b | |
| 3/7 | T-b | |
| 4/7 | T-b | |
| 5/7 | ||
| 6/7 | ||
| 7/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/7] Various tsc/clocksource fixes
These patches are the result of the regression Diego reported against commit:
aa83c45762a2 ("x86/tsc: Introduce early tsc clocksource")
His Core2 triggers mark_tsc_unstable() while we're running with tsc-early, which then results in us failing to unregister the clocksource.
Furthermore, since mark_tsc_unstable() only looks at the regular tsc clocksource, we don't even mark tsc_early UNSTABLE or de-rate it, resulting in it actually staying a desirable clocksource.
Fixing that is a little more tricky; albeit far less critical after we guarantee to unregister tsc-early.
Please consider these for /urgent. I've used both Fixes and stable tags on a bunch of them because the above commit is already in v4.16 and would need stable help.
These patches have been tested on both a Core2 and an IVB. On IVB I've both changed intel_idle to always report the TSC unstable and mucked about with the TSC msr from userspace to tickle the watchdog paths.
---
Changes since v1
- fix __clocksource_change_rating() locking
- removed work->kthread->watchdog hoops
- fixed up comment