Skip to content
Commit 6b577c9d authored by Linda Knippers's avatar Linda Knippers Committed by Dan Williams
Browse files

nfit: Adjust for different _FIT and NFIT headers



When support for _FIT was added, the code presumed that the data
returned by the _FIT method is identical to the NFIT table, which
starts with an acpi_table_header.  However, the _FIT is defined
to return a data in the format of a series of NFIT type structure
entries and as a method, has an acpi_object header rather tahn
an acpi_table_header.

To address the differences, explicitly save the acpi_table_header
from the NFIT, since it is accessible through /sys, and change
the nfit pointer in the acpi_desc structure to point to the
table entries rather than the headers.

Reported-by: default avatarJeff Moyer <(jmoyer@redhat.com>
Signed-off-by: default avatarLinda Knippers <linda.knippers@hpe.com>
Acked-by: default avatarVishal Verma <vishal.l.verma@intel.com>
[vishal: fix up unit test for new header assumptions]
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent ff5a55f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment