From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 806777803D0 for ; Wed, 24 Apr 2024 09:50:33 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=unUbNETzVz1tQjEhMfmbFI16T69QqTnbcOMlmU8AC9E=; 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:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20240206; t=1713952232; v=1; b=2HJkDnclXtCNbP+Q0I9l37KDgBjZHVa4CmdVm1NyviOzDU+qiICqc0npkgVflpcv8TnNjiWL qcJE74xWqp/vNCj5d28ihYnx4RQ5XFhGEJA08g1rJv5WuKekzLE1LjYIthG8E/OQRahaqJ1h1ly 26G+9sNAk/Jn7uw+1ysSv1ZOqimMAvnrPevSb8MQRX+w0EJjNlERllu6zxKHWr+thSVMzj6cNbV q4eL83TjOqWK5vIu9BcT4QS2TNOgAXEPY4Uup+vINYHUkQpi0V83egAmB3Jg09KmCKVDpFvX4ux uA755sbefo7IuDdnO9XfQ1nArfwzQL5oAAUX8HkZfnHKQ== X-Received: by 127.0.0.2 with SMTP id 3n3uYY7687511xbibT7YbiKv; Wed, 24 Apr 2024 02:50:32 -0700 X-Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.40]) by mx.groups.io with SMTP id smtpd.web10.12573.1713952231049545831 for ; Wed, 24 Apr 2024 02:50:31 -0700 X-Received: from AM6PR04CA0045.eurprd04.prod.outlook.com (2603:10a6:20b:f0::22) by DU0PR08MB7616.eurprd08.prod.outlook.com (2603:10a6:10:320::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Wed, 24 Apr 2024 09:50:27 +0000 X-Received: from AM2PEPF0001C710.eurprd05.prod.outlook.com (2603:10a6:20b:f0:cafe::a0) by AM6PR04CA0045.outlook.office365.com (2603:10a6:20b:f0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22 via Frontend Transport; Wed, 24 Apr 2024 09:50:27 +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=arm.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 AM2PEPF0001C710.mail.protection.outlook.com (10.167.16.180) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7519.19 via Frontend Transport; Wed, 24 Apr 2024 09:50:26 +0000 X-Received: ("Tessian outbound 88c46f8f09a7:v313"); Wed, 24 Apr 2024 09:50:26 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 9b6ec1c1cd21bb23 X-CR-MTA-TID: 64aa7808 X-Received: from 705556660613.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FAE7FF35-A644-42FB-98C7-47BF440CC5B0.1; Wed, 24 Apr 2024 09:50:20 +0000 X-Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 705556660613.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 24 Apr 2024 09:50:20 +0000 X-Received: from AM0PR08MB4289.eurprd08.prod.outlook.com (2603:10a6:208:148::12) by PAWPR08MB11088.eurprd08.prod.outlook.com (2603:10a6:102:468::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Wed, 24 Apr 2024 09:50:18 +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.7472.044; Wed, 24 Apr 2024 09:50:18 +0000 From: "levi.yun" To: "devel@edk2.groups.io" , Sahil Kaushal CC: Ard Biesheuvel , =?koi8-r?Q?Leif_Lindholm_=9A?= , Sami Mujawar Subject: Re: [edk2-devel] [PATCH RESEND edk2-platforms][PATCH V2 10/14] Silicon/ARM/NeoverseN1Soc: Enable SCP QSPI flash region Thread-Topic: [edk2-devel] [PATCH RESEND edk2-platforms][PATCH V2 10/14] Silicon/ARM/NeoverseN1Soc: Enable SCP QSPI flash region Thread-Index: AQHalY+A6B513G2glUClH/WpnTY4A7F3LoDh Date: Wed, 24 Apr 2024 09:50:18 +0000 Message-ID: References: <20240423055638.1271531-1-Sahil.Kaushal@arm.com> <20240423055638.1271531-11-Sahil.Kaushal@arm.com> In-Reply-To: <20240423055638.1271531-11-Sahil.Kaushal@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_|PAWPR08MB11088:EE_|AM2PEPF0001C710:EE_|DU0PR08MB7616:EE_ X-MS-Office365-Filtering-Correlation-Id: adeedebf-fe05-4239-9d6a-08dc6443f81b x-checkrecipientrouted: true nodisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-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koi8-r?Q?zitJ0ZYXk7lCvn0AA1Mca2EoIQlk+JuNL/BzBHL0pmfhRelIAVV/D35EJ28TyP?= =?koi8-r?Q?QrrwIwDGrNjs/tBdNQyQle+2SUURWMYUFnOtqe+iQEvaRJuNRLHHT+1IF62hpc?= =?koi8-r?Q?8z+CTuVC94FCnhE3tw6c+SiUMJSjho2EPVz7xrtyXCOgrJwGcNvhuKiW6dzNX5?= =?koi8-r?Q?nt7bICLtqjKWFbFRq1yBY5coIlS58McmmXR25n8Z8IVKiv9Hy6c+syDMi9yBdM?= =?koi8-r?Q?pZG4CMIGfv3Qp/FN1K0p/Z/lhSDYjmAnvOwsAuxjp67lKrGum+LCpVOsiZhSSF?= =?koi8-r?Q?q9Mkk1Ybzx29mpADDK/8sboaMyKKMjmqfYrJwEnm/toamFoJZnXs4UDQBw3r/0?= =?koi8-r?Q?JeDhJQqyCS9a8QpI+5eSB+tzeiN9Se/haFXKkNS0VoUD4ASuj1g3N4wV+aZrwW?= =?koi8-r?Q?jqw9YzaqjIbfrkNxh+rMbXgaEZ4NkSBL07PMuODzXUyEmANT5WmNs6Jq2suWpm?= =?koi8-r?Q?ag=3D=3D?= 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)(366007)(1800799015)(376005)(38070700009);DIR:OUT;SFP:1101; MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB11088 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: AM2PEPF0001C710.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e7748644-f01f-4a49-6a5f-08dc6443f2eb X-Microsoft-Antispam-Message-Info: =?koi8-r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yfuWUxZFWGRKc9EgcK6CuCQAFL9tnqOUNSWqBVCmzgi8qKv?= =?koi8-r?Q?TODG1jlypWw6vEBzDTyk3hz0hBDG0Q0lQQZ7KgvuG0Ayf8+KuDS0H+6EKPW/gp?= =?koi8-r?Q?0FPYm8K2c30vylA5abV95oPqp06iAXYuZGvwS9bydSAVspmqpHdb2AACaWk8c4?= =?koi8-r?Q?uWwfGlaYM/x6eEsD4AERQjIBj9BQdRZveiupxtIqkQwimM9Cmf7V33AkOUg997?= =?koi8-r?Q?CZQbIFp7w9OiLZnSTcGkHD17Xe0Ly/ChBv8u6qMn9W60Eg/nBeMYYdTkYPJ1fv?= =?koi8-r?Q?McsBVtgiad/oJqC7RA6iIq0iW8SgQDzB/hEP/gvQqtqdy5HFP3gJNPi5R3wt2X?= =?koi8-r?Q?J+zMohxAOegPUMEFFNvFZsqXW83FdP4N7f9Rxav+yYzf3D3+h6hjWlL+3t4VrU?= =?koi8-r?Q?YvPlJwtxmgn8/d7fqQ9UCBlo4jRzQzdq+8081GElMX/YwZf0PgfuztF9RAi52R?= =?koi8-r?Q?uNckDc60NpEAOHlbAg1VJdfYKJIKL6+GO8mbKpOIhfez?= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 09:50:26.7288 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: adeedebf-fe05-4239-9d6a-08dc6443f81b 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: AM2PEPF0001C710.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB7616 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 Resent-Date: Wed, 24 Apr 2024 02:50:31 -0700 Resent-From: yeoreum.yun@arm.com Reply-To: devel@edk2.groups.io,yeoreum.yun@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Wp69yG1cGcw2rDyElNRwstExx7686176AA= Content-Language: en-GB Content-Type: text/plain; charset="koi8-r" 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=2HJkDncl; 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 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: levi.yun ________________________________________ From: devel@edk2.groups.io on behalf of Sahil Kausha= l via groups.io Sent: 23 April 2024 06:56 To: devel@edk2.groups.io Cc: Ard Biesheuvel; Leif Lindholm ; Sami Mujawar; Sahil Kaushal Subject: [edk2-devel] [PATCH RESEND edk2-platforms][PATCH V2 10/14] Silicon= /ARM/NeoverseN1Soc: Enable SCP QSPI flash region From: sahil Enable SCP QSPI flash region access by adding it in the PlatformLibMem. This flash is shared between AP core and System Control Processor. The lower addresses are used to store SCP and AP boot images and higher addresses will be used for variable storage. Signed-off-by: sahil --- Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h | 7 +++++++ Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c | 8 +++++++= - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h b/Silicon/AR= M/NeoverseN1Soc/Include/NeoverseN1Soc.h index 5483e7bc5f68..2dae57a0f01a 100644 --- a/Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h +++ b/Silicon/ARM/NeoverseN1Soc/Include/NeoverseN1Soc.h @@ -4,6 +4,9 @@ * * SPDX-License-Identifier: BSD-2-Clause-Patent * +* Arm Neoverse N1 System Development Platform Technical Reference Manual +* https://developer.arm.com/documentation/101489/0000/?lang=3Den +* **/ #ifndef NEOVERSEN1SOC_PLATFORM_H_ @@ -41,6 +44,10 @@ #define NEOVERSEN1SOC_EXP_PERIPH_BASE0 0x1C000000 #define NEOVERSEN1SOC_EXP_PERIPH_BASE0_SZ 0x1300000 +// SCP QSPI flash device +#define NEOVERSEN1SOC_SCP_QSPI_AHB_BASE 0x18000000 +#define NEOVERSEN1SOC_SCP_QSPI_AHB_SZ 0x2000000 + /* * Platform information structure stored in Non-secure SRAM. Platform * information are passed from the trusted firmware with the below structu= re diff --git a/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c= b/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c index 80daedb33416..282bfbc81736 100644 --- a/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c +++ b/Silicon/ARM/NeoverseN1Soc/Library/PlatformLib/PlatformLibMem.c @@ -14,7 +14,7 @@ #include // The total number of descriptors, including the final "end-of-table" des= criptor. -#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 19 +#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 20 /** Returns the Virtual Memory Map of the platform. @@ -203,6 +203,12 @@ ArmPlatformGetVirtualMemoryMap ( VirtualMemoryTable[Index].Length =3D NEOVERSEN1SOC_EXP_PERIPH_B= ASE0_SZ; VirtualMemoryTable[Index].Attributes =3D ARM_MEMORY_REGION_ATTRIBUT= E_DEVICE; + // SCP QSPI flash device + VirtualMemoryTable[++Index].PhysicalBase =3D NEOVERSEN1SOC_SCP_QSPI_AHB= _BASE; + VirtualMemoryTable[Index].VirtualBase =3D NEOVERSEN1SOC_SCP_QSPI_AHB= _BASE; + VirtualMemoryTable[Index].Length =3D NEOVERSEN1SOC_SCP_QSPI_AHB= _SZ; + VirtualMemoryTable[Index].Attributes =3D ARM_MEMORY_REGION_ATTRIBUT= E_DEVICE; + if (PlatInfo->MultichipMode =3D=3D 1) { //Remote DDR (2GB) VirtualMemoryTable[++Index].PhysicalBase =3D PcdGet64 (PcdExtMemorySp= ace) + -- 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118160): https://edk2.groups.io/g/devel/message/118160 Mute This Topic: https://groups.io/mt/105690945/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 (#118189): https://edk2.groups.io/g/devel/message/118189 Mute This Topic: https://groups.io/mt/105690945/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-