drm/amdkfd: Fix sq_intr error typo
Subsystems (3)
PATCH 1/1 drm/amdkfd: Fix sq_intr error typo
Here the register field should be read from context_id1 rather than 0 as indicated by the macro name.
Fixes cc009e613de6 ("drm/amdkfd: Add KFD support for soc21 v3")
Signed-off-by Yunxiang Li <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c +2 -2
@@ -184,8 +184,8 @@ static void print_sq_intr_info_error(uint32_t context_id0, uint32_t context_id1)REG_GET_FIELD (context_id0,SQ_INTERRUPT_WORD_ERROR_CTXID0 ,SH_ID ),REG_GET_FIELD (context_id0,SQ_INTERRUPT_WORD_ERROR_CTXID0 ,PRIV ),REG_GET_FIELD (context_id0,SQ_INTERRUPT_WORD_ERROR_CTXID0 ,WAVE_ID ), -REG_GET_FIELD (context_id0,SQ_INTERRUPT_WORD_ERROR_CTXID1 ,SIMD_ID ), - REG_GET_FIELD(context_id0, SQ_INTERRUPT_WORD_ERROR_CTXID1, WGP_ID)); +REG_GET_FIELD (context_id1,SQ_INTERRUPT_WORD_ERROR_CTXID1 ,SIMD_ID ), + REG_GET_FIELD(context_id1, SQ_INTERRUPT_WORD_ERROR_CTXID1, WGP_ID)); } static void event_interrupt_poison_consumption_v11(struct kfd_node *dev,
Signature · 1 line
2.34.1