Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3282231pxk; Tue, 15 Sep 2020 15:15:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyScz8I/HONmRJpUHCoC7GDXX7pbbyfj46vDYYr4qViDBMvzq/Y4u0au1obv/xqDyZwASzb X-Received: by 2002:a05:6402:1a48:: with SMTP id bf8mr24294505edb.298.1600208138430; Tue, 15 Sep 2020 15:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600208138; cv=none; d=google.com; s=arc-20160816; b=enTZXLOUwPO2pymD7bziBHAQu+C3mpjc9dFYDckX/UDnr8xMz1GbJ6YEz+C/5cfoBV gSrvXUYW/rB+cEAJ+d9AKJXiHCiI2IDncMNzKUKpynnL+SJMQUIilMnIbyhOtpfo0FOi OxINL97kb53DsVCKzYzIa6K2Rc/g1AXEtQmhMmpeNh4czF5ntPQAYLTJ+i0psrC7ahVn ebdZg1pZNZ4h6Ez+0LX8H5+KLSvhWj5XMi7ojN1qQRPYcdibylYh+46MoA6yeY/SPtDJ q1937+IU4hMW96gvBa8yP6Np4hVLFeEi+b8rlcRG3KwLXs9K1+6kY57cxcWOFWZ5eukq q7mg== 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=R4/KSvJodDTPWe9S1DH/Kj79tEBFBh4DMsZtvtyhfGw=; b=tPbiRMS3LV/w5KBvcVsOaSdlFInkhbw/JZiHRmMKg/tnxEBIHYY+i4maoajbBSmsW6 N5bSMY50vMLdF9+KNksoFfmJU/9Ow2uG1KZKpTyQiUem2JTP6tkDZPVp6vHILvizro5r C0kkDlOh53NeCSoSqB1nswoJaNCIpb6mFl5ErqOWFOPUO9YqyJxuRtDwSN1U4eT/iWco Yd/gtP9LHUB/7QDsSKJHSYnULigMFmUoDAS3/ECo6ThZek9j8Q6edrx6csldwTDnNNft YQnF1lBhKsYnHFDJKBk26ZFmlYVOuMNjuuciX8E2duL6Z/ApgB8Btqkst9y0HHtnoNoR G5wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="pwO1UNl/"; 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 v4si10516940edw.450.2020.09.15.15.15.15; Tue, 15 Sep 2020 15:15:38 -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="pwO1UNl/"; 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 S1727937AbgIOWOY (ORCPT + 99 others); Tue, 15 Sep 2020 18:14:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727748AbgIOQiy (ORCPT ); Tue, 15 Sep 2020 12:38:54 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE095C06178B for ; Tue, 15 Sep 2020 09:38:06 -0700 (PDT) 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 647901EC0328; Tue, 15 Sep 2020 18:36:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1600187775; 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=R4/KSvJodDTPWe9S1DH/Kj79tEBFBh4DMsZtvtyhfGw=; b=pwO1UNl/PLU5GDJTdKWXGaCYxEwToe9U7hjjH5lJkbChNV5MIMN61ccu0A20tPkPka5BKU ISR/sTdxp6j4xaIittEDYB5sH3SC6GDNNaH2QEHQPH2cZnIqotUSQpxHrdsUdZhd28ZEzz doCBRc/L0h1jjgluquSCjcyuhG775XM= Date: Tue, 15 Sep 2020 18:36:13 +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 2/2] cper,edac,efi: Memory Error Record: bank group/address and chip id Message-ID: <20200915163613.GP14436@zn.tnic> References: <20200819143544.155096-1-alex.kluver@hpe.com> <20200819143544.155096-3-alex.kluver@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200819143544.155096-3-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:44AM -0500, Alex Kluver wrote: > Updates to the UEFI 2.8 Memory Error Record allow splitting the bank field > into bank address and bank group, and using the last 3 bits of the extended > field as a chip identifier. > > When needed, print correct version of bank field, bank group, and chip > identification > > Based on UEFI 2.8 Table 299. Memory Error Record Whoever commits this - those last two sentences need fullstops. > Reviewed-by: Steve Wahl > Reviewed-by: Kyle Meyer > Reviewed-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 | 9 +++++++++ > drivers/firmware/efi/cper.c | 9 +++++++++ > include/linux/cper.h | 8 ++++++++ > 3 files changed, 26 insertions(+) For the EDAC bits: Acked-by: Borislav Petkov Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette