Linux EDAC development
 help / color / mirror / Atom feed
From: "Naik, Avadhut" <avadnaik@amd.com>
To: "Zhuo, Qiuxu" <qiuxu.zhuo@intel.com>,
	Avadhut Naik <avadhut.naik@amd.com>,
	"x86@kernel.org" <x86@kernel.org>,
	"linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>,
	"linux-trace-kernel@vger.kernel.org"
	<linux-trace-kernel@vger.kernel.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"bp@alien8.de" <bp@alien8.de>, "Luck, Tony" <tony.luck@intel.com>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	"mingo@redhat.com" <mingo@redhat.com>,
	"rostedt@goodmis.org" <rostedt@goodmis.org>,
	"mchehab@kernel.org" <mchehab@kernel.org>,
	"yazen.ghannam@amd.com" <yazen.ghannam@amd.com>,
	"john.allen@amd.com" <john.allen@amd.com>
Subject: Re: [PATCH v6 1/5] x86/mce: Add wrapper for struct mce to export vendor specific info
Date: Thu, 17 Oct 2024 13:09:31 -0500	[thread overview]
Message-ID: <d2769569-2f4b-4915-8f00-4c40e1163ef7@amd.com> (raw)
In-Reply-To: <CY8PR11MB713407C7FA225301B9072E2589472@CY8PR11MB7134.namprd11.prod.outlook.com>



On 10/17/2024 01:02, Zhuo, Qiuxu wrote:
>> From: Avadhut Naik <avadhut.naik@amd.com>
>> [...]
>> --- a/arch/x86/kernel/cpu/mce/core.c
>> +++ b/arch/x86/kernel/cpu/mce/core.c
>> [...]
>> @@ -1506,13 +1528,14 @@ noinstr void do_machine_check(struct pt_regs
>> *regs)
>>
>>  	this_cpu_inc(mce_exception_count);
>>
>> -	mce_gather_info(&m, regs);
>> -	m.tsc = rdtsc();
>> +	mce_gather_info(&err, regs);
>> +	m = &err.m;
>> +	m->tsc = rdtsc();
>>
>> -	final = this_cpu_ptr(&mces_seen);
>> -	*final = m;
>> +	final = this_cpu_ptr(&hw_errs_seen);
>> +	final = &err;
> 
> It's not about getting the 'final' pointer to point to 'err', instead initialize the data it points to with 'err'.
> So, it should be:
> 
>     s/final = &err/*final = err/
> 
My bad here. Will take care of it.
Thanks for pointing it out!
> [...]
> 
> -Qiuxu

-- 
Thanks,
Avadhut Naik

  reply	other threads:[~2024-10-17 18:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-16  6:36 [PATCH v6 0/5] MCE wrapper and support for new SMCA syndrome MSRs Avadhut Naik
2024-10-16  6:36 ` [PATCH v6 1/5] x86/mce: Add wrapper for struct mce to export vendor specific info Avadhut Naik
2024-10-17  6:02   ` Zhuo, Qiuxu
2024-10-17 18:09     ` Naik, Avadhut [this message]
2024-10-16  6:36 ` [PATCH v6 2/5] tracing: Add __print_dynamic_array() helper Avadhut Naik
2024-10-17  6:58   ` Zhuo, Qiuxu
2024-10-17 13:54     ` Steven Rostedt
2024-10-18  2:34       ` Zhuo, Qiuxu
2024-10-16  6:36 ` [PATCH v6 3/5] x86/mce, EDAC/mce_amd: Add support for new MCA_SYND{1,2} registers Avadhut Naik
2024-10-17  7:09   ` Zhuo, Qiuxu
2024-10-17 21:49     ` Naik, Avadhut
2024-10-18  2:24       ` Zhuo, Qiuxu
2024-10-18 15:28         ` Luck, Tony
2024-10-21  6:29           ` Naik, Avadhut
2024-10-16  6:36 ` [PATCH v6 4/5] x86/mce/apei: Handle variable register array size Avadhut Naik
2024-10-16  6:36 ` [PATCH v6 5/5] EDAC/mce_amd: Add support for FRU Text in MCA Avadhut Naik

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=d2769569-2f4b-4915-8f00-4c40e1163ef7@amd.com \
    --to=avadnaik@amd.com \
    --cc=avadhut.naik@amd.com \
    --cc=bp@alien8.de \
    --cc=john.allen@amd.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=mingo@redhat.com \
    --cc=qiuxu.zhuo@intel.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.org \
    --cc=yazen.ghannam@amd.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