Re: [PATCH RFC v4 5/6] firmware/efi: Process CXL Component Events

From: Jonathan Cameron
Date: Tue Dec 19 2023 - 12:13:16 EST


On Wed, 13 Dec 2023 14:28:03 -0800
Ira Weiny <ira.weiny@xxxxxxxxx> wrote:

> Jonathan Cameron wrote:
> > On Wed, 29 Nov 2023 06:28:01 -0800
> > Ira Weiny <ira.weiny@xxxxxxxxx> wrote:
> >
>
> [snip]
>
> > > > __packed attribute just for cper_cxl_event_rec still fails to properly
> > > > align structure elements. Looks like, __packed attribute is needed for
> > > > all structs (cper_cxl_event_devid and cper_cxl_event_sn) inside
> > > > cper_cxl_event_rec.
> > > >
> > > > Seems easier to use global pragma instead.. I could test and obtain the
> > > > output as expected using pragma..
> > >
> > > I did not know that was acceptable in the kernel but I see you used it in
> > > cper_cxl.h before...
> > >
> > > Ok I'll do that and spin again.
> > >
> > > Thanks so much for testing this! I was out last week and still don't have
> > > a test environment.
> >
> > Easy to hack into QEMU :) Hmm. I have a CCIX patch set from years ago
> > somewhere that does similar. Would be easy to repurposed. Looks like
> > I never published them (just told people to ask if they wanted them :( ).
> >
> > Anyhow, if useful I can dig them out.
>
> If you have a branch with them with a somewhat latest qemu that could work
> too.
They are ancient and based on GHES emulation that got reworked before being
merged. I had a quick go at a forwards port but this is a bigger job than
I expected. May be a little while :(

Jonathan

>
> Ira