Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp512595pxa; Wed, 19 Aug 2020 07:37:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPU20E2dycTjfFr3uo6EoeGb0c/erCk8lCkX7oNEgDzTqEM+8t3xKwj/ySZQWtiG44LGrD X-Received: by 2002:a17:906:da19:: with SMTP id fi25mr24965035ejb.405.1597847875784; Wed, 19 Aug 2020 07:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597847875; cv=none; d=google.com; s=arc-20160816; b=V5qasiElWxuBsCVR20esOkJL3fO4YnOjT2BHmf1xT5v3Yvw6weqAQFeQ9lLoouuSVb 86iWm7H+xngAa/1pxqVt5otxNCyOa9fFn2mrEXaM/Mqp/TZCwgkPb8cBZMp3KME5a3dq GgbIljssc/FPNpzEuUWdcj4aIM1ns4DPwtBmh9oo0zUQSS6euR76RgO9+g1tjGShEgUw VINez4GEoJQ0hyMSYsx62CLkjtUaQFhGzctze4nTUo+yiwki7zj/IBvcfvEb1LeturlD nRHEwNaR72iaqOZJXhkNYQgiVVhHRfTSK8cuzUCocbltSYPQ98d3ToOBCqQj3R5zX1az Cmzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=DsW83j44T6gzMLuOD85qdz8t+Iofe3dPj0Idg8bXO08=; b=KETb8omBXhBWrS04h/FC2mwPYZsFJgLdmivGeLvLlsCDWJzcdXnYE+iuugkHWovijT c52OHzG/K/1UX4IKQGdZRX+vmKXrjQtOjMcktkygVyQp+1zW/8+PMQYnbVDCSB/6hLUo XX34cOnjelpBgWcBQBwBW71MopMHcVHHz1xhlyD2HK0pXw2Z5zkIdUQs4Eh2ZbRCkW02 TkKzT9jSjC06ot5WhDwN5cMc1rbSgXGD/phJSqTXxWEN/PnaAjVV9KJJIgNt41GI4BNd VsgVvdCiiPunNeFlvsbgYlv5sScgG32OoGWx80ld8lsHl3cG8pRASSemWhxIFYd3iIIG K16g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k3si15173026eds.225.2020.08.19.07.37.31; Wed, 19 Aug 2020 07:37:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728175AbgHSOgy (ORCPT + 99 others); Wed, 19 Aug 2020 10:36:54 -0400 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:29190 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727018AbgHSOgx (ORCPT ); Wed, 19 Aug 2020 10:36:53 -0400 Received: from pps.filterd (m0134424.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 07JEV5TL009552; Wed, 19 Aug 2020 14:36:42 GMT Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0b-002e3701.pphosted.com with ESMTP id 3304mkfhff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 19 Aug 2020 14:36:42 +0000 Received: from stormcage.eag.rdlabs.hpecorp.net (stormcage.eag.rdlabs.hpecorp.net [128.162.236.70]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id 7FA41AE; Wed, 19 Aug 2020 14:36:41 +0000 (UTC) Received: by stormcage.eag.rdlabs.hpecorp.net (Postfix, from userid 201855) id 19608200FDA48; Wed, 19 Aug 2020 09:36:41 -0500 (CDT) From: Alex Kluver To: linux-edac@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ardb@kernel.org, mchehab@kernel.org, bp@alien8.de, russ.anderson@hpe.com, dimitri.sivanich@hpe.com, kluveralex@gmail.com, Alex Kluver Subject: [PATCH v2 0/2] UEFI v2.8 Memory Error Record Updates Date: Wed, 19 Aug 2020 09:35:42 -0500 Message-Id: <20200819143544.155096-1-alex.kluver@hpe.com> X-Mailer: git-send-email 2.12.3 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-19_07:2020-08-19,2020-08-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 malwarescore=0 phishscore=0 mlxlogscore=567 spamscore=0 clxscore=1011 adultscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008190128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The UEFI Specification v2.8, Table 299, Memory Error Record has several changes from previous versions. Bits 18 through 21 have been added to the memory validation bits to include an extended version of row, an option to print bank address and group separately, and chip id. These patches implement bits 18 through 21 into the Memory Error Record. Change reserved field to extended field in cper_sec_mem_err structure and added the extended field to the cper_mem_err_compact structure. Print correct versions of row, bank, and chip ID. --- v1 -> v2: * Add static inline cper_get_mem_extension to make it more readable, as suggested by Borislav Petkov * Add second patch for bank field, bank group, and chip id. --- Alex Kluver (2): edac,ghes,cper: Add Row Extension to Memory Error Record cper,edac,efi: Memory Error Record: bank group/address and chip id drivers/edac/ghes_edac.c | 17 +++++++++++++++-- drivers/firmware/efi/cper.c | 18 ++++++++++++++++-- include/linux/cper.h | 24 ++++++++++++++++++++++-- 3 files changed, 53 insertions(+), 6 deletions(-) -- 2.26.2