From a83d880f112174cd81927deb1d7193258b2cb6eb Mon Sep 17 00:00:00 2001 From: "Liu,Junming" Date: Thu, 12 Aug 2021 10:57:18 +0000 Subject: [PATCH] dm: update the GPU OpRegion size to 20KB The address of OpRegion is not 4KB aligned, if the OpRegion + extended VBT size is 16KB, then it will take up to 5 physical pages in host. So update the OpRegion size to 20KB to expose the whole OpRegion to guest. Tracked-On: #6270 Signed-off-by: Liu,Junming Acked-by: Wang, Yu1 --- devicemodel/include/pci_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/include/pci_core.h b/devicemodel/include/pci_core.h index c61895757..097fb645e 100644 --- a/devicemodel/include/pci_core.h +++ b/devicemodel/include/pci_core.h @@ -292,7 +292,7 @@ void destory_mmio_rsvd_rgns(struct pci_vdev *vdev); */ #define GPU_DSM_GPA 0x7C000000 #define GPU_DSM_SIZE 0x4000000 -#define GPU_OPREGION_SIZE 0x4000 +#define GPU_OPREGION_SIZE 0x5000 /* * TODO: Forced DSM/OPREGION size requires native BIOS configuration. * This limitation need remove in future