Skip to contentSkip to conversation

crypto: qat - VF should never trigger SBR on PH

PATCH Applied Tadeusz Struk 2 participants 4 messages Sep 18, 2015 – Sep 21, 2015 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: qat - VF should never trigger SBR on PH

From: Conor McLoughlin <[email protected]>

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

---
 drivers/crypto/qat/qat_common/adf_aer.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/crypto/qat/qat_common/adf_aer.c +3 -0
index a57b419..0a5ca0b 100644
@@ -88,6 +88,9 @@ static void adf_dev_restore(struct adf_accel_dev *accel_dev)
 	struct pci_dev *parent = pdev->bus->self;
 	uint16_t bridge_ctl = 0;
 
+	if (accel_dev->is_vf)
+		return;
+
 	dev_info(&GET_DEV(accel_dev), "Resetting device qat_dev%d\n",
 		 accel_dev->accel_id);
 
#1 lore raw

Hi Herbert,

Quoted 15 lines · Tadeusz Struk

From: Conor McLoughlin <[email protected]>

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

---
 drivers/crypto/qat/qat_common/adf_aer.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/crypto/qat/qat_common/adf_aer.c +0 -0
index a57b419..0a5ca0b 100644

drivers/crypto/qat/qat_common/adf_aer.c static void adf_dev_restore(struct adf_accel_dev *accel_dev) · line 95

Quoted 8 lines
drivers/crypto/qat/qat_common/adf_aer.c +3 -0
@@ -88,6 +88,9 @@ static void adf_dev_restore(struct adf_accel_dev *accel_dev)
 	struct pci_dev *parent = pdev->bus->self;
 	uint16_t bridge_ctl = 0;
 
+	if (accel_dev->is_vf)
+		return;
+
 	dev_info(&GET_DEV(accel_dev), "Resetting device qat_dev%d\n",
 		 accel_dev->accel_id);

This should also go to 4.2 stable.
Thanks

maintainer Applied
#2 lore raw
In reply to Tadeusz Struk
Quoted 6 lines · Tadeusz Struk

From: Conor McLoughlin <[email protected]>

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

Applied to crypto.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt