Commit 17762c5a authored by Conor McLoughlin's avatar Conor McLoughlin Committed by Herbert Xu

crypto: qat - VF should never trigger SBR on PH

Don't allow to trigger SBR from a VF running in VMM context.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarConor McLoughlin <conor.mcloughlin@intel.com>
Signed-off-by: default avatarTadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent cfcd2271
...@@ -88,6 +88,9 @@ static void adf_dev_restore(struct adf_accel_dev *accel_dev) ...@@ -88,6 +88,9 @@ static void adf_dev_restore(struct adf_accel_dev *accel_dev)
struct pci_dev *parent = pdev->bus->self; struct pci_dev *parent = pdev->bus->self;
uint16_t bridge_ctl = 0; uint16_t bridge_ctl = 0;
if (accel_dev->is_vf)
return;
dev_info(&GET_DEV(accel_dev), "Resetting device qat_dev%d\n", dev_info(&GET_DEV(accel_dev), "Resetting device qat_dev%d\n",
accel_dev->accel_id); accel_dev->accel_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment