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

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
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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)
{
	//TODO: Work with smu team to define optimization options.
	unsigned int msg_id, param;

	if (!clk_mgr->smu_present)
		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)
		param = 1;
	else
+1 −0
Original line number Diff line number Diff line
@@ -703,6 +703,7 @@ struct dc_debug_options {
	int crb_alloc_policy_min_disp_count;
#if defined(CONFIG_DRM_AMD_DC_DCN)
	bool disable_z10;
	bool enable_z9_disable_interface;
	bool enable_sw_cntl_psr;
	union dpia_debug_options dpia_debug;
#endif
+1 −0
Original line number Diff line number Diff line
@@ -1033,6 +1033,7 @@ static const struct dc_debug_options debug_defaults_drv = {
	.optimize_edp_link_rate = true,
	.enable_sw_cntl_psr = true,
	.apply_vendor_specific_lttpr_wa = true,
	.enable_z9_disable_interface = false
};

static const struct dc_debug_options debug_defaults_diags = {