init: Enable might_sleep() and smp_processor_id() debugging early
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest17 patches 12 repliesIn review
- v118 patches 28 repliesSuperseded
Changes in v2 from the cover letter
- Use only one new state
- Enable both debug facilities right before scheduling starts
- Add more commentry about state ordering and placement of the state switch
- CC ACPI folks on the relevant patch and amend changelog.
- Collected acks/reviewed-by's
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | init: Pin init task to boot cpu initiallyinit/ | +12 | 1 reply | |
| 2/17 | arm: Adjust system_state checkarch/ | +1 | 0 replies | |
| 3/17 | arm64: Adjust system_state checkarch/ | +1 | 2 replies | |
| 4/17 | x86/smp: Adjust system_state checkarch/ | +1 | 0 replies | |
| 5/17 | metag: Adjust system_state checkarch/ | +1 | 0 replies | |
| 6/17 | powerpc: Adjust system_state checkarch/ | +1 | 0 replies | |
| 7/17 | ACPI: Adjust system_state checkdrivers/ | +1 | 1 reply | |
| 8/17 | mm: Adjust system_state checkdrivers/ | +1 | 0 replies | |
| 9/17 | cpufreq/pasemi: Adjust system_state checkdrivers/ | +1 | 0 replies | |
| 10/17 | iommu/vt-d: Adjust system_state checksdrivers/ | +2 | 0 replies | |
| 11/17 | iommu/of: Adjust system_state checkdrivers/ | +1 | 0 replies | |
| 12/17 | async: Adjust system_state checkskernel/ | +4 | 0 replies | |
| 13/17 | extable: Adjust system_state checkskernel/ | +1 | 0 replies | |
| 14/17 | printk: Adjust system_state checkskernel/ | +1 | 0 replies | |
| 15/17 | mm/vmscan: Adjust system_state checksmm/ | +1 | 1 reply | |
| 16/17 | init: Introduce SYSTEM_SCHEDULING statedrivers/ include/ | +6 | 2 replies | |
| 17/17 | sched: Enable might_sleep() and smp_processor_id() checks earlyinit/ kernel/ lib/ | +14 | 4 replies |
Reviews trailers per patch
14 of 17 patches have a Reviewed-by or Acked-by.
| Patch | Joerg Roedel | Robin Murphy | Steven Rostedt (VMware) | Greg Kroah-Hartman | Michael Ellerman | Viresh Kumar | Arjan van de Ven | Vlastimil Babka | Mark Rutland | Catalin Marinas | Boris Ostrovsky |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1/17 | |||||||||||
| 2/17 | |||||||||||
| 3/17 | A-b | A-b | |||||||||
| 4/17 | R-b | ||||||||||
| 5/17 | |||||||||||
| 6/17 | A-b | ||||||||||
| 7/17 | R-b | ||||||||||
| 8/17 | A-b | ||||||||||
| 9/17 | A-b | ||||||||||
| 10/17 | A-b | ||||||||||
| 11/17 | A-b | A-b | |||||||||
| 12/17 | A-b | ||||||||||
| 13/17 | R-b | ||||||||||
| 14/17 | R-b | ||||||||||
| 15/17 | R-b | A-b | |||||||||
| 16/17 | A-b | R-b | |||||||||
| 17/17 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 11 reviewers.
Cover letter [patch V2 00/17] init: Enable might_sleep() and smp_processor_id() debugging early
We recentlty discovered a call path which takes a mutex from the low level secondary CPU bringup code and wondered why this was not caught by might_sleep().
The reason is that both debug facilities depend on system_state == SYSTEM_RUNNING, which is set after init memory is freed.
That means that SMP bootup and builtin driver initialization are not covered by these checks at all.
The patch series addresses this by adding an intermediate state which enables both debug features right when scheduling starts, i.e. the boot CPU idle task schedules the first time.
Changes since V1:
- Use only one new state
- Enable both debug facilities right before scheduling starts
- Add more commentry about state ordering and placement of the state switch
- CC ACPI folks on the relevant patch and amend changelog.
- Collected acks/reviewed-by's
Thanks,
tglx