[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240626014427.GB1086@yaz-khff2.amd.com>
Date: Tue, 25 Jun 2024 21:44:27 -0400
From: Yazen Ghannam <yazen.ghannam@....com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: linux-edac@...r.kernel.org, linux-kernel@...r.kernel.org,
tony.luck@...el.com, x86@...nel.org, avadhut.naik@....com,
john.allen@....com
Subject: Re: [PATCH v2 2/5] x86/mce: Fixup APIC ID search for x86 CPER
decoding
On Tue, Jun 25, 2024 at 08:50:47AM +0200, Thomas Gleixner wrote:
> On Mon, Jun 24 2024 at 16:20, Yazen Ghannam wrote:
> > /*
> > * The starting address of the register array extracted from BERT must
> > * match with the first expected register in the register layout of
> > @@ -99,16 +103,8 @@ int apei_smca_report_x86_error(struct cper_ia_proc_ctx *ctx_info, u64 lapic_id)
> >
> > mce_setup(&m);
> >
> > - m.extcpu = -1;
> > - m.socketid = -1;
> > -
> > - for_each_possible_cpu(cpu) {
> > - if (cpu_data(cpu).topo.initial_apicid == lapic_id) {
> > - m.extcpu = cpu;
> > - m.socketid = cpu_data(m.extcpu).topo.pkg_id;
> > - break;
> > - }
> > - }
> > + m.extcpu = cpu;
> > + m.socketid = cpu_data(cpu).topo.pkg_id;
>
> topology_physical_package_id() ?
>
Yes, will change.
Thanks,
Yazen
Powered by blists - more mailing lists