From dbaa099dd7e6a09b56a4a0d373b49ec34f91101c Mon Sep 17 00:00:00 2001 From: Jiaqing Zhao Date: Fri, 14 Jul 2023 08:35:26 +0000 Subject: [PATCH] dm: pci: pt: use uint64_t for igd dsm gpa/hpa Since Intel Processor Graphics Gen11, Base Data of Stolen Memory (BDSM) register is extended to 64 bit, allowing BIOS to assign an above 4G address. This patch changes the type of hpa/gpa variables to uint64_t to properly handle such case. Tracked-On: #8432 Signed-off-by: Jiaqing Zhao Reviewed-by: Jian Jun Chen --- devicemodel/hw/pci/passthrough.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicemodel/hw/pci/passthrough.c b/devicemodel/hw/pci/passthrough.c index ec638d436..4c7597b53 100644 --- a/devicemodel/hw/pci/passthrough.c +++ b/devicemodel/hw/pci/passthrough.c @@ -60,8 +60,8 @@ extern uint64_t audio_nhlt_len; -uint32_t gpu_dsm_hpa = 0; -uint32_t gpu_dsm_gpa = 0; +uint64_t gpu_dsm_hpa = 0; +uint64_t gpu_dsm_gpa = 0; uint32_t gpu_opregion_hpa = 0; uint32_t gpu_opregion_gpa = 0;