Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4918603ybv; Tue, 11 Feb 2020 05:55:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzEX7LYphd6F6GiBjQ0A1YN1RkCWsQme0wj5cIN/zRIEPGFmKN2cHPWnUHFvDLgXks0t9MB X-Received: by 2002:a9d:4b05:: with SMTP id q5mr5058142otf.57.1581429342767; Tue, 11 Feb 2020 05:55:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581429342; cv=none; d=google.com; s=arc-20160816; b=Hcn3wPS44eMkQQ59RhIHL3uMRcNkqZeoD+erbmTBuhBHZmG54WRvzvvuhc8I5T+UAG VUrp9qHSzdV20b184F665xQ+kaOs1qPFJwGII3pw/qhpO8V+pveQ0CAcx7OsH4f9fSH2 zDBWsWKOGoEnWF6buxyKw9Yx/hzPvZ2oQ1Vlt37AjYwA6STP3yMhLC5qNaIEz4jQvrP1 jbXn/mnoR0EJC3xQwiLhFcyg5GZg531EcpEDZ7tJGhObsuJ8X9q5y5D1rv4MkDPEuUHB nRg1bB1e0mdu7sSAVV22hhXpov8RFX6xdp79VPFc2L2Jwam3BeF0VWc5q6NwKLbGubfF 5Iog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=8MxxqhORioJCuNC2b1gnFBzXVcTrW2GFdQfgCMzOMbU=; b=R30mMHFQG8FTpIauZEhvnyjDaqg6bgyLqggbyGROult0Q244DbxfHLVq07Lrmla2n0 sUetUxVpptQxUk7U7m/kCyqQm2gf/1sJMqK2GB/JcUUUjaQNTLGlIdz6rRQ4PeAOfkYz zqvHxtBlmvZamSvhq+GBkdpDSLd8zgUfJPkG9OyZuhGPCxGBD8+iVWT5KopviqnuHluv sQJa/GWVHlODLI3xNN3o/Un1X/xL5jjvi/zyEj/RcPnIXJ9OSVoA8GWmNSNJ91/AVLAb F7qHaPN62FLnzRWYQnfug3CN2q01B8f+KdEvFcFNBc/FUcmJmmGhhrSawppDC3eUdeVk tokA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si1702043oir.9.2020.02.11.05.55.25; Tue, 11 Feb 2020 05:55:42 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728732AbgBKNVY (ORCPT + 99 others); Tue, 11 Feb 2020 08:21:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:40166 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728197AbgBKNVY (ORCPT ); Tue, 11 Feb 2020 08:21:24 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 13D4EB19C; Tue, 11 Feb 2020 13:21:19 +0000 (UTC) Date: Tue, 11 Feb 2020 14:21:12 +0100 From: Jean Delvare To: Erwan Velu Cc: Erwan Velu , Masahiro Yamada , Michal Marek , Mattias Jacobsson <2pi@mok.nu>, Andy Shevchenko , Andrew Lunn , "Darren Hart (VMware)" , Changbin Du , Russell King , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH] firmware/dmi: Report DMI Bios & EC firmware release Message-ID: <20200211142112.649d7237@endymion> In-Reply-To: <20200207083550.360461-1-e.velu@criteo.com> References: <20200207083550.360461-1-e.velu@criteo.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 7 Feb 2020 09:35:47 +0100, Erwan Velu wrote: > Some vendors like HPe or Dell, encode the release version of their BIOS > in the "System BIOS {Major|Minor} Release" fields of Type 0. > > This information is used to know which bios release actually runs. > It could be used for some quirks, debugging sessions or inventory tasks. > > A typical output for a Dell system running the 65.27 bios is : > [root@t1700 ~]# cat /sys/devices/virtual/dmi/id/bios_release > 65.27 > [root@t1700 ~]# > > Servers that have a BMC encode the release version of their firmware in the > "Embedded Controller Firmware {Major|Minor} Release" fields of Type 0. > > This information is used to know which BMC release actually runs. > It could be used for some quirks, debugging sessions or inventory tasks. > > A typical output for a Dell system running the 3.75 bmc release is : > [root@t1700 ~]# cat /sys/devices/virtual/dmi/id/ec_firmware_release > 3.75 > [root@t1700 ~]# > > Signed-off-by: Erwan Velu > --- > drivers/firmware/dmi-id.c | 6 ++++++ > drivers/firmware/dmi_scan.c | 30 ++++++++++++++++++++++++++++++ > include/linux/mod_devicetable.h | 2 ++ > scripts/mod/file2alias.c | 2 ++ > 4 files changed, 40 insertions(+) > (...) Applied, thanks. Note that I went for "efr" as the shortcut string for DMI_EC_FIRMWARE_RELEASE, which was your first choice and has my preference. -- Jean Delvare SUSE L3 Support