[Skiboot] [PATCH] mambo: Add persistent memory disk support

Stewart Smith stewart at linux.vnet.ibm.com
Mon Apr 30 17:38:45 AEST 2018


Michael Neuling <mikey at neuling.org> writes:
> This adds support to for mapping disks images using persistent
> memory. Disks can be added by setting this ENV variable:
>
>   PMEM_DISK="/mydisks/disk1.img,/mydisks/disk2.img"
>
> These will show up in Linux as /dev/pmem0 and /dev/pmem1.
>
> This uses a new feature in mambo "mysim memory mmap .." which is only
> available since mambo commit 0131f0fc08 (from 24/4/2018).
>
> This also needs the of_pmem.c driver in Linux which is only available
> since v4.17. It works with powernv_defconfig + CONFIG_OF_PMEM. ie
>
>   --- a/arch/powerpc/configs/powernv_defconfig
>   +++ b/arch/powerpc/configs/powernv_defconfig
>   @@ -238,6 +238,8 @@ CONFIG_RTC_CLASS=y
>    CONFIG_RTC_DRV_GENERIC=y
>    CONFIG_VIRTIO_PCI=m
>    CONFIG_VIRTIO_BALLOON=m
>   +CONFIG_LIBNVDIMM=y
>   +# CONFIG_ND_BLK is not set
>    CONFIG_EXT2_FS=y
>    CONFIG_EXT2_FS_XATTR=y
>    CONFIG_EXT2_FS_POSIX_ACL=y
>
> Signed-off-by: Michael Neuling <mikey at neuling.org>
> ---
>  external/mambo/skiboot.tcl | 29 +++++++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)

Sweeeeeet.

Merged to master as of 0a6a2ff30c9ed47824af455207d1f268feb1ef63
-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list