Commit fc259117 authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher
Browse files

drm/amd/display: pg cntl update based on previous asic.



[why]
switch to well tested sequence.

Reviewed-by: default avatarLeo Chen <leo.chen@amd.com>
Signed-off-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Signed-off-by: default avatarChuanyu Tseng <chuanyu.tseng@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3eb8ae18
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -176,11 +176,12 @@ void pg_cntl42_hubp_dpp_pg_control(struct pg_cntl *pg_cntl, unsigned int hubp_dp
	uint32_t pwr_status = power_on ? 0 : 2;
	uint32_t org_ip_request_cntl;
	bool block_enabled;

	if (pg_cntl->ctx->dc->debug.ignore_pg ||
	bool skip_pg = pg_cntl->ctx->dc->debug.ignore_pg ||
		       pg_cntl->ctx->dc->debug.disable_hubp_power_gate ||
		       pg_cntl->ctx->dc->debug.disable_dpp_power_gate ||
		pg_cntl->ctx->dc->idle_optimizations_allowed)
		       pg_cntl->ctx->dc->idle_optimizations_allowed;

	if (skip_pg && !power_on)
		return;

	block_enabled = pg_cntl42_hubp_dpp_pg_status(pg_cntl, hubp_dpp_inst);