Re: [PATCH v2 2/5] x86/mce: Fixup APIC ID search for x86 CPER decoding
From: Yazen Ghannam
Date: Tue Jun 25 2024 - 21:44:48 EST
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