Lines Matching full:csr

10 static void enable_errsou_reporting(void __iomem *csr)  in enable_errsou_reporting()  argument
13 ADF_CSR_WR(csr, ADF_GEN4_ERRMSK0, 0); in enable_errsou_reporting()
16 ADF_CSR_WR(csr, ADF_GEN4_ERRMSK1, 0); in enable_errsou_reporting()
22 ADF_CSR_WR(csr, ADF_GEN4_ERRMSK2, in enable_errsou_reporting()
30 ADF_CSR_WR(csr, ADF_GEN4_ERRMSK3, in enable_errsou_reporting()
35 static void disable_errsou_reporting(void __iomem *csr) in disable_errsou_reporting() argument
40 ADF_CSR_WR(csr, ADF_GEN4_ERRMSK0, ADF_GEN4_ERRSOU0_BIT); in disable_errsou_reporting()
43 ADF_CSR_WR(csr, ADF_GEN4_ERRMSK1, ADF_GEN4_ERRSOU1_BITMASK); in disable_errsou_reporting()
46 val = ADF_CSR_RD(csr, ADF_GEN4_ERRMSK2); in disable_errsou_reporting()
48 ADF_CSR_WR(csr, ADF_GEN4_ERRMSK2, val); in disable_errsou_reporting()
51 ADF_CSR_WR(csr, ADF_GEN4_ERRMSK3, ADF_GEN4_ERRSOU3_BITMASK); in disable_errsou_reporting()
55 void __iomem *csr) in enable_ae_error_reporting() argument
60 ADF_CSR_WR(csr, ADF_GEN4_HIAECORERRLOGENABLE_CPP0, ae_mask); in enable_ae_error_reporting()
63 ADF_CSR_WR(csr, ADF_GEN4_HIAEUNCERRLOGENABLE_CPP0, ae_mask); in enable_ae_error_reporting()
66 static void disable_ae_error_reporting(void __iomem *csr) in disable_ae_error_reporting() argument
69 ADF_CSR_WR(csr, ADF_GEN4_HIAECORERRLOGENABLE_CPP0, 0); in disable_ae_error_reporting()
72 ADF_CSR_WR(csr, ADF_GEN4_HIAEUNCERRLOGENABLE_CPP0, 0); in disable_ae_error_reporting()
76 void __iomem *csr) in enable_cpp_error_reporting() argument
81 ADF_CSR_WR(csr, ADF_GEN4_HICPPAGENTCMDPARERRLOGENABLE, in enable_cpp_error_reporting()
84 ADF_CSR_WR(csr, ADF_GEN4_CPP_CFC_ERR_CTRL, in enable_cpp_error_reporting()
88 static void disable_cpp_error_reporting(void __iomem *csr) in disable_cpp_error_reporting() argument
91 ADF_CSR_WR(csr, ADF_GEN4_HICPPAGENTCMDPARERRLOGENABLE, 0); in disable_cpp_error_reporting()
93 ADF_CSR_WR(csr, ADF_GEN4_CPP_CFC_ERR_CTRL, in disable_cpp_error_reporting()
97 static void enable_ti_ri_error_reporting(void __iomem *csr) in enable_ti_ri_error_reporting() argument
102 ADF_CSR_WR(csr, ADF_GEN4_RI_MEM_PAR_ERR_EN0, in enable_ti_ri_error_reporting()
107 ADF_CSR_WR(csr, ADF_GEN4_RIMISCCTL, ADF_GEN4_RIMISCSTS_BIT); in enable_ti_ri_error_reporting()
110 ADF_CSR_WR(csr, ADF_GEN4_TI_CI_PAR_ERR_MASK, 0); in enable_ti_ri_error_reporting()
111 ADF_CSR_WR(csr, ADF_GEN4_TI_PULL0FUB_PAR_ERR_MASK, 0); in enable_ti_ri_error_reporting()
112 ADF_CSR_WR(csr, ADF_GEN4_TI_PUSHFUB_PAR_ERR_MASK, 0); in enable_ti_ri_error_reporting()
113 ADF_CSR_WR(csr, ADF_GEN4_TI_CD_PAR_ERR_MASK, 0); in enable_ti_ri_error_reporting()
114 ADF_CSR_WR(csr, ADF_GEN4_TI_TRNSB_PAR_ERR_MASK, 0); in enable_ti_ri_error_reporting()
117 ADF_CSR_WR(csr, ADF_GEN4_RICPPINTCTL, ADF_GEN4_RICPPINTCTL_BITMASK); in enable_ti_ri_error_reporting()
119 ADF_CSR_WR(csr, ADF_GEN4_TICPPINTCTL, ADF_GEN4_TICPPINTCTL_BITMASK); in enable_ti_ri_error_reporting()
125 reg = ADF_CSR_RD(csr, ADF_GEN4_TIMISCCTL); in enable_ti_ri_error_reporting()
128 ADF_CSR_WR(csr, ADF_GEN4_TIMISCCTL, reg); in enable_ti_ri_error_reporting()
131 static void disable_ti_ri_error_reporting(void __iomem *csr) in disable_ti_ri_error_reporting() argument
136 ADF_CSR_WR(csr, ADF_GEN4_RI_MEM_PAR_ERR_EN0, 0); in disable_ti_ri_error_reporting()
139 ADF_CSR_WR(csr, ADF_GEN4_RIMISCCTL, 0); in disable_ti_ri_error_reporting()
142 ADF_CSR_WR(csr, ADF_GEN4_TI_CI_PAR_ERR_MASK, in disable_ti_ri_error_reporting()
144 ADF_CSR_WR(csr, ADF_GEN4_TI_PULL0FUB_PAR_ERR_MASK, in disable_ti_ri_error_reporting()
146 ADF_CSR_WR(csr, ADF_GEN4_TI_PUSHFUB_PAR_ERR_MASK, in disable_ti_ri_error_reporting()
148 ADF_CSR_WR(csr, ADF_GEN4_TI_CD_PAR_ERR_MASK, in disable_ti_ri_error_reporting()
150 ADF_CSR_WR(csr, ADF_GEN4_TI_TRNSB_PAR_ERR_MASK, in disable_ti_ri_error_reporting()
154 ADF_CSR_WR(csr, ADF_GEN4_RICPPINTCTL, 0); in disable_ti_ri_error_reporting()
156 ADF_CSR_WR(csr, ADF_GEN4_TICPPINTCTL, 0); in disable_ti_ri_error_reporting()
162 reg = ADF_CSR_RD(csr, ADF_GEN4_TIMISCCTL); in disable_ti_ri_error_reporting()
164 ADF_CSR_WR(csr, ADF_GEN4_TIMISCCTL, reg); in disable_ti_ri_error_reporting()
168 void __iomem *csr) in enable_rf_error_reporting() argument
173 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_SRC, 0); in enable_rf_error_reporting()
174 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_ATH_CPH, 0); in enable_rf_error_reporting()
175 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_CPR_XLT, 0); in enable_rf_error_reporting()
176 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_DCPR_UCS, 0); in enable_rf_error_reporting()
177 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_PKE, 0); in enable_rf_error_reporting()
180 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_WAT_WCP, 0); in enable_rf_error_reporting()
184 void __iomem *csr) in disable_rf_error_reporting() argument
189 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_SRC, in disable_rf_error_reporting()
192 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_ATH_CPH, in disable_rf_error_reporting()
195 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_CPR_XLT, in disable_rf_error_reporting()
198 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_DCPR_UCS, in disable_rf_error_reporting()
201 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_PKE, in disable_rf_error_reporting()
205 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITYMASK_WAT_WCP, in disable_rf_error_reporting()
210 void __iomem *csr) in enable_ssm_error_reporting() argument
216 ADF_CSR_WR(csr, ADF_GEN4_INTMASKSSM, 0); in enable_ssm_error_reporting()
219 val = ADF_CSR_RD(csr, ADF_GEN4_SSMFEATREN); in enable_ssm_error_reporting()
221 ADF_CSR_WR(csr, ADF_GEN4_SSMFEATREN, val); in enable_ssm_error_reporting()
224 ADF_CSR_WR(csr, ADF_GEN4_SER_EN_SSMSH, in enable_ssm_error_reporting()
228 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_ATH_CPH, 0); in enable_ssm_error_reporting()
229 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_CPR_XLT, 0); in enable_ssm_error_reporting()
230 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_DCPR_UCS, 0); in enable_ssm_error_reporting()
231 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_PKE, 0); in enable_ssm_error_reporting()
234 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_WAT_WCP, 0); in enable_ssm_error_reporting()
237 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_ATH_CPH, 0); in enable_ssm_error_reporting()
238 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_CPR_XLT, 0); in enable_ssm_error_reporting()
239 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_DCPR_UCS, 0); in enable_ssm_error_reporting()
240 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_PKE, 0); in enable_ssm_error_reporting()
243 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_WAT_WCP, 0); in enable_ssm_error_reporting()
247 void __iomem *csr) in disable_ssm_error_reporting() argument
253 ADF_CSR_WR(csr, ADF_GEN4_INTMASKSSM, in disable_ssm_error_reporting()
257 val = ADF_CSR_RD(csr, ADF_GEN4_SSMFEATREN); in disable_ssm_error_reporting()
259 ADF_CSR_WR(csr, ADF_GEN4_SSMFEATREN, val); in disable_ssm_error_reporting()
262 ADF_CSR_WR(csr, ADF_GEN4_SER_EN_SSMSH, 0); in disable_ssm_error_reporting()
265 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_ATH_CPH, in disable_ssm_error_reporting()
268 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_CPR_XLT, in disable_ssm_error_reporting()
271 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_DCPR_UCS, in disable_ssm_error_reporting()
274 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_PKE, in disable_ssm_error_reporting()
278 ADF_CSR_WR(csr, ADF_GEN4_SPPPARERRMSK_WAT_WCP, in disable_ssm_error_reporting()
282 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_ATH_CPH, in disable_ssm_error_reporting()
285 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_CPR_XLT, in disable_ssm_error_reporting()
288 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_DCPR_UCS, in disable_ssm_error_reporting()
291 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_PKE, in disable_ssm_error_reporting()
295 ADF_CSR_WR(csr, ADF_GEN4_SHINTMASKSSM_WAT_WCP, in disable_ssm_error_reporting()
299 static void enable_aram_error_reporting(void __iomem *csr) in enable_aram_error_reporting() argument
301 ADF_CSR_WR(csr, ADF_GEN4_REG_ARAMCERRUERR_EN, in enable_aram_error_reporting()
304 ADF_CSR_WR(csr, ADF_GEN4_REG_ARAMCERR, in enable_aram_error_reporting()
307 ADF_CSR_WR(csr, ADF_GEN4_REG_ARAMUERR, in enable_aram_error_reporting()
310 ADF_CSR_WR(csr, ADF_GEN4_REG_CPPMEMTGTERR, in enable_aram_error_reporting()
314 static void disable_aram_error_reporting(void __iomem *csr) in disable_aram_error_reporting() argument
316 ADF_CSR_WR(csr, ADF_GEN4_REG_ARAMCERRUERR_EN, 0); in disable_aram_error_reporting()
317 ADF_CSR_WR(csr, ADF_GEN4_REG_ARAMCERR, 0); in disable_aram_error_reporting()
318 ADF_CSR_WR(csr, ADF_GEN4_REG_ARAMUERR, 0); in disable_aram_error_reporting()
319 ADF_CSR_WR(csr, ADF_GEN4_REG_CPPMEMTGTERR, 0); in disable_aram_error_reporting()
325 void __iomem *csr = adf_get_pmisc_base(accel_dev); in adf_gen4_enable_ras() local
327 enable_errsou_reporting(csr); in adf_gen4_enable_ras()
328 enable_ae_error_reporting(accel_dev, csr); in adf_gen4_enable_ras()
329 enable_cpp_error_reporting(accel_dev, csr); in adf_gen4_enable_ras()
330 enable_ti_ri_error_reporting(csr); in adf_gen4_enable_ras()
331 enable_rf_error_reporting(accel_dev, csr); in adf_gen4_enable_ras()
332 enable_ssm_error_reporting(accel_dev, csr); in adf_gen4_enable_ras()
339 void __iomem *csr = adf_get_pmisc_base(accel_dev); in adf_gen4_disable_ras() local
341 disable_errsou_reporting(csr); in adf_gen4_disable_ras()
342 disable_ae_error_reporting(csr); in adf_gen4_disable_ras()
343 disable_cpp_error_reporting(csr); in adf_gen4_disable_ras()
344 disable_ti_ri_error_reporting(csr); in adf_gen4_disable_ras()
345 disable_rf_error_reporting(accel_dev, csr); in adf_gen4_disable_ras()
346 disable_ssm_error_reporting(accel_dev, csr); in adf_gen4_disable_ras()
351 void __iomem *csr) in adf_gen4_process_errsou0() argument
353 u32 aecorrerr = ADF_CSR_RD(csr, ADF_GEN4_HIAECORERRLOG_CPP0); in adf_gen4_process_errsou0()
364 ADF_CSR_WR(csr, ADF_GEN4_HIAECORERRLOG_CPP0, aecorrerr); in adf_gen4_process_errsou0()
368 void __iomem *csr, u32 errsou) in adf_handle_cpp_aeunc() argument
375 aeuncorerr = ADF_CSR_RD(csr, ADF_GEN4_HIAEUNCERRLOG_CPP0); in adf_handle_cpp_aeunc()
384 ADF_CSR_WR(csr, ADF_GEN4_HIAEUNCERRLOG_CPP0, aeuncorerr); in adf_handle_cpp_aeunc()
390 void __iomem *csr, u32 errsou) in adf_handle_cppcmdparerr() argument
398 cmdparerr = ADF_CSR_RD(csr, ADF_GEN4_HICPPAGENTCMDPARERRLOG); in adf_handle_cppcmdparerr()
407 ADF_CSR_WR(csr, ADF_GEN4_HICPPAGENTCMDPARERRLOG, cmdparerr); in adf_handle_cppcmdparerr()
413 void __iomem *csr, u32 errsou) in adf_handle_ri_mem_par_err() argument
421 rimem_parerr_sts = ADF_CSR_RD(csr, ADF_GEN4_RIMEM_PARERR_STS); in adf_handle_ri_mem_par_err()
440 ADF_CSR_WR(csr, ADF_GEN4_RIMEM_PARERR_STS, rimem_parerr_sts); in adf_handle_ri_mem_par_err()
446 void __iomem *csr, u32 errsou) in adf_handle_ti_ci_par_sts() argument
453 ti_ci_par_sts = ADF_CSR_RD(csr, ADF_GEN4_TI_CI_PAR_STS); in adf_handle_ti_ci_par_sts()
459 ADF_CSR_WR(csr, ADF_GEN4_TI_CI_PAR_STS, ti_ci_par_sts); in adf_handle_ti_ci_par_sts()
467 void __iomem *csr, u32 errsou) in adf_handle_ti_pullfub_par_sts() argument
474 ti_pullfub_par_sts = ADF_CSR_RD(csr, ADF_GEN4_TI_PULL0FUB_PAR_STS); in adf_handle_ti_pullfub_par_sts()
481 ADF_CSR_WR(csr, ADF_GEN4_TI_PULL0FUB_PAR_STS, in adf_handle_ti_pullfub_par_sts()
491 void __iomem *csr, u32 errsou) in adf_handle_ti_pushfub_par_sts() argument
498 ti_pushfub_par_sts = ADF_CSR_RD(csr, ADF_GEN4_TI_PUSHFUB_PAR_STS); in adf_handle_ti_pushfub_par_sts()
507 ADF_CSR_WR(csr, ADF_GEN4_TI_PUSHFUB_PAR_STS, in adf_handle_ti_pushfub_par_sts()
515 void __iomem *csr, u32 errsou) in adf_handle_ti_cd_par_sts() argument
522 ti_cd_par_sts = ADF_CSR_RD(csr, ADF_GEN4_TI_CD_PAR_STS); in adf_handle_ti_cd_par_sts()
531 ADF_CSR_WR(csr, ADF_GEN4_TI_CD_PAR_STS, ti_cd_par_sts); in adf_handle_ti_cd_par_sts()
538 void __iomem *csr, u32 errsou) in adf_handle_ti_trnsb_par_sts() argument
545 ti_trnsb_par_sts = ADF_CSR_RD(csr, ADF_GEN4_TI_TRNSB_PAR_STS); in adf_handle_ti_trnsb_par_sts()
554 ADF_CSR_WR(csr, ADF_GEN4_TI_TRNSB_PAR_STS, ti_trnsb_par_sts); in adf_handle_ti_trnsb_par_sts()
561 void __iomem *csr, u32 errsou) in adf_handle_iosfp_cmd_parerr() argument
568 rimiscsts = ADF_CSR_RD(csr, ADF_GEN4_RIMISCSTS); in adf_handle_iosfp_cmd_parerr()
577 ADF_CSR_WR(csr, ADF_GEN4_RIMISCSTS, rimiscsts); in adf_handle_iosfp_cmd_parerr()
583 void __iomem *csr, u32 errsou, in adf_gen4_process_errsou1() argument
586 *reset_required |= adf_handle_cpp_aeunc(accel_dev, csr, errsou); in adf_gen4_process_errsou1()
587 *reset_required |= adf_handle_cppcmdparerr(accel_dev, csr, errsou); in adf_gen4_process_errsou1()
588 *reset_required |= adf_handle_ri_mem_par_err(accel_dev, csr, errsou); in adf_gen4_process_errsou1()
589 *reset_required |= adf_handle_ti_ci_par_sts(accel_dev, csr, errsou); in adf_gen4_process_errsou1()
590 *reset_required |= adf_handle_ti_pullfub_par_sts(accel_dev, csr, errsou); in adf_gen4_process_errsou1()
591 *reset_required |= adf_handle_ti_pushfub_par_sts(accel_dev, csr, errsou); in adf_gen4_process_errsou1()
592 *reset_required |= adf_handle_ti_cd_par_sts(accel_dev, csr, errsou); in adf_gen4_process_errsou1()
593 *reset_required |= adf_handle_ti_trnsb_par_sts(accel_dev, csr, errsou); in adf_gen4_process_errsou1()
594 *reset_required |= adf_handle_iosfp_cmd_parerr(accel_dev, csr, errsou); in adf_gen4_process_errsou1()
598 void __iomem *csr, u32 iastatssm) in adf_handle_uerrssmsh() argument
605 reg = ADF_CSR_RD(csr, ADF_GEN4_UERRSSMSH); in adf_handle_uerrssmsh()
614 ADF_CSR_WR(csr, ADF_GEN4_UERRSSMSH, reg); in adf_handle_uerrssmsh()
620 void __iomem *csr, u32 iastatssm) in adf_handle_cerrssmsh() argument
627 reg = ADF_CSR_RD(csr, ADF_GEN4_CERRSSMSH); in adf_handle_cerrssmsh()
636 ADF_CSR_WR(csr, ADF_GEN4_CERRSSMSH, reg); in adf_handle_cerrssmsh()
642 void __iomem *csr, u32 iastatssm) in adf_handle_pperr_err() argument
649 reg = ADF_CSR_RD(csr, ADF_GEN4_PPERR); in adf_handle_pperr_err()
658 ADF_CSR_WR(csr, ADF_GEN4_PPERR, reg); in adf_handle_pperr_err()
664 void __iomem *csr, u32 slice_hang_offset, in adf_poll_slicehang_csr() argument
667 u32 slice_hang_reg = ADF_CSR_RD(csr, slice_hang_offset); in adf_poll_slicehang_csr()
679 void __iomem *csr, u32 iastatssm) in adf_handle_slice_hang_error() argument
686 adf_poll_slicehang_csr(accel_dev, csr, in adf_handle_slice_hang_error()
688 adf_poll_slicehang_csr(accel_dev, csr, in adf_handle_slice_hang_error()
690 adf_poll_slicehang_csr(accel_dev, csr, in adf_handle_slice_hang_error()
692 adf_poll_slicehang_csr(accel_dev, csr, in adf_handle_slice_hang_error()
696 adf_poll_slicehang_csr(accel_dev, csr, in adf_handle_slice_hang_error()
704 void __iomem *csr) in adf_handle_spp_pullcmd_err() argument
710 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLCMDPARERR_ATH_CPH); in adf_handle_spp_pullcmd_err()
718 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLCMDPARERR_ATH_CPH, reg); in adf_handle_spp_pullcmd_err()
723 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLCMDPARERR_CPR_XLT); in adf_handle_spp_pullcmd_err()
731 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLCMDPARERR_CPR_XLT, reg); in adf_handle_spp_pullcmd_err()
736 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLCMDPARERR_DCPR_UCS); in adf_handle_spp_pullcmd_err()
744 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLCMDPARERR_DCPR_UCS, reg); in adf_handle_spp_pullcmd_err()
749 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLCMDPARERR_PKE); in adf_handle_spp_pullcmd_err()
757 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLCMDPARERR_PKE, reg); in adf_handle_spp_pullcmd_err()
763 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLCMDPARERR_WAT_WCP); in adf_handle_spp_pullcmd_err()
771 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLCMDPARERR_WAT_WCP, reg); in adf_handle_spp_pullcmd_err()
781 void __iomem *csr) in adf_handle_spp_pulldata_err() argument
786 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLDATAPARERR_ATH_CPH); in adf_handle_spp_pulldata_err()
794 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLDATAPARERR_ATH_CPH, reg); in adf_handle_spp_pulldata_err()
797 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLDATAPARERR_CPR_XLT); in adf_handle_spp_pulldata_err()
805 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLDATAPARERR_CPR_XLT, reg); in adf_handle_spp_pulldata_err()
808 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLDATAPARERR_DCPR_UCS); in adf_handle_spp_pulldata_err()
816 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLDATAPARERR_DCPR_UCS, reg); in adf_handle_spp_pulldata_err()
819 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLDATAPARERR_PKE); in adf_handle_spp_pulldata_err()
827 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLDATAPARERR_PKE, reg); in adf_handle_spp_pulldata_err()
831 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPULLDATAPARERR_WAT_WCP); in adf_handle_spp_pulldata_err()
839 ADF_CSR_WR(csr, ADF_GEN4_SPPPULLDATAPARERR_WAT_WCP, reg); in adf_handle_spp_pulldata_err()
847 void __iomem *csr) in adf_handle_spp_pushcmd_err() argument
853 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHCMDPARERR_ATH_CPH); in adf_handle_spp_pushcmd_err()
861 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHCMDPARERR_ATH_CPH, reg); in adf_handle_spp_pushcmd_err()
866 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHCMDPARERR_CPR_XLT); in adf_handle_spp_pushcmd_err()
874 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHCMDPARERR_CPR_XLT, reg); in adf_handle_spp_pushcmd_err()
879 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHCMDPARERR_DCPR_UCS); in adf_handle_spp_pushcmd_err()
887 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHCMDPARERR_DCPR_UCS, reg); in adf_handle_spp_pushcmd_err()
892 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHCMDPARERR_PKE); in adf_handle_spp_pushcmd_err()
901 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHCMDPARERR_PKE, reg); in adf_handle_spp_pushcmd_err()
907 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHCMDPARERR_WAT_WCP); in adf_handle_spp_pushcmd_err()
915 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHCMDPARERR_WAT_WCP, reg); in adf_handle_spp_pushcmd_err()
925 void __iomem *csr) in adf_handle_spp_pushdata_err() argument
930 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHDATAPARERR_ATH_CPH); in adf_handle_spp_pushdata_err()
938 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHDATAPARERR_ATH_CPH, reg); in adf_handle_spp_pushdata_err()
941 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHDATAPARERR_CPR_XLT); in adf_handle_spp_pushdata_err()
949 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHDATAPARERR_CPR_XLT, reg); in adf_handle_spp_pushdata_err()
952 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHDATAPARERR_DCPR_UCS); in adf_handle_spp_pushdata_err()
960 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHDATAPARERR_DCPR_UCS, reg); in adf_handle_spp_pushdata_err()
963 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHDATAPARERR_PKE); in adf_handle_spp_pushdata_err()
971 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHDATAPARERR_PKE, reg); in adf_handle_spp_pushdata_err()
975 reg = ADF_CSR_RD(csr, ADF_GEN4_SPPPUSHDATAPARERR_WAT_WCP); in adf_handle_spp_pushdata_err()
983 ADF_CSR_WR(csr, ADF_GEN4_SPPPUSHDATAPARERR_WAT_WCP, in adf_handle_spp_pushdata_err()
992 void __iomem *csr, u32 iastatssm) in adf_handle_spppar_err() argument
999 reset_required = adf_handle_spp_pullcmd_err(accel_dev, csr); in adf_handle_spppar_err()
1000 reset_required |= adf_handle_spp_pulldata_err(accel_dev, csr); in adf_handle_spppar_err()
1001 reset_required |= adf_handle_spp_pushcmd_err(accel_dev, csr); in adf_handle_spppar_err()
1002 reset_required |= adf_handle_spp_pushdata_err(accel_dev, csr); in adf_handle_spppar_err()
1008 void __iomem *csr, u32 iastatssm) in adf_handle_ssmcpppar_err() argument
1018 reg = ADF_CSR_RD(csr, ADF_GEN4_SSMCPPERR); in adf_handle_ssmcpppar_err()
1041 ADF_CSR_WR(csr, ADF_GEN4_SSMCPPERR, reg); in adf_handle_ssmcpppar_err()
1047 void __iomem *csr, u32 iastatssm) in adf_handle_rf_parr_err() argument
1055 reg = ADF_CSR_RD(csr, ADF_GEN4_SSMSOFTERRORPARITY_SRC); in adf_handle_rf_parr_err()
1059 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITY_SRC, reg); in adf_handle_rf_parr_err()
1062 reg = ADF_CSR_RD(csr, ADF_GEN4_SSMSOFTERRORPARITY_ATH_CPH); in adf_handle_rf_parr_err()
1066 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITY_ATH_CPH, reg); in adf_handle_rf_parr_err()
1069 reg = ADF_CSR_RD(csr, ADF_GEN4_SSMSOFTERRORPARITY_CPR_XLT); in adf_handle_rf_parr_err()
1073 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITY_CPR_XLT, reg); in adf_handle_rf_parr_err()
1076 reg = ADF_CSR_RD(csr, ADF_GEN4_SSMSOFTERRORPARITY_DCPR_UCS); in adf_handle_rf_parr_err()
1080 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITY_DCPR_UCS, reg); in adf_handle_rf_parr_err()
1083 reg = ADF_CSR_RD(csr, ADF_GEN4_SSMSOFTERRORPARITY_PKE); in adf_handle_rf_parr_err()
1087 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITY_PKE, reg); in adf_handle_rf_parr_err()
1091 reg = ADF_CSR_RD(csr, ADF_GEN4_SSMSOFTERRORPARITY_WAT_WCP); in adf_handle_rf_parr_err()
1095 ADF_CSR_WR(csr, ADF_GEN4_SSMSOFTERRORPARITY_WAT_WCP, in adf_handle_rf_parr_err()
1106 void __iomem *csr, u32 iastatssm) in adf_handle_ser_err_ssmsh() argument
1117 reg = ADF_CSR_RD(csr, ADF_GEN4_SER_ERR_SSMSH); in adf_handle_ser_err_ssmsh()
1153 ADF_CSR_WR(csr, ADF_GEN4_SER_ERR_SSMSH, reg); in adf_handle_ser_err_ssmsh()
1159 void __iomem *csr) in adf_handle_iaintstatssm() argument
1161 u32 iastatssm = ADF_CSR_RD(csr, ADF_GEN4_IAINTSTATSSM); in adf_handle_iaintstatssm()
1168 reset_required = adf_handle_uerrssmsh(accel_dev, csr, iastatssm); in adf_handle_iaintstatssm()
1169 reset_required |= adf_handle_cerrssmsh(accel_dev, csr, iastatssm); in adf_handle_iaintstatssm()
1170 reset_required |= adf_handle_pperr_err(accel_dev, csr, iastatssm); in adf_handle_iaintstatssm()
1171 reset_required |= adf_handle_slice_hang_error(accel_dev, csr, iastatssm); in adf_handle_iaintstatssm()
1172 reset_required |= adf_handle_spppar_err(accel_dev, csr, iastatssm); in adf_handle_iaintstatssm()
1173 reset_required |= adf_handle_ssmcpppar_err(accel_dev, csr, iastatssm); in adf_handle_iaintstatssm()
1174 reset_required |= adf_handle_rf_parr_err(accel_dev, csr, iastatssm); in adf_handle_iaintstatssm()
1175 reset_required |= adf_handle_ser_err_ssmsh(accel_dev, csr, iastatssm); in adf_handle_iaintstatssm()
1177 ADF_CSR_WR(csr, ADF_GEN4_IAINTSTATSSM, iastatssm); in adf_handle_iaintstatssm()
1183 void __iomem *csr) in adf_handle_exprpssmcmpr() argument
1185 u32 reg = ADF_CSR_RD(csr, ADF_GEN4_EXPRPSSMCPR); in adf_handle_exprpssmcmpr()
1196 ADF_CSR_WR(csr, ADF_GEN4_EXPRPSSMCPR, reg); in adf_handle_exprpssmcmpr()
1202 void __iomem *csr) in adf_handle_exprpssmxlt() argument
1204 u32 reg = ADF_CSR_RD(csr, ADF_GEN4_EXPRPSSMXLT); in adf_handle_exprpssmxlt()
1225 ADF_CSR_WR(csr, ADF_GEN4_EXPRPSSMXLT, reg); in adf_handle_exprpssmxlt()
1231 void __iomem *csr) in adf_handle_exprpssmdcpr() argument
1237 reg = ADF_CSR_RD(csr, ADF_GEN4_EXPRPSSMDCPR(i)); in adf_handle_exprpssmdcpr()
1257 ADF_CSR_WR(csr, ADF_GEN4_EXPRPSSMDCPR(i), reg); in adf_handle_exprpssmdcpr()
1263 static bool adf_handle_ssm(struct adf_accel_dev *accel_dev, void __iomem *csr, in adf_handle_ssm() argument
1271 reset_required = adf_handle_iaintstatssm(accel_dev, csr); in adf_handle_ssm()
1272 reset_required |= adf_handle_exprpssmcmpr(accel_dev, csr); in adf_handle_ssm()
1273 reset_required |= adf_handle_exprpssmxlt(accel_dev, csr); in adf_handle_ssm()
1274 reset_required |= adf_handle_exprpssmdcpr(accel_dev, csr); in adf_handle_ssm()
1280 void __iomem *csr, u32 errsou) in adf_handle_cpp_cfc_err() argument
1288 reg = ADF_CSR_RD(csr, ADF_GEN4_CPP_CFC_ERR_STATUS); in adf_handle_cpp_cfc_err()
1311 ADF_CSR_WR(csr, ADF_GEN4_CPP_CFC_ERR_STATUS_CLR, in adf_handle_cpp_cfc_err()
1318 void __iomem *csr, u32 errsou, in adf_gen4_process_errsou2() argument
1321 *reset_required |= adf_handle_ssm(accel_dev, csr, errsou); in adf_gen4_process_errsou2()
1322 *reset_required |= adf_handle_cpp_cfc_err(accel_dev, csr, errsou); in adf_gen4_process_errsou2()
1326 void __iomem *csr, u32 errsou) in adf_handle_timiscsts() argument
1333 timiscsts = ADF_CSR_RD(csr, ADF_GEN4_TIMISCSTS); in adf_handle_timiscsts()
1344 void __iomem *csr, u32 errsou) in adf_handle_ricppintsts() argument
1351 ricppintsts = ADF_CSR_RD(csr, ADF_GEN4_RICPPINTSTS); in adf_handle_ricppintsts()
1359 ADF_CSR_WR(csr, ADF_GEN4_RICPPINTSTS, ricppintsts); in adf_handle_ricppintsts()
1365 void __iomem *csr, u32 errsou) in adf_handle_ticppintsts() argument
1372 ticppintsts = ADF_CSR_RD(csr, ADF_GEN4_TICPPINTSTS); in adf_handle_ticppintsts()
1380 ADF_CSR_WR(csr, ADF_GEN4_TICPPINTSTS, ticppintsts); in adf_handle_ticppintsts()
1386 void __iomem *csr, u32 errsou) in adf_handle_aramcerr() argument
1393 aram_cerr = ADF_CSR_RD(csr, ADF_GEN4_REG_ARAMCERR); in adf_handle_aramcerr()
1403 ADF_CSR_WR(csr, ADF_GEN4_REG_ARAMCERR, aram_cerr); in adf_handle_aramcerr()
1409 void __iomem *csr, u32 errsou) in adf_handle_aramuerr() argument
1417 aramuerr = ADF_CSR_RD(csr, ADF_GEN4_REG_ARAMUERR); in adf_handle_aramuerr()
1440 ADF_CSR_WR(csr, ADF_GEN4_REG_ARAMUERR, aramuerr); in adf_handle_aramuerr()
1446 void __iomem *csr, u32 errsou) in adf_handle_reg_cppmemtgterr() argument
1454 cppmemtgterr = ADF_CSR_RD(csr, ADF_GEN4_REG_CPPMEMTGTERR); in adf_handle_reg_cppmemtgterr()
1476 ADF_CSR_WR(csr, ADF_GEN4_REG_CPPMEMTGTERR, cppmemtgterr); in adf_handle_reg_cppmemtgterr()
1482 void __iomem *csr, u32 errsou) in adf_handle_atufaultstatus() argument
1491 u32 atufaultstatus = ADF_CSR_RD(csr, ADF_GEN4_ATUFAULTSTATUS(i)); in adf_handle_atufaultstatus()
1502 ADF_CSR_WR(csr, ADF_GEN4_ATUFAULTSTATUS(i), atufaultstatus); in adf_handle_atufaultstatus()
1510 void __iomem *csr, void __iomem *aram_csr, in adf_gen4_process_errsou3() argument
1513 *reset_required |= adf_handle_timiscsts(accel_dev, csr, errsou); in adf_gen4_process_errsou3()
1514 *reset_required |= adf_handle_ricppintsts(accel_dev, csr, errsou); in adf_gen4_process_errsou3()
1515 *reset_required |= adf_handle_ticppintsts(accel_dev, csr, errsou); in adf_gen4_process_errsou3()
1519 *reset_required |= adf_handle_atufaultstatus(accel_dev, csr, errsou); in adf_gen4_process_errsou3()
1526 void __iomem *csr = adf_get_pmisc_base(accel_dev); in adf_gen4_handle_interrupt() local
1527 u32 errsou = ADF_CSR_RD(csr, ADF_GEN4_ERRSOU0); in adf_gen4_handle_interrupt()
1533 adf_gen4_process_errsou0(accel_dev, csr); in adf_gen4_handle_interrupt()
1537 errsou = ADF_CSR_RD(csr, ADF_GEN4_ERRSOU1); in adf_gen4_handle_interrupt()
1539 adf_gen4_process_errsou1(accel_dev, csr, errsou, reset_required); in adf_gen4_handle_interrupt()
1543 errsou = ADF_CSR_RD(csr, ADF_GEN4_ERRSOU2); in adf_gen4_handle_interrupt()
1545 adf_gen4_process_errsou2(accel_dev, csr, errsou, reset_required); in adf_gen4_handle_interrupt()
1549 errsou = ADF_CSR_RD(csr, ADF_GEN4_ERRSOU3); in adf_gen4_handle_interrupt()
1551 adf_gen4_process_errsou3(accel_dev, csr, aram_csr, errsou, reset_required); in adf_gen4_handle_interrupt()