All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Ensure some device initialization before init task
@ 2026-01-22  7:34 ` Yicong Yang
  0 siblings, 0 replies; 28+ messages in thread
From: Yicong Yang @ 2026-01-22  7:34 UTC (permalink / raw)
  To: rafael, lenb, tglx, gregkh, dakr
  Cc: akpm, apatel, pjw, palmer, aou, alex, geshijian, weidong.wd,
	yang.yicong, linux-acpi, linux-kernel, linux-riscv

Fix two issues that may cause devices initialization finished
after entering init task.

Patch 1 ensure the device object scanning by acpi_scan_clear_dep_fn()
is finished before entering init task. Otherwise if some key devices
like console or root device are not ready when entering init task,
the system will panic (no available console) or enter rescure shell
(no root device). It's more possible on RISCV since these devices
are scan and created by acpi_scan_clear_dep_fn() and we've observed
this.

Patch 2 fix a theoretical issue that the console initialization is
still in process by the time we open the console. Since we call
console_on_rootfs() before async_synchronize_full(), there's no
guaranteed for the order.

Thanks Thomas for the discussion to debug these two issues [1].

[1] https://lore.kernel.org/linux-riscv/20260114063730.78009-1-yang.yicong@picoheart.com/

Yicong Yang (2):
  ACPI: scan: Use async schedule function for acpi_scan_clear_dep_fn
  init: Move console_on_rootfs after async_synchronize_full

 drivers/acpi/scan.c | 35 ++++++++++++++++-------------------
 init/main.c         |  4 ++--
 2 files changed, 18 insertions(+), 21 deletions(-)

-- 
2.34.1

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2026-01-22 16:27 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-22  7:34 [PATCH 0/2] Ensure some device initialization before init task Yicong Yang
2026-01-22  7:34 ` Yicong Yang
2026-01-22  7:34 ` [PATCH 1/2] ACPI: scan: Use async schedule function for acpi_scan_clear_dep_fn Yicong Yang
2026-01-22  7:34   ` Yicong Yang
2026-01-22 10:29   ` Greg KH
2026-01-22 10:29     ` Greg KH
2026-01-22 12:43     ` Yicong Yang
2026-01-22 12:43       ` Yicong Yang
2026-01-22 13:21       ` Rafael J. Wysocki
2026-01-22 13:21         ` Rafael J. Wysocki
2026-01-22 13:48         ` Yicong Yang
2026-01-22 13:48           ` Yicong Yang
2026-01-22 13:57           ` Rafael J. Wysocki
2026-01-22 13:57             ` Rafael J. Wysocki
2026-01-22 16:27             ` Yicong Yang
2026-01-22 16:27               ` Yicong Yang
2026-01-22 11:19   ` Rafael J. Wysocki
2026-01-22 11:19     ` Rafael J. Wysocki
2026-01-22 12:50     ` Yicong Yang
2026-01-22 12:50       ` Yicong Yang
2026-01-22 13:22       ` Rafael J. Wysocki
2026-01-22 13:22         ` Rafael J. Wysocki
2026-01-22  7:34 ` [PATCH 2/2] init: Move console_on_rootfs after async_synchronize_full Yicong Yang
2026-01-22  7:34   ` Yicong Yang
2026-01-22 10:27   ` Greg KH
2026-01-22 10:27     ` Greg KH
2026-01-22 13:12     ` Yicong Yang
2026-01-22 13:12       ` Yicong Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.