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 F38A37803D1 for ; Fri, 8 Mar 2024 13:05:46 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=goB8lUEIyO2n+D64VWhaOMvvkY1omd5HO1E/eD2pX1w=; 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=1709903145; v=1; b=c7wkXSCC+lz9Hzn4WsHYfPZaGhIzpl6ntkACnjywmw9uL0YFZ5sHsBDvaq3RyEa8B5H/01BH ywl0k3c45yIvqGWG4UXkkWcMddnQ/lC0/Y4ydpwLQirwJXzxFAqSVKPx+YFLmWAsoe9h8OomDma 0+197nje8sLx0+y+OkSVQ5Mj104vbjZmmpGsZbqfVZ75aYkOJE+RCY0LIYaz3pNA/68paDBzjUQ 33V9kkGYNB6XPmKGUhxvbdszzNrirH44+XQ/10at/wrBt+D93u5DiBgRgkYBPpHh+h1evhz1G5o n9pSc5vNIsVYN6izxKRe5MSY6RR3ZGwyd7MTnjysRSq7A== X-Received: by 127.0.0.2 with SMTP id fKz2YY7687511x9gjgZVE5lp; Fri, 08 Mar 2024 05:05:45 -0800 X-Received: from EUR01-HE1-obe.outbound.protection.outlook.com (EUR01-HE1-obe.outbound.protection.outlook.com [40.107.13.87]) by mx.groups.io with SMTP id smtpd.web11.21369.1709903144666694334 for ; Fri, 08 Mar 2024 05:05:45 -0800 X-Received: from AM6PR10CA0061.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::38) by GV1PR08MB8690.eurprd08.prod.outlook.com (2603:10a6:150:83::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.27; Fri, 8 Mar 2024 13:05:34 +0000 X-Received: from AM2PEPF0001C70F.eurprd05.prod.outlook.com (2603:10a6:209:80:cafe::e) by AM6PR10CA0061.outlook.office365.com (2603:10a6:209:80::38) 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:05:34 +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 AM2PEPF0001C70F.mail.protection.outlook.com (10.167.16.203) 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:05:34 +0000 X-Received: ("Tessian outbound 6a48a1f51a3c:v276"); Fri, 08 Mar 2024 13:05:33 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e75451626efcd908 X-CR-MTA-TID: 64aa7808 X-Received: from 96866be379bd.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id D896F833-5D6C-43E1-80DC-69B13FEC4348.1; Fri, 08 Mar 2024 13:05:27 +0000 X-Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 96866be379bd.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 08 Mar 2024 13:05:27 +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:05:25 +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:05:25 +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 5/8] Platform/Sgi: Add initial support for RD-Fremont platform Thread-Topic: [edk2-devel] [edk2-platforms][PATCH v4 5/8] Platform/Sgi: Add initial support for RD-Fremont platform Thread-Index: AQHaa/cC2i1DRqvvkEaajAyboeqH6rEt2qIk Date: Fri, 08 Mar 2024 05:05:45 -0800 Message-ID: References: <20240301163231.2889922-1-prabin.ca@arm.com> <20240301163231.2889922-6-prabin.ca@arm.com> In-Reply-To: <20240301163231.2889922-6-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_|AM2PEPF0001C70F:EE_|GV1PR08MB8690:EE_ X-MS-Office365-Filtering-Correlation-Id: 739185bc-400a-4ce7-f6b8-08dc3f7070dd 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: LKrY50LUNlWF5zUbhxp5OQbjPnO7vlKk/pSEhK6x9+Me2mwm2dR8mg4d19ncU+sCn7snmiVfOk35OqNjh3OWI3Ml6ELyyJ8sEhQt7jfE60YUosv+t232RqiYi4JQTwCbd9lKHEZfq4XcR1nLHcadx7L/0F2UD8qd5Rq9opCgS/CpYEIPtNZWqY1tflezEay8kmlV4Y+pTZZZAKt/gBgf54xspHwJJKspFxiAsPAEd0b3K1qOS/aGgV0Ks64m10PXC3Bx0TAk/0guj51QOy1XCIvp1SX8Z1sNjyttuw77Gogg3RVDRCeGidw62c0sb/0tJ25Sda09F4Pqvlkvu4yAFdT9AgAo3uUpNSLJVYfI2xPw2PtBEl0Y2JdyFdrhEUmyjn5H/s5gtsPMkLCrTjq9COXYOiKZx/lHJ2r+v/FbeIEpzpCFVB+MnEbhWIMrdutnU+QRC1LvlM0VDSO2TH7BamjME6mvzLBNGzOtieDQLJ9iqunsMXjsTIQnqfMcGaop2S8+SIYYDOPwhwZBjGBJzOCmbz2geIzcqhLSQrtbyWBPm8s+MvsWxGVlCust8l1/YZqPH+wX2gNHXx9sDFnInkBR3H/DSJEQJwKqTA0x2sL3++ki4sVGFQPr+qoiOS7JyIorWzLLEd8pGBJgUaRUPY7qdVjVefgH4I9Vwm4tYzk86rHDXZLMoghiG73xnIeR 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: AM2PEPF0001C70F.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9b10652b-eea9-46fd-812a-08dc3f706bc5 X-Microsoft-Antispam-Message-Info: Hg6re8W8nqyfCUV6ShNu97VqNd68cgR0NGsllOhsltUaGX07zGraCVZ3NFigckN3jUSAvVPjYJtCa+G2n9rdUuU3pXw6c87C+TS6Q6lx2l/ObFfpI+9yiW2StrKibjgxeHix+zDiu0JSZ19vvaw0YdHyMM6hajPy/8PuKkv4Mes/kY4vDw62PWCOiv3936auhESTIReoCtGoLFfEOsaSOWfSE9ylSy+jF4sdLAkHTE1RbYVNs+jSBbeesUNhNdsiSGoqdnTALgPedFnXsILAdn/BD8NO3vnYH0frxQPm6FwRVhWjYSnlGBGcDH0q3CtZ8rPNCNdoOiYDD+tFuqxzfJJ9ZGhrYA12C98SHXzB3rdpCYgpvDM37H91hVKKHsoPC+jWGPUbIB2JR+19F1D1u+jeo0IAFgobLc4yCN9WX3uyGS21dYCbjBZIAxV00aD3VgNfxIA+aZCbK5LTTwl5kwmS4UBeqGBw9VzXRq+LJ6qPCmxIF5Dyb0xj0mk2UULClBtqaMlIYQ4B6+kmQi9EFzokFXH6VXdBKwWu6Tylqv6nM3DC2ihIqbbl2ZpJhwkcl+nLatiHlzAo/hFQa1HOViD332sdd8AP6LtRifNf/OWkisLJ+ecmLRf6xMoJrJLJZLRxqUWtdQqFWDbZDLkltx+/uL1lKiW9TQOor2aXN7SbasOH4bX1jYvSOesWXOkOgJIBVPVQwd2Xk4YlRhtRpA== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2024 13:05:34.1624 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 739185bc-400a-4ce7-f6b8-08dc3f7070dd 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: AM2PEPF0001C70F.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB8690 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: DBKRupoSPSF8fts3sgXbwHZax7686176AA= 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=c7wkXSCC; 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 5/8] Platform/Sgi: Add init= ial support for RD-Fremont platform The RD-Fremont fixed virtual platform simulates 16 CPUs and 8GB of RAM. Add initial support for this platform by adding the required platform build configuration files. This platform has considerable differences in its memory map compared to its predecessors. So add a corresponding memory map file as well to define the PCDs for its generation of platforms. Signed-off-by: Prabin CA --- Platform/ARM/SgiPkg/SgiMemoryMap3.dsc.inc | 71 ++++++++++++++++++++ Platform/ARM/SgiPkg/RdFremont/RdFremont.dsc | 55 +++++++++++++++ Platform/ARM/SgiPkg/RdFremont/RdFremont.fdf.inc | 10 +++ 3 files changed, 136 insertions(+) diff --git a/Platform/ARM/SgiPkg/SgiMemoryMap3.dsc.inc b/Platform/ARM/SgiPk= g/SgiMemoryMap3.dsc.inc new file mode 100644 index 000000000000..06c3b37388c1 --- /dev/null +++ b/Platform/ARM/SgiPkg/SgiMemoryMap3.dsc.inc @@ -0,0 +1,71 @@ +# +# Copyright (c) 2024, Arm Limited. All rights reserved. +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# + +[PcdsFixedAtBuild.common] + # System Peripherals + gArmSgiTokenSpaceGuid.PcdSmcCs0Base|0x08000000 + gArmSgiTokenSpaceGuid.PcdSmcCs1Base|0x0600000000 + gArmSgiTokenSpaceGuid.PcdSysPeriphBase|0x0C000000 + gArmSgiTokenSpaceGuid.PcdSysPeriphSysRegBase|0x0C010000 + + # SP804 dual timer + gArmSgiTokenSpaceGuid.PcdSp804DualTimerBaseAddress|0x0C110000 + gArmSgiTokenSpaceGuid.PcdSp804DualTimerSize|0x00010000 + gArmSgiTokenSpaceGuid.PcdSp804DualTimerInterrupt|216 + + # Virtio Disk + gArmSgiTokenSpaceGuid.PcdVirtioBlkBaseAddress|0x0C130000 + gArmSgiTokenSpaceGuid.PcdVirtioBlkSize|0x10000 + gArmSgiTokenSpaceGuid.PcdVirtioBlkInterrupt|184 + + # GPIO controller + gArmSgiTokenSpaceGuid.PcdGpioController0BaseAddress|0x0C1D0000 + gArmSgiTokenSpaceGuid.PcdGpioController0Size|0x00010000 + gArmSgiTokenSpaceGuid.PcdGpioController0Interrupt|168 + + # Ethernet + gArmSgiTokenSpaceGuid.PcdVirtioNetBaseAddress|0x0C150000 + gArmSgiTokenSpaceGuid.PcdVirtioNetInterrupt|186 + + # PL031 RealTimeClock + gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0C170000 + + # Virtio P9 + gArmSgiTokenSpaceGuid.PcdVirtioP9BaseAddress|0x0C190000 + gArmSgiTokenSpaceGuid.PcdVirtioP9Size|0x10000 + gArmSgiTokenSpaceGuid.PcdVirtioP9Interrupt|185 + + # PL370 - HDLCD1 + gArmPlatformTokenSpaceGuid.PcdArmHdLcdBase|0x0EF60000 + + # PL011 - Serial Debug UART + gArmPlatformTokenSpaceGuid.PcdSerialDbgRegisterBase|0x0EF70000 + gArmPlatformTokenSpaceGuid.PcdSerialDbgInterrupt|179 + + # PL011 - Serial Terminal + gArmPlatformTokenSpaceGuid.PL011UartInterrupt|112 + + # System Memory (2GB - 128MB of Trusted DRAM at the top of the 32bit add= ress space) + gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000 + gArmTokenSpaceGuid.PcdSystemMemorySize|0x78000000 + + # SMMU + gArmSgiTokenSpaceGuid.PcdSmmuBase|0x280000000 + gArmSgiTokenSpaceGuid.PcdSmmuSize|0x4000000 + + # Non-Volatile variable storage + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0x0600000= 000 + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0x06014= 00000 + gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0x0602800= 000 + + # Address bus width - 64TB address space + gArmSgiTokenSpaceGuid.PcdMaxAddressBitsPerChip|46 + + # Timer & Watchdog interrupts + gArmSgiTokenSpaceGuid.PcdGtFrame0Gsiv|109 + gArmSgiTokenSpaceGuid.PcdGtFrame1Gsiv|108 + gArmSgiTokenSpaceGuid.PcdWdogWS0Gsiv|110 + gArmSgiTokenSpaceGuid.PcdWdogWS1Gsiv|111 diff --git a/Platform/ARM/SgiPkg/RdFremont/RdFremont.dsc b/Platform/ARM/Sgi= Pkg/RdFremont/RdFremont.dsc new file mode 100644 index 000000000000..b52d2f59e15d --- /dev/null +++ b/Platform/ARM/SgiPkg/RdFremont/RdFremont.dsc @@ -0,0 +1,55 @@ +# +# Copyright (c) 2024, Arm Limited. All rights reserved. +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# + +##########################################################################= ###### +# +# Defines Section - statements that will be processed to create a Makefile= . +# +##########################################################################= ###### +[Defines] + PLATFORM_NAME =3D RdFremont + PLATFORM_GUID =3D fd140b0f-4467-4314-aa69-cd0bd712e08e + PLATFORM_VERSION =3D 0.1 + DSC_SPECIFICATION =3D 0x0001001B + OUTPUT_DIRECTORY =3D Build/$(PLATFORM_NAME) + SUPPORTED_ARCHITECTURES =3D AARCH64 + BUILD_TARGETS =3D NOOPT|DEBUG|RELEASE + SKUID_IDENTIFIER =3D DEFAULT + FLASH_DEFINITION =3D Platform/ARM/SgiPkg/SgiPlatform.fdf + BOARD_DXE_FV_COMPONENTS =3D Platform/ARM/SgiPkg/RdFremont/RdFremo= nt.fdf.inc + BUILD_NUMBER =3D 1 + +# include common definitions from SgiPlatform.dsc +!include Platform/ARM/SgiPkg/SgiPlatform.dsc.inc +!include Platform/ARM/SgiPkg/SgiMemoryMap3.dsc.inc + +# include common/basic libraries from MdePkg. +!include MdePkg/MdeLibs.dsc.inc + +##########################################################################= ###### +# +# Pcd Section - list of all EDK II PCD Entries defined by this Platform +# +##########################################################################= ###### + +[PcdsFixedAtBuild.common] + # GIC Base Addresses + gArmTokenSpaceGuid.PcdGicDistributorBase|0x30000000 + gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x301C0000 + gArmSgiTokenSpaceGuid.PcdGicSize|0x200000 + + # ARM Cores and Clusters + gArmPlatformTokenSpaceGuid.PcdCoreCount|1 + gArmPlatformTokenSpaceGuid.PcdClusterCount|16 + +##########################################################################= ###### +# +# Components Section - list of all EDK II Modules needed by this Platform +# +##########################################################################= ###### + +[Components.common] + Platform/ARM/SgiPkg/AcpiTables/RdFremontAcpiTables.inf diff --git a/Platform/ARM/SgiPkg/RdFremont/RdFremont.fdf.inc b/Platform/ARM= /SgiPkg/RdFremont/RdFremont.fdf.inc new file mode 100644 index 000000000000..a465b7426653 --- /dev/null +++ b/Platform/ARM/SgiPkg/RdFremont/RdFremont.fdf.inc @@ -0,0 +1,10 @@ +# +# Copyright (c) 2024, Arm Limited. All rights reserved. +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# + +# Per-platform additional content of the DXE phase firmware volume + + # ACPI support + INF RuleOverride=3DACPITABLE Platform/ARM/SgiPkg/AcpiTables/RdFremontAcp= iTables.inf -- 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116274): https://edk2.groups.io/g/devel/message/116274 Mute This Topic: https://groups.io/mt/104668520/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 (#116516): https://edk2.groups.io/g/devel/message/116516 Mute This Topic: https://groups.io/mt/104668520/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-