Thread (2 messages) flat view 2 messages, 2 authors, 2019-07-08

Re: [PATCH v2] powerpc/nvdimm: Add support for multibyte read/write for metadata

From: Michael Ellerman <hidden>
Date: 2019-07-08 01:45:10

On Fri, 2019-06-07 at 06:45:11 UTC, "Aneesh Kumar K.V" wrote:
SCM_READ/WRITE_MEATADATA hcall supports multibyte read/write. This patch
updates the metadata read/write to use 1, 2, 4 or 8 byte read/write as
mentioned in PAPR document.

READ/WRITE_METADATA hcall supports the 1, 2, 4, or 8 bytes read/write.
For other values hcall results H_P3.

Hypervisor stores the metadata contents in big-endian format and in-order
to enable read/write in different granularity, we need to switch the contents
to big-endian before calling HCALL.

Based on an patch from Oliver O'Halloran [off-list ref]
Signed-off-by: Aneesh Kumar K.V <redacted>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/53e80bd042773c8ddeed856bd1b68ca74c3b8b46

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help