drm/amdgpu/gfx9: Update golden setting for gfx9_0.
Subsystems (2)
PATCH 1/4 drm/amdgpu/gfx9: Update golden setting for gfx9_0.
From: Feifei Xu <[email protected]>
Update golden_settings_gc_9_0[].
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +5 -12
@@ -72,29 +72,22 @@ MODULE_FIRMWARE("amdgpu/raven_rlc.bin");static const struct soc15_reg_golden golden_settings_gc_9_0[] = { -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCPC_UTCL1_CNTL,0x08000000 ,0x08000080 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCPF_UTCL1_CNTL,0x08000000 ,0x08000080 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmCPG_UTCL1_CNTL,0x08000000 ,0x08000080 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmDB_DEBUG2,0xf00fffff ,0x00000420 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmGB_GPU_ID,0x0000000f ,0x00000000 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmIA_UTCL1_CNTL,0x08000000 ,0x08000080 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_BINNER_EVENT_CNTL_3,0x00000003 ,0x82400024 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_ENHANCE,0x3fffffff ,0x00000001 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmPA_SC_LINE_STIPPLE_STATE,0x0000ff0f ,0x00000000 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmRLC_GPM_UTCL1_CNTL_0,0x08000000 ,0x08000080 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmRLC_GPM_UTCL1_CNTL_1,0x08000000 ,0x08000080 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmRLC_GPM_UTCL1_CNTL_2,0x08000000 ,0x08000080 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmRLC_PREWALKER_UTCL1_CNTL,0x08000000 ,0x08000080 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmRLC_SPM_UTCL1_CNTL,0x08000000 ,0x08000080 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSH_MEM_CONFIG,0x00001000 ,0x00001000 ), -SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_CONFIG_CNTL_1,0x0000000f ,0x01000107 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_RESOURCE_RESERVE_CU_0,0x0007ffff ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_RESOURCE_RESERVE_CU_1,0x0007ffff ,0x00000800 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_RESOURCE_RESERVE_EN_CU_0,0x01ffffff ,0x0000ff87 ), +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSPI_RESOURCE_RESERVE_EN_CU_1,0x01ffffff ,0x0000ff8f ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmSQC_CONFIG,0x03000000 ,0x020a2000 ),SOC15_REG_GOLDEN_VALUE (GC ,0 , mmTA_CNTL_AUX,0xfffffeef ,0x010b0000 ),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 , mmWD_UTCL1_CNTL,0x08000000 ,0x08000080 ) +SOC15_REG_GOLDEN_VALUE (GC ,0 , mmVGT_GS_MAX_WAVE_ID,0x00000fff ,0x000003ff ) }; static const struct soc15_reg_golden golden_settings_gc_9_0_vg10[] =
Signature · 6 lines
2.13.6 _______________________________________________ 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): 20180515144526.11815-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
PATCH 2/4 drm/amd/powerplay: new framework to honour DAL clock limits
From: Evan Quan <[email protected]>
This is needed for vega12 and vega20 which do not support legacy powerstate. With this new framework, the DAL clocks limits can also be honored on these asics.
--- drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 9 +++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 7 +++++++ drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h | 2 ++ drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 ++ 4 files changed, 20 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +9 -0
@@ -132,6 +132,15 @@ int phm_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,return 0 ; } +int phm_apply_clock_adjust_rules (struct pp_hwmgr *hwmgr) +{ +PHM_FUNC_CHECK (hwmgr); + +if (hwmgr->hwmgr_func->apply_clocks_adjust_rules !=NULL ) +return hwmgr->hwmgr_func->apply_clocks_adjust_rules (hwmgr); +return 0 ; +} +int phm_powerdown_uvd (struct pp_hwmgr *hwmgr) {PHM_FUNC_CHECK (hwmgr);
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c +7 -0
@@ -265,6 +265,13 @@ int psm_adjust_power_state_dynamic(struct pp_hwmgr *hwmgr, bool skip,if (skip)return 0 ; +if (!hwmgr->ps) +/* +* for vega12/vega20 which does not support power state manager +* DAL clock limits should also be honoured +*/ +phm_apply_clock_adjust_rules (hwmgr); +phm_display_configuration_changed (hwmgr);if (hwmgr->ps)
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h +2 -0
@@ -410,6 +410,8 @@ extern int phm_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,struct pp_power_state *adjusted_ps, const struct pp_power_state *current_ps); +extern int phm_apply_clock_adjust_rules (struct pp_hwmgr *hwmgr); +extern int phm_force_dpm_levels (struct pp_hwmgr *hwmgr,enum amd_dpm_forced_level level);extern int phm_display_configuration_changed (struct pp_hwmgr *hwmgr);extern int phm_notify_smc_display_config_after_ps_adjustment (struct pp_hwmgr *hwmgr);
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +2 -0
@@ -229,6 +229,8 @@ struct pp_hwmgr_func {struct pp_power_state *prequest_ps, const struct pp_power_state *pcurrent_ps); +int (*apply_clocks_adjust_rules)(struct pp_hwmgr *hwmgr); +int (*force_dpm_level)(struct pp_hwmgr *hw_mgr,enum amd_dpm_forced_level level);
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/4 drm/amd/powerplay: add a framework for perfroming pre display configuration change settings
In reply to a message not in the archiveFrom: Evan Quan <[email protected]>
--- drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 10 ++++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c | 2 ++ drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h | 1 + drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 1 + 4 files changed, 14 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c +10 -0
@@ -170,6 +170,16 @@ int phm_disable_clock_power_gatings(struct pp_hwmgr *hwmgr)return 0 ; } +int phm_pre_display_configuration_changed (struct pp_hwmgr *hwmgr) +{ +PHM_FUNC_CHECK (hwmgr); + +if (NULL != hwmgr->hwmgr_func->pre_display_config_changed) + hwmgr->hwmgr_func->pre_display_config_changed (hwmgr); + +return 0 ; + +}int phm_display_configuration_changed (struct pp_hwmgr *hwmgr) {
drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c +2 -0
@@ -272,6 +272,8 @@ int psm_adjust_power_state_dynamic(struct pp_hwmgr *hwmgr, bool skip,*/ phm_apply_clock_adjust_rules (hwmgr); +phm_pre_display_configuration_changed (hwmgr); +phm_display_configuration_changed (hwmgr);if (hwmgr->ps)
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h +1 -0
@@ -413,6 +413,7 @@ extern int phm_apply_state_adjust_rules(struct pp_hwmgr *hwmgr,extern int phm_apply_clock_adjust_rules (struct pp_hwmgr *hwmgr);extern int phm_force_dpm_levels (struct pp_hwmgr *hwmgr,enum amd_dpm_forced_level level); +extern int phm_pre_display_configuration_changed (struct pp_hwmgr *hwmgr);extern int phm_display_configuration_changed (struct pp_hwmgr *hwmgr);extern int phm_notify_smc_display_config_after_ps_adjustment (struct pp_hwmgr *hwmgr);extern int phm_register_irq_handlers (struct pp_hwmgr *hwmgr);
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +1 -0
@@ -254,6 +254,7 @@ struct pp_hwmgr_func { const void *state);int (*enable_clock_power_gating)(struct pp_hwmgr *hwmgr);int (*notify_smc_display_config_after_ps_adjustment)(struct pp_hwmgr *hwmgr); +int (*pre_display_config_changed)(struct pp_hwmgr *hwmgr);int (*display_config_changed)(struct pp_hwmgr *hwmgr);int (*disable_clock_power_gating)(struct pp_hwmgr *hwmgr); int (*update_clock_gatings)(struct pp_hwmgr *hwmgr,
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/4 drm/amdgpu: Drop the unused header files in soc15.c.
In reply to a message not in the archiveFrom: Feifei Xu <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/soc15.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc15.c +0 -2
@@ -41,8 +41,6 @@#include "sdma1/sdma1_4_0_offset.h" #include "hdp/hdp_4_0_offset.h" #include "hdp/hdp_4_0_sh_mask.h" -#include "mp/mp_9_0_offset.h" -#include "mp/mp_9_0_sh_mask.h" #include "smuio/smuio_9_0_offset.h" #include "smuio/smuio_9_0_sh_mask.h"
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx