Commit b5d9a483 authored by Eric Yang's avatar Eric Yang Committed by Alex Deucher

drm/amd/display: add debug option for z9 disable interface

[Why]
To help triage issues and coordinate driver/bios release dependency

[How]
Only enable the new Z9 interface when debug option is set, otherwise
treat Z10 only support case as Zstate disallowed.
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: default avatarNicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarEric Yang <Eric.Yang2@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 85b8f62b
...@@ -308,12 +308,16 @@ void dcn31_smu_transfer_wm_table_dram_2_smu(struct clk_mgr_internal *clk_mgr) ...@@ -308,12 +308,16 @@ void dcn31_smu_transfer_wm_table_dram_2_smu(struct clk_mgr_internal *clk_mgr)
void dcn31_smu_set_zstate_support(struct clk_mgr_internal *clk_mgr, enum dcn_zstate_support_state support) void dcn31_smu_set_zstate_support(struct clk_mgr_internal *clk_mgr, enum dcn_zstate_support_state support)
{ {
//TODO: Work with smu team to define optimization options.
unsigned int msg_id, param; unsigned int msg_id, param;
if (!clk_mgr->smu_present) if (!clk_mgr->smu_present)
return; return;
if (!clk_mgr->base.ctx->dc->debug.enable_z9_disable_interface &&
(support == DCN_ZSTATE_SUPPORT_ALLOW_Z10_ONLY))
support = DCN_ZSTATE_SUPPORT_DISALLOW;
if (support == DCN_ZSTATE_SUPPORT_ALLOW_Z10_ONLY) if (support == DCN_ZSTATE_SUPPORT_ALLOW_Z10_ONLY)
param = 1; param = 1;
else else
......
...@@ -703,6 +703,7 @@ struct dc_debug_options { ...@@ -703,6 +703,7 @@ struct dc_debug_options {
int crb_alloc_policy_min_disp_count; int crb_alloc_policy_min_disp_count;
#if defined(CONFIG_DRM_AMD_DC_DCN) #if defined(CONFIG_DRM_AMD_DC_DCN)
bool disable_z10; bool disable_z10;
bool enable_z9_disable_interface;
bool enable_sw_cntl_psr; bool enable_sw_cntl_psr;
union dpia_debug_options dpia_debug; union dpia_debug_options dpia_debug;
#endif #endif
......
...@@ -1033,6 +1033,7 @@ static const struct dc_debug_options debug_defaults_drv = { ...@@ -1033,6 +1033,7 @@ static const struct dc_debug_options debug_defaults_drv = {
.optimize_edp_link_rate = true, .optimize_edp_link_rate = true,
.enable_sw_cntl_psr = true, .enable_sw_cntl_psr = true,
.apply_vendor_specific_lttpr_wa = true, .apply_vendor_specific_lttpr_wa = true,
.enable_z9_disable_interface = false
}; };
static const struct dc_debug_options debug_defaults_diags = { static const struct dc_debug_options debug_defaults_diags = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment