fwts needs to read from external data for ACPI emulation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Firmware Test Suite |
New
|
Wishlist
|
Unassigned |
Bug Description
This is similar to enable "acpiexec -fi <namespace init file>"
When FWTS reads from hardware in OpRegion in DSDT/SSDTs, the values are zeros because no hardware to be read in acpica's emulation mode.
This can miss some code paths. For example, by providing different default values for PCHS, the below ACPI devices can be changed.
OperationRegion (PNVA, SystemMemory, PNVB, PNVL)
Field (PNVA, AnyAcc, Lock, Preserve)
{
PCHS, 16,
}
...
If ((PCHS == 0x02))
{
Device (ABCD)
...
} Else {
Device (EFGH)
...
}
or
Device (XYZ)
{
Method (_HID) {
If ((PCHS == 0x02))
return "0987654321"
}
}
Changed in fwts: | |
importance: | Undecided → Wishlist |
assignee: | nobody → Alex Hung (alexhung) |
Changed in fwts: | |
assignee: | Alex Hung (alexhung) → nobody |
Are there any known workarounds/fixes in flight to get past this issue?
What needs to be changed to allow FWTS to read from the actual OpRegions (if that is even a possibility) or provide a namespace init file?