From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (EUR02-HE1-obe.outbound.protection.outlook.com [40.107.1.79]) by mx.groups.io with SMTP id smtpd.web11.8389.1589446000825320547 for ; Thu, 14 May 2020 01:46:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=lieqBTpm; spf=pass (domain: arm.com, ip: 40.107.1.79, 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=/fpKB/eoWti0ORJmqpkD6iNxbLWm9nBRxCQLSj+EAbw=; b=lieqBTpmGy4OyjhdX44wn55ZFZrni7XXVo9+lnx2w1lFvN7lpAXRcPvqS3i4Szf8vsT0yj4iuM2+dNnnToJ+zCBLpj8Ffmh7kza0swArhjSVGk23A8ZG12ssTHB4QGhuJTSmWYx+vE5ONARhsKQ14dfnP99l8P5zqk49924MjNc= Received: from DB6PR07CA0012.eurprd07.prod.outlook.com (2603:10a6:6:2d::22) by VI1PR0802MB2399.eurprd08.prod.outlook.com (2603:10a6:800:bb::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.28; Thu, 14 May 2020 08:46:36 +0000 Received: from DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2d:cafe::1a) by DB6PR07CA0012.outlook.office365.com (2603:10a6:6:2d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.12 via Frontend Transport; Thu, 14 May 2020 08:46:36 +0000 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=bestguesspass 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 DB5EUR03FT028.mail.protection.outlook.com (10.152.20.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.19 via Frontend Transport; Thu, 14 May 2020 08:46:36 +0000 Received: ("Tessian outbound 5abcb386707e:v54"); Thu, 14 May 2020 08:46:36 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 483b2e19ba798b54 X-CR-MTA-TID: 64aa7808 Received: from bef14d028f2f.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6AA18380-066C-4C01-9473-F027DEBF0B4D.1; Thu, 14 May 2020 08:46:31 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id bef14d028f2f.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 14 May 2020 08:46:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J7bRgFWXmynBroq4WxBh0eLCys5OHTU4AD7+igSM9jSy3STixk2k4IFdn0BeHc+Vneds7mHHYhM77MFKp50UTsjFgJCj7yRnbzjZSlJEt4baeJEDUJDDowX7yeDJ7Wqet9R4kqPpdPfpCe9i3UC8ustEx+l5FKLgPer2frKBUw0Pe0QrhyaZ2b5UwBPvcKdHCbXTrw4WRduNVu4OwRSdRk2n6pOW1KRPAFqRqSxrvLYKd9vNL3a4vzIKmuKu7gMjAO7VzMiUB7MQeJsElY8l1QY9bXAJfmWn5fNpFjZQpeTBbnN4/b1onxcsZu2Xsdfkw+hLIBg4hb33M0rGAk5vug== 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=/fpKB/eoWti0ORJmqpkD6iNxbLWm9nBRxCQLSj+EAbw=; b=ZFpDHH52v66m5odWDpATXufHRG3Ygm8mhgPBC5Hb0tsshgvmixmP7+DspEKldyCSga3w2TPbYe8IOpS3DAmI3AtaTbjvfilxWIXWIrNJq9auJ+bDIh7h7HsUYBTsVjVuyKppNJD5sVpRkEO+GYwru8kry1tz0LZ17l4vFie9XXB4YoPCqgje8w67wfO9tKIXfcLxbZLc108y0zyaQ2ahUBcXEjddc8cAfAG5qScZZknk9UB3hM82O0rYyu0+a2YAMV2B0VXRZU5h1VOBVd1CFKWNFz5Re6D8aBnjsFZaLvSH64gQ5lySbRDJcrYnIisShh1KKTB43sPdbvcbzCbEBg== 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=bestguesspass 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=/fpKB/eoWti0ORJmqpkD6iNxbLWm9nBRxCQLSj+EAbw=; b=lieqBTpmGy4OyjhdX44wn55ZFZrni7XXVo9+lnx2w1lFvN7lpAXRcPvqS3i4Szf8vsT0yj4iuM2+dNnnToJ+zCBLpj8Ffmh7kza0swArhjSVGk23A8ZG12ssTHB4QGhuJTSmWYx+vE5ONARhsKQ14dfnP99l8P5zqk49924MjNc= Received: from MR2P264CA0113.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:33::29) by DB6PR0802MB2613.eurprd08.prod.outlook.com (2603:10a6:4:a0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.35; Thu, 14 May 2020 08:46:29 +0000 Received: from VE1EUR03FT041.eop-EUR03.prod.protection.outlook.com (2603:10a6:500:33:cafe::9) by MR2P264CA0113.outlook.office365.com (2603:10a6:500:33::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.25 via Frontend Transport; Thu, 14 May 2020 08:46:29 +0000 Authentication-Results-Original: 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=bestguesspass 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 VE1EUR03FT041.mail.protection.outlook.com (10.152.19.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3000.19 via Frontend Transport; Thu, 14 May 2020 08:46:28 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Thu, 14 May 2020 08:46:08 +0000 Received: from E107187.Arm.com (10.57.42.179) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Thu, 14 May 2020 08:46:08 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , Subject: [PATCH edk2-platforms v1 0/1] Use BaseMemoryLibMmio with NorFlashDxe Date: Thu, 14 May 2020 09:46:05 +0100 Message-ID: <20200514084607.25956-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-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;SFTY:;SFS:(4636009)(136003)(396003)(39860400002)(376002)(346002)(46966005)(186003)(8676002)(47076004)(5660300002)(26005)(316002)(19627235002)(70586007)(82740400003)(6916009)(6666004)(54906003)(82310400002)(70206006)(8936002)(81166007)(2906002)(426003)(7696005)(356005)(1076003)(36756003)(2616005)(478600001)(4326008)(44832011)(86362001)(966005)(336012);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: da357424-efce-4f05-fd74-08d7f7e34fe2 X-MS-TrafficTypeDiagnostic: DB6PR0802MB2613:|VI1PR0802MB2399: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-Forefront-PRVS: 040359335D X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: ogVwUUDzEACdoOofVwEQR6CvhPq5H3T9wHHtojpKciTmmGoWlHbxffbFTONi969Vb294x7Hi12wF+NSqjgamTjLiQ1ODY07igF7nuj93aPGvhjzCtZgBAbp2+5w0aQe946pyij3PCJMMLoGdqADOlRo8OWTL0oGlRLaTlSurFzeMgGWKWIiL2OYjHIj55m7Rh3Fuj4yXKacbNn2ogv1RU2546hCNMCk8NVRz5Hv1oHdF/z/PDICf6XEYl5vIuddvZ+UIDY8KT6A6FAdDE7HNDEJzbbiPsgQNrjLqMfRusblKBpiLjy2j0/YrzUojaesrelnfhqEi5sxF+UCXnENS9csqPiXPwotoItCwMDGIp+6eG6BcKmrfrelaPphYAUXjeHDjJgbqDKuAwLD6RcVvwIFZAERzp2rS8PrU+HWupijYo/XMaAGeMNN94yl7ey86ZpYqukpMVvflhiV/0lf3tOIusqM7Ktq8Ih6nA+zjVZe82xLH3W31Mu3W/Sxhx5dkG2JzcBjQCvQGWqVJN5iAPZTPFfYMs1oG9L6R1AZcffBzA8tDp63QA2+Cg5AgSbH/jc0QnuhULAy3G4wEHGePiQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2613 Original-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=bestguesspass action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com 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;SFTY:;SFS:(4636009)(346002)(396003)(136003)(39860400002)(376002)(46966005)(186003)(316002)(4326008)(82310400002)(54906003)(2906002)(2616005)(8936002)(966005)(478600001)(6666004)(86362001)(336012)(5660300002)(19627235002)(26005)(36756003)(1076003)(6916009)(426003)(70206006)(81166007)(7696005)(8676002)(82740400003)(44832011)(70586007)(47076004);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 0ee085f0-fa5d-40eb-f4e5-08d7f7e34b36 X-Forefront-PRVS: 040359335D X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: e+A3BIUxUersMhaDEwok9D69OGtGDuje9ue60Naf+YHYVushSaaJ3fxK+GGbl45sTc1gUWo3D5oDceCLL0OFO4eBqslozE3F2ToicCEUSSL1XJuS276dZ27M4/cWZjsyUK/sTTE9DGT138ZoK0opJEVyenmmd5zxexSho6yUNvWk0yrPlDIYkaj6oweCrZRhkmGLaL5FtUm3I3E2FVejj6UTb92iM350OIijlzUsPe0LiYYow6sOwGb6+VQkghqV9ksfwO/y/pSWI2ywJFFPxw0t36K8TRAiLM6EfMietpI7fcjlBPrxD1/H0OxLYXm3AjXhrlSfBJKt1ZISpvqRz2/KJsbTlBmX1Z7puWlAgejNEABTY2BQIsKjY6+Mo/PgBRpjuHiroIlDrQwQFd6c+9O3vNJyPM61/NbM3+4OAhbdqS1VzOpJRjyI4Jnvm4NCzWR3X6Bn2JXNCW4QBXhtv7JpmfObBKMA+4Q0OaBYjWiwH4lngXb40tODu/mCuzLnuH8eWDqTVrGfRGVKJUaXOXPzJhxsLOtn62lx16cVjnHQQK7MEmcrRG7j+Qc8FpQM5YxLJJc8GfQKebNu/sVSgw== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2020 08:46:36.6067 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: da357424-efce-4f05-fd74-08d7f7e34fe2 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-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2399 Content-Type: text/plain NorFlashDxe must use aligned MMIO accesses to read data from flash as this is device memory. The AlignedCopyMem() in NorFlashDxe was used to copy the flash data which prevented unaligned access to device memory. However, the compiler could optimize the code to generate pre/post indexed or LDP operations. This is a problem for guest/virtual firmware as the hypervisor code cannot get the syndrome information for the trapped accesses. With the introduction of virtual firmware support for Kvmtool guests, it is necessary to link NorFlashDxe with BaseMemoryLibMmio (as it enforces aligned MMIO accesses). This patch series updates the workspaces for platforms that use the NorFlashDxe to link with BaseMemoryLibMmio. This patch series is dependent on the edk2 patch series that implements BaseMemoryLibMmio and can be seen at: https://edk2.groups.io/g/devel/topic/patch_v2_00_11_kvmtool/74200861?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,74200861 This changes in this patch series can be seen at: https://github.com/samimujawar/edk2-platforms/tree/299_kvmtool_plat_support_v2 Sami Mujawar (2): Platform/ARM: Link NorFlashDxe with BaseMemoryLibMmio Platform/Comcast: Link NorFlashDxe with BaseMemoryLibMmio Platform/ARM/JunoPkg/ArmJuno.dsc | 7 +++++-- Platform/ARM/SgiPkg/SgiPlatform.dsc.inc | 5 ++++- Platform/ARM/VExpressPkg/ArmVExpress-CTA15-A7.dsc | 7 +++++-- Platform/ARM/VExpressPkg/ArmVExpress-FVP-AArch64.dsc | 7 +++++-- Platform/Comcast/RDKQemu/RDKQemu.dsc | 8 ++++++-- 5 files changed, 25 insertions(+), 9 deletions(-) -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'