Skip to contentSkip to conversation

drm/amdgpu: fix CPDMA hang in PRT mode for VEGA20

PATCH In review Tao Zhou 3 participants 5 messages Jan 8, 2019 – Jan 9, 2019 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Tao Zhou

author
#0 lore raw

PATCH 1/1 drm/amdgpu: fix CPDMA hang in PRT mode for VEGA20

Fix CPDMA hang in PRT mode for both of VEGA10 and VEGA20

Change-Id I0e5e089d2192063c4a04fa6dbd534f25eb0177be
---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +5 -5
index 968b127c6c8f..fbca0494f871 100644
@@ -113,7 +113,10 @@ static const struct soc15_reg_golden golden_settings_gc_9_0[] =
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_HI, 0xffffffff, 0x4a2c0e68),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_LO, 0xffffffff, 0xb5d3f197),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_CACHE_INVALIDATION, 0x3fff3af3, 0x19200000),
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID, 0x00000fff, 0x000003ff)
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID, 0x00000fff, 0x000003ff),
+	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_vg10[] =
@@ -135,10 +138,7 @@ 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, 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)
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmWD_UTCL1_CNTL, 0x08000000, 0x08000080)
 };
 
 static const struct soc15_reg_golden golden_settings_gc_9_0_vg20[] =
Signature · 6 lines
2.17.1

_______________________________________________
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): [email protected]

Acked-by
#2 lore raw
Quoted 6 lines · Tao Zhou

Fix CPDMA hang in PRT mode for both of VEGA10 and VEGA20

Change-Id I0e5e089d2192063c4a04fa6dbd534f25eb0177be
Quoted 35 lines
---
 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +5 -6
index 968b127c6c8f..fbca0494f871 100644
@@ -113,7 +113,10 @@ static const struct soc15_reg_golden golden_settings_gc_9_0[] =
        SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_HI, 0xffffffff, 0x4a2c0e68),
        SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_LO, 0xffffffff, 0xb5d3f197),
        SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_CACHE_INVALIDATION, 0x3fff3af3, 0x19200000),
-       SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID, 0x00000fff, 0x000003ff)
+       SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID, 0x00000fff, 0x000003ff),
+       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_vg10[] =
@@ -135,10 +138,7 @@ 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, 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)
+       SOC15_REG_GOLDEN_VALUE(GC, 0, mmWD_UTCL1_CNTL, 0x08000000, 0x08000080)
 };
 
 static const struct soc15_reg_golden golden_settings_gc_9_0_vg20[] =
--

2.17.1

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#3 lore raw
In reply to a message not in the archive
Quoted 14 lines · Tao Zhou

Fix CPDMA hang in PRT mode for both of VEGA10 and VEGA20

Change-Id I0e5e089d2192063c4a04fa6dbd534f25eb0177be
---
  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
index 968b127c6c8f..fbca0494f871 100644

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden golden_settings_gc_9_0[] = · line 119

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +4 -1
@@ -113,7 +113,10 @@ static const struct soc15_reg_golden golden_settings_gc_9_0[] =
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_HI, 0xffffffff, 0x4a2c0e68),
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_LO, 0xffffffff, 0xb5d3f197),
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_CACHE_INVALIDATION, 0x3fff3af3, 0x19200000),
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID, 0x00000fff, 0x000003ff)
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID, 0x00000fff, 0x000003ff),
+	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)

IIRC, the CP_DEBUG is the key to fix the CPDMA hang, do we need other settings? or just to align the settings with latest status?

Jerry

Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
  };
 
  static const struct soc15_reg_golden golden_settings_gc_9_0_vg10[] =
@@ -135,10 +138,7 @@ static const struct soc15_reg_golden golden_settings_gc_9_0_vg10[] =
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmRMI_UTCL1_CNTL2, 0x00030000, 0x00020000),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden golden_settings_gc_9_0_vg10[] = · line 144

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -4
  	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, 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)
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmWD_UTCL1_CNTL, 0x08000000, 0x08000080)
  };
 
  static const struct soc15_reg_golden golden_settings_gc_9_0_vg20[] =

_______________________________________________
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): 8689099b-60f7-5fbe-41a0-bcc6556ed8ed-5C7GfCeVMHo@public.gmane.org

author
#5 lore raw
Quoted 41 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: 2019年1月9日 9:39
To: Zhou1, Tao <[email protected]>; [email protected]
Cc: Li, Yukun1 <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: fix CPDMA hang in PRT mode for VEGA20

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden

Quoted 15 lines · Tao Zhou

Fix CPDMA hang in PRT mode for both of VEGA10 and VEGA20

Change-Id I0e5e089d2192063c4a04fa6dbd534f25eb0177be
---
  drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
index 968b127c6c8f..fbca0494f871 100644
@@ -113,7 +113,10 @@ static const struct soc15_reg_golden

golden_settings_gc_9_0[] =

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 113

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_HI,

0xffffffff, 0x4a2c0e68),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 114

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_LO,

0xffffffff, 0xb5d3f197),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 115

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_CACHE_INVALIDATION,

0x3fff3af3, 0x19200000),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 116

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID,

0x00000fff, 0x000003ff)

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 116

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID,

0x00000fff, 0x000003ff),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 117

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_MEC1_F32_INT_DIS,

0x00000000, 0x00000800),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 118

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_MEC2_F32_INT_DIS,

0x00000000, 0x00000800),

Quoted 8 lines

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 119

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_DEBUG, 0x00000000,

0x00008000)
IIRC, the CP_DEBUG is the key to fix the CPDMA hang, do we need other settings?
or just to align the settings with latest status?

Jerry

Set CPF_INT_DMA in reg CP_MECx_F32_INT_DIS for Compute and set DISABLE_GFX_HALT_ON_UTCL1_ERROR in CP_DEBUG for GFX.

All the settings are needed.

Tao

Quoted 24 lines

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
  };
 
  static const struct soc15_reg_golden golden_settings_gc_9_0_vg10[] =
@@ -135,10 +138,7 @@ static const struct soc15_reg_golden

golden_settings_gc_9_0_vg10[] =

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 138

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmRMI_UTCL1_CNTL2,

0x00030000, 0x00020000),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 139

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmSPI_CONFIG_CNTL_1,

0x0000000f, 0x01000107),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 140

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
  	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTD_CNTL, 0x00001800,

0x00000800),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 138

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmWD_UTCL1_CNTL,

0x08000000, 0x08000080),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 139

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_MEC1_F32_INT_DIS,

0x00000000, 0x00000800),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 140

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_MEC2_F32_INT_DIS,

0x00000000, 0x00000800),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 141

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_DEBUG, 0x00000000,

0x00008000)

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 141

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmWD_UTCL1_CNTL,

0x08000000,

Quoted 3 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+0x08000080)
  };
 
Quoted 6 lines
Quoted 1 line

static const struct soc15_reg_golden golden_settings_gc_9_0_vg20[] =

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
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): MWHPR1201MB00319C4CA5173B44790BB8AFB08B0-3iK1xFAIwjpOCgnjW8YtvWrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/[email protected]

#7 lore raw
Quoted 46 lines · Tao
Quoted 46 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Zhang, Jerry(Junwei)
Sent: 2019年1月9日 9:39
To: Zhou1, Tao <[email protected]>; [email protected]
Cc: Li, Yukun1 <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: fix CPDMA hang in PRT mode for VEGA20

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden

Quoted 15 lines · Tao Zhou

Fix CPDMA hang in PRT mode for both of VEGA10 and VEGA20

Change-Id I0e5e089d2192063c4a04fa6dbd534f25eb0177be
---
   drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 +++++-----
   1 file changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
index 968b127c6c8f..fbca0494f871 100644
@@ -113,7 +113,10 @@ static const struct soc15_reg_golden

golden_settings_gc_9_0[] =

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 113

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
   	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_HI,

0xffffffff, 0x4a2c0e68),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 114

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
   	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTCP_CHAN_STEER_LO,

0xffffffff, 0xb5d3f197),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 115

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
   	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_CACHE_INVALIDATION,

0x3fff3af3, 0x19200000),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 116

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID,

0x00000fff, 0x000003ff)

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 116

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmVGT_GS_MAX_WAVE_ID,

0x00000fff, 0x000003ff),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 117

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_MEC1_F32_INT_DIS,

0x00000000, 0x00000800),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 118

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_MEC2_F32_INT_DIS,

0x00000000, 0x00000800),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 119

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_DEBUG, 0x00000000,

0x00008000)
IIRC, the CP_DEBUG is the key to fix the CPDMA hang, do we need other settings?
or just to align the settings with latest status?

Quoted 6 lines
Quoted 2 lines

Jerry

Set CPF_INT_DMA in reg CP_MECx_F32_INT_DIS for Compute and set DISABLE_GFX_HALT_ON_UTCL1_ERROR in CP_DEBUG for GFX.

All the settings are needed.

Thanks for confirmation. Almost forgot compute. That's fine. BTW, not sure PRT is used for compute as well.

Jerry

Quoted 32 lines

Tao

Quoted 29 lines

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
   };
 
   static const struct soc15_reg_golden golden_settings_gc_9_0_vg10[] =
@@ -135,10 +138,7 @@ static const struct soc15_reg_golden

golden_settings_gc_9_0_vg10[] =

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 138

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
   	SOC15_REG_GOLDEN_VALUE(GC, 0, mmRMI_UTCL1_CNTL2,

0x00030000, 0x00020000),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 139

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
   	SOC15_REG_GOLDEN_VALUE(GC, 0, mmSPI_CONFIG_CNTL_1,

0x0000000f, 0x01000107),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 140

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -0
   	SOC15_REG_GOLDEN_VALUE(GC, 0, mmTD_CNTL, 0x00001800,

0x00000800),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 138

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmWD_UTCL1_CNTL,

0x08000000, 0x08000080),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 139

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_MEC1_F32_INT_DIS,

0x00000000, 0x00000800),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 140

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_MEC2_F32_INT_DIS,

0x00000000, 0x00000800),

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 141

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCP_DEBUG, 0x00000000,

0x00008000)

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden · line 141

Quoted 1 line
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmWD_UTCL1_CNTL,

0x08000000,

drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c static const struct soc15_reg_golden golden_settings_gc_9_0_vg10[] = · line 144

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +1 -0
+0x08000080)
   };
 
   static const struct soc15_reg_golden golden_settings_gc_9_0_vg20[] =

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx