public inbox for linux-next@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Lv Zheng <lv.zheng@intel.com>, Tony Luck <tony.luck@intel.com>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, "Chen,
	Gong" <gong.chen@linux.intel.com>
Subject: linux-next: manual merge of the pm tree with the ia64 tree
Date: Tue, 15 Jul 2014 13:56:20 +1000	[thread overview]
Message-ID: <20140715135620.2e68ee57@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 2486 bytes --]

Hi Rafael,

Today's linux-next merge of the pm tree got a conflict in
drivers/acpi/acpi_extlog.c between commits 2dfb7d51a61d ("trace, RAS:
Add eMCA trace event interface") and d6cae935ec5b ("trace, eMCA: Add a
knob to adjust where to save event log") from the ia64 tree and commit
0a00fd5e20fd ("ACPICA: Restore error table definitions to reduce code
differences between Linux and ACPICA upstream") from the pm tree.

I fixed it up (hopefully - see below) and can carry the fix as
necessary (no action is required).

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc drivers/acpi/acpi_extlog.c
index 0ad6f389d922,340d09518f8e..000000000000
--- a/drivers/acpi/acpi_extlog.c
+++ b/drivers/acpi/acpi_extlog.c
@@@ -139,12 -137,8 +139,12 @@@ static int extlog_print(struct notifier
  	struct mce *mce = (struct mce *)data;
  	int	bank = mce->bank;
  	int	cpu = mce->extcpu;
- 	struct acpi_generic_status *estatus, *tmp;
- 	struct acpi_generic_data *gdata;
 -	struct acpi_hest_generic_status *estatus;
 -	int rc;
++	struct acpi_hest_generic_status *estatus, *tmp;
++	struct acpi_hest_generic_data *gdata;
 +	const uuid_le *fru_id = &NULL_UUID_LE;
 +	char *fru_text = "";
 +	uuid_le *sec_type;
 +	static u32 err_seq;
  
  	estatus = extlog_elog_entry_check(cpu, bank);
  	if (estatus == NULL)
@@@ -154,29 -148,8 +154,29 @@@
  	/* clear record status to enable BIOS to update it again */
  	estatus->block_status = 0;
  
- 	tmp = (struct acpi_generic_status *)elog_buf;
 -	rc = print_extlog_rcd(NULL, (struct acpi_hest_generic_status *)elog_buf, cpu);
++	tmp = (struct acpi_hest_generic_status *)elog_buf;
 +
 +	if (!ras_userspace_consumers()) {
 +		print_extlog_rcd(NULL, tmp, cpu);
 +		goto out;
 +	}
 +
 +	/* log event via trace */
 +	err_seq++;
- 	gdata = (struct acpi_generic_data *)(tmp + 1);
++	gdata = (struct acpi_hest_generic_data *)(tmp + 1);
 +	if (gdata->validation_bits & CPER_SEC_VALID_FRU_ID)
 +		fru_id = (uuid_le *)gdata->fru_id;
 +	if (gdata->validation_bits & CPER_SEC_VALID_FRU_TEXT)
 +		fru_text = gdata->fru_text;
 +	sec_type = (uuid_le *)gdata->section_type;
 +	if (!uuid_le_cmp(*sec_type, CPER_SEC_PLATFORM_MEM)) {
 +		struct cper_sec_mem_err *mem = (void *)(gdata + 1);
 +		if (gdata->error_data_length >= sizeof(*mem))
 +			trace_extlog_mem_event(mem, err_seq, fru_id, fru_text,
 +					       (u8)gdata->error_severity);
 +	}
  
 +out:
  	return NOTIFY_STOP;
  }
  

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

             reply	other threads:[~2014-07-15  3:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15  3:56 Stephen Rothwell [this message]
2014-07-15 12:15 ` linux-next: manual merge of the pm tree with the ia64 tree Rafael J. Wysocki
2014-07-16  3:06   ` Zheng, Lv
2014-07-16 21:53     ` Rafael J. Wysocki

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=20140715135620.2e68ee57@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=gong.chen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=lv.zheng@intel.com \
    --cc=rjw@rjwysocki.net \
    --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