crypto: qat - VF should never trigger SBR on PH
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.
Signed-off-by Conor McLoughlin <[email protected]>
Signed-off-by Tadeusz Struk <[email protected]>
--- drivers/crypto/qat/qat_common/adf_aer.c | 3 +++ 1 file changed, 3 insertions(+)
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);
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.
Signed-off-by Conor McLoughlin <[email protected]>Signed-off-by Tadeusz Struk <[email protected]>--- drivers/crypto/qat/qat_common/adf_aer.c | 3 +++ 1 file changed, 3 insertions(+)drivers/crypto/qat/qat_common/adf_aer.c +0
-0
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
Quoted 6 lines · Tadeusz Struk
From: Conor McLoughlin <[email protected]>
Don't allow to trigger SBR from a VF running in VMM context.
Signed-off-by Conor McLoughlin <[email protected]>Signed-off-by Tadeusz Struk <[email protected]>
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
Quoted 5 lines · Herbert Xu
Quoted 4 lines
Don't allow to trigger SBR from a VF running in VMM context.
Quoted 3 lines
Signed-off-by Conor McLoughlin <[email protected]>Signed-off-by Tadeusz Struk <[email protected]>Applied to crypto.
Thanks Herbert. Actually it's only needed for 4.3 when VF support was added. Thanks