Re: [PATCH v3 0/3] create sysfs representation of ACPI HMAT
From: Ross Zwisler
Date: Wed Dec 20 2017 - 11:41:14 EST
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.