drm/radeon/kms: bail on BTC parts if MC ucode is missing
Subsystems (2)
PATCH 1/1 drm/radeon/kms: bail on BTC parts if MC ucode is missing
From: Alex Deucher <[email protected]>
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 <[email protected]>
Cc Jean Delvare <[email protected]>
--- drivers/gpu/drm/radeon/evergreen.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +12 -0
@@ -3337,6 +3337,18 @@ int evergreen_init(struct radeon_device *rdev)evergreen_pcie_gart_fini (rdev); rdev->accel_working = false; } + +/* Don't start up if the MC ucode is missing on BTC parts. +* The default clocks and voltages before the MC ucode +* is loaded are not suffient for advanced operations. +*/ +if (ASIC_IS_DCE5 (rdev)) { +if (!rdev->mc_fw && !(rdev->flags &RADEON_IS_IGP )) { +DRM_ERROR ("radeon: MC ucode required for NI+.\n" ); +return -EINVAL ; + } + } +return 0 ; }
Signature · 1 line
1.7.3.4
PATCH 1/1 drm/radeon/kms: add missing ring ready check in sync tests
From: Alex Deucher <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/radeon/radeon_test.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_test.c +2 -0
@@ -471,6 +471,8 @@ void radeon_test_syncing(struct radeon_device *rdev)for (k =0 ; k < j; ++k) {struct radeon_ring *ringC = &rdev->ring[k]; +if (!ringC->ready) +continue ;DRM_INFO ("Testing syncing between rings %d, %d and %d...\n" , i, j, k);radeon_test_ring_sync2 (rdev, ringA, ringB, ringC);
Signature · 1 line
1.7.3.4