Messages in this thread | ![/](/images/icornerl.gif) | | Date | Thu, 19 Mar 2020 21:50:11 +0200 | From | Jarkko Sakkinen <> | Subject | Re: [PATCH v3] tpm: ibmvtpm: retry on H_CLOSED in tpm_ibmvtpm_send() |
| |
On Wed, Mar 18, 2020 at 07:49:27PM -0400, George Wilson wrote: > 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. > > 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> > Fixes: 132f76294744 ("Add new device driver to support IBM vTPM")
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thank you.
/Jarkko
| ![\](/images/icornerr.gif) |