]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Check hw_init state when determining if DMCUB is initialized
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 13 Jan 2020 14:00:46 +0000 (09:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jan 2020 21:55:28 +0000 (16:55 -0500)
commit1f1f3ab437c53348af3c71fa8bddb0a0920390e0
tree908340e059f84b086067f091644a5906d539ae71
parent9485ac11b791ef42b3c480862849c2df1519e2aa
drm/amd/display: Check hw_init state when determining if DMCUB is initialized

[Why]
CW2 may already be programmed when coming back from S4. In this case
we want to unconditionally replace whatever DMCUB version is currently
enabled with the latest.

[How]
Check the hw_init flag to know whether or not we've previously executed
the initliazed routine.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c