mem/cxl_type3: fix GPF DVSEC
authorTong Zhang <t.zhang2@samsung.com>
Thu, 15 Sep 2022 17:59:04 +0000 (17:59 +0000)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 29 Sep 2022 19:18:40 +0000 (21:18 +0200)
The structure is for device dvsec not port dvsec. Change type to fix
this issue.

Signed-off-by: Tong Zhang <t.zhang2@samsung.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20220915175853.2902-1-t.zhang2@samsung.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/mem/cxl_type3.c

index 3bf2869573fd45f58b5a3b8fd1bd3f454e788d43..ada2108fac8ae59ced346a69dfc59848d05eb66c 100644 (file)
@@ -49,7 +49,7 @@ static void build_dvsecs(CXLType3Dev *ct3d)
         .phase2_power = 0x33, /* 0x33 miliwatts */
     };
     cxl_component_create_dvsec(cxl_cstate, CXL2_TYPE3_DEVICE,
-                               GPF_DEVICE_DVSEC_LENGTH, GPF_PORT_DVSEC,
+                               GPF_DEVICE_DVSEC_LENGTH, GPF_DEVICE_DVSEC,
                                GPF_DEVICE_DVSEC_REVID, dvsec);
 }