Skip to content

Commit ed27802

Browse files
Hui Tangherbertx
authored andcommitted
crypto: hisilicon/hpre - add two RAS correctable errors processing
1.One CE error is detecting timeout of generating a random number. 2.Another is detecting timeout of SVA prefetching address. Signed-off-by: Hui Tang <tanghui20@huawei.com> Reviewed-by: Zaibo Xu <xuzaibo@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 09228c0 commit ed27802

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

drivers/crypto/hisilicon/hpre/hpre_main.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#define HPRE_CORE_IS_SCHD_OFFSET 0x90
4646

4747
#define HPRE_RAS_CE_ENB 0x301410
48-
#define HPRE_HAC_RAS_CE_ENABLE 0x1
48+
#define HPRE_HAC_RAS_CE_ENABLE (BIT(0) | BIT(22) | BIT(23))
4949
#define HPRE_RAS_NFE_ENB 0x301414
5050
#define HPRE_HAC_RAS_NFE_ENABLE 0x3ffffe
5151
#define HPRE_RAS_FE_ENB 0x301418
@@ -129,7 +129,11 @@ static const struct hpre_hw_error hpre_hw_errors[] = {
129129
{ .int_msk = BIT(9), .msg = "cluster4_shb_timeout_int_set" },
130130
{ .int_msk = GENMASK(15, 10), .msg = "ooo_rdrsp_err_int_set" },
131131
{ .int_msk = GENMASK(21, 16), .msg = "ooo_wrrsp_err_int_set" },
132-
{ /* sentinel */ }
132+
{ .int_msk = BIT(22), .msg = "pt_rng_timeout_int_set"},
133+
{ .int_msk = BIT(23), .msg = "sva_fsm_timeout_int_set"},
134+
{
135+
/* sentinel */
136+
}
133137
};
134138

135139
static const u64 hpre_cluster_offsets[] = {

0 commit comments

Comments
 (0)