All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Verma, Vishal L" <vishal.l.verma@intel.com>
To: "Williams, Dan J" <dan.j.williams@intel.com>,
	"linda.knippers@hpe.com" <linda.knippers@hpe.com>,
	"toshi.kani@hpe.com" <toshi.kani@hpe.com>
Cc: "linux-nvdimm@lists.01.org" <linux-nvdimm@lists.01.org>,
	"jmoyer@redhat.com" <jmoyer@redhat.com>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"elliott@hpe.com" <elliott@hpe.com>,
	"Wysocki, Rafael J" <rafael.j.wysocki@intel.com>
Subject: Re: [RFC PATCH] Fix _FIT vs. NFIT processing breakage
Date: Wed, 18 Nov 2015 23:43:54 +0000	[thread overview]
Message-ID: <1447890234.30346.20.camel@intel.com> (raw)
In-Reply-To: <1447885355.21443.159.camel@hpe.com>

On Wed, 2015-11-18 at 15:22 -0700, Toshi Kani wrote:
> On Wed, 2015-11-18 at 16:28 -0500, Linda Knippers wrote:
> > On 11/18/2015 4:07 PM, Verma, Vishal L wrote:
> > > On Wed, 2015-11-18 at 12:54 -0500, Linda Knippers wrote:
> > > > Since commit 209851649dc4f7900a6bfe1de5e2640ab2c7d931, we no
> > > > longer
> > > > see NVDIMM devices on our systems.  The NFIT/_FIT processing at
> > > > initialization gets a table from _FIT but doesn't like it.
> > > > 
> > > > 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.
> > > 
> > > Hm, I couldn't find any reference to this in the spec - that NFIT
> > > will
> > > have the acpi_table_header but _FIT will have a different header -
> > > but
> > > I'm no ACPI expert - is this usual convention? Any pointers where
> > > I
> > > could look at?
> > 
> > I'm no ACPI expert either so maybe Toshi or someone else will help
> > me
> > here but according to the FW developer, the convention is that there
> > is
> > no ACPI table header because you already know what the table is.
> 
> map_mat_entry() handles _MAT for processor objects, which expects no
> MADT header
> table.

Ok, thanks for the clarifications. I'm fine with the fix. Could you
resend an updated patch without the extra debug. We'd also have to
update the unit test framework - in tools/testing/nvdimm/test/nfit.c, in
nfit_test0_setup, based on whether it is being called with the hotplug
flag or not, decide which header to include.

Thanks,
	-Vishal

> 
> Thanks,
> -Toshi 
> 
> > Also, if you look at the NFIT definition (table 5-126) , the
> > definition
> > explicitly includes the APCI table header but the _FIT definition
> > does not.
> > It just says it's a series of NFIT Types structure entries.
> > 
> 

  reply	other threads:[~2015-11-18 23:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-18 17:54 [RFC PATCH] Fix _FIT vs. NFIT processing breakage Linda Knippers
2015-11-18 21:07 ` Verma, Vishal L
2015-11-18 21:28   ` Linda Knippers
2015-11-18 22:22     ` Toshi Kani
2015-11-18 23:43       ` Verma, Vishal L [this message]
2015-11-19 16:25         ` Linda Knippers
2015-11-19 19:07           ` Verma, Vishal L
2015-11-19 20:16             ` Linda Knippers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1447890234.30346.20.camel@intel.com \
    --to=vishal.l.verma@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=elliott@hpe.com \
    --cc=jmoyer@redhat.com \
    --cc=linda.knippers@hpe.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-nvdimm@lists.01.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=toshi.kani@hpe.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.