From nobody Sun Feb 8 22:56:56 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+86672+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+86672+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1644907624; cv=none; d=zohomail.com; s=zohoarc; b=fG+wpoREzZ/OQp26Ou0hRng44j9cel76rYxVf6pcJ60HZatlQAroDqp03mn25ool9M1C6hyV1L0uCNuVyCsjFyTk/u7mAWcC9BsKwXHM1e5YDarz1xryHK3qfod5HBbSLVPYfOnJ+U+Gcmhl6ptdEDLfGiBS3M+UDtDoACYktiQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644907624; h=Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=TQ2qyNdl/ikRduOztFrHBMsyo4IVVCIV2tAE3Auj13Q=; b=dMyhlk1+qxQvcqKmx8+Amsz4z8rUcGh7GCKkcg7XJprrD6pp8g4DDszqQQX2XVBYwpw2GFZw5wKCeLXPhOAPQVUbXzSZTeBBaP1phfqVk1Yv3WURNQOEHa7Oijc6JdB2lcXhCZX0oSfLzQpdohrKumDgRs6aZNjCuGWR5f7d4WI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+86672+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1644907624204995.3210991218102; Mon, 14 Feb 2022 22:47:04 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id NjDkYY1788612xIhkeQdWz6X; Mon, 14 Feb 2022 22:47:03 -0800 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.6589.1644907622240553017 for ; Mon, 14 Feb 2022 22:47:02 -0800 X-IronPort-AV: E=McAfee;i="6200,9189,10258"; a="336690909" X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="336690909" X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 22:47:01 -0800 X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="775646939" X-Received: from tedkuo1-win10.gar.corp.intel.com ([10.5.215.13]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 22:46:59 -0800 From: "Kuo, Ted" To: devel@edk2.groups.io Cc: Sheng Wei , Ray Ni , Rangasai V Chaganty , Jenny Huang , Robert Kowalewski Subject: [edk2-devel] [PATCH v2] IntelSiliconPkg/VTd: Fix to support IntelVTdDmarPei in 64bit Date: Tue, 15 Feb 2022 14:46:43 +0800 Message-Id: <7c1d6d087fb0667e191b4f282e0dae3fa728350d.1644907566.git.ted.kuo@intel.com> Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ted.kuo@intel.com X-Gm-Message-State: BhIiohxP2iH5hNnbqPe822pzx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1644907623; bh=q2shBwWjtxOyFf92/5HHi0NOIy2h0xwEljMDsEOQJSM=; h=Cc:Date:From:Reply-To:Subject:To; b=KNDnhy0E0qBjuG4RS+1C3LrjyKi/HroRWv9TRzaYnYrn+KOzinqKLnCiX+hgx/2TWUg SAsf0VkeerkrUQSbdrjjLqe5QjOScSJLQdoO8tlpLtCQCDdXuGvdBL6hYwJElSOx7yzue ftHk+Y6K9AHi8q1lazRG5M/XNDzcBtLGR1E= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1644907625329100001 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D3836 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 Cc: Ray Ni Cc: Rangasai V Chaganty Cc: Jenny Huang Cc: Robert Kowalewski Signed-off-by: Ted Kuo Reviewed-by: Robert Kowalewski Reviewed-by: Sheng Wei --- .../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/Inte= lVTdDmarPei.c b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/I= ntelVTdDmarPei.c index f97d627eca..2844f366bb 100644 --- a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDma= rPei.c +++ b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDma= rPei.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/Inte= lVTdDmarPei.h b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/I= ntelVTdDmarPei.h index 351a7810d8..7bed0a5363 100644 --- a/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDma= rPei.h +++ b/Silicon/Intel/IntelSiliconPkg/Feature/VTd/IntelVTdDmarPei/IntelVTdDma= rPei.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 ); =20 --=20 2.16.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#86672): https://edk2.groups.io/g/devel/message/86672 Mute This Topic: https://groups.io/mt/89156060/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-