public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ross Zwisler <zwisler@google.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Duncan Laurie <dlaurie@chromium.org>,
	Furquan Shaikh <furquan@chromium.org>,
	Guenter Roeck <groeck@google.com>,
	linux-kernel@vger.kernel.org, Furquan Shaikh <furquan@google.com>,
	Ross Zwisler <zwisler@google.com>
Subject: [PATCH 2/4] gsmi: Add coreboot to list of matching BIOS vendors
Date: Fri, 12 Oct 2018 10:04:46 -0600	[thread overview]
Message-ID: <20181012160448.79018-3-zwisler@google.com> (raw)
In-Reply-To: <20181012160448.79018-1-zwisler@google.com>

From: Duncan Laurie <dlaurie@chromium.org>

In order to use this coreboot needs board support for:
CONFIG_ELOG=y
CONFIG_ELOG_GSMI=y

And the kernel driver needs enabled:
CONFIG_GOOGLE_GSMI=y

To test, verify that clean shutdown event is added to the log:

> mosys eventlog list | grep 'Clean Shutdown'
11 | 2012-06-25 09:49:24 | Kernl Event | Clean Shutdown

Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Signed-off-by: Furquan Shaikh <furquan@google.com>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
[zwisler: update changelog for upstream]
Signed-off-by: Ross Zwisler <zwisler@google.com>
---
 drivers/firmware/google/gsmi.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/firmware/google/gsmi.c b/drivers/firmware/google/gsmi.c
index 62337be07afc..252884787266 100644
--- a/drivers/firmware/google/gsmi.c
+++ b/drivers/firmware/google/gsmi.c
@@ -715,6 +715,12 @@ static const struct dmi_system_id gsmi_dmi_table[] __initconst = {
 			DMI_MATCH(DMI_BOARD_VENDOR, "Google, Inc."),
 		},
 	},
+	{
+		.ident = "Coreboot Firmware",
+		.matches = {
+			DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),
+		},
+	},
 	{}
 };
 MODULE_DEVICE_TABLE(dmi, gsmi_dmi_table);
-- 
2.19.0.605.g01d371f741-goog


  parent reply	other threads:[~2018-10-12 16:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-12 16:04 [PATCH 0/4] gsmi: Google specific firmware patches Ross Zwisler
2018-10-12 16:04 ` [PATCH 1/4] gsmi: Fix bug in append_to_eventlog sysfs handler Ross Zwisler
2018-10-12 16:04 ` Ross Zwisler [this message]
2018-10-12 16:04 ` [PATCH 3/4] gsmi: Remove autoselected dependency on EFI and EFI_VARS Ross Zwisler
2018-10-12 16:04 ` [PATCH 4/4] gsmi: Add GSMI commands to log S0ix info Ross Zwisler
     [not found] ` <CABXOdTfUKWejqTxvtcH_O6SKaWDRGcu5qCVafTstm-r8y7ke1Q@mail.gmail.com>
2018-10-15 18:30   ` [PATCH 0/4] gsmi: Google specific firmware patches Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181012160448.79018-3-zwisler@google.com \
    --to=zwisler@google.com \
    --cc=dlaurie@chromium.org \
    --cc=furquan@chromium.org \
    --cc=furquan@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=groeck@google.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox