diff options
author | Vaibhav Jain <vaibhav@linux.ibm.com> | 2019-06-29 21:36:09 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-07-22 23:31:00 +1000 |
commit | 0d7fc080ba139a2a639d3732616403ccddfa2d36 (patch) | |
tree | 2218e44cebf2aa0bce87245355c5baade14e6d96 /ipc/namespace.c | |
parent | 6d140e7569db89a1b596c1c2d1c2293d5c594432 (diff) | |
download | linux-0d7fc080ba139a2a639d3732616403ccddfa2d36.tar.bz2 |
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 <oohall@gmail.com>
Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190629160610.23402-3-vaibhav@linux.ibm.com
Diffstat (limited to 'ipc/namespace.c')
0 files changed, 0 insertions, 0 deletions