[edk2-devel] [PATCH v2] IntelSiliconPkg/VTd: Fix to support IntelVTdDmarPei in 64bit

Sheng Wei w.sheng at intel.com
Tue Feb 15 06:57:35 UTC 2022


The change is good to me.
Reviewed-by: Sheng Wei <w.sheng at intel.com>


> -----Original Message-----
> From: Kuo, Ted <ted.kuo at intel.com>
> Sent: 2022年2月15日 14:47
> To: devel at edk2.groups.io
> Cc: Sheng, W <w.sheng at intel.com>; Ni, Ray <ray.ni at intel.com>; Chaganty,
> Rangasai V <rangasai.v.chaganty at intel.com>; Huang, Jenny
> <jenny.huang at intel.com>; Kowalewski, Robert
> <robert.kowalewski at intel.com>
> Subject: [PATCH v2] IntelSiliconPkg/VTd: Fix to support IntelVTdDmarPei in
> 64bit
> 
> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3836
> Changed VtdIndex defined in PROCESS_DRHD_CALLBACK_FUNC from
> UINT32 to UINTN to avoid type incompatible error when enable PEI in 64bit.
> 
> Cc: Sheng Wei <w.sheng at intel.com>
> Cc: Ray Ni <ray.ni at intel.com>
> Cc: Rangasai V Chaganty <rangasai.v.chaganty at intel.com>
> Cc: Jenny Huang <jenny.huang at intel.com>
> Cc: Robert Kowalewski <robert.kowalewski at intel.com>
> Signed-off-by: Ted Kuo <ted.kuo at intel.com>
> ---
>  .../IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c     | 4
> ++--
>  .../IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h     | 2
> +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git
> a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmar
> Pei.c
> b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmar
> Pei.c
> index f97d627eca..2844f366bb 100644
> ---
> a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmar
> Pei.c
> +++ b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTd
> +++ DmarPei.c
> @@ -434,7 +434,7 @@ GetVTdInfoHob (
>  VOID
>  ProcessDhrdPreMemory (
>    IN OUT VOID                       *Context,
> -  IN     UINT32                     VTdIndex,
> +  IN     UINTN                      VTdIndex,
>    IN     EFI_ACPI_DMAR_DRHD_HEADER  *DmarDrhd
>    )
>  {
> @@ -454,7 +454,7 @@ ProcessDhrdPreMemory (  VOID
> ProcessDrhdPostMemory (
>    IN OUT VOID                       *Context,
> -  IN     UINT32                     VTdIndex,
> +  IN     UINTN                      VTdIndex,
>    IN     EFI_ACPI_DMAR_DRHD_HEADER  *DmarDrhd
>    )
>  {
> diff --git
> a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmar
> Pei.h
> b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmar
> Pei.h
> index 351a7810d8..7bed0a5363 100644
> ---
> a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDmar
> Pei.h
> +++ b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTd
> +++ DmarPei.h
> @@ -49,7 +49,7 @@ typedef
>  VOID
>  (*PROCESS_DRHD_CALLBACK_FUNC) (
>    IN OUT VOID                       *Context,
> -  IN     UINT32                     VTdIndex,
> +  IN     UINTN                      VTdIndex,
>    IN     EFI_ACPI_DMAR_DRHD_HEADER  *DmarDrhd
>    );
> 
> --
> 2.16.2.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#86674): https://edk2.groups.io/g/devel/message/86674
Mute This Topic: https://groups.io/mt/89156060/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list