Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3206023pxk; Tue, 15 Sep 2020 12:55:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeOeL2PQepx7yIlVGvJGUdtZrvIe76oau3hHDdT+TEg28lRTOjIaToE4XdJOGwiqApeknp X-Received: by 2002:a50:e3c4:: with SMTP id c4mr24853228edm.90.1600199721800; Tue, 15 Sep 2020 12:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600199721; cv=none; d=google.com; s=arc-20160816; b=aeE2zqGlu8SpEPQ8mB0MdZc7mWg5VfLO5JeSopZ7O0kHGjVHxDI4B/xgI0PZieP7rE yzZ6oRZcBwLxR5dPS6z1YZNNnjF4s8HHOMiAxXCAPzd6Zy6sAOC4ANqbQB5SWE+4gMHT rJ7/8iKQgKDLP1+mhdVXDB/YWc2ADCR9YOjEZJFM3SPtYUhfqaMhfY12iSJG9dqOc9tj MPcscbfz2zk0TSoxYt9ikR/kNe5nXgECBXnEMClDVSnHEmc6Q2HtkePS6oKE+6CAt6tI q+frEwH5fev6IBaekb6NVKDMJNoLTdEopRLr4UMgHEggC59ySQSMtWzMBZSdo9GxI5qo YY3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YNlORnaE5flqPArYeX34UOMsCGl3k/4NgL250tmOV/M=; b=ZteEbIU8y2jt73WC8EM6j26Xe5CeUZsGPvJ8OIK6iRlcH4Zu1UPJDIzFpZVaD3evVS Cx22S9pgcKMVV7XI1q3bb98CiGtft3v3iHPGbH8OaSDU38aNU4mIUMMgz1jC5kPvYIJS mYzhqpAznRcY6tVNYrvHa0ge+eANz9pLT38sLq6QTGNaJXJg74yy9sp3KyiV3fpDSqrE 0TVMdi4/3lnSJoLTSlMV4L2Ppmyx+yNi4019rgwdHJupMJgVdqbXh6By2obo98xsSSGQ 8GYNiN2fojEa+Rj7t7+Kuh+B5SPE0zqlOR2VbOoMJLJeOsixscyna1LiZNMfZQYsnMvN PGzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="inTX/tKv"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h21si9451224edq.257.2020.09.15.12.54.58; Tue, 15 Sep 2020 12:55:21 -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; dkim=pass header.i=@kernel.org header.s=default header.b="inTX/tKv"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727808AbgIOTxq (ORCPT + 99 others); Tue, 15 Sep 2020 15:53:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:47820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727811AbgIORHd (ORCPT ); Tue, 15 Sep 2020 13:07:33 -0400 Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 47E8E21D7D; Tue, 15 Sep 2020 17:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600189652; bh=5Fp5cfykaeDbICVYq4SbuTtTgzZPk6JnsRImME2ewcU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=inTX/tKvlO54VF3t0BSeTg2wA5xbqq0eKXacYun18OKfMNoinCeNEOZBsh+wCRc/u s3xSJi7ymYzOGbBDi/+379Kbw/NsFjHOyk1HBEA/iKobGgENdqtM+z6lTi3fOfSffm aUnthBS99zWh1dJaokhXclWh1tXXWRFH61/fEOLg= Received: by mail-ot1-f54.google.com with SMTP id m12so3977698otr.0; Tue, 15 Sep 2020 10:07:32 -0700 (PDT) X-Gm-Message-State: AOAM5310PI6II8+KldEq8UXtNbw6lpYuACAeGdavA8H0rpzTjqOwJDfi Qs0ev5/RYbkKzNtAUiGsjp6ihKquiJLVBAH4mMQ= X-Received: by 2002:a9d:6193:: with SMTP id g19mr13262833otk.108.1600189651561; Tue, 15 Sep 2020 10:07:31 -0700 (PDT) MIME-Version: 1.0 References: <20200819143544.155096-1-alex.kluver@hpe.com> <20200819143544.155096-2-alex.kluver@hpe.com> <20200915163312.GO14436@zn.tnic> In-Reply-To: <20200915163312.GO14436@zn.tnic> From: Ard Biesheuvel Date: Tue, 15 Sep 2020 20:07:19 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] edac,ghes,cper: Add Row Extension to Memory Error Record To: Borislav Petkov Cc: Alex Kluver , linux-edac@vger.kernel.org, linux-efi , Linux Kernel Mailing List , mchehab@kernel.org, russ.anderson@hpe.com, Dimitri Sivanich , kluveralex@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Sep 2020 at 19:33, Borislav Petkov wrote: > > On Wed, Aug 19, 2020 at 09:35:43AM -0500, Alex Kluver wrote: > > Memory errors could be printed with incorrect row values since the DIMM > > size has outgrown the 16 bit row field in the CPER structure. UEFI > > Specification Version 2.8 has increased the size of row by allowing it to > > use the first 2 bits from a previously reserved space within the structure. > > > > When needed, add the extension bits to the row value printed. > > > > Based on UEFI 2.8 Table 299. Memory Error Record > > > > Reviewed-by: Kyle Meyer > > Reviewed-by: Steve Wahl > > Tested-by: Russ Anderson > > Signed-off-by: Alex Kluver > > --- > > > > 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. > > > > --- > > drivers/edac/ghes_edac.c | 8 ++++++-- > > drivers/firmware/efi/cper.c | 9 +++++++-- > > include/linux/cper.h | 16 ++++++++++++++-- > > 3 files changed, 27 insertions(+), 6 deletions(-) > > For the EDAC bits: > > Acked-by: Borislav Petkov > > Also, I could take both through the EDAC tree, if people prefer. > I'll take this via the EFI tree - I was just preparing the branch for a PR anyways.