fwts needs to read from external data for ACPI emulation

Bug #1883152 reported by Alex Hung
8
This bug affects 1 person
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 "1234567890"
            return "0987654321"
        }
    }

Alex Hung (alexhung)
Changed in fwts:
importance: Undecided → Wishlist
assignee: nobody → Alex Hung (alexhung)
Alex Hung (alexhung)
Changed in fwts:
assignee: Alex Hung (alexhung) → nobody
Revision history for this message
Alok Kulkarni (akulkar4) wrote (last edit ):

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?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.