* [PATCH] nfit: fix format interface code byte order per ACPI6.1
@ 2016-04-29 2:11 Dan Williams
2016-04-29 13:53 ` Linda Knippers
0 siblings, 1 reply; 4+ messages in thread
From: Dan Williams @ 2016-04-29 2:11 UTC (permalink / raw)
To: linux-nvdimm
ACPI6.1 clarifies that DCR fields are stored as an array of bytes,
update the format interface code constants to match.
Cc: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
drivers/acpi/nfit.h | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/drivers/acpi/nfit.h b/drivers/acpi/nfit.h
index c75576b2d50e..92ea5d06c7fe 100644
--- a/drivers/acpi/nfit.h
+++ b/drivers/acpi/nfit.h
@@ -41,11 +41,13 @@ enum nfit_uuids {
NFIT_UUID_MAX,
};
-enum nfit_fic {
- NFIT_FIC_BYTE = 0x101, /* byte-addressable energy backed */
- NFIT_FIC_BLK = 0x201, /* block-addressable non-energy backed */
- NFIT_FIC_BYTEN = 0x301, /* byte-addressable non-energy backed */
-};
+/*
+ * Region format interface codes are stored as an array of bytes in the
+ * NFIT DIMM Control Region structure
+ */
+#define NFIT_FIC_BYTE cpu_to_be16(0x101) /* byte-addressable energy */
+#define NFIT_FIC_BLK cpu_to_be16(0x201) /* block-addressable non-energy backed */
+#define NFIT_FIC_BYTEN cpu_to_be16(0x301) /* byte-addressable non-energy backed */
enum {
NFIT_BLK_READ_FLUSH = 1,
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] nfit: fix format interface code byte order per ACPI6.1
2016-04-29 2:11 [PATCH] nfit: fix format interface code byte order per ACPI6.1 Dan Williams
@ 2016-04-29 13:53 ` Linda Knippers
2016-04-29 15:18 ` Dan Williams
0 siblings, 1 reply; 4+ messages in thread
From: Linda Knippers @ 2016-04-29 13:53 UTC (permalink / raw)
To: linux-nvdimm
On 4/28/2016 10:11 PM, Dan Williams wrote:
> ACPI6.1 clarifies that DCR fields are stored as an array of bytes,
> update the format interface code constants to match.
>
> Cc: Toshi Kani <toshi.kani@hpe.com>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
> ---
> drivers/acpi/nfit.h | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/acpi/nfit.h b/drivers/acpi/nfit.h
> index c75576b2d50e..92ea5d06c7fe 100644
> --- a/drivers/acpi/nfit.h
> +++ b/drivers/acpi/nfit.h
> @@ -41,11 +41,13 @@ enum nfit_uuids {
> NFIT_UUID_MAX,
> };
>
> -enum nfit_fic {
> - NFIT_FIC_BYTE = 0x101, /* byte-addressable energy backed */
> - NFIT_FIC_BLK = 0x201, /* block-addressable non-energy backed */
> - NFIT_FIC_BYTEN = 0x301, /* byte-addressable non-energy backed */
> -};
> +/*
> + * Region format interface codes are stored as an array of bytes in the
> + * NFIT DIMM Control Region structure
> + */
> +#define NFIT_FIC_BYTE cpu_to_be16(0x101) /* byte-addressable energy */
energy backed?
> +#define NFIT_FIC_BLK cpu_to_be16(0x201) /* block-addressable non-energy backed */
> +#define NFIT_FIC_BYTEN cpu_to_be16(0x301) /* byte-addressable non-energy backed */
>
> enum {
> NFIT_BLK_READ_FLUSH = 1,
>
> _______________________________________________
> Linux-nvdimm mailing list
> Linux-nvdimm@lists.01.org
> https://lists.01.org/mailman/listinfo/linux-nvdimm
>
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nfit: fix format interface code byte order per ACPI6.1
2016-04-29 13:53 ` Linda Knippers
@ 2016-04-29 15:18 ` Dan Williams
2016-04-29 18:39 ` Toshi Kani
0 siblings, 1 reply; 4+ messages in thread
From: Dan Williams @ 2016-04-29 15:18 UTC (permalink / raw)
To: Linda Knippers; +Cc: linux-nvdimm@lists.01.org
On Fri, Apr 29, 2016 at 6:53 AM, Linda Knippers <linda.knippers@hpe.com> wrote:
>
>
> On 4/28/2016 10:11 PM, Dan Williams wrote:
>> ACPI6.1 clarifies that DCR fields are stored as an array of bytes,
>> update the format interface code constants to match.
>>
>> Cc: Toshi Kani <toshi.kani@hpe.com>
>> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
>> ---
>> drivers/acpi/nfit.h | 12 +++++++-----
>> 1 file changed, 7 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/acpi/nfit.h b/drivers/acpi/nfit.h
>> index c75576b2d50e..92ea5d06c7fe 100644
>> --- a/drivers/acpi/nfit.h
>> +++ b/drivers/acpi/nfit.h
>> @@ -41,11 +41,13 @@ enum nfit_uuids {
>> NFIT_UUID_MAX,
>> };
>>
>> -enum nfit_fic {
>> - NFIT_FIC_BYTE = 0x101, /* byte-addressable energy backed */
>> - NFIT_FIC_BLK = 0x201, /* block-addressable non-energy backed */
>> - NFIT_FIC_BYTEN = 0x301, /* byte-addressable non-energy backed */
>> -};
>> +/*
>> + * Region format interface codes are stored as an array of bytes in the
>> + * NFIT DIMM Control Region structure
>> + */
>> +#define NFIT_FIC_BYTE cpu_to_be16(0x101) /* byte-addressable energy */
>
> energy backed?
Yup, will fix.
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nfit: fix format interface code byte order per ACPI6.1
2016-04-29 15:18 ` Dan Williams
@ 2016-04-29 18:39 ` Toshi Kani
0 siblings, 0 replies; 4+ messages in thread
From: Toshi Kani @ 2016-04-29 18:39 UTC (permalink / raw)
To: Dan Williams, Linda Knippers; +Cc: linux-nvdimm@lists.01.org
On Fri, 2016-04-29 at 08:18 -0700, Dan Williams wrote:
> On Fri, Apr 29, 2016 at 6:53 AM, Linda Knippers <linda.knippers@hpe.com>
> wrote:
> >
> > On 4/28/2016 10:11 PM, Dan Williams wrote:
> > >
> > > ACPI6.1 clarifies that DCR fields are stored as an array of bytes,
> > > update the format interface code constants to match.
> > >
> > > Cc: Toshi Kani <toshi.kani@hpe.com>
> > > Signed-off-by: Dan Williams <dan.j.williams@intel.com>
> > > ---
> > > drivers/acpi/nfit.h | 12 +++++++-----
> > > 1 file changed, 7 insertions(+), 5 deletions(-)
> > >
> > > diff --git a/drivers/acpi/nfit.h b/drivers/acpi/nfit.h
> > > index c75576b2d50e..92ea5d06c7fe 100644
> > > --- a/drivers/acpi/nfit.h
> > > +++ b/drivers/acpi/nfit.h
> > > @@ -41,11 +41,13 @@ enum nfit_uuids {
> > > NFIT_UUID_MAX,
> > > };
> > >
> > > -enum nfit_fic {
> > > - NFIT_FIC_BYTE = 0x101, /* byte-addressable energy backed */
> > > - NFIT_FIC_BLK = 0x201, /* block-addressable non-energy backed */
> > > - NFIT_FIC_BYTEN = 0x301, /* byte-addressable non-energy backed
> > > */
> > > -};
> > > +/*
> > > + * Region format interface codes are stored as an array of bytes in
> > > the
> > > + * NFIT DIMM Control Region structure
> > > + */
> > > +#define NFIT_FIC_BYTE cpu_to_be16(0x101) /* byte-addressable energy
> > > */
> > energy backed?
>
> Yup, will fix.
With that change:
Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Thanks,
-Toshi
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-29 18:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-29 2:11 [PATCH] nfit: fix format interface code byte order per ACPI6.1 Dan Williams
2016-04-29 13:53 ` Linda Knippers
2016-04-29 15:18 ` Dan Williams
2016-04-29 18:39 ` Toshi Kani
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.