Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3126564pxk; Tue, 15 Sep 2020 10:40:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvEheCt4wye4WVhmfIvTi8iIkWY+sSQIrQPc7ltkdmBXIG+7N4Dd/L5h+yvnDxfSli85KM X-Received: by 2002:a05:6402:13d3:: with SMTP id a19mr23137284edx.255.1600191642116; Tue, 15 Sep 2020 10:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600191642; cv=none; d=google.com; s=arc-20160816; b=gc8gcxLMdzsG+g/Sl+eFSN9eQ41jDWlANq1/g0KRQHvTx/gio7RKE9C9gBlP3fR5Pi xTnsGyE27fnMDXbOzkeepdIZ+B/MuvrfASk4wM2OuIDx/ELTbMYwqSwUC6pO7EgmMjaR FLVk9NwysapMWHKFqipX/Wb+oi5+zYsr8a/sKtCnx21M1xv6OypPDRVgbR8VX1m1G733 XlbPUke+NXrNGwRoTbGmkk24wVeLZSx+yVcMLiAhJ/JOUUdoLga9epxJmC/jTwSTVA7b fB368MQfD0dMLDuC4hXXlc1U/+rEZRiiyrktpyYHFS61N073jYaxpiOxU0CRvAEFL10v s5eA== 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=B0I3LT9QKMnoGw/+3YVUjpjICJQiLfj4n698ZYe5/2g=; b=EQYARPi9mH+MV0UCI875XO+7Vhq2QBGShfSzoWhlqEOXr6kdkad4rfBIYQ3m2DpuLP 0pN8xaIeo5i12TKhgfmIHFr3AHZH6mr2FTSQW90XItNItBSoe8zz4qkpqib0Mu5rhJIY 2dBAPMdJotyfFmdaqfUT70TmvSRjGcwtoW26O8wH2i0DJrDur2WKp1ygYWMe1bMcd7zB B6Br+LlujsKOfo0nqw8N7FqPaDM8XxNS8bT8qfEZsDg+98zKOk9Q4hbTYoUQt6BbHdwW VyCEfC9Yk77oJ08io2DDhyD2Cbtn9ofwZ++MidYo7NpyGYKwPz2zDgj9r4ANY6Qx9cAa zIUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GzcLW9Y7; 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 k4si9870463edx.303.2020.09.15.10.40.19; Tue, 15 Sep 2020 10:40:42 -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=GzcLW9Y7; 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 S1727697AbgIORjb (ORCPT + 99 others); Tue, 15 Sep 2020 13:39:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:48994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727876AbgIORPe (ORCPT ); Tue, 15 Sep 2020 13:15:34 -0400 Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (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 9B09820936; Tue, 15 Sep 2020 17:12:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600189962; bh=StDm87/zyOd2umJ/sexVghFCRbZDPQt3dL4BEakYh40=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GzcLW9Y77a4vDzQijYHwWGzMS+XnNp0YArQ3N9OD55f1SyTYjZ7GCxlE1fq1cr35O 8e1+K+v8r+oMkaCF+f4E7f7MpT80Dlw1UbjGvDhNKM+fSH/WIs0fXqVB2TInUNo109 1Qtz+MdBfF2WHY94jZxG7VAMma+cV5xguhDnkLwU= Received: by mail-oi1-f176.google.com with SMTP id a3so4734107oib.4; Tue, 15 Sep 2020 10:12:42 -0700 (PDT) X-Gm-Message-State: AOAM531p6fe45OCYN3yUJjHAl4qVLe0ZswI9jB7wr7Oc4xWRuMiCeIcO wRtupMzBkBm+5XLLM3cMVOidUqieYvFGp6rMSko= X-Received: by 2002:aca:d845:: with SMTP id p66mr274454oig.47.1600189961908; Tue, 15 Sep 2020 10:12:41 -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: From: Ard Biesheuvel Date: Tue, 15 Sep 2020 20:12:31 +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 20:07, Ard Biesheuvel wrote: > > 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. Alex - these patches do not apply cleanly. Could you please respin them on top of the next branch in https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git? Boris - do you anticipate any conflicts? If so, please take these via the EDAC tree - the CPER code is mostly self contained so I don't expect any conflicts with the EFI tree in that case.