diff options
author | George Wilson <gcwilson@linux.ibm.com> | 2020-03-19 23:27:58 -0400 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2020-04-21 00:06:13 +0300 |
commit | eba5cf3dcb844c82f54d4a857e124824e252206d (patch) | |
tree | 4c0420325bc07e302226baf59cb052fe6026bec9 /mm/list_lru.c | |
parent | 684c6bd806253bf65dbb64978fc113ff081b4aea (diff) | |
download | linux-eba5cf3dcb844c82f54d4a857e124824e252206d.tar.gz linux-eba5cf3dcb844c82f54d4a857e124824e252206d.tar.bz2 linux-eba5cf3dcb844c82f54d4a857e124824e252206d.zip |
tpm: ibmvtpm: retry on H_CLOSED in tpm_ibmvtpm_send()
tpm_ibmvtpm_send() can fail during PowerVM Live Partition Mobility resume
with an H_CLOSED return from ibmvtpm_send_crq(). The PAPR says, 'The
"partner partition suspended" transport event disables the associated CRQ
such that any H_SEND_CRQ hcall() to the associated CRQ returns H_Closed
until the CRQ has been explicitly enabled using the H_ENABLE_CRQ hcall.'
This patch adds a check in tpm_ibmvtpm_send() for an H_CLOSED return from
ibmvtpm_send_crq() and in that case calls tpm_ibmvtpm_resume() and
retries the ibmvtpm_send_crq() once.
Cc: stable@vger.kernel.org # 3.7.x
Fixes: 132f76294744 ("drivers/char/tpm: Add new device driver to support IBM vTPM")
Reported-by: Linh Pham <phaml@us.ibm.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: George Wilson <gcwilson@linux.ibm.com>
Tested-by: Linh Pham <phaml@us.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'mm/list_lru.c')
0 files changed, 0 insertions, 0 deletions