mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
75b7c05ebf
Add support for ND_REGION_ASYNC capability if the device tree indicates 'ibm,hcall-flush-required' property in the NVDIMM node. Flush is done by issuing H_SCM_FLUSH hcall to the hypervisor. If the flush request failed, the hypervisor is expected to to reflect the problem in the subsequent nvdimm H_SCM_HEALTH call. This patch prevents mmap of namespaces with MAP_SYNC flag if the nvdimm requires an explicit flush[1]. References: [1] https://github.com/avocado-framework-tests/avocado-misc-tests/blob/master/memory/ndctl.py.data/map_sync.c Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> [mpe: Use unsigned long / long instead of uint64_t/int64_t] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/161703936121.36.7260632399582101498.stgit@e1fbed493c87 |
||
---|---|---|
.. | ||
booting.rst | ||
bootwrapper.rst | ||
cpu_families.rst | ||
cpu_features.rst | ||
cxl.rst | ||
cxlflash.rst | ||
dawr-power9.rst | ||
dscr.rst | ||
eeh-pci-error-recovery.rst | ||
elfnote.rst | ||
features.rst | ||
firmware-assisted-dump.rst | ||
hvcs.rst | ||
imc.rst | ||
index.rst | ||
isa-versions.rst | ||
kaslr-booke32.rst | ||
mpc52xx.rst | ||
papr_hcalls.rst | ||
pci_iov_resource_on_powernv.rst | ||
pmu-ebb.rst | ||
ptrace.rst | ||
qe_firmware.rst | ||
syscall64-abi.rst | ||
transactional_memory.rst | ||
ultravisor.rst | ||
vas-api.rst | ||
vcpudispatch_stats.rst |