All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: convert sienna_cichlid_populate_umd_state_clk() to use IP version
@ 2022-05-25  2:09 Alex Deucher
  2022-05-25  2:09 ` [PATCH] drm/amdgpu: simplify the logic in amdgpu_device_parse_gpu_info_fw() Alex Deucher
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Alex Deucher @ 2022-05-25  2:09 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

Rather than asic type.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 .../gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
index 78f3d9e722bb..871435cca3c1 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
@@ -1464,19 +1464,19 @@ static int sienna_cichlid_populate_umd_state_clk(struct smu_context *smu)
 	pstate_table->socclk_pstate.min = soc_table->min;
 	pstate_table->socclk_pstate.peak = soc_table->max;
 
-	switch (adev->asic_type) {
-	case CHIP_SIENNA_CICHLID:
-	case CHIP_NAVY_FLOUNDER:
+	switch (adev->ip_versions[MP1_HWIP][0]) {
+	case IP_VERSION(11, 0, 7):
+	case IP_VERSION(11, 0, 11):
 		pstate_table->gfxclk_pstate.standard = SIENNA_CICHLID_UMD_PSTATE_PROFILING_GFXCLK;
 		pstate_table->uclk_pstate.standard = SIENNA_CICHLID_UMD_PSTATE_PROFILING_MEMCLK;
 		pstate_table->socclk_pstate.standard = SIENNA_CICHLID_UMD_PSTATE_PROFILING_SOCCLK;
 		break;
-	case CHIP_DIMGREY_CAVEFISH:
+	case IP_VERSION(11, 0, 12):
 		pstate_table->gfxclk_pstate.standard = DIMGREY_CAVEFISH_UMD_PSTATE_PROFILING_GFXCLK;
 		pstate_table->uclk_pstate.standard = DIMGREY_CAVEFISH_UMD_PSTATE_PROFILING_MEMCLK;
 		pstate_table->socclk_pstate.standard = DIMGREY_CAVEFISH_UMD_PSTATE_PROFILING_SOCCLK;
 		break;
-	case CHIP_BEIGE_GOBY:
+	case IP_VERSION(11, 0, 13):
 		pstate_table->gfxclk_pstate.standard = BEIGE_GOBY_UMD_PSTATE_PROFILING_GFXCLK;
 		pstate_table->uclk_pstate.standard = BEIGE_GOBY_UMD_PSTATE_PROFILING_MEMCLK;
 		pstate_table->socclk_pstate.standard = BEIGE_GOBY_UMD_PSTATE_PROFILING_SOCCLK;
-- 
2.35.3


^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-06-07  0:37 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25  2:09 [PATCH] drm/amdgpu: convert sienna_cichlid_populate_umd_state_clk() to use IP version Alex Deucher
2022-05-25  2:09 ` [PATCH] drm/amdgpu: simplify the logic in amdgpu_device_parse_gpu_info_fw() Alex Deucher
2022-05-31 21:13   ` Alex Deucher
2022-06-01  2:00     ` Chen, Guchun
2022-05-25  2:09 ` [PATCH] drm/amdgpu: simplify amdgpu_ucode_get_load_type() Alex Deucher
2022-06-06 18:40   ` Alex Deucher
2022-06-07  0:37     ` Chen, Guchun
2022-05-25  2:09 ` [PATCH] drm/amdgpu: simplify amdgpu_device_asic_has_dc_support() Alex Deucher
2022-05-25  5:58   ` Chen, Guchun
2022-05-25  2:09 ` [PATCH] drm/amdgpu: fix up comment in amdgpu_device_asic_has_dc_support() Alex Deucher
2022-05-31 21:13   ` Alex Deucher
2022-06-02  7:53   ` Quan, Evan
2022-05-25  2:09 ` [PATCH] drm/amdgpu: convert sienna_cichlid_get_default_config_table_settings() to IP version Alex Deucher
2022-05-25  5:59   ` Chen, Guchun
2022-05-25  2:09 ` [PATCH] drm/amdgpu: convert nbio_v2_3_clear_doorbell_interrupt() " Alex Deucher
2022-05-31 21:13   ` Alex Deucher
2022-06-01  2:20     ` Chen, Guchun
2022-05-31 21:13 ` [PATCH] drm/amdgpu: convert sienna_cichlid_populate_umd_state_clk() to use " Alex Deucher
2022-06-01  1:59   ` Chen, Guchun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.