@@ -1315,13 +1315,6 @@ static int gfx_v11_0_sw_init(void *handle)
13151315 if (r )
13161316 return r ;
13171317
1318- /* ECC error */
1319- r = amdgpu_irq_add_id (adev , SOC21_IH_CLIENTID_GRBM_CP ,
1320- GFX_11_0_0__SRCID__CP_ECC_ERROR ,
1321- & adev -> gfx .cp_ecc_error_irq );
1322- if (r )
1323- return r ;
1324-
13251318 /* FED error */
13261319 r = amdgpu_irq_add_id (adev , SOC21_IH_CLIENTID_GFX ,
13271320 GFX_11_0_0__SRCID__RLC_GC_FED_INTERRUPT ,
@@ -4444,7 +4437,6 @@ static int gfx_v11_0_hw_fini(void *handle)
44444437 struct amdgpu_device * adev = (struct amdgpu_device * )handle ;
44454438 int r ;
44464439
4447- amdgpu_irq_put (adev , & adev -> gfx .cp_ecc_error_irq , 0 );
44484440 amdgpu_irq_put (adev , & adev -> gfx .priv_reg_irq , 0 );
44494441 amdgpu_irq_put (adev , & adev -> gfx .priv_inst_irq , 0 );
44504442
@@ -5897,36 +5889,6 @@ static void gfx_v11_0_set_compute_eop_interrupt_state(struct amdgpu_device *adev
58975889 }
58985890}
58995891
5900- #define CP_ME1_PIPE_INST_ADDR_INTERVAL 0x1
5901- #define SET_ECC_ME_PIPE_STATE (reg_addr , state ) \
5902- do { \
5903- uint32_t tmp = RREG32_SOC15_IP(GC, reg_addr); \
5904- tmp = REG_SET_FIELD(tmp, CP_ME1_PIPE0_INT_CNTL, CP_ECC_ERROR_INT_ENABLE, state); \
5905- WREG32_SOC15_IP(GC, reg_addr, tmp); \
5906- } while (0)
5907-
5908- static int gfx_v11_0_set_cp_ecc_error_state (struct amdgpu_device * adev ,
5909- struct amdgpu_irq_src * source ,
5910- unsigned type ,
5911- enum amdgpu_interrupt_state state )
5912- {
5913- uint32_t ecc_irq_state = 0 ;
5914- uint32_t pipe0_int_cntl_addr = 0 ;
5915- int i = 0 ;
5916-
5917- ecc_irq_state = (state == AMDGPU_IRQ_STATE_ENABLE ) ? 1 : 0 ;
5918-
5919- pipe0_int_cntl_addr = SOC15_REG_OFFSET (GC , 0 , regCP_ME1_PIPE0_INT_CNTL );
5920-
5921- WREG32_FIELD15_PREREG (GC , 0 , CP_INT_CNTL_RING0 , CP_ECC_ERROR_INT_ENABLE , ecc_irq_state );
5922-
5923- for (i = 0 ; i < adev -> gfx .mec .num_pipe_per_mec ; i ++ )
5924- SET_ECC_ME_PIPE_STATE (pipe0_int_cntl_addr + i * CP_ME1_PIPE_INST_ADDR_INTERVAL ,
5925- ecc_irq_state );
5926-
5927- return 0 ;
5928- }
5929-
59305892static int gfx_v11_0_set_eop_interrupt_state (struct amdgpu_device * adev ,
59315893 struct amdgpu_irq_src * src ,
59325894 unsigned type ,
@@ -6341,11 +6303,6 @@ static const struct amdgpu_irq_src_funcs gfx_v11_0_priv_inst_irq_funcs = {
63416303 .process = gfx_v11_0_priv_inst_irq ,
63426304};
63436305
6344- static const struct amdgpu_irq_src_funcs gfx_v11_0_cp_ecc_error_irq_funcs = {
6345- .set = gfx_v11_0_set_cp_ecc_error_state ,
6346- .process = amdgpu_gfx_cp_ecc_error_irq ,
6347- };
6348-
63496306static const struct amdgpu_irq_src_funcs gfx_v11_0_rlc_gc_fed_irq_funcs = {
63506307 .process = gfx_v11_0_rlc_gc_fed_irq ,
63516308};
@@ -6361,9 +6318,6 @@ static void gfx_v11_0_set_irq_funcs(struct amdgpu_device *adev)
63616318 adev -> gfx .priv_inst_irq .num_types = 1 ;
63626319 adev -> gfx .priv_inst_irq .funcs = & gfx_v11_0_priv_inst_irq_funcs ;
63636320
6364- adev -> gfx .cp_ecc_error_irq .num_types = 1 ; /* CP ECC error */
6365- adev -> gfx .cp_ecc_error_irq .funcs = & gfx_v11_0_cp_ecc_error_irq_funcs ;
6366-
63676321 adev -> gfx .rlc_gc_fed_irq .num_types = 1 ; /* 0x80 FED error */
63686322 adev -> gfx .rlc_gc_fed_irq .funcs = & gfx_v11_0_rlc_gc_fed_irq_funcs ;
63696323
0 commit comments