mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
crypto: qat - add auto reset on error
Expose the `auto_reset` sysfs attribute to configure the driver to reset the device when a fatal error is detected. When auto reset is enabled, the driver resets the device when it detects either an heartbeat failure or a fatal error through an interrupt. This patch is based on earlier work done by Shashank Gupta. Signed-off-by: Damian Muszynski <damian.muszynski@intel.com> Reviewed-by: Ahsan Atta <ahsan.atta@intel.com> Reviewed-by: Markas Rapoportas <markas.rapoportas@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Mun Chun Yep <mun.chun.yep@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
2aaa1995a9
commit
f5419a4239
@@ -402,6 +402,7 @@ struct adf_accel_dev {
|
||||
struct adf_error_counters ras_errors;
|
||||
struct mutex state_lock; /* protect state of the device */
|
||||
bool is_vf;
|
||||
bool autoreset_on_error;
|
||||
u32 accel_id;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user