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.
--- drivers/gpu/drm/radeon/evergreen.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +12 -0
@@ -3468,6 +3468,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
Quoted 10 lines · On Fri, 9 Dec 2011 11:31:54 -0500, [email protected] wrote:
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]>
Thanks Alex. I tested this fix and it works to some degree, but it doesn't solve all the issues.
What works:
* No garbage on the screen.
* X falls back to the vesa driver.
What doesn't work:
* No console messages displayed.
* Trying to switch to a text console (e.g. Ctrl+Alt+F2) results in a permanent black screen, I couldn't return to X after that.
So there must be some more integration work needed, probably not in the radeon driver but rather in the drm_fb layer. But anyway, the situation is definitely better with this patch than without, so it should be applied and go to stable trees too:
Quoted 27 lines
--- drivers/gpu/drm/radeon/evergreen.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)drivers/gpu/drm/radeon/evergreen.c +12
-0@@ -3468,6 +3468,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
Jean Delvare