aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorTong Zhang <t.zhang2@samsung.com>2022-09-15 17:59:04 +0000
committerLaurent Vivier <laurent@vivier.eu>2022-09-29 21:18:40 +0200
commitc6cc866c0eaab1deddea21bf0b386730ed71bb97 (patch)
treedc40469a0e849438545046d2362af024eeb93d1b /hw
parentfcf5813cba7079d94eccc8804fb80c4b05e48a86 (diff)
downloadqemu-c6cc866c0eaab1deddea21bf0b386730ed71bb97.zip
qemu-c6cc866c0eaab1deddea21bf0b386730ed71bb97.tar.gz
qemu-c6cc866c0eaab1deddea21bf0b386730ed71bb97.tar.bz2
mem/cxl_type3: fix GPF DVSEC
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/mem/cxl_type3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mem/cxl_type3.c b/hw/mem/cxl_type3.c
index 3bf2869..ada2108 100644
--- a/hw/mem/cxl_type3.c
+++ b/hw/mem/cxl_type3.c
@@ -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);
}