Skip to contentSkip to conversation

drm/amd/display: Look at firmware version to determine using dmub on dcn21

PATCH In review Mario Limonciello 2 participants 2 messages Nov 10, 2021 – Nov 11, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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
index 1ea31dcc7a8b..084491afe540 100644
@@ -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
maintainer
#1 lore raw
Quoted 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

---
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>