Skip to content

Commit f40c06e

Browse files
alexdeuchergregkh
authored andcommitted
drm/radeon/kms: bail on BTC parts if MC ucode is missing
commit 77e00f2 upstream. 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: Jean Delvare <khali@linux-fr.org> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 118282d commit f40c06e

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
@@ -3258,6 +3258,18 @@ int evergreen_init(struct radeon_device *rdev)
32583258
rdev->accel_working = false;
32593259
}
32603260
}
3261+
3262+
/* Don't start up if the MC ucode is missing on BTC parts.
3263+
* The default clocks and voltages before the MC ucode
3264+
* is loaded are not suffient for advanced operations.
3265+
*/
3266+
if (ASIC_IS_DCE5(rdev)) {
3267+
if (!rdev->mc_fw && !(rdev->flags & RADEON_IS_IGP)) {
3268+
DRM_ERROR("radeon: MC ucode required for NI+.\n");
3269+
return -EINVAL;
3270+
}
3271+
}
3272+
32613273
return 0;
32623274
}
32633275

0 commit comments

Comments
 (0)