Skip to contentSkip to conversation

drm/radeon: fix active_cu mask on SI and CIK after re-init

PATCH New Alex Deucher 1 participant 1 message Aug 18, 2014

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

PATCH 1/1 drm/radeon: fix active_cu mask on SI and CIK after re-init

Need to initialize the mask to 0 on init, otherwise it keeps increasing.

bug:
https://bugzilla.kernel.org/show_bug.cgi?id=82581

---
 drivers/gpu/drm/radeon/cik.c | 1 +
 drivers/gpu/drm/radeon/si.c  | 1 +
 2 files changed, 2 insertions(+)
drivers/gpu/drm/radeon/cik.c +1 -0
index e7d99e1..20a5c0d 100644
@@ -3672,6 +3672,7 @@ static void cik_gpu_init(struct radeon_device *rdev)
 		     rdev->config.cik.max_sh_per_se,
 		     rdev->config.cik.max_backends_per_se);
 
+	rdev->config.cik.active_cus = 0;
 	for (i = 0; i < rdev->config.cik.max_shader_engines; i++) {
 		for (j = 0; j < rdev->config.cik.max_sh_per_se; j++) {
 			for (k = 0; k < rdev->config.cik.max_cu_per_sh; k++) {
drivers/gpu/drm/radeon/si.c +1 -0
index dbd9d81..f70e55f 100644
@@ -3255,6 +3255,7 @@ static void si_gpu_init(struct radeon_device *rdev)
 		     rdev->config.si.max_sh_per_se,
 		     rdev->config.si.max_cu_per_sh);
 
+	rdev->config.si.active_cus = 0;
 	for (i = 0; i < rdev->config.si.max_shader_engines; i++) {
 		for (j = 0; j < rdev->config.si.max_sh_per_se; j++) {
 			for (k = 0; k < rdev->config.si.max_cu_per_sh; k++) {
Signature · 1 line
1.8.3.1