From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (EUR02-AM5-obe.outbound.protection.outlook.com [40.107.0.40]) by mx.groups.io with SMTP id smtpd.web11.4501.1630676345237500870 for ; Fri, 03 Sep 2021 06:39:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=CA3ZgZ+R; spf=pass (domain: arm.com, ip: 40.107.0.40, mailfrom: omkar.kulkarni@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=Aj6sdyFeKtjLcC/6XVvYzw1Ig4Wgy+y0Fvk4pwmc1RU=; b=CA3ZgZ+RNZNdTs4rNyilEkyB/6dVAN4q61CpzdRYSxkp+MrISS6OgHPradbwjL5zYN2zersU72Izqtq258SZiLQhnRUoxc+xlKcaNSj8Vyy1Wo2L6rTB6DJC2kpu7K+KKLmOPnjSIRkPnmuauqeFKyAQZmeySwYAJ1HYoJKFH+c= Received: from AS9PR06CA0052.eurprd06.prod.outlook.com (2603:10a6:20b:463::20) by DB6PR0801MB1863.eurprd08.prod.outlook.com (2603:10a6:4:76::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17; Fri, 3 Sep 2021 13:39:02 +0000 Received: from VE1EUR03FT033.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:463:cafe::b8) by AS9PR06CA0052.outlook.office365.com (2603:10a6:20b:463::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.17 via Frontend Transport; Fri, 3 Sep 2021 13:39:02 +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 VE1EUR03FT033.mail.protection.outlook.com (10.152.18.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19 via Frontend Transport; Fri, 3 Sep 2021 13:39:00 +0000 Received: ("Tessian outbound 5918cb94a4b5:v103"); Fri, 03 Sep 2021 13:39:00 +0000 X-CR-MTA-TID: 64aa7808 Received: from d04f12aed1a6.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 97E527DA-AE65-49D2-91B7-A9442858E4C5.1; Fri, 03 Sep 2021 13:38:50 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d04f12aed1a6.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 03 Sep 2021 13:38:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PhKF/7bohQW1m/pa8PVjLbu9aSFv+Rn1QpJUykG4C00iKMR9021lTvN1B4t5sR3ZwvshiYlFeSS4FUomntGHfdT1L4yXDO5wDraPruC0LyLEUhMaPN2CW2rxaiEqG/sTCJX02PD7IINnuQZ2EKidX0WXEHs4S8eCMlYCvvrvcPTuIQoYUxUT242Rk0azbjSHxrwb5TdMFTiu7OcuCiD6V32gO96AuelSmkYq8Zn7hHIGEh/FBitWLYd62X+7yFuUM/YuIICPwtV5MQsY8wlyyBMlC0s5tIFDf3yur8wfwahf0GgGv5zbbdVykOKaaxJoGYksbku3q81CTHs/a+IE5A== 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; bh=Aj6sdyFeKtjLcC/6XVvYzw1Ig4Wgy+y0Fvk4pwmc1RU=; b=GGXviXKqKCDdUoVt82WOHhZO/cteqaDAkTxlZmmVEzxcHOge0RltaAm966f/+/Ha6KmHPwC7MlxdBaKNc+4/KzxkCUa9cODkYTUE3V+H9PCz4L38nLytbLkF8qMPDuWbE1AadbIiY6vYyJ7zX3au6773TLkQyZbwnl9qX0K5U7gN9HmhpYCWvZNNjFF2yFLlZjREyI/TOa9myWZQgdixJNNJFu5h/eeKHZHxpKgMSx6LqHHK9uTxETIK80nYAeJqonVndM/jG4ewHYh20r0JkdGxlgLO6F4B+zh4+7ta+cVmgu0VUCLMbBQkESiWD/l4Rsh7kF6KNzc07V/dDBDIew== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; 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=Aj6sdyFeKtjLcC/6XVvYzw1Ig4Wgy+y0Fvk4pwmc1RU=; b=CA3ZgZ+RNZNdTs4rNyilEkyB/6dVAN4q61CpzdRYSxkp+MrISS6OgHPradbwjL5zYN2zersU72Izqtq258SZiLQhnRUoxc+xlKcaNSj8Vyy1Wo2L6rTB6DJC2kpu7K+KKLmOPnjSIRkPnmuauqeFKyAQZmeySwYAJ1HYoJKFH+c= Received: from DBAPR08MB5781.eurprd08.prod.outlook.com (2603:10a6:10:1ad::23) by DB6PR0801MB1782.eurprd08.prod.outlook.com (2603:10a6:4:38::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19; Fri, 3 Sep 2021 13:38:48 +0000 Received: from DBAPR08MB5781.eurprd08.prod.outlook.com ([fe80::ecd7:1e73:3973:804a]) by DBAPR08MB5781.eurprd08.prod.outlook.com ([fe80::ecd7:1e73:3973:804a%7]) with mapi id 15.20.4478.022; Fri, 3 Sep 2021 13:38:48 +0000 From: "Omkar Anand Kulkarni" To: "devel@edk2.groups.io" , Omkar Kulkarni CC: Ard Biesheuvel , Sami Mujawar Subject: Re: [edk2-devel] [edk2-platforms][PATCH v3 0/5] Platform/Sgi: Add platform support for firmware first error handling Thread-Topic: [edk2-devel] [edk2-platforms][PATCH v3 0/5] Platform/Sgi: Add platform support for firmware first error handling Thread-Index: AQHXmK1t+sDH13w4LUWLxIXo1S2U86uSXxnw Date: Fri, 3 Sep 2021 13:38:48 +0000 Message-ID: References: <169E28AD2269B506.9946@groups.io> In-Reply-To: <169E28AD2269B506.9946@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 6A77B1E2F355A84CAE92DF4E5549DB65.0 x-checkrecipientchecked: true Authentication-Results-Original: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 08ab784d-f935-4651-7774-08d96ee0301e x-ms-traffictypediagnostic: DB6PR0801MB1782:|DB6PR0801MB1863: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:4125;OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: dapTjHpFj73MSnVU9gaPqdFcWRU3FsRvJPMukEBxo+sAbHk/sBAd8RVwzsvn+F5ca60jpFZwab1o8AylsKpRqgdP/KUjfMELl3EUqdN6ak/78j3PmUDmNtl20qEYlvBmG/hbGgSffQDOwqMWm5DzCZIhgKEbECy6t4BmbdlXe8n/c9QBKXkBVGO9irbtdgyBwdPvXkNtZ4i6qCqNmKPpYWajVVGnnUING1aeNWAw68wLs6YdtD15VAZWuCmmcMn+VWzwLfVVuDFXUCqdT8rwq4rEbGeUTP99AX28/fr/FP8ph++cSa9jXOe1/8ePN+2k4ZnLWkJkmPGh/W69mhFCG5KqNxXuFns2vPT39XKJ5l7HVAEfYrb9DViLmOD0MBl23VqHfstHj9gNtS/AWnAPgFlVwpseEjxqH4WH1y/h6DPGZ+FceHaB1EjA/kdiI1U+NU1U85/ief/5LCAKsJZMyujkw62WcknOmIf+yHinN61ITXN+6ASqX+0rSOlD8W3R6JsH1PIVKekxWvh7RPjuIHtXYsqWlcV0wc5mCzQyNnRlYUjkEOpECexudXCX+1Hb+I6eZoCQMYdmGFdy+knoOdJ9NXHqQhf4SDVR8D3KvV1h/p2C6/BOAdGbY7/RYkIOsru9ZJlddceHl4wA5G3sGXYIfksfwHLWScGOkVL0LuE9Oo+YlIDwFlMYUW2sX7AnQChLQDCfOYMCjl+rOGsnxHczE0UsdsERZFAf5I0QhgR+yppLktr5XzNp7Jc/f67hLqfeiKipMt4CKJDoisDzeRAg7jW4KW/8N4186Do6tEOFPg6UdEojv0Fz4qfsHy73H879PSxAXWc5pZmFDuysRA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DBAPR08MB5781.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(376002)(136003)(396003)(39860400002)(366004)(966005)(2906002)(478600001)(19627235002)(38070700005)(186003)(7696005)(8676002)(26005)(4326008)(6506007)(83380400001)(38100700002)(71200400001)(110136005)(316002)(52536014)(54906003)(66476007)(76116006)(33656002)(8936002)(55016002)(66946007)(9686003)(122000001)(66556008)(64756008)(66446008)(86362001)(5660300002);DIR:OUT;SFP:1101; MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1782 Original-Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; Return-Path: Omkar.Kulkarni@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: a5d7964a-d556-439a-c30b-08d96ee02882 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ljg6HJtaTd6Ap40LVnaymQR64F6KUp/CwlVxqIRj7TslBHYFfbd5zuAub30raJyphSGGqM1s34Tl8zi3R3vnAuvFpXZ6B6w2Ckh2Turwk571o/rYpAddzBEw9T22v/T6qc459h60tJgaRKUwtWMqNp6M3PqaP0jjO69X0umfYl8N/IEt4kxwz/aha1Nfd6rT9EDc3NbK36RclM06JzS3ktyZeIEn113Mfbz4PPLEhsMaKGRMTfAKjlhrpcpmygJb+gfCFec+UUSL44yw6HSVL8jmEli5gc0qa3n6ue3Iws8NozuqL+WzH9EgVd6NHEEH5ElC5fSuA7xHSYk4XAqHhW7NWgQk03rdmZzqkBgpZe/c+0IN+n8QIwGN+mpsipobK0bOZSroK7D4sPvWM06pLfT8t5I+o4CpCxNZGEB+44aqETydsXdM+9uo4QHicovSPsiY5soXOFgeB5m5A/F0k/FAz6NnHCApvnWf4XC29KNyuHWq9EeYmvjuK9fv/FrzCDizW1ETdK6YkibVyN0iJse9y2iIKEncc0v5LzEbebHe0V+8esRqYeQjiCXgi5QdbWOqnZ0U85MSz3gFCSAyXJ/pY6PvN8DFOxjN5hbCByMlUjyOqC5U7uIvQ7yA+VyyIjyz2acizZ8qNFJvkLwav34Xnlcbn/IPfN1tzKLnr4Oi8BZxNY0fn5tINHU/T4I0sfTm4jvypIv4jH7Voqyh9xIwE3eOkbgFrjWvJzGIf5AtOlaY75Ucj2b8OVrCQjd8UoR9ZmxAh5iShMvTfVD9rJpWa4qkfyPXp6b2NL+9lrXvUj8ig+k+87SY5cyMBugeizoP1aWUGtl0EfY3G3RHsw== 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)(36840700001)(46966006)(55016002)(966005)(8676002)(33656002)(26005)(36860700001)(508600001)(6506007)(7696005)(19627235002)(316002)(9686003)(336012)(82310400003)(70206006)(83380400001)(5660300002)(8936002)(54906003)(81166007)(70586007)(356005)(110136005)(47076005)(4326008)(86362001)(2906002)(52536014)(186003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Sep 2021 13:39:00.7599 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 08ab784d-f935-4651-7774-08d96ee0301e 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: VE1EUR03FT033.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1863 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Gentle reminder, to review this patch series. - Omkar > On August 24, 2021 11:30 AM, Omkar Kulkarni wrote: > Changes since v2: > - Rebased to the latest upstream code. > > This patch series introduces platform support for RAS using Firmware Firs= t > error handling. Firmware first error handling on ARM Neoverse reference > design platforms is achieved using HEST[1] and SDEI[2] ACPI tables. > > For doing so the Platform Error handler DXE driver is introduced. This dr= iver > is integral part of the firmware first error handling framework in EDK2. = SDEI > being the notification mechanism used to communicate the platform errors > to OSPM, it builds and installs the SDEI ACPI table. Also installs the HE= ST table > which is already created as part of firmware first framework in EDK2. > > This series does provide a reference implementation to leverage the > firmware first framework by implementing a platform MM driver for > Dynamic Memory Controller DMC[3] that has RAS feature enabled. This > driver mainly handles > following: > - Implements the Hest Error Source Descriptor protocol introduced as part= of > firmware first framework in EDK2. Publishes the 1-bit ECC DRAM error > sources > as GHESv2[4] type error source descriptors. > - For any 1-bit CE that occurs on DRAM it reads DMC error record register= s > and > populates a error status block (CPER)[5] of Memory Type error[6]. > > References: > [1] : ACPI 6.3, Table 18-382, Hardware Error Source Table [2] : SDEI Plat= form > Design Document, revision b, 10 Appendix C, ACPI table > definitions for SDEI > [3] : DMC620 Dynamic Memory Controller, revision r1p0 [4] : ACPI Referenc= e > Specification 6.3, Table 18-393 GHESv2 Structure [5] : UEFI Reference > Specification 2.8, Appendix N - Common Platform Error > Record > [6] : UEFI Reference Specification 2.8, Section N.2.5 Memory Error Sectio= n > > This patch series is dependent on the edk2 patch series > https://edk2.groups.io/g/devel/message/79741 > > Link to github branch with the patches in this series - > https://github.com/omkkul01/edk2-platforms/tree/ras_firware_first_edk2- > platforms_v3 > > Omkar Anand Kulkarni (5): > Platform/ARM: Add DMC-620 ECC error handling driver > Platform/Sgi: dmc-620 firmware-first error handling > Platform/Sgi: define memory region for GHES error status block > Platform/Sgi: Define values for ACPI table header > Platform/Sgi: Add platform error handling driver > > Platform/ARM/Drivers/Dmc620Mm/Dmc620Mm.dec | 30 ++ > Platform/ARM/SgiPkg/SgiPlatform.dec | 1 + > Platform/ARM/SgiPkg/SgiPlatform.dsc.inc | 38 ++ > Platform/ARM/SgiPkg/SgiPlatformMm.dsc.inc | 30 ++ > Platform/ARM/SgiPkg/PlatformStandaloneMm.fdf | 6 + > Platform/ARM/SgiPkg/SgiPlatform.fdf | 13 + > Platform/ARM/Drivers/Dmc620Mm/Dmc620Mm.inf | 61 +++ > .../PlatformErrorHandlerDxe.inf | 51 +++ > .../Library/PlatformLib/PlatformLib.inf | 6 + > Platform/ARM/Drivers/Dmc620Mm/Dmc620Mm.h | 174 +++++++++ > Platform/ARM/Drivers/Dmc620Mm/Dmc620Mm.c | 362 > ++++++++++++++++++ > .../Dmc620Mm/Dmc620MmErrorSourceInfo.c | 194 ++++++++++ > .../PlatformErrorHandlerDxe.c | 171 +++++++++ > .../Library/PlatformLib/PlatformLibMem.c | 13 +- > 14 files changed, 1148 insertions(+), 2 deletions(-) create mode 100644 > Platform/ARM/Drivers/Dmc620Mm/Dmc620Mm.dec > create mode 100644 Platform/ARM/Drivers/Dmc620Mm/Dmc620Mm.inf > create mode 100644 > Platform/ARM/SgiPkg/Drivers/PlatformErrorHandlerDxe/PlatformErrorHandl > erDxe.inf > create mode 100644 Platform/ARM/Drivers/Dmc620Mm/Dmc620Mm.h > create mode 100644 Platform/ARM/Drivers/Dmc620Mm/Dmc620Mm.c > create mode 100644 > Platform/ARM/Drivers/Dmc620Mm/Dmc620MmErrorSourceInfo.c > create mode 100644 > Platform/ARM/SgiPkg/Drivers/PlatformErrorHandlerDxe/PlatformErrorHandl > erDxe.c > > -- > 2.17.1 > > > > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#79749): https://edk2.groups.io/g/devel/message/79749 > Mute This Topic: https://groups.io/mt/85104844/4857533 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [omkar.kulkarni@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.