[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC XEN PATCH 1/6] x86/pvh: report ACPI VFCT table to dom0 if present
- To: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Anthony PERARD" <anthony.perard@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Huang Rui <ray.huang@xxxxxxx>
- Date: Sun, 12 Mar 2023 15:54:50 +0800
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=citrix.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pSsk+unJ+UA4cANT7Yy0K6RnN7xVbxCSxOE+YUngzIw=; b=mZqXYDeSLJi+oOBOX7nEX/W7qP5+BoH9epGMHY7PX19Cb1W1ob7RSMWCow2bxXTD7n0BPTsyj2FzygHSz3fuFZy+r7irZ8ytJjn91q7ndb6iytfcLE9Z5T8JAc01tC02vOfbTYx6iUYOF+niCPFMoVAEpET/S3xYzc8iNkp3AU9hPVv8whGAh2QnMCzziuVK35b7KXjTK5D2fb6+IprhN6vnUqLWb5IuWBom/RjyG3KQG3ueilObb6hR7YEUxxPXCLpRZdiXYgYAy/Zk6WCAuoUJMSZ7n2kfABQwW4i9pLjcm9yfpxnWYK0Hmz4cigS7mfHcwcuBABfTKRgwnHie9Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UAtrnwMBp86T0ilaYFk0bkIo37Ro78zjPbLzDxxNTsxsKdE+qIiYDZnnIZN/YLNZLFZ7F5rp8AVnh8Qn7ncfynL+7Dit2/5QK2C3bX7mswn6fAu30JG4TKS0sbBFOvvoNo7ZWCoWo1Ru7uIWKZn1ea8M8C9ztWXnI7KU1s0CD0KIWK9XC8QjvZBiLq3zdaZH5zczS1+0kUGgjntu7tQbtj6p1unDQmSQlVnYjp7kTZUGjmsssemzObZ7aOLe3MBoVXi4lHJJgustjsNk1S5IU2rs3ObvaJLTsI7OWaXDggsrQldJYcsPRqBHMqzbrJgIqdiBxfpVrerJcAhg1yIcdQ==
- Cc: Alex Deucher <alexander.deucher@xxxxxxx>, Christian König <christian.koenig@xxxxxxx>, "Stewart Hildebrand" <Stewart.Hildebrand@xxxxxxx>, Xenia Ragiadakou <burzalodowa@xxxxxxxxx>, Honglei Huang <honglei1.huang@xxxxxxx>, Julia Zhang <julia.zhang@xxxxxxx>, Chen Jiqian <Jiqian.Chen@xxxxxxx>, Huang Rui <ray.huang@xxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
- Delivery-date: Sun, 12 Mar 2023 07:55:47 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
The VFCT ACPI table is used by AMD GPUs to expose the vbios ROM image
from the firmware instead of doing it on the PCI ROM on the physical
device.
As such, this needs to be available for PVH dom0 to access, or else
the GPU won't work.
Reported-by: Huang Rui <ray.huang@xxxxxxx>
Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Acked-and-Tested-by: Huang Rui <ray.huang@xxxxxxx>
Release-acked-by: Henry Wang <Henry.Wang@xxxxxxx>
Signed-off-by: Huang Rui <ray.huang@xxxxxxx>
---
xen/arch/x86/hvm/dom0_build.c | 1 +
xen/include/acpi/actbl3.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/xen/arch/x86/hvm/dom0_build.c b/xen/arch/x86/hvm/dom0_build.c
index 3ac6b7b423..d44de7f2b2 100644
--- a/xen/arch/x86/hvm/dom0_build.c
+++ b/xen/arch/x86/hvm/dom0_build.c
@@ -892,6 +892,7 @@ static bool __init pvh_acpi_table_allowed(const char *sig,
ACPI_SIG_DSDT, ACPI_SIG_FADT, ACPI_SIG_FACS, ACPI_SIG_PSDT,
ACPI_SIG_SSDT, ACPI_SIG_SBST, ACPI_SIG_MCFG, ACPI_SIG_SLIC,
ACPI_SIG_MSDM, ACPI_SIG_WDAT, ACPI_SIG_FPDT, ACPI_SIG_S3PT,
+ ACPI_SIG_VFCT,
};
unsigned int i;
diff --git a/xen/include/acpi/actbl3.h b/xen/include/acpi/actbl3.h
index 0a6778421f..6858d3e60f 100644
--- a/xen/include/acpi/actbl3.h
+++ b/xen/include/acpi/actbl3.h
@@ -79,6 +79,7 @@
#define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */
#define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
#define ACPI_SIG_WPBT "WPBT" /* Windows Platform Binary Table */
+#define ACPI_SIG_VFCT "VFCT" /* AMD Video BIOS */
/*
* All tables must be byte-packed to match the ACPI specification, since
--
2.25.1
|