diff options
author | Vaibhav Jain <[email protected]> | 2019-06-29 21:36:09 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2019-07-22 23:31:00 +1000 |
commit | 0d7fc080ba139a2a639d3732616403ccddfa2d36 (patch) | |
tree | 2218e44cebf2aa0bce87245355c5baade14e6d96 /tools/perf/util/c++/clang-test.cpp | |
parent | 6d140e7569db89a1b596c1c2d1c2293d5c594432 (diff) |
powerpc/papr_scm: Update drc_pmem_unbind() to use H_SCM_UNBIND_ALL
The new hcall named H_SCM_UNBIND_ALL has been introduce that can
unbind all or specific scm memory assigned to an lpar. This is
more efficient than using H_SCM_UNBIND_MEM as currently we don't
support partial unbind of scm memory.
Hence this patch proposes following changes to drc_pmem_unbind():
* Update drc_pmem_unbind() to replace hcall H_SCM_UNBIND_MEM to
H_SCM_UNBIND_ALL.
* Update drc_pmem_unbind() to handles cases when PHYP asks the guest
kernel to wait for specific amount of time before retrying the
hcall via the 'LONG_BUSY' return value.
* Ensure appropriate error code is returned back from the function
in case of an error.
Reviewed-by: Oliver O'Halloran <[email protected]>
Signed-off-by: Vaibhav Jain <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions