Skip to contentSkip to conversation

drm/amdgpu: fix incorrect GCR_GENERAL_CNTL address

PATCH Superseded Ji, Ruili 3 participants 3 messages Mar 28, 2022 – Mar 29, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ji, Ruili

author
#0 lore raw

PATCH 1/1 drm/amdgpu: fix incorrect GCR_GENERAL_CNTL address

From: Ruili Ji <[email protected]>

RMB shall use 0x1580 address for GCR_GENERAL_CNTL

Change-Id I10a85891986f31411f85fa3db46970aaa8a5bd03
---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +3 -3
index 99df18ae7316..e4c9d92ac381 100644
@@ -3300,7 +3300,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_3_3[] =
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0xffffffff, 0x00000280),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG4, 0xffffffff, 0x00800000),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG, 0x0c1807ff, 0x00000242),
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL, 0x1ff1ffff, 0x00000500),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL_Vangogh, 0x1ff1ffff, 0x00000500),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL1_PIPE_STEER, 0x000000ff, 0x000000e4),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_0, 0x77777777, 0x32103210),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_1, 0x77777777, 0x32103210),
@@ -3436,7 +3436,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_3_6[] =
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0xffffffff, 0x00000280),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG4, 0xffffffff, 0x00800000),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG, 0x0c1807ff, 0x00000042),
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL, 0x1ff1ffff, 0x00000500),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL_Vangogh, 0x1ff1ffff, 0x00000500),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL1_PIPE_STEER, 0x000000ff, 0x00000044),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_0, 0x77777777, 0x32103210),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_1, 0x77777777, 0x32103210),
@@ -3461,7 +3461,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_3_7[] = {
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0xffffffff, 0x00000280),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG4, 0xffffffff, 0x00800000),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG, 0x0c1807ff, 0x00000041),
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL, 0x1ff1ffff, 0x00000500),
+	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL_Vangogh, 0x1ff1ffff, 0x00000500),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL1_PIPE_STEER, 0x000000ff, 0x000000e4),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_0, 0x77777777, 0x32103210),
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_1, 0x77777777, 0x32103210),
Signature · 1 line
2.25.1
#1 lore raw

[AMD Official Use Only]

Thanks Ruili. Please remove Change-Id.
With this fixed, Reviewed-by: Aaron Liu <[email protected]>

Quoted 82 lines

-----Original Message-----
From: Ji, Ruili <[email protected]>
Sent: Monday, March 28, 2022 11:47 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Liu, Aaron <[email protected]>; Zhang, Yifan <[email protected]>; Liang, Prike <[email protected]>; Ji, Ruili <[email protected]>
Subject: [PATCH] drm/amdgpu: fix incorrect GCR_GENERAL_CNTL address

From: Ruili Ji <[email protected]>

RMB shall use 0x1580 address for GCR_GENERAL_CNTL

Change-Id I10a85891986f31411f85fa3db46970aaa8a5bd03
---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -0
index 99df18ae7316..e4c9d92ac381 100644
@@ -3300,7 +3300,7 @@ static const struct soc15_reg_golden

golden_settings_gc_10_3_3[] =
SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0xffffffff,
0x00000280),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG4, 0xffffffff,
0x00800000),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG,
0x0c1807ff, 0x00000242),

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL,

0x1ff1ffff, 0x00000500),

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0,

mmGCR_GENERAL_CNTL_Vangogh, 0x1ff1ffff,
+0x00000500),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL1_PIPE_STEER,
0x000000ff, 0x000000e4),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_0,
0x77777777, 0x32103210),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_1,
0x77777777, 0x32103210), @@ -3436,7 +3436,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_3_6[] =
SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0xffffffff,
0x00000280),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG4, 0xffffffff,
0x00800000),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG,
0x0c1807ff, 0x00000042),

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL,

0x1ff1ffff, 0x00000500),

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0,

mmGCR_GENERAL_CNTL_Vangogh, 0x1ff1ffff,
+0x00000500),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL1_PIPE_STEER,
0x000000ff, 0x00000044),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_0,
0x77777777, 0x32103210),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_1,
0x77777777, 0x32103210), @@ -3461,7 +3461,7 @@ static const struct soc15_reg_golden golden_settings_gc_10_3_7[] = {
SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0xffffffff,
0x00000280),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG4, 0xffffffff,
0x00800000),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG,
0x0c1807ff, 0x00000041),

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -1
-	SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL,

0x1ff1ffff, 0x00000500),

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
+	SOC15_REG_GOLDEN_VALUE(GC, 0,

mmGCR_GENERAL_CNTL_Vangogh, 0x1ff1ffff, +0x00000500),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL1_PIPE_STEER,
0x000000ff, 0x000000e4),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_0,
0x77777777, 0x32103210),
SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_1,
0x77777777, 0x32103210),
--
2.25.1

Acked-by on v1 1/1
#2 lore raw
In reply to Ji, Ruili

[Public]

Thanks for the correcting fix and I confirm on the gfx1037 exactly need update the mmGCR_GENERAL_CNTL offset to 0x1580.

Meanwhile, please confirm whether this change also apply in the gfx1036, anyway this patch is

Quoted 82 lines

-----Original Message-----
From: Ji, Ruili <[email protected]>
Sent: Monday, March 28, 2022 11:47 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Liu, Aaron <[email protected]>; Zhang, Yifan <[email protected]>; Liang, Prike <[email protected]>; Ji, Ruili <[email protected]>
Subject: [PATCH] drm/amdgpu: fix incorrect GCR_GENERAL_CNTL address

From: Ruili Ji <[email protected]>

RMB shall use 0x1580 address for GCR_GENERAL_CNTL

Change-Id I10a85891986f31411f85fa3db46970aaa8a5bd03
---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -0
index 99df18ae7316..e4c9d92ac381 100644
@@ -3300,7 +3300,7 @@ static const struct soc15_reg_golden

golden_settings_gc_10_3_3[] =

      SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0xffffffff,
0x00000280),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG4, 0xffffffff,
0x00800000),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG,

0x0c1807ff, 0x00000242),
- SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL,
0x1ff1ffff, 0x00000500),
+ SOC15_REG_GOLDEN_VALUE(GC, 0,
mmGCR_GENERAL_CNTL_Vangogh, 0x1ff1ffff,
+0x00000500),

      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL1_PIPE_STEER, 0x000000ff,
0x000000e4),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_0,
0x77777777, 0x32103210),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_1,
0x77777777, 0x32103210), @@ -3436,7 +3436,7 @@ static const struct
soc15_reg_golden golden_settings_gc_10_3_6[] =
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0xffffffff,
0x00000280),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG4, 0xffffffff,
0x00800000),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG,

0x0c1807ff, 0x00000042),
- SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL,
0x1ff1ffff, 0x00000500),
+ SOC15_REG_GOLDEN_VALUE(GC, 0,
mmGCR_GENERAL_CNTL_Vangogh, 0x1ff1ffff,
+0x00000500),

      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL1_PIPE_STEER, 0x000000ff,
0x00000044),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_0,
0x77777777, 0x32103210),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_1,
0x77777777, 0x32103210), @@ -3461,7 +3461,7 @@ static const struct
soc15_reg_golden golden_settings_gc_10_3_7[] = {
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG3, 0xffffffff,
0x00000280),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmDB_DEBUG4, 0xffffffff,
0x00800000),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGB_ADDR_CONFIG,

0x0c1807ff, 0x00000041),
- SOC15_REG_GOLDEN_VALUE(GC, 0, mmGCR_GENERAL_CNTL,
0x1ff1ffff, 0x00000500),
+ SOC15_REG_GOLDEN_VALUE(GC, 0,
mmGCR_GENERAL_CNTL_Vangogh, 0x1ff1ffff,
+0x00000500),

      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL1_PIPE_STEER, 0x000000ff,
0x000000e4),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_0,
0x77777777, 0x32103210),
      SOC15_REG_GOLDEN_VALUE(GC, 0, mmGL2_PIPE_STEER_1,

0x77777777, 0x32103210),
--
2.25.1