Re: [PATCH] [HACK] drop zen5_init checks due to segfault

Robert Richter
2025-05-13T21:10:46Z

On 04.04.25 22:38:58, Gregory Price wrote:
> Unclear why this is occuring, but a raw call to the PRM at this point
> causes segfaults on my Zen5 system. Later calls to the prm work just
> fine, and modifying the structure to include pci_dev info still results
> in a segfault.
>
> Debugging this is not possible on my end since the crash happens deep in
> the ACPI prm code. Seems maybe the PRM interface isn't ready or something?

There is a subsys_initcall order dependency if driver is builtin:

subsys_initcall(cxl_acpi_init);
subsys_initcall(efisubsys_init);

A fix using subsys_initcall_sync(cxl_acpi_init) solves the issue.

efi_rts_wq workqueue is used by cxl_acpi_init() before its allocation
in efisubsys_init(). I will address that in the next submission.

Thanks for looking into this.

-Robert