Page MenuHomeFreeBSD

Support fixed size, varible location acpi resources
ClosedPublic

Authored by andrew on Jul 8 2021, 3:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 2, 10:39 PM
Unknown Object (File)
Mon, Sep 30, 11:33 PM
Unknown Object (File)
Mon, Sep 30, 11:07 PM
Unknown Object (File)
Mon, Sep 30, 3:53 PM
Unknown Object (File)
Mon, Sep 30, 8:35 AM
Unknown Object (File)
Thu, Sep 26, 7:21 PM
Unknown Object (File)
Fri, Sep 20, 8:48 PM
Unknown Object (File)
Wed, Sep 18, 2:27 AM
Subscribers

Details

Summary

These have been found in some Arm ACPI tables generated by edk2, e.g.
when describing the pl011 uart on the Arm AEMv8 model.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40407
Build 37296: arc lint + arc unit

Event Timeline

andrew requested review of this revision.Jul 8 2021, 3:42 PM
sys/dev/acpica/acpi_resource.c
430

Typo?

This revision is now accepted and ready to land.Jul 9 2021, 2:21 PM

What devices have these? This looks good

In D31110#700204, @imp wrote:

What devices have these? This looks good

Some of the Arm Models (Simulators) have the following for their uart:

Scope (_SB)
    {
        Device (COM0)
        {
            Name (_UID, Zero)  // _UID: Unique ID
            Name (_HID, "ARMH0011")  // _HID: Hardware ID
            Method (_STA, 0, NotSerialized)  // _STA: Status
            {
                Return (0x0F)
            }

            Name (_CRS, ResourceTemplate ()  // _CRS: Current Resource Settings
            {
                QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite,
                    0x0000000000000000, // Granularity
                    0x000000001C0B0000, // Range Minimum
                    0x000000001C0B0FFF, // Range Maximum
                    0x0000000000000000, // Translation Offset
                    0x0000000000001000, // Length
                    ,, , AddressRangeMemory, TypeStatic)
                Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
                {
                    0x00000026,
                }
            })
        }
    }