]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Look at firmware version to determine using dmub on dcn21
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 2 Nov 2021 15:04:37 +0000 (10:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Nov 2021 16:22:08 +0000 (12:22 -0400)
commit3430433927f975567ae72395ae6920dbae623287
treee0122489984e2a678c662a7c8222c3fd739f76fa
parentd1d3b4682b102b4820d523621fa9b8004fd6783a
drm/amd/display: Look at firmware version to determine using dmub on dcn21

commit 3c6aa8db9651 ("drm/amd/display: Fully switch to dmub for all dcn21
asics") switched over to using dmub on Renoir to fix Gitlab 1735, but this
implied a new dependency on newer firmware which might not be met on older
kernel versions.

Since sw_init runs before hw_init, there is an opportunity to determine
whether or not the firmware version is new to adjust the behavior.

Cc: Roman.Li@amd.com
BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1772
BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1735
Fixes: 3c6aa8db9651 ("drm/amd/display: Fully switch to dmub for all dcn21 asics")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c