From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 5C2CE7803E5 for ; Fri, 8 Mar 2024 13:05:02 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=RSXy6ym1/0XAC+2RX6jRIZpX5v6Ybft7QBeS8w1sjnA=; c=relaxed/simple; d=groups.io; h=Received-SPF:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:msip_labels:Authentication-Results-Original:nodisclaimer:MIME-Version:Original-Authentication-Results:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1709903100; v=1; b=SwZnIzI27oDyZF+QQsi7s0enDAddmWyNTlQLKN5fClmqNTTsCZConL5Zr4j2pNQPx87tevVu qvl51VTxX5gDvOPWVd4FRCmj0OXB60r5nPThnjMR3LTyIPS7aXhLXWfFZEW6iv+pqtJE9uf0m29 JoguyNAIZOgYA1p4piRQb1C4AGcjEpTDQAGUHDkWmqlnKVidPibcM39wYixipPj+JYadhO1gdw3 WIDMhV21Dh2jyxztkQNNAWCrAhaTuF36wL9wMN5mIRWiK6/VWpy+3BUicDKxU91LWJrnU6HYfZa xBBiSpmbujtsvie3ACsgtxXRgx+g98831jVqn4m8qqvBg== X-Received: by 127.0.0.2 with SMTP id cuP5YY7687511xpU9HYxMugq; Fri, 08 Mar 2024 05:05:00 -0800 X-Received: from EUR02-VI1-obe.outbound.protection.outlook.com (EUR02-VI1-obe.outbound.protection.outlook.com [40.107.241.55]) by mx.groups.io with SMTP id smtpd.web10.21338.1709903100021486765 for ; Fri, 08 Mar 2024 05:05:00 -0800 X-Received: from AM0PR04CA0139.eurprd04.prod.outlook.com (2603:10a6:208:55::44) by PA6PR08MB10393.eurprd08.prod.outlook.com (2603:10a6:102:3cb::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.24; Fri, 8 Mar 2024 13:04:56 +0000 X-Received: from AM3PEPF0000A791.eurprd04.prod.outlook.com (2603:10a6:208:55:cafe::1c) by AM0PR04CA0139.outlook.office365.com (2603:10a6:208:55::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.27 via Frontend Transport; Fri, 8 Mar 2024 13:04:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C X-Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM3PEPF0000A791.mail.protection.outlook.com (10.167.16.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Fri, 8 Mar 2024 13:04:56 +0000 X-Received: ("Tessian outbound 456a16a4297b:v276"); Fri, 08 Mar 2024 13:04:56 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4f1c0755ad324bea X-CR-MTA-TID: 64aa7808 X-Received: from 6dc56e9bcda3.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D5DA431A-0614-4EAE-8003-799CF0059CFC.1; Fri, 08 Mar 2024 13:04:48 +0000 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 6dc56e9bcda3.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 08 Mar 2024 13:04:48 +0000 X-Received: from AM0PR08MB4289.eurprd08.prod.outlook.com (2603:10a6:208:148::12) by AS8PR08MB6630.eurprd08.prod.outlook.com (2603:10a6:20b:337::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.28; Fri, 8 Mar 2024 13:04:46 +0000 X-Received: from AM0PR08MB4289.eurprd08.prod.outlook.com ([fe80::4a5d:48:bf49:a524]) by AM0PR08MB4289.eurprd08.prod.outlook.com ([fe80::4a5d:48:bf49:a524%7]) with mapi id 15.20.7362.024; Fri, 8 Mar 2024 13:04:46 +0000 From: "levi.yun" To: "devel@edk2.groups.io" , Prabin CA CC: Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Thomas Abraham Subject: Re: [edk2-devel] [edk2-platforms][PATCH v4 1/8] Platform/Sgi: Update the datatype of PcdSmmuBase from u32 to u64 Thread-Topic: [edk2-devel] [edk2-platforms][PATCH v4 1/8] Platform/Sgi: Update the datatype of PcdSmmuBase from u32 to u64 Thread-Index: AQHaa/ao2MKXMM5j3EiAITFgrFfD1LEt2mWC Date: Fri, 08 Mar 2024 05:05:00 -0800 Message-ID: References: <20240301163231.2889922-1-prabin.ca@arm.com> <20240301163231.2889922-2-prabin.ca@arm.com> In-Reply-To: <20240301163231.2889922-2-prabin.ca@arm.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: AM0PR08MB4289:EE_|AS8PR08MB6630:EE_|AM3PEPF0000A791:EE_|PA6PR08MB10393:EE_ X-MS-Office365-Filtering-Correlation-Id: 91027bfa-74d1-4d99-16b5-08dc3f705a4d x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: mNcxhG+9MFFQZxaRGgRNJhvegwkMKLcx7wBRzuV3NjWA5RlI9fMwhw31oq7oJTAoMIDprJSWZ9Y0XAtgVvadWNJZ/vF4uzORgzYCm95N/YMExXss7HC2PSUGAo+PPNNEthJ3YwMaL2FTu7PukGvrRPW5JF1VxX3BXXXJgk9DcbUGHQwQJcUk51kaADFoHtRvHAcyVwdaYXN2BxYrr1Bs8TKrwMOQJd/sUnHnnggPrVMwoy6vmsApsfanasqW55LnmJ75JxyMmCkQRir4ssrc7yGqVZeW2EdfS1XKcz30U7HlmgG2ED82l3gxNZdfsBEF3/P/idGGhgTNJiu/tHKaoShtiw4uoHgOIJ5dRyBSaM7Xycv3N/uI5FdfTVxsL/D+oYF519l+m3aUVcB0LrADp3aNaCSjfF5aE2vBr07Re6jnKIqYVI6fr43by6nZIoIqFOmJkCldb5qz1/lIagCfl2YHbprOWGAEvN7Kktfp2A6jLQZQPGIYNkpCBwSvaNCTyCcEnbsKCFy/sQy8+PI9PpTuz028+LBVzSlCVdRGAeTmibB+aIdA1vo70QupwXIAHiK/c/N0+JG0DIftaMJekoTx0bF61LsUlHVbp1OvKfTOzzucsS4HsNAyB35oRRZAizCe+VbsGkvsytbgwRDPXYX6XJNce+0+KH4C83qUqhTGZSZtI7MJ/itHsBPrixUr X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR08MB4289.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(38070700009);DIR:OUT;SFP:1101; MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6630 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF0000A791.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 12c8882a-b226-41fa-8036-08dc3f70548f X-Microsoft-Antispam-Message-Info: XrXA96+HZlUCc06pMVNf54rSVLnRusP4ioGDS713gyAkW19TeuZNdwtAt+kw+DaXfyNwj9kana/fLdEwOjj0DrDtEUkDRKRapVnmP4Ln2abhsUGm5kvFG91yvpSHUr1Tr0Pwv/20Tei7bigWhgCYipkL0FjdHtafDzpTI6sxDiVDG46bbYb3GHDxQ94mGIePxv9sVp4muRZmGbdKmd0Ove0qc2ZllHmv+nQs3Ip+AccpNaiKE1xetLZsCcQeR77mSuH9Jnp2WiwGf/0yTwvKTA2S+lIOfZyF8VvUS4w8DTNYtPQfhc/kyOxjrvLbiBaRBGTBduwI404ygf/bJU+6gofMjzSjkXjAxEI1GopOR/KpNBH06XYradhYyMNcUNkb7orVcw5GNvCeQfqkUkwvkzr9iftku+Ws6Te3mGA3qDz4jsUCBDbcsw7cOs3ehfUjq51nH52HbUh07UKivKQ7tpChXzeFBzRrkIY7hGKO0cVJYQx78gqK6FDAjT6eoQ6mSyKSZ7i025kSYkMPpHZi8coqkJV+eue0B70moAboNhh34qMd1Di0KZ+HnjycSYDvtN7LHMVenFx6rOJS98+RapqKrLqnRdqKhrNuRlwLONXIfsklC5bg5P1GzU+GH1lxr1pA7fQ+7BvJj5dYqV7jsy26LzZ9XR9HaDCv4SQH3TrgkTYANBkdRyyB2f8mb16TkZg23sojwcTOFRkJbIVrvw== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2024 13:04:56.3187 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 91027bfa-74d1-4d99-16b5-08dc3f705a4d X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM3PEPF0000A791.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR08MB10393 Precedence: Bulk 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,yeoreum.yun@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: qj4hkOvROagoN2nWkhEDqZF1x7686176AA= Content-Language: en-GB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=SwZnIzI2; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: levi.yun ________________________________________ From: devel@edk2.groups.io on behalf of Prabin CA vi= a groups.io Sent: 01 March 2024 16:32 To: devel@edk2.groups.io Cc: Ard Biesheuvel; Leif Lindholm; Sami Mujawar; Thomas Abraham Subject: [edk2-devel] [edk2-platforms][PATCH v4 1/8] Platform/Sgi: Update t= he datatype of PcdSmmuBase from u32 to u64 From: Vivek Gautam On RD-N2 and previous generation platforms, the base address was within 32-bit region. However, on upcoming platforms, the SMMUv3 base address is beyond 32-bit address region. So, update the datatype of SMMUv3 base PCD. Signed-off-by: Prabin CA --- Platform/ARM/SgiPkg/SgiPlatform.dec | 2 +- Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Platform/ARM/SgiPkg/SgiPlatform.dec b/Platform/ARM/SgiPkg/SgiP= latform.dec index 103dff8471a7..4087ff6cad2e 100644 --- a/Platform/ARM/SgiPkg/SgiPlatform.dec +++ b/Platform/ARM/SgiPkg/SgiPlatform.dec @@ -79,7 +79,7 @@ [PcdsFixedAtBuild] gArmSgiTokenSpaceGuid.PcdWdogWS1Gsiv|0|UINT32|0x00000014 # SMMU - gArmSgiTokenSpaceGuid.PcdSmmuBase|0|UINT32|0x0000001D + gArmSgiTokenSpaceGuid.PcdSmmuBase|0|UINT64|0x0000001D gArmSgiTokenSpaceGuid.PcdSmmuSize|0|UINT32|0x0000001E # GPIO Controller diff --git a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c b/Pla= tform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c index fa3cfbc730f6..62c212f3c5b0 100644 --- a/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c +++ b/Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLibMem.c @@ -1,6 +1,6 @@ /** @file * -* Copyright (c) 2018-2023, ARM Limited. All rights reserved. +* Copyright (c) 2018-2024, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause-Patent * @@ -167,8 +167,8 @@ ArmPlatformGetVirtualMemoryMap ( VirtualMemoryTable[Index].Attributes =3D ARM_MEMORY_REGION_ATTRIBUT= E_DEVICE; // Sub System Peripherals - SMMU - VirtualMemoryTable[++Index].PhysicalBase =3D FixedPcdGet32 (PcdSmmuBase= ); - VirtualMemoryTable[Index].VirtualBase =3D FixedPcdGet32 (PcdSmmuBase= ); + VirtualMemoryTable[++Index].PhysicalBase =3D FixedPcdGet64 (PcdSmmuBase= ); + VirtualMemoryTable[Index].VirtualBase =3D FixedPcdGet64 (PcdSmmuBase= ); VirtualMemoryTable[Index].Length =3D FixedPcdGet32 (PcdSmmuSize= ); VirtualMemoryTable[Index].Attributes =3D ARM_MEMORY_REGION_ATTRIBUT= E_DEVICE; -- 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116270): https://edk2.groups.io/g/devel/message/116270 Mute This Topic: https://groups.io/mt/104668514/7717249 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [yeoreum.yun@arm.com] -=3D-=3D-=3D-=3D-=3D-=3D IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you. -=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 (#116513): https://edk2.groups.io/g/devel/message/116513 Mute This Topic: https://groups.io/mt/104668514/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-