]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Redefine DMCU_SCRATCH to identify DMCU state
authorMartin Tsai <martin.tsai@amd.com>
Thu, 13 Dec 2018 04:25:19 +0000 (12:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:39:22 +0000 (15:39 -0500)
commitbf7b1b060af9b5411c79c91c3c2cf347e6d3e22d
tree7c0c493237f93e7e0536bd7839263251df0ea891
parentc2e17d1619a7bd93b7e35cbb016a14543eb56a5d
drm/amd/display: Redefine DMCU_SCRATCH to identify DMCU state

[why]
To resume system before entering S0i3 completely will cause PSP not
reload DMCU FW since there is not HW power state change.
In this case, driver cannot get correct DMCU version from IRAM
since driver override it and DMCU didn't reload to update it.
It makes driver return false in dcn10_dmcu_init().

[how]
1.To redefine DMCU_SCRATCH to identify different DMCU state.
2.To reserve IRAM 0xF0~0xFF write by DMCU only.
3.To remove dcn10_get_dmcu_state

Signed-off-by: Martin Tsai <martin.tsai@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c
drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h
drivers/gpu/drm/amd/display/modules/power/power_helpers.c