Page MenuHomeFreeBSD

Only change the fadt revision in acpidump on i386
ClosedPublic

Authored by andrew on Oct 20 2021, 9:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 1, 1:58 AM
Unknown Object (File)
Jan 15 2024, 4:40 PM
Unknown Object (File)
Dec 23 2023, 12:14 AM
Unknown Object (File)
Dec 19 2023, 7:20 PM
Unknown Object (File)
Dec 7 2023, 8:00 AM
Unknown Object (File)
Sep 23 2023, 12:01 AM
Unknown Object (File)
Sep 4 2023, 2:01 PM
Unknown Object (File)
Aug 31 2023, 3:22 AM
Subscribers

Details

Summary

There is a workaround in acpidump for an old IBM laptop. This is being
hit on a modern arm64 system causing acpidump to use the wrong field
when reading a later address.

As the laptop has a 32-bit CPU the only FreeBSD support for it is i386.
As such limit the workaround to that architecture.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 20 2021, 12:35 PM

Even though the issue may apply to more than just that one type of laptop I imagine all instances will involve early 32-bit ACPI implementations. So __i386__ is appropriate.

LGTM. In fact, this bug should not exist in any modern systems.

jhb added inline comments.
usr.sbin/acpi/acpidump/acpi.c
223

Minor nit, I would put the comment under #ifdef as well.

usr.sbin/acpi/acpidump/acpi.c
223

I was thinking the same thing but thought it was too minor even for a comment :)

Since I'm now commenting, perhaps also extend the comment to mention that only very early ACPI implementations are expected to be affected and the workaround breaks newer systems, so apply only to 32-bit x86.