[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH for-4.17?] x86/pvh: report ACPI VFCT table to dom0 if present


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 8 Nov 2022 16:56:17 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; 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=5VRjwtrJlSzhbCBzA6nF4Y5j6DTAKcPRKpNr0mhveYY=; b=IT0/2gKevDbrritWf2C/i6kepsicZE1lhUtQc5TiDE2c5zdgc+gGHHy7bSzgCEsl+lxbpGHKcitechfA40PlSuRbk7tdkb4pcqfDgI2Sa/bPbVnKNQdenVHhA3Al0+2lQglSn9AESwN2d6zSSEyJCikksoBX6lTX+16BfRKoKP8yfN1flS0hd9B6yXnaWnJooOINbG+N2u9WWtFyvewuzKfpEUo0Ug1NptaIeZhF/023C3Gz3ySkg3Qq++PHV2Qfedao1ynQNtVLdXdaWrWc+MZp5qSocRCULGNUlIylgASXrVIQbnO6u+LGAcDapkbRS+Bl9Ht8I5rXLujGfySzQQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=egHCckw/QYQj3tKMNbkcx1XqxHeMz24R2p5t5DBCkCH6KziXjZBDFzuP76Qu30CRzHhpBzMkR4W9MyS6xSulq9LjxJSVA5R9orbEma3i+vm/JJFhOZMk4sBD9BTmjl1EIJjMY1YBSMdJwNGvtkHT5VWFaImV3TZuB7vHa2iHrMaPrui9+Vr2e+lYQTo5nQufDU1pOMJHZ7dtbSvr5xbS28KiVd7nQlItQEAO6/2JbMpryjwRzF8wSN6DUkP4LwELxccjRVnp8yYa/zOPEue9VWQ9WivLsq04W0Ehfpzr1TNEvhPpqDJKmZfj1wtVYs/LCkITAWpe6oX+PFi6GCwlew==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Henry.Wang@xxxxxxx, ray.huang@xxxxxxx, Alexander.Deucher@xxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 08 Nov 2022 15:56:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 08.11.2022 14:55, Roger Pau Monne wrote:
> 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.

I can't find any mention of VFCT in the ACPI 6.3 spec, nor anywhere
under Linux'es include/acpi/. I don't mind the addition that you're
doing, but there needs to be a pointer to a sufficiently "official"
spec.

Jan

> 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>
> ---
> This is a bugfix, but given PVH dom0 is still experimental I'm not
> sure it would qualify for the release.  OTOH being experimental means
> there are no guarantees it will work, so the change is unlikely to
> make this any worse.
> ---
>  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 1864d048a1..307edc6a8c 100644
> --- a/xen/arch/x86/hvm/dom0_build.c
> +++ b/xen/arch/x86/hvm/dom0_build.c
> @@ -924,6 +924,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




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.