drm/amdgpu: add CP_DEBUG register definition for GC9.0
Subsystems (2)
PATCH 1/2 drm/amdgpu: add CP_DEBUG register definition for GC9.0
From: Tao Zhou <[email protected]>
Add CP_DEBUG register definition.
--- drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_0_offset.h | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_0_offset.h +2 -0
@@ -2449,6 +2449,8 @@#define mmCP_ECC_FIRSTOCCURRENCE_RING2_BASE_IDX 0#define mmGB_EDC_MODE 0x107e#define mmGB_EDC_MODE_BASE_IDX 0 +#define mmCP_DEBUG 0x107f +#define mmCP_DEBUG_BASE_IDX 0#define mmCP_CPF_DEBUG 0x1080#define mmCP_PQ_WPTR_POLL_CNTL 0x1083#define mmCP_PQ_WPTR_POLL_CNTL_BASE_IDX 0
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1539066696-20803-1-git-send-email-tao.zhou1-5C7GfCeVMHo@public.gmane.org
PATCH 2/2 drm/amdgpu: fix CPDMA hang in PRT mode
From: Tao Zhou <[email protected]>
Fix CPDMA hang in PRT mode, set CPF_INT_DMA in reg CP_MECx_F32_INT_DIS for Compute and set DISABLE_GFX_HALT_ON_UTCL1_ERROR in reg CP_DEBUG for GFX
Affected ASICs: Vega10 Vega12 Raven
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +12 -3
@@ -133,7 +133,10 @@ static const struct soc15_reg_golden golden_settings_gc_9_0_vg10[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmRMI_UTCL1_CNTL2,0x00030000 ,0x00020000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_CONFIG_CNTL_1,0x0000000f ,0x01000107 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTD_CNTL,0x00001800 ,0x00000800 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmWD_UTCL1_CNTL,0x08000000 ,0x08000080 ) +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmWD_UTCL1_CNTL,0x08000000 ,0x08000080 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_MEC1_F32_INT_DIS,0x00000000 ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_MEC2_F32_INT_DIS,0x00000000 ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_DEBUG,0x00000000 ,0x00008000 ) }; static const struct soc15_reg_golden golden_settings_gc_9_0_vg20[] =
@@ -173,7 +176,10 @@ static const struct soc15_reg_golden golden_settings_gc_9_1[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTCP_CHAN_STEER_LO,0xffffffff ,0x00003120 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmVGT_CACHE_INVALIDATION,0x3fff3af3 ,0x19200000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmVGT_GS_MAX_WAVE_ID,0x00000fff ,0x000000ff ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmWD_UTCL1_CNTL,0x08000000 ,0x08000080 ) +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmWD_UTCL1_CNTL,0x08000000 ,0x08000080 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_MEC1_F32_INT_DIS,0x00000000 ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_MEC2_F32_INT_DIS,0x00000000 ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_DEBUG,0x00000000 ,0x00008000 ) }; static const struct soc15_reg_golden golden_settings_gc_9_1_rv1[] =
@@ -247,7 +253,10 @@ static const struct soc15_reg_golden golden_settings_gc_9_2_1_vg12[] =SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_CONFIG_CNTL_1,0xffff03ff ,0x01000107 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTCP_CHAN_STEER_HI,0xffffffff ,0x00000000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTCP_CHAN_STEER_LO,0xffffffff ,0x76325410 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTD_CNTL,0x01bd9f33 ,0x01000000 ) +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTD_CNTL,0x01bd9f33 ,0x01000000 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_MEC1_F32_INT_DIS,0x00000000 ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_MEC2_F32_INT_DIS,0x00000000 ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCP_DEBUG,0x00000000 ,0x00008000 ) }; static const u32 GFX_RLC_SRM_INDEX_CNTL_ADDR_OFFSETS[] =
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Christian König
Acked-byAm 09.10.2018 um 08:31 schrieb [email protected]:
Quoted 6 lines
From: Tao Zhou <[email protected]>
Add
CP_DEBUGregister definition.Change-Id I38b0e5accc9ed2f516f409f1ffd88a9690356083Signed-off-by Tao Zhou <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_0_offset.h | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_0_offset.h +0
-0
drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_0_offset.h line 2456
Quoted 8 lines
drivers/gpu/drm/amd/include/asic_reg/gc/gc_9_0_offset.h +2
-0@@ -2449,6 +2449,8 @@#define mmCP_ECC_FIRSTOCCURRENCE_RING2_BASE_IDX 0#define mmGB_EDC_MODE 0x107e#define mmGB_EDC_MODE_BASE_IDX 0 +#define mmCP_DEBUG 0x107f +#define mmCP_DEBUG_BASE_IDX 0#define mmCP_CPF_DEBUG 0x1080#define mmCP_PQ_WPTR_POLL_CNTL 0x1083#define mmCP_PQ_WPTR_POLL_CNTL_BASE_IDX 0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx