Dave Jiang 6cdd46f66f hw/cxl: Add QTG _DSM support for ACPI0017 device
Add a simple _DSM call support for the ACPI0017 device to return fake QTG
ID values of 0 and 1 in all cases. This for _DSM plumbing testing from the OS.

Following edited for readability

Device (CXLM)
{
    Name (_HID, "ACPI0017")  // _HID: Hardware ID
...
    Method (_DSM, 4, Serialized)  // _DSM: Device-Specific Method
    {
        If ((Arg0 == ToUUID ("f365f9a6-a7de-4071-a66a-b40c0b4f8e52")))
        {
            If ((Arg2 == Zero))
            {
                Return (Buffer (One) { 0x01 })
            }

            If ((Arg2 == One))
            {
                Return (Package (0x02)
                {
                    One,
                    Package (0x02)
                    {
                        Zero,
                        One
                    }
                })
            }
        }
    }

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20231012125623.21101-3-Jonathan.Cameron@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2023-10-22 05:18:17 -04:00
..
2023-10-09 10:10:48 -04:00
2023-09-08 13:08:52 +03:00
2023-01-08 01:54:22 -05:00
2023-09-08 13:08:52 +03:00
2023-09-06 11:14:55 -04:00
2023-07-11 00:11:25 +02:00
2023-02-08 07:16:23 +01:00
2023-07-25 17:13:53 +03:00
2023-09-08 13:08:52 +03:00
2023-10-04 04:53:52 -04:00
2023-09-08 13:08:52 +03:00
2023-07-25 17:13:45 +03:00
2023-09-08 13:08:52 +03:00
2023-01-08 01:54:22 -05:00
2023-10-22 05:18:17 -04:00
2023-09-08 13:08:52 +03:00
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2022-11-08 11:13:48 +01:00