Skip to contentSkip to conversation

drm/radeon/si: check for CE ucode as well when loading ucode

PATCH In review [email protected] 2 participants 2 messages Jun 12, 2012 – Jun 13, 2012

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

PATCH 1/1 drm/radeon/si: check for CE ucode as well when loading ucode

From: Alex Deucher <[email protected]>

Fixes possible segfault if the CE ucode is missing.

---
 drivers/gpu/drm/radeon/si.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/si.c +1 -1
index 9248a91..d500911 100644
@@ -1825,7 +1825,7 @@ static int si_cp_load_microcode(struct radeon_device *rdev)
 	const __be32 *fw_data;
 	int i;
 
-	if (!rdev->me_fw || !rdev->pfp_fw)
+	if (!rdev->me_fw || !rdev->pfp_fw || !rdev->ce_fw)
 		return -EINVAL;
 
 	si_cp_enable(rdev, false);
Signature · 1 line
1.7.7.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · On Die, 2012-06-12 at 15:33 -0400, [email protected] wrote:

From: Alex Deucher <[email protected]>

Fixes possible segfault if the CE ucode is missing.

Quoted 18 lines
---
 drivers/gpu/drm/radeon/si.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/si.c +1 -1
index 9248a91..d500911 100644
@@ -1825,7 +1825,7 @@ static int si_cp_load_microcode(struct radeon_device *rdev)
 	const __be32 *fw_data;
 	int i;
 
-	if (!rdev->me_fw || !rdev->pfp_fw)
+	if (!rdev->me_fw || !rdev->pfp_fw || !rdev->ce_fw)
 		return -EINVAL;
 
 	si_cp_enable(rdev, false);
Signature · 6 lines
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel