Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8069703ybn; Tue, 1 Oct 2019 02:42:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqytCw7VUzFKDTrUc58fbrnMlwfPHq6OUF4GUqnJndE0ePpY5ifTwLxOh77qJb+VUuR312nX X-Received: by 2002:aa7:d7d3:: with SMTP id e19mr24620536eds.80.1569922972925; Tue, 01 Oct 2019 02:42:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569922972; cv=none; d=google.com; s=arc-20160816; b=Mzn97JbMN034oS2d30bP/TfeNQ8ageKVaAHwsdv4iF/8WYoMvdWlcavzvK+heV/9ko 074n8S6pmS5pn0i9N4tphjajuJJ/Xnn0442O6YGCapmAlQ1dSvzTyG/F2R/WlhznLt9a fep/a0PpZhMdazcAFTFSwXztnAj/x1eg0IOFrzkviFQ69mMjCw/6kCn3Dv4P31lCrlHb +Z4KJAHC4EW3jaeFmcxymUAeySXrbsJOvKReoxK1Xd32ExFubQ9Q/XogzefYDSlQpp1N wCT0bzwqQzNsyyQafaIqRzV230CZojTZuGZZHVkHNUW2eJvLyDbxpckgHyUrw8cRoS+l mwHA== 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=Vi+sFa/+bKOzmEgzPLyHTjnkLYnraiSelUjtcSuIz18=; b=kocsoTq5LgfEGWBVzsOXHub0aNPOFBy/ugM2yEh4H2pzBoWYl9UHFv2q3Gd81538/c R3tH4dUS+Lttm1rfhb/g9MxqJDQPrbW1MxzjjPuSigBxMgLSC22LrzIJhwqkXHrwltwC 6hwSGntmqZG2/mN/sUsI1fbyUMMypjZqKvo/4yNPDHkar5LReqwlcF1dizMmczQVB5xU GT3MvKG8SlXbWJH86WH9/U1m+RpYX6v0O597fQ1F7yDKfWRC7PLWGG5Sb42qXdCiBu5h rmXLheERf6nzUeHrTFswhoPKxh5lVCBYhte3pdGWRSBHfwu/RmYkIcuf3scpj2Vcds1E t7Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EHCoy2wu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b31si9903882ede.12.2019.10.01.02.42.28; Tue, 01 Oct 2019 02:42:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EHCoy2wu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729562AbfJAJlu (ORCPT + 99 others); Tue, 1 Oct 2019 05:41:50 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38747 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727130AbfJAJlu (ORCPT ); Tue, 1 Oct 2019 05:41:50 -0400 Received: by mail-wm1-f68.google.com with SMTP id 3so2458788wmi.3 for ; Tue, 01 Oct 2019 02:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vi+sFa/+bKOzmEgzPLyHTjnkLYnraiSelUjtcSuIz18=; b=EHCoy2wuDrKlcHpLccfnylgzN8VpxoY+w7gOmCndjNy7myqA2eGnN2c3OdFk5i+4yQ PtT+b21SKSVmhgcLkrIQZi5oV8kmtTnhFPRvHko54sohSTQlq8RZP4ycPlYXquW/5KFk lh4cLIn1L2ZsNfwWGY0OFadUygqKPF4HBFM6yzz9aHr7DdpoGPTWvSCovYLgy9x1U27x HhJMaycw007fJznmeFJKY9EogXH8OPMNLQR8HKSaQKOblz5I+U1ha9M1vXCXeB4C3AjA a/1uzJ+5ePKz0VW1y5jaIjoBrlMPgRX63Fqc1001Vulf1OIWxt9I7GsjvXbgDC7GN8f7 aUzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vi+sFa/+bKOzmEgzPLyHTjnkLYnraiSelUjtcSuIz18=; b=s0k+HZGx1ru0bPicSrQOIvRo47edfYWTJ1TbzjBY0N/atllXsLn4LoxsEv3LsILq/w QCSGko1vWo8rekTZRpP33KvZ1VuwkE+89pfTgc4LiFy/wsVwSIwq29/Q5ZKEqD0wPEH2 Npa/MlTtmGXpCEKx9+ME5uzC/L4uUVzbu5moDqSTj+DAVEPnHQCs+ErMD/dXTGZHJuBM N6Uxg2pw4qA5UbhXczEF37SU6mifOnAusLNXTKKmhJMqTG540i3pbjOSrBAu70bBziEK 2IRnuChXKA/w0fk4PLeiHni50jBv+gYEOvj8tK1xgunQWrXvuoYNAcjbZLgLPE5XFqtT o36w== X-Gm-Message-State: APjAAAVn4gwyMAd0pKCxBmjklbmtmT3Qn6NaxnSNftoNT7r08tcqND92 Xu4gbIXKx+uytOhyltBFKdKJCtdvEEtQ2LlClwkFeg== X-Received: by 2002:a1c:e906:: with SMTP id q6mr1685973wmc.136.1569922908018; Tue, 01 Oct 2019 02:41:48 -0700 (PDT) MIME-Version: 1.0 References: <20190812150452.27983-1-ard.biesheuvel@linaro.org> <20190812150452.27983-5-ard.biesheuvel@linaro.org> In-Reply-To: From: Ard Biesheuvel Date: Tue, 1 Oct 2019 11:41:35 +0200 Message-ID: Subject: Re: [PATCH 4/5] efi: Export Runtime Configuration Interface table to sysfs To: Geert Uytterhoeven Cc: Narendra K , linux-efi , Ingo Molnar , Thomas Gleixner , Linux Kernel Mailing List , James Morse , Mario Limonciello , Xiaofei Tan 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, 1 Oct 2019 at 11:03, Geert Uytterhoeven wrote: > > Hi Ard, > > On Tue, Oct 1, 2019 at 10:54 AM Ard Biesheuvel > wrote: > > On Tue, 1 Oct 2019 at 10:51, Geert Uytterhoeven wrote: > > > On Mon, Aug 12, 2019 at 5:07 PM Ard Biesheuvel > > > wrote: > > > > From: Narendra K > > > > > > > > System firmware advertises the address of the 'Runtime > > > > Configuration Interface table version 2 (RCI2)' via > > > > an EFI Configuration Table entry. This code retrieves the RCI2 > > > > table from the address and exports it to sysfs as a binary > > > > attribute 'rci2' under /sys/firmware/efi/tables directory. > > > > The approach adopted is similar to the attribute 'DMI' under > > > > /sys/firmware/dmi/tables. > > > > > > > > RCI2 table contains BIOS HII in XML format and is used to populate > > > > BIOS setup page in Dell EMC OpenManage Server Administrator tool. > > > > The BIOS setup page contains BIOS tokens which can be configured. > > > > > > > > Signed-off-by: Narendra K > > > > Reviewed-by: Mario Limonciello > > > > Signed-off-by: Ard Biesheuvel > > > > > > Thanks, this is now commit 1c5fecb61255aa12 ("efi: Export Runtime > > > Configuration Interface table to sysfs"). > > > > > > > --- a/drivers/firmware/efi/Kconfig > > > > +++ b/drivers/firmware/efi/Kconfig > > > > @@ -180,6 +180,19 @@ config RESET_ATTACK_MITIGATION > > > > have been evicted, since otherwise it will trigger even on clean > > > > reboots. > > > > > > > > +config EFI_RCI2_TABLE > > > > + bool "EFI Runtime Configuration Interface Table Version 2 Support" > > > > + help > > > > + Displays the content of the Runtime Configuration Interface > > > > + Table version 2 on Dell EMC PowerEdge systems as a binary > > > > + attribute 'rci2' under /sys/firmware/efi/tables directory. > > > > + > > > > + RCI2 table contains BIOS HII in XML format and is used to populate > > > > + BIOS setup page in Dell EMC OpenManage Server Administrator tool. > > > > + The BIOS setup page contains BIOS tokens which can be configured. > > > > + > > > > + Say Y here for Dell EMC PowerEdge systems. > > > > > > A quick Google search tells me these are Intel Xeon. > > > Are arm/arm64/ia64 variants available, too? > > > If not, this should be protected by "depends on x86" ("|| COMPILE_TEST"?). > > > > The code in question is entirely architecture agnostic, and defaults > > to 'n', so I am not convinced this is needed. (It came up in the > > review as well) > > "make oldconfig" still asks me the question on e.g. arm64, where it is > irrelevant, until arm64 variants of the hardware show up. > > So IMHO it should have "depends on X86 || COMPILE_TEST". > Fair enough. I am going to send out a bunch of EFI fixes this week, so I'll accept a patch that makes the change above.