linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Huang Ying <ying.huang@intel.com>
To: "Luck, Tony" <tony.luck@intel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-arch@vger.kernel.org" <linux-arch@vger.kernel.org>
Subject: Re: [RFC] persistent store (version 2) (part 2 of 2)
Date: Thu, 02 Dec 2010 16:20:46 +0800	[thread overview]
Message-ID: <1291278046.12648.561.camel@yhuang-dev> (raw)
In-Reply-To: <4cf594eb167978312c@agluck-desktop.sc.intel.com>

Hi, Tony,

On Wed, 2010-12-01 at 08:20 +0800, Luck, Tony wrote:
> Here are the changes to ERST to use the persistent store.
> 
> -Tony
> 
> ---
> 
> diff --git a/drivers/acpi/apei/Kconfig b/drivers/acpi/apei/Kconfig
> index fca34cc..e91680c 100644
> --- a/drivers/acpi/apei/Kconfig
> +++ b/drivers/acpi/apei/Kconfig
> @@ -1,5 +1,6 @@
>  config ACPI_APEI
>  	bool "ACPI Platform Error Interface (APEI)"
> +	select PSTORE
>  	depends on X86
>  	help
>  	  APEI allows to report errors (for example from the chipset)
> diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei/erst.c
> index 1211c03..2a49015 100644
> --- a/drivers/acpi/apei/erst.c
> +++ b/drivers/acpi/apei/erst.c
> @@ -34,6 +34,7 @@
>  #include <linux/cper.h>
>  #include <linux/nmi.h>
>  #include <linux/hardirq.h>
> +#include <linux/pstore.h>
>  #include <acpi/apei.h>
>  
>  #include "apei-internal.h"
> @@ -781,6 +782,111 @@ static int erst_check_table(struct acpi_table_erst *erst_tab)
>  	return 0;
>  }
>  
> +#define CPER_CREATOR_MCE						\
> +	UUID_LE(0x75a574e3, 0x5052, 0x4b29, 0x8a, 0x8e, 0xbe, 0x2c,	\
> +		0x64, 0x90, 0xb8, 0x9d)

How about rename this to CPER_CREATOR_LINUX or CPER_CREATOR_PSTORE?

> +#define CPER_SECTION_TYPE_DMESG						\
> +	UUID_LE(0xc197e04e, 0xd545, 0x4a70, 0x9c, 0x17, 0xa5, 0x54,	\
> +		0x94, 0x19, 0xeb, 0x12)
> +#define CPER_SECTION_TYPE_MCE						\
> +	UUID_LE(0xfe08ffbe, 0x95e4, 0x4be7, 0xbc, 0x73, 0x40, 0x96,	\
> +		0x04, 0x4a, 0x38, 0xfc)
> +
> +struct cper_mce_record {
> +	struct cper_record_header hdr;
> +	struct cper_section_descriptor sec_hdr;
> +	char data[];
> +} __packed;

Renamed to cper_pstore_record?

[...]

Best Regards,
Huang Ying

      reply	other threads:[~2010-12-02  8:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-01  0:20 [RFC] persistent store (version 2) (part 2 of 2) Luck, Tony
2010-12-02  8:20 ` Huang Ying [this message]

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=1291278046.12648.561.camel@yhuang-dev \
    --to=ying.huang@intel.com \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony.luck@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).