From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (EUR02-VE1-obe.outbound.protection.outlook.com [40.107.2.69]) by mx.groups.io with SMTP id smtpd.web11.1983.1613125449132044776 for ; Fri, 12 Feb 2021 02:24:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=VXA/DRm+; spf=pass (domain: arm.com, ip: 40.107.2.69, mailfrom: sami.mujawar@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P9CXQWeeVvMAdofWbUm98BDGK//u9ukwqzrGFaoemm0=; b=VXA/DRm+KUGTnghajsbvOAYk1yM2vEUw1LzSgSyv7jkOXfz+hHLO5QHLv/VvBIQiMSSBJdOjLHihX/Py+LGT0mtU0rH6gqdvzE1NIkvGOYl+CHSffdGZcSB/jK1ZYMen8WLGuIVo7LZdkT5uiPqiE3GigALDlnVgmOvinjC/rQw= Received: from DB6P18901CA0023.EURP189.PROD.OUTLOOK.COM (2603:10a6:4:16::33) by DBBPR08MB4630.eurprd08.prod.outlook.com (2603:10a6:10:d6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.29; Fri, 12 Feb 2021 10:24:06 +0000 Received: from DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:16:cafe::b) by DB6P18901CA0023.outlook.office365.com (2603:10a6:4:16::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Fri, 12 Feb 2021 10:24:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT018.mail.protection.outlook.com (10.152.20.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Fri, 12 Feb 2021 10:24:05 +0000 Received: ("Tessian outbound 28c96a6c9d2e:v71"); Fri, 12 Feb 2021 10:24:05 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: f21e7dd40bc69a9a X-CR-MTA-TID: 64aa7808 Received: from fa4ff4b658e8.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 84FED9DC-0D80-4447-B05C-6C6536DEE9F9.1; Fri, 12 Feb 2021 10:23:46 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fa4ff4b658e8.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 12 Feb 2021 10:23:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OSsXVWSQYGhFiRiRN9N2sMWUIgBvNmWTF2sBrj4VI9Dk4cr0GOdp4Ji45BDqyKFImhUIHKeEl5QMQcM1dVwcqKpJZi3TJcpBqWveV0UxD3p0EvYKAMks57rCEZKmX7wlBj8KskR+/rLswOgUeTzFd+J9+s9DOma5wTDe3q615NAwKJtKiTpf+0XoW5AFCqWActdWr2aejXdj08S2RvEiR3jvW+yhcolldPU+RQOsrYK0Qk2Qm7ZFNe/Qga2yAkkhvARXIOGpICaEtd2mKastupZHgEU37awWFpLVqoyahvhaAwkCPoFb9YdJE6zmjoRDz+Wb9IJjEzums93LVW5/CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P9CXQWeeVvMAdofWbUm98BDGK//u9ukwqzrGFaoemm0=; b=N/jKegW8yPKd8qXFjrLbOZ2kzz6y9Tbm/5rH1vs4UwE/6KX1U2mfhB2wSe7fxfIQCjrh0Moz6kqkVXtA/bDp1GrAfxB37yDgMuOoIGDDUbFscLX6tTfvd07K/SN2o/r9oXbGzZc0PVsElbwTI3AweS0L+fd8ZOJq3NbCex0KLGSodafyPGMambM54SjtMpC9KuyMtb6Ofg2ozvUEzTEONqESqj7772ilrHwNCwBqRheSg0oFqdc0ByVuPdq1rEZfBMZbq7liEBv86ti38hb2jdXziygV9XEmjlLuAzYKBKzCQZ2tviJGAfdPpcLT3w1MZKyWrJdvmwcAHegxSNGoaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P9CXQWeeVvMAdofWbUm98BDGK//u9ukwqzrGFaoemm0=; b=VXA/DRm+KUGTnghajsbvOAYk1yM2vEUw1LzSgSyv7jkOXfz+hHLO5QHLv/VvBIQiMSSBJdOjLHihX/Py+LGT0mtU0rH6gqdvzE1NIkvGOYl+CHSffdGZcSB/jK1ZYMen8WLGuIVo7LZdkT5uiPqiE3GigALDlnVgmOvinjC/rQw= Received: from DB6P191CA0019.EURP191.PROD.OUTLOOK.COM (2603:10a6:6:28::29) by AM5PR0801MB1777.eurprd08.prod.outlook.com (2603:10a6:203:3a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.25; Fri, 12 Feb 2021 10:23:44 +0000 Received: from DB5EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:28:cafe::c9) by DB6P191CA0019.outlook.office365.com (2603:10a6:6:28::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27 via Frontend Transport; Fri, 12 Feb 2021 10:23:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by DB5EUR03FT032.mail.protection.outlook.com (10.152.20.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3846.25 via Frontend Transport; Fri, 12 Feb 2021 10:23:44 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2044.4; Fri, 12 Feb 2021 10:23:43 +0000 Received: from E107187.Arm.com (10.57.49.120) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2044.4 via Frontend Transport; Fri, 12 Feb 2021 10:23:42 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , Subject: [PATCH edk2-platforms v1 00/12] Platform/ARM: Add support for FVP RevC Model Date: Fri, 12 Feb 2021 10:23:29 +0000 Message-ID: <20210212102341.24056-1-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 80b2687c-ccf3-4df1-bd4b-08d8cf40537a X-MS-TrafficTypeDiagnostic: AM5PR0801MB1777:|DBBPR08MB4630: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:8882;OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Ab8702qNe86BYSipzwq6kvz1Kfse4UN70q55k/6+4Uag4VYwmhzZr8JFbzZoUGp49k3w1tq8ndmJ2rXE9kySHAyynHbaAvQP0qw4RM9D91J/ImZsjTPnDc5VjQoORji01XPbwmzVDZZzELEJG+qIHdx/1TxP4GNQHiy5iFFP7YvpFjILSPmnXL7GGhtpNw6Llnefv+KudM53pTT8W4hb2gaABF9YwZMJe4s8W4VtiAgx+GGIeVSvVZ/40YISIjFJPMDdJyElwzpmpLc9jTkk15mSxlq/gUcgxkmZ9HRLRPsStEQI8qCQB1iW5E5EsjQquv+2Hz8UEMe0SQd7peDglrxACOAIQdayP17sm2Ka8CrUQ8A5mk965zv01E7ODdfhWJPDmx9k71KvJwdOiIAlYmSGcOewxprpGgKR25O8de2Zya1bnymddVbiTd5+repD6jBI1Pr037BelIUWIi8kf1o17wIHpP2Ju10DnIf/nUtWmcHoPZNenLCHj6YiWRQLS9mJ4XUOh2x7+UT/fakXrfyZQRRZXs2VSUL12ZL2aU98XnYQ8VQg/QzQpuFemA30cRjdNjRpYadndYelk1AZjkjGbiuah/fe3Wj2/JnXoPXq2y34AsF3yftnJ8LP0sEUpPh6IGLvhLXmt3ezA0Tozpx7/0igbL+86zp3D6tQJBF19y+FxZ4AiBwlr2Uxck31tDE6gF/d6jAgI8oBF/0R5Ihwc1Q+a+xxy0J3rak1Uh6vwKjiYNqAkZ2yPm2w/0n0Vsj0m1k0aRooRanyClPQEA== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(4636009)(376002)(396003)(136003)(346002)(39860400002)(36840700001)(46966006)(316002)(36756003)(54906003)(47076005)(1076003)(26005)(44832011)(8676002)(5660300002)(8936002)(6666004)(2906002)(186003)(70586007)(86362001)(83380400001)(82310400003)(70206006)(426003)(4326008)(478600001)(356005)(7696005)(82740400003)(36860700001)(6916009)(966005)(19627235002)(81166007)(336012)(2616005)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1777 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 448d7485-9ab5-482d-a5c7-08d8cf4046a1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OoumdJZohg4G/1OPMBx3lVYpQ/KplruWdbbJqqwZ4OJgYXlfOPDRWqHfp03F89OmBaEw5YFlQb9nxOTAcpdnK7Oi0UUlH9XUhOBv0jP6gNxfmEUiRliw3XXZXE63x30eRe9tsrqwBoMCFXT5oGBbZNdI2/n/NX7ivndhPEpl73x6MQQETKC3H3ZIG2tjraeEzYP2OAF9bXy3LM4RyL3nARjMzD1GpbnifAGEeQeo5k9PM7HDu+pBEazMjcnoB56t67v22Qx/T9NXdxt4XfQwgEBDBthLXvJi/HjddpZ+Ili9fu/FW/wy+3Gc4TBSXUSqFhg8RllUO0kSLQX1JZYlYzmKKSfELg2YKTwfIcYs+wSnvzUPNDyMWi1ZEHJQLxB+mgPV650yABnge8J2JpcP8QZ9+2XqTHQMxYyQ60jPbArWY9qkcuNCXa6/IDxVa1U+4zz0GoFUAXpZeY5Bi/DxA1/6IdveDdhdXpKofFiKoCHU79jwEhwYRcSYrPe5gipvD7YwxJXrbXc1Oj3J9hB9tuTAp/4Vr7E0oV3kS4TO+Rg0+y2YE0ylCEKc+qzA+4mooMYjDx5yrnK2Ff8Zo0b5iUDVtyd4rocUZAR4FP4j05XlLYWeSN6MmShzk4mi0SNEFxbNIgpgaM1QBFZzlpdVJhYOGSkR/6ADsPqxRrS73dpKTqwdJzfRhgsCX1fAeHcbx3EU8WUxNkwLptIKdMvDCuiSQsSAe4j2cAnkyhGPPPY= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(346002)(136003)(39860400002)(396003)(376002)(46966006)(36840700001)(36860700001)(478600001)(186003)(70586007)(82310400003)(2906002)(2616005)(6916009)(8676002)(81166007)(426003)(336012)(316002)(82740400003)(70206006)(26005)(5660300002)(36756003)(1076003)(44832011)(7696005)(86362001)(4326008)(19627235002)(8936002)(54906003)(6666004)(47076005)(83380400001)(966005);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2021 10:24:05.8264 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 80b2687c-ccf3-4df1-bd4b-08d8cf40537a 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: DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4630 Content-Type: text/plain The Armv8-A Base RevC AEM FVP model includes a SMMUv3 and a PCIe subsystem. The FVP RevC model has an AHCI controller that appears as a device on the PCIe bus. The model parameters further allow a file on the host PC to be exposed as a SATA disk. AHCI is one of the defined boot mechanisms for a standards-based Operating System. Therefore, add support for the FVP RevC model. More information on the Armv8-A Base RevC AEM FVP model can be found at: https://developer.arm.com/tools-and-software/ simulation-models/fixed-virtual-platforms/arm-ecosystem-models The ACPI support for RevC model is implemented using Dynamic Tables Framework. This enables unification of the firmware for FVP_Base_AEMv8A-AEMv8A and FVP_Base_RevC-2xAEMv8A models such that the same firmware binary can be used by both models. The last patch in this series drops support for the traditional ACPI tables as these are now redundant. The changes can be seen at: https://github.com/samimujawar/edk2-platforms/tree/1599_fvp_revc_v1 Sami Mujawar (12): Platform/ARM/VExpressPkg: FVP RevC SysID.Rev defintion Platform/ARM/VExpressPkg: Add PCIe Host Bridge lib for FVP Platform/ARM/VExpressPkg: Memory map for FVP RevC model Platform/ARM/VExpressPkg: Configure SMMUv3 for FVP RevC Platform/ARM/VExpressPkg: Helper macro to map reference token Platform/ARM/VExpressPkg: ACPI support for FVP RevC model Platform/ARM/VExpressPkg: Add support for FVP RevC model Platform/ARM/VExpressPkg: Update ACPI Revision to 6.3 Platform/ARM/VExpressPkg: Add SMC91x device description Platform/ARM/VExpressPkg: Add Virtio Block Device description Platform/ARM/VExpressPkg: Make Dynamic Tables Framework default Platform/ARM/VExpressPkg: Remove redundant traditional ACPI support Platform/ARM/VExpressPkg/AcpiTables/AcpiTables.inf | 38 -- Platform/ARM/VExpressPkg/AcpiTables/Dsdt.asl | 123 ------- Platform/ARM/VExpressPkg/AcpiTables/Fadt.aslc | 80 ----- Platform/ARM/VExpressPkg/AcpiTables/FvpPlatform.h | 40 --- Platform/ARM/VExpressPkg/AcpiTables/Gtdt.aslc | 169 --------- Platform/ARM/VExpressPkg/AcpiTables/Madt.aslc | 85 ----- Platform/ARM/VExpressPkg/AcpiTables/Spcr.aslc | 82 ----- Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc | 49 ++- Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.fdf | 33 +- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/Dsdt.asl | 27 +- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/SsdtPci.asl | 204 +++++++++++ Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.c | 376 +++++++++++++++++++- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManager.h | 36 +- Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/ConfigurationManagerDxe.inf | 10 +- Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmFvpDxe.c | 110 +++++- Platform/ARM/VExpressPkg/Drivers/ArmVExpressDxe/ArmFvpDxe.inf | 4 +- Platform/ARM/VExpressPkg/Include/Platform/RTSM/ArmPlatform.h | 6 +- Platform/ARM/VExpressPkg/Include/VExpressMotherBoard.h | 5 +- Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf | 12 +- Platform/ARM/VExpressPkg/Library/ArmVExpressLibRTSM/RTSMMem.c | 31 +- Platform/ARM/VExpressPkg/Library/ArmVExpressPciHostBridgeLib/ArmVExpressPciHostBridgeLib.c | 208 +++++++++++ Platform/ARM/VExpressPkg/Library/ArmVExpressPciHostBridgeLib/ArmVExpressPciHostBridgeLib.inf | 48 +++ Platform/ARM/VExpressPkg/Library/ArmVExpressPciHostBridgeLib/ArmVExpressPciHostBridgeLib.uni | 14 + 23 files changed, 1124 insertions(+), 666 deletions(-) delete mode 100644 Platform/ARM/VExpressPkg/AcpiTables/AcpiTables.inf delete mode 100644 Platform/ARM/VExpressPkg/AcpiTables/Dsdt.asl delete mode 100644 Platform/ARM/VExpressPkg/AcpiTables/Fadt.aslc delete mode 100644 Platform/ARM/VExpressPkg/AcpiTables/FvpPlatform.h delete mode 100644 Platform/ARM/VExpressPkg/AcpiTables/Gtdt.aslc delete mode 100644 Platform/ARM/VExpressPkg/AcpiTables/Madt.aslc delete mode 100644 Platform/ARM/VExpressPkg/AcpiTables/Spcr.aslc create mode 100644 Platform/ARM/VExpressPkg/ConfigurationManager/ConfigurationManagerDxe/AslTables/SsdtPci.asl create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressPciHostBridgeLib/ArmVExpressPciHostBridgeLib.c create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressPciHostBridgeLib/ArmVExpressPciHostBridgeLib.inf create mode 100644 Platform/ARM/VExpressPkg/Library/ArmVExpressPciHostBridgeLib/ArmVExpressPciHostBridgeLib.uni -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'