[v8] powerpc/powernv: add 'firmware/exports' attributes to sysfs

Michael Ellerman patch-notifications at ellerman.id.au
Thu Apr 6 23:06:02 AEST 2017


On Wed, 2017-03-29 at 23:28:01 UTC, 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. This is not possible
> through /dev/mem as it is reserved memory which is stopped by the /dev/mem
> filter. There are also other memory areas which are reserved but could be
> useful to view for debugging purposes.
> 
> This patch adds sysfs nodes to allow specified memory areas to be viewed.
> sysfs nodes are created for each property in the device-tree under
> /ibm,opal/firmware/exports/, and adds them to /sys/firmware/opal/exports/
> with root read-only permissions.
> 
> Signed-off-by: Matt Brown <matthew.brown.dev at gmail.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/11fe909d236263f62808dc3c73caf7

cheers


More information about the Linuxppc-dev mailing list