summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWeili Qian <qianweili@huawei.com>2024-10-26 13:44:29 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2024-11-02 11:23:25 +0100
commitc418ba6baca3ae10ffaf47b0803d2a9e6bf1af96 (patch)
tree2fd9aa3eec6dc1a92cb5a39388079d21589cac8c /include
parentcrypto: hisilicon - support querying the capability register (diff)
downloadlinux-c418ba6baca3ae10ffaf47b0803d2a9e6bf1af96.tar.xz
linux-c418ba6baca3ae10ffaf47b0803d2a9e6bf1af96.zip
crypto: hisilicon/qm - disable same error report before resetting
If an error indicating that the device needs to be reset is reported, disable the error reporting before device reset is complete, enable the error reporting after the reset is complete to prevent the same error from being reported repeatedly. Fixes: eaebf4c3b103 ("crypto: hisilicon - Unify hardware error init/uninit into QM") Signed-off-by: Weili Qian <qianweili@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
-rw-r--r--include/linux/hisi_acc_qm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/hisi_acc_qm.h b/include/linux/hisi_acc_qm.h
index 7272eac850e8..6dbd0d49628f 100644
--- a/include/linux/hisi_acc_qm.h
+++ b/include/linux/hisi_acc_qm.h
@@ -229,6 +229,12 @@ struct hisi_qm_status {
struct hisi_qm;
+enum acc_err_result {
+ ACC_ERR_NONE,
+ ACC_ERR_NEED_RESET,
+ ACC_ERR_RECOVERED,
+};
+
struct hisi_qm_err_info {
char *acpi_rst;
u32 msi_wr_port;
@@ -257,9 +263,9 @@ struct hisi_qm_err_ini {
void (*close_axi_master_ooo)(struct hisi_qm *qm);
void (*open_sva_prefetch)(struct hisi_qm *qm);
void (*close_sva_prefetch)(struct hisi_qm *qm);
- void (*log_dev_hw_err)(struct hisi_qm *qm, u32 err_sts);
void (*show_last_dfx_regs)(struct hisi_qm *qm);
void (*err_info_init)(struct hisi_qm *qm);
+ enum acc_err_result (*get_err_result)(struct hisi_qm *qm);
};
struct hisi_qm_cap_info {