]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: qat - fix recovery flow for VFs
authorMichal Witwicki <michal.witwicki@intel.com>
Wed, 17 Jul 2024 11:44:58 +0000 (07:44 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Aug 2024 13:11:20 +0000 (21:11 +0800)
commit6f1b5236348fced7e7691a933327694b4106bc39
treeb424c2e913edcab4a7f6c1df4f3eb5d5c68218d9
parentb6c7d36292d50627dbe6a57fa344f87c776971e6
crypto: qat - fix recovery flow for VFs

When the PFVF protocol was updated to support version 5, i.e.
ADF_PFVF_COMPAT_FALLBACK, the compatibility version for the VF was
updated without supporting the message RESTARTING_COMPLETE required for
such version.

Add support for the ADF_VF2PF_MSGTYPE_RESTARTING_COMPLETE message in the
VF drivers. This message is sent by the VF driver to the PF to notify
the completion of the shutdown flow.

Fixes: ec26f8e6c784 ("crypto: qat - update PFVF protocol for recovery")
Signed-off-by: Michal Witwicki <michal.witwicki@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/qat/qat_common/adf_pfvf_vf_msg.c
drivers/crypto/intel/qat/qat_common/adf_pfvf_vf_msg.h
drivers/crypto/intel/qat/qat_common/adf_vf_isr.c