Skip to contentSkip to conversation

drm/amdgpu: add SPM golden settings for Navi10

PATCH In review Tianci Yin 3 participants 5 messages Apr 3, 2020 – Apr 6, 2020

Subsystems (2)
lore
Share & tools
lore

Tianci Yin

author
#0 lore raw

PATCH 1/1 drm/amdgpu: add SPM golden settings for Navi10

From: "Tianci.Yin" <[email protected]>

Add RLC_SPM golden settings

Change-Id I616e127171293d915cb3a05dee02f51cec8d8f6f
---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c        |    9 +
 .../gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h | 1058 +++++++++++++++++
 2 files changed, 1067 insertions(+)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +9 -0
index 70edbbf84338..7c96a894ad37 100644
@@ -48,6 +48,7 @@
 #include "v10_structs.h"
 #include "gfx_v10_0.h"
 #include "nbio_v2_3.h"
+#include "golden_gc_spm_10_1_0.h"
 
 /**
  * Navi10 has two graphic rings to share each graphic pipe.
@@ -138,6 +139,11 @@ static const struct soc15_reg_golden golden_settings_gc_10_0_nv10[] =
 	/* Pending on emulation bring up */
 };
 
+static const struct soc15_reg_golden golden_settings_gc_rlc_spm_10_0_nv10[] =
+{
+	GOLDEN_GC_SPM_10_1_0
+};
+
 static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =
 {
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCB_HW_CONTROL_4, 0xffffffff, 0x003c0014),
@@ -388,6 +394,9 @@ static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev)
 		soc15_program_register_sequence(adev,
 						golden_settings_gc_10_0_nv10,
 						(const u32)ARRAY_SIZE(golden_settings_gc_10_0_nv10));
+		soc15_program_register_sequence(adev,
+						golden_settings_gc_rlc_spm_10_0_nv10,
+						(const u32)ARRAY_SIZE(golden_settings_gc_rlc_spm_10_0_nv10));
 		break;
 	case CHIP_NAVI14:
 		soc15_program_register_sequence(adev,
drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h new file +1058 -0

1,058 lines not on this page · raw message

Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - Internal Distribution Only]

-----Original Message-----
From: Tianci Yin <[email protected]>
Sent: 2020年4月3日 13:30
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Hesik, Christopher <[email protected]>; Zhang, Hawking <[email protected]>; Xu, Feifei <[email protected]>; Yin, Tianci (Rico) <[email protected]>
Subject: [PATCH] drm/amdgpu: add SPM golden settings for Navi10

From: "Tianci.Yin" <[email protected]>

Add RLC_SPM golden settings

Change-Id I616e127171293d915cb3a05dee02f51cec8d8f6f
---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c        |    9 +
 .../gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h | 1058 +++++++++++++++++
 2 files changed, 1067 insertions(+)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +9 -0
index 70edbbf84338..7c96a894ad37 100644
@@ -48,6 +48,7 @@
 #include "v10_structs.h"
 #include "gfx_v10_0.h"
 #include "nbio_v2_3.h"
+#include "golden_gc_spm_10_1_0.h"
 
 /**
  * Navi10 has two graphic rings to share each graphic pipe.
@@ -138,6 +139,11 @@ static const struct soc15_reg_golden golden_settings_gc_10_0_nv10[] =
 	/* Pending on emulation bring up */
 };
 
+static const struct soc15_reg_golden golden_settings_gc_rlc_spm_10_0_nv10[] =
+{
+	GOLDEN_GC_SPM_10_1_0
+};
+
 static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =
 {
 	SOC15_REG_GOLDEN_VALUE(GC, 0, mmCB_HW_CONTROL_4, 0xffffffff, 0x003c0014),
@@ -388,6 +394,9 @@ static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev)
 		soc15_program_register_sequence(adev,
 						golden_settings_gc_10_0_nv10,
 						(const u32)ARRAY_SIZE(golden_settings_gc_10_0_nv10));
+		soc15_program_register_sequence(adev,
+						golden_settings_gc_rlc_spm_10_0_nv10,
+						(const u32)ARRAY_SIZE(golden_settings_gc_rlc_spm_10_0_nv10));
 		break;
 	case CHIP_NAVI14:
 		soc15_program_register_sequence(adev,
drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h new file +1058 -0

1,058 lines not on this page · raw message

Signature · 5 lines
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
author Reviewed-by Feifei Xu
#2 lore raw

[AMD Official Use Only - Internal Distribution Only]

Thanks Feifei!
________________________________
From: Xu, Feifei <[email protected]>
Sent: Friday, April 3, 2020 16:44
To: Yin, Tianci (Rico) <[email protected]>; [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Hesik, Christopher <[email protected]>; Zhang, Hawking <[email protected]>; Yin, Tianci (Rico) <[email protected]>
Subject: RE: [PATCH] drm/amdgpu: add SPM golden settings for Navi10

[AMD Official Use Only - Internal Distribution Only]

-----Original Message-----
From: Tianci Yin <[email protected]>
Sent: 2020年4月3日 13:30
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Hesik, Christopher <[email protected]>; Zhang, Hawking <[email protected]>; Xu, Feifei <[email protected]>; Yin, Tianci (Rico) <[email protected]>
Subject: [PATCH] drm/amdgpu: add SPM golden settings for Navi10

From: "Tianci.Yin" <[email protected]>

Add RLC_SPM golden settings

Change-Id I616e127171293d915cb3a05dee02f51cec8d8f6f
---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c        |    9 +
 .../gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h | 1058 +++++++++++++++++
 2 files changed, 1067 insertions(+)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +9 -0
index 70edbbf84338..7c96a894ad37 100644
@@ -48,6 +48,7 @@
 #include "v10_structs.h"
 #include "gfx_v10_0.h"
 #include "nbio_v2_3.h"
+#include "golden_gc_spm_10_1_0.h"
 
 /**
  * Navi10 has two graphic rings to share each graphic pipe.
@@ -138,6 +139,11 @@ static const struct soc15_reg_golden golden_settings_gc_10_0_nv10[] =
         /* Pending on emulation bring up */
 };
 
+static const struct soc15_reg_golden golden_settings_gc_rlc_spm_10_0_nv10[] =
+{
+       GOLDEN_GC_SPM_10_1_0
+};
+
 static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =
 {
         SOC15_REG_GOLDEN_VALUE(GC, 0, mmCB_HW_CONTROL_4, 0xffffffff, 0x003c0014),
@@ -388,6 +394,9 @@ static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev)
                 soc15_program_register_sequence(adev,
                                                 golden_settings_gc_10_0_nv10,
                                                 (const u32)ARRAY_SIZE(golden_settings_gc_10_0_nv10));
+               soc15_program_register_sequence(adev,
+                                               golden_settings_gc_rlc_spm_10_0_nv10,
+                                               (const u32)ARRAY_SIZE(golden_settings_gc_rlc_spm_10_0_nv10));
                 break;
         case CHIP_NAVI14:
                 soc15_program_register_sequence(adev,
drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h new file +1058 -0

1,058 lines not on this page · raw message

--
2.17.1

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

#3 lore raw
In reply to Tianci Yin
Quoted 18 lines · Tianci Yin

From: "Tianci.Yin" <[email protected]>

Add RLC_SPM golden settings

Change-Id I616e127171293d915cb3a05dee02f51cec8d8f6f
---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c        |    9 +
 .../gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h | 1058 +++++++++++++++++
 2 files changed, 1067 insertions(+)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -0
index 70edbbf84338..7c96a894ad37 100644

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c line 51

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -48,6 +48,7 @@
 #include "v10_structs.h"
 #include "gfx_v10_0.h"
 #include "nbio_v2_3.h"
+#include "golden_gc_spm_10_1_0.h"

Can we just include the table directly in this file instead of a separate header? One more comment below.

drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h

Quoted 30 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +8 -0
 /**
  * Navi10 has two graphic rings to share each graphic pipe.
@@ -138,6 +139,11 @@ static const struct soc15_reg_golden golden_settings_gc_10_0_nv10[] =
        /* Pending on emulation bring up */
 };
 
+static const struct soc15_reg_golden golden_settings_gc_rlc_spm_10_0_nv10[] =
+{
+       GOLDEN_GC_SPM_10_1_0
+};
+
 static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =
 {
        SOC15_REG_GOLDEN_VALUE(GC, 0, mmCB_HW_CONTROL_4, 0xffffffff, 0x003c0014),
@@ -388,6 +394,9 @@ static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev)
                soc15_program_register_sequence(adev,
                                                golden_settings_gc_10_0_nv10,
                                                (const u32)ARRAY_SIZE(golden_settings_gc_10_0_nv10));
+               soc15_program_register_sequence(adev,
+                                               golden_settings_gc_rlc_spm_10_0_nv10,
+                                               (const u32)ARRAY_SIZE(golden_settings_gc_rlc_spm_10_0_nv10));
                break;
        case CHIP_NAVI14:
                soc15_program_register_sequence(adev,
drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h new file +0 -0
new file mode 100644
index 000000000000..e65af4a6fcdd

This file is missing a license.

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

#4 lore raw

[AMD Official Use Only - Internal Distribution Only]

Thanks Alex!
I send it again, please help review.

BR,
Rico
________________________________
From: Alex Deucher <[email protected]>
Sent: Friday, April 3, 2020 22:53
To: Yin, Tianci (Rico) <[email protected]>
Cc: amd-gfx list <[email protected]>; Deucher, Alexander <[email protected]>; Xu, Feifei <[email protected]>; Zhang, Hawking <[email protected]>; Hesik, Christopher <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: add SPM golden settings for Navi10

Quoted 18 lines · Tianci Yin

From: "Tianci.Yin" <[email protected]>

Add RLC_SPM golden settings

Change-Id I616e127171293d915cb3a05dee02f51cec8d8f6f
---
 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c        |    9 +
 .../gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h | 1058 +++++++++++++++++
 2 files changed, 1067 insertions(+)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -0
index 70edbbf84338..7c96a894ad37 100644

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c line 51

Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -0
@@ -48,6 +48,7 @@
 #include "v10_structs.h"
 #include "gfx_v10_0.h"
 #include "nbio_v2_3.h"
+#include "golden_gc_spm_10_1_0.h"

Can we just include the table directly in this file instead of a separate header? One more comment below.

drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h

Quoted 30 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +8 -0
 /**
  * Navi10 has two graphic rings to share each graphic pipe.
@@ -138,6 +139,11 @@ static const struct soc15_reg_golden golden_settings_gc_10_0_nv10[] =
        /* Pending on emulation bring up */
 };
 
+static const struct soc15_reg_golden golden_settings_gc_rlc_spm_10_0_nv10[] =
+{
+       GOLDEN_GC_SPM_10_1_0
+};
+
 static const struct soc15_reg_golden golden_settings_gc_10_1_1[] =
 {
        SOC15_REG_GOLDEN_VALUE(GC, 0, mmCB_HW_CONTROL_4, 0xffffffff, 0x003c0014),
@@ -388,6 +394,9 @@ static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev)
                soc15_program_register_sequence(adev,
                                                golden_settings_gc_10_0_nv10,
                                                (const u32)ARRAY_SIZE(golden_settings_gc_10_0_nv10));
+               soc15_program_register_sequence(adev,
+                                               golden_settings_gc_rlc_spm_10_0_nv10,
+                                               (const u32)ARRAY_SIZE(golden_settings_gc_rlc_spm_10_0_nv10));
                break;
        case CHIP_NAVI14:
                soc15_program_register_sequence(adev,
drivers/gpu/drm/amd/amdgpu/golden_gc_spm_10_1_0.h new file +0 -0
new file mode 100644
index 000000000000..e65af4a6fcdd

This file is missing a license.

Alex

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