Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-28 Thread Andrew Donnellan
On 27/02/17 21:56, Michael Ellerman wrote: +/* HDAT attribute for sysfs */ +static struct bin_attribute hdat_attr = { + .attr = {.name = "hdat", .mode = 0444}, ajd and oohal report to my office. ...ACK... :/ -- Andrew Donnellan

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-27 Thread Michael Ellerman
Oliver O'Halloran writes: > On Mon, Feb 27, 2017 at 9:56 PM, Michael Ellerman wrote: >> Matt Brown writes: >>> diff --git a/arch/powerpc/platforms/powernv/opal-hdat.c >>> b/arch/powerpc/platforms/powernv/opal-hdat.c >>> new file mode 100644 >>> index 000..3315dd3 >>> --- /dev/null >>> +++

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-27 Thread Oliver O'Halloran
On Mon, Feb 27, 2017 at 9:56 PM, Michael Ellerman wrote: > Matt Brown writes: >> diff --git a/arch/powerpc/platforms/powernv/opal-hdat.c >> b/arch/powerpc/platforms/powernv/opal-hdat.c >> new file mode 100644 >> index 000..3315dd3 >> --- /dev/null >> +++ b/arch/powerpc/platforms/powernv/opal

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-27 Thread Michael Ellerman
Matt Brown writes: > diff --git a/arch/powerpc/platforms/powernv/opal-hdat.c > b/arch/powerpc/platforms/powernv/opal-hdat.c > new file mode 100644 > index 000..3315dd3 > --- /dev/null > +++ b/arch/powerpc/platforms/powernv/opal-hdat.c > @@ -0,0 +1,65 @@ ... > + > + > +/* HDAT attribute for sy

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-27 Thread Michael Ellerman
Andrew Donnellan writes: > On 24/02/17 17:20, Matt Brown wrote: >> The HDAT data area is consumed by skiboot and turned into a device-tree. >> In some cases we would like to look directly at the HDAT, so this patch >> adds a sysfs node to allow it to be viewed. This is not possible through >> /d

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-26 Thread Oliver O'Halloran
On Mon, Feb 27, 2017 at 12:59 PM, Andrew Donnellan wrote: > On 24/02/17 17:20, Matt Brown wrote: >> >> The HDAT data area is consumed by skiboot and turned into a device-tree. >> In some cases we would like to look directly at the HDAT, so this patch >> adds a sysfs node to allow it to be viewed.

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-26 Thread Andrew Donnellan
On 24/02/17 17:20, Matt Brown wrote: The HDAT data area is consumed by skiboot and turned into a device-tree. In some cases we would like to look directly at the HDAT, so this patch adds a sysfs node to allow it to be viewed. This is not possible through /dev/mem as it is reserved memory which i

[PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-23 Thread Matt Brown
The HDAT data area is consumed by skiboot and turned into a device-tree. In some cases we would like to look directly at the HDAT, so this patch adds a sysfs node to allow it to be viewed. This is not possible through /dev/mem as it is reserved memory which is stopped by the /dev/mem filter. Sign