Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: limit the code change to ips enabled asic

Limit the code change for ips enable to reduce the impact for now. Also
exit_ips first before dc_power_down to avoid 0x9f.

Reviewed-by: Chris Park <chris.park@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Charlene Liu and committed by
Alex Deucher
d7fedf26 63985d9a

+6 -1
+6 -1
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 5042 5042 void dc_power_down_on_boot(struct dc *dc) 5043 5043 { 5044 5044 if (dc->ctx->dce_environment != DCE_ENV_VIRTUAL_HW && 5045 - dc->hwss.power_down_on_boot) 5045 + dc->hwss.power_down_on_boot) { 5046 + 5047 + if (dc->caps.ips_support) 5048 + dc_exit_ips_for_hw_access(dc); 5049 + 5046 5050 dc->hwss.power_down_on_boot(dc); 5051 + } 5047 5052 } 5048 5053 5049 5054 void dc_set_power_state(