Commit 65dae8ff authored by Daniel Miess's avatar Daniel Miess Committed by Alex Deucher
Browse files

drm/amd/display: disable power gating for DCN314



[Why]
Power gating is causing error messages on some DCN314 systems

[How]
Force disable power gating for DCN314

Fixes: 4cc1cebe ("drm/amd/display: Re-enable DPP/HUBP Power Gating")
Reviewed-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarDaniel Miess <daniel.miess@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent acbe7610
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -1883,13 +1883,6 @@ static bool dcn314_resource_construct(
	/* Use pipe context based otg sync logic */
	dc->config.use_pipe_ctx_sync_logic = true;

	/* Disable pipe power gating when unsupported */
	if (ctx->asic_id.hw_internal_rev == 0x01 ||
			ctx->asic_id.hw_internal_rev == 0x80) {
		dc->debug.disable_dpp_power_gate = true;
		dc->debug.disable_hubp_power_gate = true;
	}

	/* read VBIOS LTTPR caps */
	{
		if (ctx->dc_bios->funcs->get_lttpr_caps) {
@@ -1910,6 +1903,11 @@ static bool dcn314_resource_construct(
		dc->debug = debug_defaults_drv;
	else
		dc->debug = debug_defaults_diags;

	/* Disable pipe power gating */
	dc->debug.disable_dpp_power_gate = true;
	dc->debug.disable_hubp_power_gate = true;

	// Init the vm_helper
	if (dc->vm_helper)
		vm_helper_init(dc->vm_helper, 16);