Re: [PATCH] crypto: qat - VF should never trigger SBR on PH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Herbert,
On 09/18/2015 08:59 AM, Tadeusz Struk wrote:
> From: Conor McLoughlin <conor.mcloughlin@xxxxxxxxx>
> 
> Don't allow to trigger SBR from a VF running in VMM context.
> 
> Signed-off-by: Conor McLoughlin <conor.mcloughlin@xxxxxxxxx>
> Signed-off-by: Tadeusz Struk <tadeusz.struk@xxxxxxxxx>
> ---
>  drivers/crypto/qat/qat_common/adf_aer.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/crypto/qat/qat_common/adf_aer.c b/drivers/crypto/qat/qat_common/adf_aer.c
> index a57b419..0a5ca0b 100644
> --- a/drivers/crypto/qat/qat_common/adf_aer.c
> +++ b/drivers/crypto/qat/qat_common/adf_aer.c
> @@ -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
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux