Skip to content

Commit 77e00f2

Browse files
alexdeucherairlied
authored andcommitted
drm/radeon/kms: bail on BTC parts if MC ucode is missing
We already do this for cayman, need to also do it for BTC parts. The default memory and voltage setup is not adequate for advanced operation. Continuing will result in an unusable display. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@kernel.org Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent b9e26df commit 77e00f2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎drivers/gpu/drm/radeon/evergreen.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3276,6 +3276,18 @@ int evergreen_init(struct radeon_device *rdev)
32763276
rdev->accel_working = false;
32773277
}
32783278
}
3279+
3280+
/* Don't start up if the MC ucode is missing on BTC parts.
3281+
* The default clocks and voltages before the MC ucode
3282+
* is loaded are not suffient for advanced operations.
3283+
*/
3284+
if (ASIC_IS_DCE5(rdev)) {
3285+
if (!rdev->mc_fw && !(rdev->flags & RADEON_IS_IGP)) {
3286+
DRM_ERROR("radeon: MC ucode required for NI+.\n");
3287+
return -EINVAL;
3288+
}
3289+
}
3290+
32793291
return 0;
32803292
}
32813293

0 commit comments

Comments
 (0)