drm/amd/display: Look at firmware version to determine using dmub on dcn21
PATCH 1/1 drm/amd/display: Look at firmware version to determine using dmub on dcn21
Newer DMUB firmware on Renoir and Green Sardine do not need to disable dmcu and this actually causes problems with DP-C alt mode for a number of machines.
Backport the fix from this from mainline. It's a hand modified backport because mainline switched to IP version checking which doesn't exist in linux-stable.
---
Resend, also pick up Alex's tag from last submission
This was previously sent to [email protected] not [email protected].
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +8 -1
@@ -1141,8 +1141,15 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)case CHIP_RAVEN :case CHIP_RENOIR : init_data.flags.gpu_vm_support = true; -if (ASICREV_IS_GREEN_SARDINE (adev->external_rev_id)) +switch (adev->dm.dmcub_fw_version) { +case 0 :/* development */ +case 0x1 :/* linux-firmware.git hash 6d9f399 */ +case 0x01000000 :/* linux-firmware.git hash 9a0b0f4 */ + init_data.flags.disable_dmcu = false; +break ; +default : init_data.flags.disable_dmcu = true; + }break ;case CHIP_VANGOGH :case CHIP_YELLOW_CARP :
Signature · 1 line
2.25.1
Greg KH
maintainerQuoted 6 lines · Mario Limonciello
Newer DMUB firmware on Renoir and Green Sardine do not need to disable dmcu and this actually causes problems with DP-C alt mode for a number of machines.
Backport the fix from this from mainline. It's a hand modified backport because mainline switched to IP version checking which doesn't exist in linux-stable.
Quoted 8 lines
Signed-off-by Mario Limonciello <[email protected]>Reviewed-by Alex Deucher <[email protected]>---
Resend, also pick up Alex's tag from last submission
This was previously sent to [email protected] not [email protected].
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>