drm/amd/pm: wrapper for postponing some setup job after DAL initializatioa(V2)
Subsystems (3)
PATCH 1/9 drm/amd/pm: wrapper for postponing some setup job after DAL initializatioa(V2)
So that ASIC specific actions can be added.
V2: better namings
--- drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 1 + drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ++++++ drivers/gpu/drm/amd/pm/swsmu/smu_internal.h | 1 + 3 files changed, 8 insertions(+)
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h +1 -0
@@ -600,6 +600,7 @@ struct pptable_funcs {int (*gfx_ulv_control)(struct smu_context *smu,bool enablement);int (*deep_sleep_control)(struct smu_context *smu,bool enablement);int (*get_fan_parameters)(struct smu_context *smu); +int (*post_init)(struct smu_context *smu); }; typedef enum {
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +6 -0
@@ -473,6 +473,12 @@ static int smu_late_init(void *handle)if (!smu->pm_enabled)return 0 ; + ret =smu_post_init (smu); +if (ret) { +dev_err (adev->dev,"Failed to post smu init!\n" ); +return ret; + } + ret =smu_set_default_od_settings (smu);if (ret) {dev_err (adev->dev,"Failed to setup default OD settings!\n" );
drivers/gpu/drm/amd/pm/swsmu/smu_internal.h +1 -0
@@ -95,6 +95,7 @@#define smu_gfx_ulv_control (smu, enablement) smu_ppt_funcs(gfx_ulv_control, 0, smu, enablement)#define smu_deep_sleep_control (smu, enablement) smu_ppt_funcs(deep_sleep_control, 0, smu, enablement)#define smu_get_fan_parameters (smu) smu_ppt_funcs(get_fan_parameters, 0, smu) +#define smu_post_init (smu) smu_ppt_funcs(post_init, 0, smu)#endif #endif
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/9 drm/amd/pm: postpone SOCCLK/UCLK enablement after DAL initialization(V2)
This is needed for Navi1X only. And it may help for display missing or hang issue seen on some high resolution monitors.
V2: no UCLK DPM enablement for Navi10 A0 secure SKU
--- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 60 ++++++++++++------- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 6 +- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h | 4 ++ 3 files changed, 46 insertions(+), 24 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +39 -21
@@ -279,9 +279,6 @@ navi10_get_allowed_feature_mask(struct smu_context *smu, | FEATURE_MASK(FEATURE_FW_CTF_BIT) |FEATURE_MASK (FEATURE_OUT_OF_BAND_MONITOR_BIT ); -if (adev->pm.pp_feature &PP_SOCCLK_DPM_MASK ) - *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_DPM_SOCCLK_BIT ); -if (adev->pm.pp_feature &PP_SCLK_DPM_MASK ) *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_DPM_GFXCLK_BIT );
@@ -291,11 +288,6 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,if (adev->pm.pp_feature &PP_DCEFCLK_DPM_MASK ) *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_DPM_DCEFCLK_BIT ); -if (adev->pm.pp_feature &PP_MCLK_DPM_MASK ) - *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_DPM_UCLK_BIT ) - |FEATURE_MASK (FEATURE_MEM_VDDCI_SCALING_BIT ) - |FEATURE_MASK (FEATURE_MEM_MVDD_SCALING_BIT ); -if (adev->pm.pp_feature &PP_ULV_MASK ) *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_GFX_ULV_BIT );
@@ -320,19 +312,12 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,if (smu->dc_controlled_by_gpio) *(uint64_t *)feature_mask |=FEATURE_MASK (FEATURE_ACDC_BIT ); -/* disable DPM UCLK and DS SOCCLK on navi10 A0 secure board */ -if (is_asic_secure (smu)) { -/* only for navi10 A0 */ -if ((adev->asic_type ==CHIP_NAVI10 ) && - (adev->rev_id ==0 )) { - *(uint64_t *)feature_mask &= - ~(FEATURE_MASK (FEATURE_DPM_UCLK_BIT ) - |FEATURE_MASK (FEATURE_MEM_VDDCI_SCALING_BIT ) - |FEATURE_MASK (FEATURE_MEM_MVDD_SCALING_BIT )); - *(uint64_t *)feature_mask &= - ~FEATURE_MASK (FEATURE_DS_SOCCLK_BIT ); - } - } +/* DS SOCCLK enablement should be skipped for navi10 A0 secure board */ +if (is_asic_secure (smu) && + (adev->asic_type ==CHIP_NAVI10 ) && + (adev->rev_id ==0 )) + *(uint64_t *)feature_mask &= + ~FEATURE_MASK (FEATURE_DS_SOCCLK_BIT );return 0 ; }
@@ -2578,6 +2563,38 @@ static int navi10_enable_mgpu_fan_boost(struct smu_context *smu) NULL); } +static int navi10_post_smu_init (struct smu_context *smu) +{ +struct smu_feature *feature = &smu->smu_feature; +struct amdgpu_device *adev = smu->adev; +uint64_t feature_mask =0 ; + +/* For Naiv1x, enable these features only after DAL initialization */ +if (adev->pm.pp_feature &PP_SOCCLK_DPM_MASK ) + feature_mask |=FEATURE_MASK (FEATURE_DPM_SOCCLK_BIT ); + +/* DPM UCLK enablement should be skipped for navi10 A0 secure board */ +if (!(is_asic_secure (smu) && + (adev->asic_type ==CHIP_NAVI10 ) && + (adev->rev_id ==0 )) && + (adev->pm.pp_feature &PP_MCLK_DPM_MASK )) + feature_mask |=FEATURE_MASK (FEATURE_DPM_UCLK_BIT ) + |FEATURE_MASK (FEATURE_MEM_VDDCI_SCALING_BIT ) + |FEATURE_MASK (FEATURE_MEM_MVDD_SCALING_BIT ); + +if (!feature_mask) +return 0 ; + +bitmap_or (feature->allowed, + feature->allowed, + (unsigned long *)(&feature_mask), +SMU_FEATURE_MAX ); + +return smu_cmn_feature_update_enable_state (smu, + feature_mask, + true); +} +static const struct pptable_funcs navi10_ppt_funcs = { .get_allowed_feature_mask = navi10_get_allowed_feature_mask, .set_default_dpm_table = navi10_set_default_dpm_table,
@@ -2661,6 +2678,7 @@ static const struct pptable_funcs navi10_ppt_funcs = { .gfx_ulv_control = smu_v11_0_gfx_ulv_control, .deep_sleep_control = smu_v11_0_deep_sleep_control, .get_fan_parameters = navi10_get_fan_parameters, + .post_init = navi10_post_smu_init, };void navi10_set_ppt_funcs (struct smu_context *smu)
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c +3 -3
@@ -343,9 +343,9 @@ int smu_cmn_get_enabled_mask(struct smu_context *smu,return ret; } -static int smu_cmn_feature_update_enable_state (struct smu_context *smu, -uint64_t feature_mask, -bool enabled) +int smu_cmn_feature_update_enable_state (struct smu_context *smu, +uint64_t feature_mask, +bool enabled) {struct smu_feature *feature = &smu->smu_feature;int ret =0 ;
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h +4 -0
@@ -52,6 +52,10 @@ int smu_cmn_get_enabled_mask(struct smu_context *smu,uint32_t *feature_mask, uint32_t num); +int smu_cmn_feature_update_enable_state (struct smu_context *smu, +uint64_t feature_mask, +bool enabled); +int smu_cmn_feature_set_enabled (struct smu_context *smu,enum smu_feature_mask mask,bool enable);
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/9 drm/amd/pm: put Navi1X umc cdr workaround in post_smu_init
In reply to Evan QuanThat's where the uclk dpm get enabled and then the uclk cdr workaround can be applied.
--- drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 1 - drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 6 ------ .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 18 ++++++++++++++---- drivers/gpu/drm/amd/pm/swsmu/smu_internal.h | 1 - 4 files changed, 14 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h +0 -1
@@ -590,7 +590,6 @@ struct pptable_funcs {int (*mode2_reset)(struct smu_context *smu);int (*get_dpm_ultimate_freq)(struct smu_context *smu,enum smu_clk_type clk_type,uint32_t *min,uint32_t *max);int (*set_soft_freq_limited_range)(struct smu_context *smu,enum smu_clk_type clk_type,uint32_t min,uint32_t max); -int (*disable_umc_cdr_12gbps_workaround)(struct smu_context *smu);int (*set_power_source)(struct smu_context *smu,enum smu_power_src_type power_src);void (*log_thermal_throttling_event)(struct smu_context *smu);size_t (*get_pp_feature_mask)(struct smu_context *smu,char *buf);
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +0 -6
@@ -975,12 +975,6 @@ static int smu_smc_hw_setup(struct smu_context *smu)return ret; } - ret =smu_disable_umc_cdr_12gbps_workaround (smu); -if (ret) { -dev_err (adev->dev,"Workaround failed to disable UMC CDR feature on 12Gbps SKU!\n" ); -return ret; - } -/* * For Navi1X, manually switch it to AC mode as PMFW * may boot it with DC mode.
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +14 -4
@@ -2568,6 +2568,7 @@ static int navi10_post_smu_init(struct smu_context *smu)struct smu_feature *feature = &smu->smu_feature;struct amdgpu_device *adev = smu->adev;uint64_t feature_mask =0 ; +int ret =0 ;/* For Naiv1x, enable these features only after DAL initialization */ if (adev->pm.pp_feature &PP_SOCCLK_DPM_MASK )
@@ -2590,9 +2591,19 @@ static int navi10_post_smu_init(struct smu_context *smu) (unsigned long *)(&feature_mask), SMU_FEATURE_MAX); -return smu_cmn_feature_update_enable_state (smu, - feature_mask, - true); + ret =smu_cmn_feature_update_enable_state (smu, + feature_mask, + true); +if (ret) { +dev_err (adev->dev,"Failed to post uclk/socclk dpm enablement!\n" ); +return ret; + } + + ret =navi10_disable_umc_cdr_12gbps_workaround (smu); +if (ret) +dev_err (adev->dev,"Failed to apply umc cdr workaround!\n" ); + +return ret; }static const struct pptable_funcs navi10_ppt_funcs = {
@@ -2669,7 +2680,6 @@ static const struct pptable_funcs navi10_ppt_funcs = { .set_default_od_settings = navi10_set_default_od_settings, .od_edit_dpm_table = navi10_od_edit_dpm_table, .run_btc = navi10_run_btc, - .disable_umc_cdr_12gbps_workaround = navi10_disable_umc_cdr_12gbps_workaround, .set_power_source = smu_v11_0_set_power_source, .get_pp_feature_mask = smu_cmn_get_pp_feature_mask, .set_pp_feature_mask = smu_cmn_set_pp_feature_mask,
drivers/gpu/drm/amd/pm/swsmu/smu_internal.h +0 -1
@@ -83,7 +83,6 @@#define smu_asic_set_performance_level (smu, level) smu_ppt_funcs(set_performance_level, -EINVAL, smu, level)#define smu_dump_pptable (smu) smu_ppt_funcs(dump_pptable, 0, smu)#define smu_update_pcie_parameters (smu, pcie_gen_cap, pcie_width_cap) smu_ppt_funcs(update_pcie_parameters, 0, smu, pcie_gen_cap, pcie_width_cap) -#define smu_disable_umc_cdr_12gbps_workaround (smu) smu_ppt_funcs(disable_umc_cdr_12gbps_workaround, 0, smu)#define smu_set_power_source (smu, power_src) smu_ppt_funcs(set_power_source, 0, smu, power_src)#define smu_i2c_init (smu, control) smu_ppt_funcs(i2c_init, 0, smu, control)#define smu_i2c_fini (smu, control) smu_ppt_funcs(i2c_fini, 0, smu, control)
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/9 drm/amd/pm: revise the umc hybrid cdr workaround
In reply to Evan QuanDrop the unused message(SMU_MSG_DAL_DISABLE_DUMMY_PSTATE_CHANGE). And do not apply this workaround when the max uclk frequency is greater than 750Mhz.
--- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 61 +++++++++++-------- 1 file changed, 34 insertions(+), 27 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +34 -27
@@ -2181,18 +2181,6 @@ static int navi10_run_btc(struct smu_context *smu)return ret; } -static int navi10_dummy_pstate_control (struct smu_context *smu,bool enable) -{ -int result =0 ; - -if (!enable) - result =smu_cmn_send_smc_msg (smu,SMU_MSG_DAL_DISABLE_DUMMY_PSTATE_CHANGE ,NULL ); -else - result =smu_cmn_send_smc_msg (smu,SMU_MSG_DAL_ENABLE_DUMMY_PSTATE_CHANGE ,NULL ); - -return result; -} -static inline bool navi10_need_umc_cdr_12gbps_workaround (struct amdgpu_device *adev) {if (adev->asic_type !=CHIP_NAVI10 )
@@ -2208,32 +2196,32 @@ static inline bool navi10_need_umc_cdr_12gbps_workaround(struct amdgpu_device *areturn false; } -static int navi10_disable_umc_cdr_12gbps_workaround (struct smu_context *smu) +static int navi10_umc_hybrid_cdr_workaround (struct smu_context *smu) {uint32_t uclk_count, uclk_min, uclk_max; -uint32_t smu_version;int ret =0 ; -if (!navi10_need_umc_cdr_12gbps_workaround (smu->adev)) -return 0 ; - - ret =smu_cmn_get_smc_version (smu,NULL , &smu_version); -if (ret) -return ret; - -/* This workaround is available only for 42.50 or later SMC firmwares */ -if (smu_version <0x2A3200 ) +/* This workaround can be applied only with uclk dpm enabled */ +if (!smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_UCLK_BIT ))return 0 ; ret =smu_v11_0_get_dpm_level_count (smu,SMU_UCLK , &uclk_count);if (ret)return ret; - ret =smu_v11_0_get_dpm_freq_by_index (smu,SMU_UCLK , (uint16_t )0 , &uclk_min); + ret =smu_v11_0_get_dpm_freq_by_index (smu,SMU_UCLK , (uint16_t )(uclk_count -1 ), &uclk_max);if (ret)return ret; - ret =smu_v11_0_get_dpm_freq_by_index (smu,SMU_UCLK , (uint16_t )(uclk_count -1 ), &uclk_max); +/* +* The NAVI10_UMC_HYBRID_CDR_WORKAROUND_UCLK_THRESHOLD is 750Mhz. +* This workaround is needed only when the max uclk frequency +* not greater than that. +*/ +if (uclk_max >0x2EE ) +return 0 ; + + ret =smu_v11_0_get_dpm_freq_by_index (smu,SMU_UCLK , (uint16_t )0 , &uclk_min);if (ret)return ret;
@@ -2250,8 +2238,27 @@ static int navi10_disable_umc_cdr_12gbps_workaround(struct smu_context *smu)/* * In this case, SMU already disabled dummy pstate during enablement * of UCLK DPM, we have to re-enabled it. -* */ -return navi10_dummy_pstate_control (smu, true); +*/ +return smu_cmn_send_smc_msg (smu,SMU_MSG_DAL_ENABLE_DUMMY_PSTATE_CHANGE ,NULL ); +} + +static int navi10_disable_umc_cdr_12gbps_workaround (struct smu_context *smu) +{ +uint32_t smu_version; +int ret =0 ; + +if (!navi10_need_umc_cdr_12gbps_workaround (smu->adev)) +return 0 ; + + ret =smu_cmn_get_smc_version (smu,NULL , &smu_version); +if (ret) +return ret; + +/* This workaround is available only for 42.50 or later SMC firmwares */ +if (smu_version <0x2A3200 ) +return 0 ; + +return navi10_umc_hybrid_cdr_workaround (smu); } static void navi10_fill_i2c_req(SwI2cRequest_t *req, bool write,
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 5/9 drm/amd/pm: allocate a new buffer for pstate dummy reading
In reply to Evan QuanThis dummy reading buffer will be used for the new Navi1x UMC CDR workaround.
--- drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 1 + drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 45 +++++++++++++++++++++++ 2 files changed, 46 insertions(+)
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h +1 -0
@@ -270,6 +270,7 @@ struct smu_table_context*/ struct smu_table driver_table;struct smu_table memory_pool; +struct smu_table dummy_read_1_table;uint8_t thermal_controller_type;void *overdrive_table;
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +45 -0
63 lines not on this page · raw message
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 6/9 drm/amd/pm: implement a new umc cdr workaround
In reply to Evan QuanBy uploading dummy pstate tables.
--- .../gpu/drm/amd/pm/inc/smu_11_0_cdr_table.h | 194 ++++++++++++++++++ drivers/gpu/drm/amd/pm/inc/smu_types.h | 2 + drivers/gpu/drm/amd/pm/inc/smu_v11_0_ppsmc.h | 5 +- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 34 +++ 4 files changed, 234 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/amd/pm/inc/smu_11_0_cdr_table.h
drivers/gpu/drm/amd/pm/inc/smu_11_0_cdr_table.h new file +194 -0
@@ -0,0 +1,194 @@ +/* +* Copyright 2020 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +*/ + + +#ifndef SMU_11_0_CDR_TABLE +#define SMU_11_0_CDR_TABLE + + +#pragma pack(push, 1) + +/// CDR table : PRBS sequence for DQ toggles + +/*static unsigned int NoDbiPrbs7[] = +{ +//256 bytes, 256 byte aligned +0x0f0f0f0f, 0x0f0f0f0f, 0x0f0f0f0f, 0xf0f00f0f, 0x0f0f0f0f, 0x0f0f0f0f, 0xf0f0f0f0, 0x0f0f0f0f, 0x0f0f0f0f, 0xf0f00f0f, 0xf0f00f0f, 0x0f0f0f0f, 0xf0f0f0f0, 0xf0f0f0f0, 0x0f0f0f0f, 0xf0f00f0f, +0x0f0f0f0f, 0xf0f00f0f, 0xf0f0f0f0, 0x0f0f0f0f, 0xf0f0f0f0, 0xf0f00f0f, 0xf0f00f0f, 0xf0f00f0f, 0x0f0ff0f0, 0xf0f0f0f0, 0xf0f0f0f0, 0x0f0ff0f0, 0x0f0f0f0f, 0x0f0f0f0f, 0xf0f0f0f0, 0xf0f00f0f, +0x0f0f0f0f, 0xf0f00f0f, 0x0f0ff0f0, 0x0f0f0f0f, 0xf0f0f0f0, 0x0f0ff0f0, 0xf0f00f0f, 0xf0f00f0f, 0xf0f0f0f0, 0x0f0ff0f0, 0xf0f0f0f0, 0xf0f00f0f, 0xf0f0f0f0, 0x0f0f0f0f, 0x0f0ff0f0, 0xf0f00f0f, +0xf0f00f0f, 0x0f0ff0f0, 0x0f0ff0f0, 0xf0f0f0f0, 0x0f0ff0f0, 0xf0f0f0f0, 0x0f0f0f0f, 0xf0f0f0f0, 0x0f0f0f0f, 0xf0f00f0f, 0xf0f00f0f, 0xf0f00f0f, 0xf0f0f0f0, 0xf0f0f0f0, 0xf0f0f0f0, 0xf0f0ffff, +}; + + +static unsigned int DbiPrbs7[] = +{ +// 256 bytes, 256 byte aligned +0xffffffff, 0xffffffff, 0xffffffff, 0x0000ffff, 0xffffffff, 0xffffffff, 0x00000000, 0xffffffff, 0xffffffff, 0x0000ffff, 0x0000ffff, 0xffffffff, 0x00000000, 0x00000000, 0xffffffff, 0x0000ffff, +0xffffffff, 0x0000ffff, 0x00000000, 0xffffffff, 0x00000000, 0x0000ffff, 0x0000ffff, 0x0000ffff, 0xffff0000, 0x00000000, 0x00000000, 0xffff0000, 0xffffffff, 0xffffffff, 0x00000000, 0x0000ffff, +0xffffffff, 0x0000ffff, 0xffff0000, 0xffffffff, 0x00000000, 0xffff0000, 0x0000ffff, 0x0000ffff, 0x00000000, 0xffff0000, 0x00000000, 0x0000ffff, 0x00000000, 0xffffffff, 0xffff0000, 0x0000ffff, +0x0000ffff, 0xffff0000, 0xffff0000, 0x00000000, 0xffff0000, 0x00000000, 0xffffffff, 0x00000000, 0xffffffff, 0x0000ffff, 0x0000ffff, 0x0000ffff, 0x00000000, 0x00000000, 0x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00f0f ,0x0f0ff0f0 ,0x0f0ff0f0 ,0xf0f0f0f0 ,0x0f0ff0f0 ,0xf0f0f0f0 ,0x0f0f0f0f ,0xf0f0f0f0 ,0x0f0f0f0f ,0xf0f00f0f ,0xf0f00f0f ,0xf0f00f0f ,0xf0f0f0f0 ,0xf0f0f0f0 ,0xf0f0f0f0 ,0xf0f0ffff , +}; + +// 4096 bytes, 256 byte aligned +static unsigned int DbiPrbs7[] = +{ +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +0xffffffff ,0xffffffff ,0xffffffff ,0x0000ffff ,0xffffffff ,0xffffffff ,0x00000000 ,0xffffffff ,0xffffffff ,0x0000ffff ,0x0000ffff ,0xffffffff ,0x00000000 ,0x00000000 ,0xffffffff ,0x0000ffff , +0xffffffff ,0x0000ffff ,0x00000000 ,0xffffffff ,0x00000000 ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0xffff0000 ,0x00000000 ,0x00000000 ,0xffff0000 ,0xffffffff ,0xffffffff ,0x00000000 ,0x0000ffff , +0xffffffff ,0x0000ffff ,0xffff0000 ,0xffffffff ,0x00000000 ,0xffff0000 ,0x0000ffff ,0x0000ffff ,0x00000000 ,0xffff0000 ,0x00000000 ,0x0000ffff ,0x00000000 ,0xffffffff ,0xffff0000 ,0x0000ffff , +0x0000ffff ,0xffff0000 ,0xffff0000 ,0x00000000 ,0xffff0000 ,0x00000000 ,0xffffffff ,0x00000000 ,0xffffffff ,0x0000ffff ,0x0000ffff ,0x0000ffff ,0x00000000 ,0x00000000 ,0x00000000 ,0x0000ffff , +}; + +#pragma pack(pop) + +#endif
drivers/gpu/drm/amd/pm/inc/smu_types.h +2 -0
@@ -173,6 +173,8 @@__SMU_DUMMY_MAP (GmiPwrDnControl), \__SMU_DUMMY_MAP (DAL_DISABLE_DUMMY_PSTATE_CHANGE ), \__SMU_DUMMY_MAP (DAL_ENABLE_DUMMY_PSTATE_CHANGE ), \ +__SMU_DUMMY_MAP (SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_HIGH ), \ +__SMU_DUMMY_MAP (SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_LOW ), \__SMU_DUMMY_MAP (Mode1Reset), \ #undef __SMU_DUMMY_MAP
drivers/gpu/drm/amd/pm/inc/smu_v11_0_ppsmc.h +4 -1
@@ -125,7 +125,10 @@#define PPSMC_MSG_SetMGpuFanBoostLimitRpm 0x4C -#define PPSMC_Message_Count 0x4D +#define PPSMC_MSG_SetDriverDummyTableDramAddrHigh 0x4E +#define PPSMC_MSG_SetDriverDummyTableDramAddrLow 0x4F + +#define PPSMC_Message_Count 0x50typedef uint32_t PPSMC_Result ;typedef uint32_t PPSMC_Msg ;
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +34 -0
@@ -45,6 +45,7 @@#include "asic_reg/mp/mp_11_0_sh_mask.h" #include "smu_cmn.h" +#include "smu_11_0_cdr_table.h" /* * DO NOT use these for err/warn/info/debug messages.
@@ -139,6 +140,8 @@ static struct cmn2asic_msg_mapping navi10_message_map[SMU_MSG_MAX_COUNT] = {MSG_MAP (GetVoltageByDpm, PPSMC_MSG_GetVoltageByDpm,0 ),MSG_MAP (GetVoltageByDpmOverdrive, PPSMC_MSG_GetVoltageByDpmOverdrive,0 ),MSG_MAP (SetMGpuFanBoostLimitRpm, PPSMC_MSG_SetMGpuFanBoostLimitRpm,0 ), +MSG_MAP (SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_HIGH , PPSMC_MSG_SetDriverDummyTableDramAddrHigh,0 ), + MSG_MAP(SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_LOW, PPSMC_MSG_SetDriverDummyTableDramAddrLow, 0), }; static struct cmn2asic_mapping navi10_clk_map[SMU_CLK_COUNT] = {
@@ -2242,6 +2245,37 @@ static int navi10_umc_hybrid_cdr_workaround(struct smu_context *smu)return smu_cmn_send_smc_msg (smu,SMU_MSG_DAL_ENABLE_DUMMY_PSTATE_CHANGE ,NULL ); } +static int navi10_set_dummy_pstates_table_location (struct smu_context *smu) +{ +struct smu_table_context *smu_table = &smu->smu_table; +struct smu_table *dummy_read_table = + &smu_table->dummy_read_1_table; +char *dummy_table = dummy_read_table->cpu_addr; +int ret =0 ; +uint32_t i; + +for (i =0 ; i <0x40000 ; i +=0x1000 *2 ) { +memcpy (dummy_table, &NoDbiPrbs7[0 ],0x1000 ); + dummy_table +=0x1000 ; +memcpy (dummy_table, &DbiPrbs7[0 ],0x1000 ); + dummy_table +=0x1000 ; + } + +amdgpu_asic_flush_hdp (smu->adev,NULL ); + + ret =smu_cmn_send_smc_msg_with_param (smu, +SMU_MSG_SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_HIGH , +upper_32_bits (dummy_read_table->mc_address), +NULL ); +if (ret) +return ret; + +return smu_cmn_send_smc_msg_with_param (smu, +SMU_MSG_SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_LOW , +lower_32_bits (dummy_read_table->mc_address), +NULL ); +} +static int navi10_disable_umc_cdr_12gbps_workaround (struct smu_context *smu) {uint32_t smu_version;
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 7/9 drm/amd/pm: apply the CDR workarounds only with some specific UMC firmwares
In reply to Evan QuanAnd different workaround will be applied based on hybrid cdr bit.
--- drivers/gpu/drm/amd/pm/inc/smu_types.h | 1 + drivers/gpu/drm/amd/pm/inc/smu_v11_0_ppsmc.h | 4 ++- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 28 +++++++++++++++---- 3 files changed, 26 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/pm/inc/smu_types.h +1 -0
@@ -175,6 +175,7 @@__SMU_DUMMY_MAP (DAL_ENABLE_DUMMY_PSTATE_CHANGE ), \__SMU_DUMMY_MAP (SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_HIGH ), \__SMU_DUMMY_MAP (SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_LOW ), \ +__SMU_DUMMY_MAP (GET_UMC_FW_WA ), \__SMU_DUMMY_MAP (Mode1Reset), \ #undef __SMU_DUMMY_MAP
drivers/gpu/drm/amd/pm/inc/smu_v11_0_ppsmc.h +3 -1
@@ -128,7 +128,9 @@#define PPSMC_MSG_SetDriverDummyTableDramAddrHigh 0x4E#define PPSMC_MSG_SetDriverDummyTableDramAddrLow 0x4F -#define PPSMC_Message_Count 0x50 +#define PPSMC_MSG_GetUMCFWWA 0x50 + +#define PPSMC_Message_Count 0x51typedef uint32_t PPSMC_Result ;typedef uint32_t PPSMC_Msg ;
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +22 -6
@@ -142,6 +142,7 @@ static struct cmn2asic_msg_mapping navi10_message_map[SMU_MSG_MAX_COUNT] = {MSG_MAP (SetMGpuFanBoostLimitRpm, PPSMC_MSG_SetMGpuFanBoostLimitRpm,0 ),MSG_MAP (SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_HIGH , PPSMC_MSG_SetDriverDummyTableDramAddrHigh,0 ),MSG_MAP (SET_DRIVER_DUMMY_TABLE_DRAM_ADDR_LOW , PPSMC_MSG_SetDriverDummyTableDramAddrLow,0 ), + MSG_MAP(GET_UMC_FW_WA, PPSMC_MSG_GetUMCFWWA, 0), }; static struct cmn2asic_mapping navi10_clk_map[SMU_CLK_COUNT] = {
@@ -2278,21 +2279,36 @@ static int navi10_set_dummy_pstates_table_location(struct smu_context *smu)static int navi10_disable_umc_cdr_12gbps_workaround (struct smu_context *smu) { -uint32_t smu_version; +struct amdgpu_device *adev = smu->adev; +uint8_t umc_fw_greater_than_v136 = false; +uint8_t umc_fw_disable_cdr = false; +uint32_t param;int ret =0 ; -if (!navi10_need_umc_cdr_12gbps_workaround (smu->adev)) +if (!navi10_need_umc_cdr_12gbps_workaround (adev))return 0 ; - ret =smu_cmn_get_smc_version (smu,NULL , &smu_version); + ret =smu_cmn_send_smc_msg_with_param (smu, +SMU_MSG_GET_UMC_FW_WA , +0 , + ¶m);if (ret)return ret; -/* This workaround is available only for 42.50 or later SMC firmwares */ -if (smu_version <0x2A3200 ) +/* First bit indicates if the UMC f/w is above v137 */ + umc_fw_greater_than_v136 = param &0x1 ; + +/* Second bit indicates if hybrid-cdr is disabled */ + umc_fw_disable_cdr = param &0x2 ; + +/* w/a only allowed if UMC f/w is <= 136 */ +if (umc_fw_greater_than_v136)return 0 ; -return navi10_umc_hybrid_cdr_workaround (smu); +if (umc_fw_disable_cdr && adev->asic_type ==CHIP_NAVI10 ) +return navi10_umc_hybrid_cdr_workaround (smu); +else +return navi10_set_dummy_pstates_table_location (smu); } static void navi10_fill_i2c_req(SwI2cRequest_t *req, bool write,
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 8/9 drm/amd/pm: correct the requirement for umc cdr workaround
In reply to Evan QuanThe workaround can be applied only with UCLK DPM enabled. And expand the workaround to more Navi10 SKUs and also Navi14.
--- .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +9 -10
@@ -2185,19 +2185,18 @@ static int navi10_run_btc(struct smu_context *smu)return ret; } -static inline bool navi10_need_umc_cdr_12gbps_workaround (struct amdgpu_device *adev) +static bool navi10_need_umc_cdr_12gbps_workaround (struct smu_context *smu) { -if (adev->asic_type !=CHIP_NAVI10 ) +struct amdgpu_device *adev = smu->adev; + +if (!smu_cmn_feature_is_enabled (smu,SMU_FEATURE_DPM_UCLK_BIT ))return false; -if (adev->pdev->device ==0x731f && - (adev->pdev->revision ==0xc2 || - adev->pdev->revision ==0xc3 || - adev->pdev->revision ==0xca || - adev->pdev->revision ==0xcb )) +if (adev->asic_type ==CHIP_NAVI10 || + adev->asic_type ==CHIP_NAVI14 )return true; -else -return false; + +return false; }static int navi10_umc_hybrid_cdr_workaround (struct smu_context *smu)
@@ -2285,7 +2284,7 @@ static int navi10_disable_umc_cdr_12gbps_workaround(struct smu_context *smu)uint32_t param;int ret =0 ; -if (!navi10_need_umc_cdr_12gbps_workaround (adev)) +if (!navi10_need_umc_cdr_12gbps_workaround (smu))return 0 ; ret = smu_cmn_send_smc_msg_with_param(smu,
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 9/9 drm/amd/pm: make namings and comments more readable
In reply to Evan QuanAnd to fit more accurately what the cod does.
--- drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +4 -4
@@ -2185,7 +2185,7 @@ static int navi10_run_btc(struct smu_context *smu)return ret; } -static bool navi10_need_umc_cdr_12gbps_workaround (struct smu_context *smu) +static bool navi10_need_umc_cdr_workaround (struct smu_context *smu) {struct amdgpu_device *adev = smu->adev;
@@ -2276,7 +2276,7 @@ static int navi10_set_dummy_pstates_table_location(struct smu_context *smu) NULL); } -static int navi10_disable_umc_cdr_12gbps_workaround (struct smu_context *smu) +static int navi10_run_umc_cdr_workaround (struct smu_context *smu) {struct amdgpu_device *adev = smu->adev;uint8_t umc_fw_greater_than_v136 = false;
@@ -2284,7 +2284,7 @@ static int navi10_disable_umc_cdr_12gbps_workaround(struct smu_context *smu)uint32_t param;int ret =0 ; -if (!navi10_need_umc_cdr_12gbps_workaround (smu)) +if (!navi10_need_umc_cdr_workaround (smu))return 0 ; ret = smu_cmn_send_smc_msg_with_param(smu,
@@ -2655,7 +2655,7 @@ static int navi10_post_smu_init(struct smu_context *smu)return ret; } - ret =navi10_disable_umc_cdr_12gbps_workaround (smu); + ret =navi10_run_umc_cdr_workaround (smu);if (ret)dev_err (adev->dev,"Failed to apply umc cdr workaround!\n" );
Signature · 6 lines
2.28.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 9/9] drm/amd/pm: make namings and comments more readable
Quoted 5 lines · Evan Quan
And to fit more accurately what the cod does.
Change-Id I2d917e66b55925c3a14aa96ac8e0c8c2110848c0Signed-off-by Evan Quan <[email protected]>
Series is:
Quoted 47 lines
--- drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +4
-5@@ -2185,7 +2185,7 @@ static int navi10_run_btc(struct smu_context *smu)return ret; } -static bool navi10_need_umc_cdr_12gbps_workaround (struct smu_context *smu) +static bool navi10_need_umc_cdr_workaround (struct smu_context *smu) {struct amdgpu_device *adev = smu->adev;@@ -2276,7 +2276,7 @@ static int navi10_set_dummy_pstates_table_location(struct smu_context *smu) NULL); } -static int navi10_disable_umc_cdr_12gbps_workaround (struct smu_context *smu) +static int navi10_run_umc_cdr_workaround (struct smu_context *smu) {struct amdgpu_device *adev = smu->adev;uint8_t umc_fw_greater_than_v136 = false;@@ -2284,7 +2284,7 @@ static int navi10_disable_umc_cdr_12gbps_workaround(struct smu_context *smu)uint32_t param;int ret =0 ; -if (!navi10_need_umc_cdr_12gbps_workaround (smu)) +if (!navi10_need_umc_cdr_workaround (smu))return 0 ; ret = smu_cmn_send_smc_msg_with_param(smu,@@ -2655,7 +2655,7 @@ static int navi10_post_smu_init(struct smu_context *smu)return ret; } - ret =navi10_disable_umc_cdr_12gbps_workaround (smu); + ret =navi10_run_umc_cdr_workaround (smu);if (ret)dev_err (adev->dev,"Failed to apply umc cdr workaround!\n" ); --2.28.0
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