Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT

From: Michal Hocko
Date: Thu Dec 21 2017 - 08:18:13 EST


On Wed 20-12-17 09:41:07, Ross Zwisler wrote:
> On Mon, Dec 18, 2017 at 01:35:47PM -0700, Ross Zwisler wrote:
> > On Thu, Dec 14, 2017 at 02:00:32PM +0100, Michal Hocko wrote:
> <>
> > > What is the testing procedure? How can I setup qemu to simlate such HW?
> >
> > Well, the QEMU table simulation is gross, so I'd rather not get everyone
> > testing with that. Injecting custom HMAT and SRAT tables via initrd/initramfs
> > is a much better way:
> >
> > https://www.kernel.org/doc/Documentation/acpi/initrd_table_override.txt
> >
> > Dan recently posted a patch that lets this happen for the HMAT:
> >
> > https://lists.01.org/pipermail/linux-nvdimm/2017-December/013545.html
> >
> > I'm working right now on getting an easier way to generate HMAT tables - I'll
> > let you know when I have something working.
>
> I've posted details on how to set up test configurations using injected HMAT
> and SRAT tables here:
>
> https://github.com/rzwisler/hmat_examples
>
> So far I've got two different sample configs, and we can add more as they are
> useful. Having the sample configs in github is also nice because if someone
> finds a config that causes a kernel issue it can be reported then added to
> this list of example configs for future testing.
>
> Please let me know if you have trouble getting this working.

Thanks a lot Ross, I will try this but things are getting pretty busy
here before the holiday so I won't be able to get to it and your other
email before new year. Sorry about that.

--
Michal Hocko
SUSE Labs