Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3284994pxk; Tue, 15 Sep 2020 15:20:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwURMW4j8bVTMHABsOtWlE7vp4AU8i3lP7K6gA6CCcWyJ6vVVtxxINMGqUhvwNqtvpZMdlj X-Received: by 2002:a05:6402:cb4:: with SMTP id cn20mr24866745edb.369.1600208441793; Tue, 15 Sep 2020 15:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600208441; cv=none; d=google.com; s=arc-20160816; b=HAlTjxfbuNoZp/51l3O08tI4flgV2pLGQnFC0dgWfuE75Ze9xnVYYFuExhN3cTPebD 67+axZu3DEoKs56/yW4mMx8e9YZ1dJUFthqSiAD5xPgWTvYFZCM31LSiYPocStiwz2Ni p6dte/vNqHWk28JrzUwoFR9wuonMCN84mf2+9Vp3rN/uADOO8e9TowAF9tndDGtBGcVj nr6i7bCg12mGeeiLg6qSkpU7qAdUKC+wd+xUZ3/dua/Hj20c14brJ+N1lZiwOouId1sl Jzb4ixU6szin0cXH6eM5fIwDvWuHiMVIEKuUsYYffprhMx7B6mf1GbOUVFSYX+AYMaPt cEtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ZWwBzofbLwaO1lqUGe+0uSmnKjSrhBMl5LKNuGBjotY=; b=dd7c239Rzgys5roUFe+oL97kJjUQ/c2VIQUdJMGlhFpGEqO3zB3AejQXqt2qcMlA5I UK6DEsppYzM83hQ/WcnWu7Fqcd7qNKxuV6MlIDDJq3Gl1fT8vlS4W/PFZfnoJHr1dODC pZGtvy0ohB456rTK2ejOTlBx5mJhtMdyVHtNRu/rLoAs/HklLzPxvAKgIEV/NOB4CiUS YFn3uUkzl92XBKddOqTkJ/WzA7k8OiMpAQUl+G/mZLhi0JrPSFOYSJV0oCt0xneiw3Jq mOVvwH7RPY1akkrFmGgIgb54pwbYEmsYeDe7yPsPBksPx/0F+ypwh59LxrCzXHXV4JPG 8EAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=WOwquMcU; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si10787775edv.284.2020.09.15.15.20.19; Tue, 15 Sep 2020 15:20:41 -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=@alien8.de header.s=dkim header.b=WOwquMcU; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbgIOWSi (ORCPT + 99 others); Tue, 15 Sep 2020 18:18:38 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35804 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727722AbgIOQdW (ORCPT ); Tue, 15 Sep 2020 12:33:22 -0400 Received: from zn.tnic (p200300ec2f0e42006096e946d741c4e4.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:4200:6096:e946:d741:c4e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 7EFAC1EC0328; Tue, 15 Sep 2020 18:33:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1600187598; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=ZWwBzofbLwaO1lqUGe+0uSmnKjSrhBMl5LKNuGBjotY=; b=WOwquMcUbe2yULVzAwTw4t0gqRs3C/n65jZqTEGlEt3lWGoWQjEpgrEGKOHANYtlGitY2Q uIEqQxxaWIIMWBFVsBepzL1mqEJueMCtafqZjhy0etuDR+dO110j5sEfGtoKu5ltzQ0Iv+ UoQAgaZEi2b8SVyjillCNHouaQQ95og= Date: Tue, 15 Sep 2020 18:33:12 +0200 From: Borislav Petkov To: Alex Kluver Cc: linux-edac@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, ardb@kernel.org, mchehab@kernel.org, russ.anderson@hpe.com, dimitri.sivanich@hpe.com, kluveralex@gmail.com Subject: Re: [PATCH v2 1/2] edac,ghes,cper: Add Row Extension to Memory Error Record Message-ID: <20200915163312.GO14436@zn.tnic> References: <20200819143544.155096-1-alex.kluver@hpe.com> <20200819143544.155096-2-alex.kluver@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200819143544.155096-2-alex.kluver@hpe.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette