diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> | 2019-06-07 12:15:11 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-07-05 00:37:33 +1000 |
commit | 53e80bd042773c8ddeed856bd1b68ca74c3b8b46 (patch) | |
tree | 31b8ac217ea6a60f217639746f08720ea80b2dca /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2a0ffbd4789b25cd5a80bfd8f3d28fb629eae1a7 (diff) |
powerpc/nvdimm: Add support for multibyte read/write for metadata
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 <oohall@gmail.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions