OSDN Git Service

drm/amd/display: Ensure that DMCUB fw in use is loaded by DC and not VBIOS
authorDillon Varone <dillon.varone@amd.com>
Thu, 14 Apr 2022 20:57:17 +0000 (16:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:44:15 +0000 (16:44 -0400)
commit9fe5d08fc8230adb64128986ee4af267a54e56dd
tree1875f14fe4ec51ba320b4a40ff41bbb7a27bde9d
parent218987fdead218ae0e714cd9059bc9fc480220f9
drm/amd/display: Ensure that DMCUB fw in use is loaded by DC and not VBIOS

[Why?]
On wake from S3/S4, driver checks if DMUB is initialized. On S4 VBIOS loads
DMUB, and driver does not reload as it appears to be initialized already.

[How?]
Add a check for the DAL_FW bit to ensure that loaded FW is from driver and
not VBIOS.

Signed-off-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c