Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux: handle non-ACPI systems in device_get() #246

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

xypron
Copy link
Contributor

@xypron xypron commented Aug 2, 2023

/sys/devices/pci0000:00/firmware_node/hid does not exist on all systems. Kernel parameter acpi=off has been reported as one possible reason in #120
But this is not the only case. On systems using device trees you may also not find this file.

We have multiple parsers in dev_probes[]. It is sufficient that one of these parsers succeeds to provide the device information.

If for instance pci_root_parser and pci_parser fails, we may still get information from nvme_parser.

If a parser fails, only write a debug information and continue.

/sys/devices/pci0000:00/firmware_node/hid does not exist on all systems.
Kernel parameter acpi=off has been reported as one possible reason in
rhboot#120
But this is not the only case. On systems using device trees you may also
not find this file.

We have multiple parsers in dev_probes[]. It is sufficient that one of
these parsers succeeds to provide the device information.

If for instance pci_root_parser and pci_parser fails, we may still get
information from nvme_parser.

If a parser fails, only write a debug information and continue.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
@kukrimate
Copy link

Is there anything blocking this from getting merged?

@vathpela vathpela merged commit 931e97b into rhboot:main Jan 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants