From 39e70b267817b2721e60e7f89d1cc9e7a2b364f8 Mon Sep 17 00:00:00 2001 From: Zhao Yakui Date: Fri, 17 Dec 2021 09:17:58 +0800 Subject: [PATCH] ACRN/DM: Add the ADL-P GPU device_id to support GPU passthrough Otherwise it will fail to set the GPU opregion/stolen_memory for guest VM in course of GPU passthrough and the display can't work. Tracked-On: #6988 Acked-by: Wang, Yu1 Signed-off-by: Zhao Yakui --- devicemodel/hw/pci/passthrough.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/devicemodel/hw/pci/passthrough.c b/devicemodel/hw/pci/passthrough.c index 5cfcd18ed..4c227aea9 100644 --- a/devicemodel/hw/pci/passthrough.c +++ b/devicemodel/hw/pci/passthrough.c @@ -490,6 +490,25 @@ passthru_gpu_dsm_opregion(struct vmctx *ctx, struct passthru_dev *ptdev, case 0x4693: case 0x4698: case 0x4699: + /* ADL-P GT graphics */ + case 0x4626: + case 0x4628: + case 0x462a: + case 0x46a0: + case 0x46a1: + case 0x46a2: + case 0x46a3: + case 0x46a6: + case 0x46a8: + case 0x46aa: + case 0x46b0: + case 0x46b1: + case 0x46b2: + case 0x46b3: + case 0x46c0: + case 0x46c1: + case 0x46c2: + case 0x46c3: /* BDSM register has 64 bits. * bits 63:20 contains the base address of stolen memory */