Skip to contentSkip to conversation

drm/etnaviv: HACK: enable debug register

PATCH Christian Gmeiner 1 participant 1 message Dec 9, 2016

Subsystems (2)
lore
Share & tools
lore

Christian Gmeiner

author reviewer
#0 lore raw

I am not sure how the correct solution should look like. Maybe enable debug registers globally via not existing SET_PARAM ioctl.

---
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/gpu/drm/etnaviv/etnaviv_gpu.c +3 -6
index b3eba08..6d9bfdf 100644
@@ -428,8 +428,7 @@ static int etnaviv_hw_reset(struct etnaviv_gpu *gpu)
 	timeout = jiffies + msecs_to_jiffies(1000);
 
 	while (time_is_after_jiffies(timeout)) {
-		control = VIVS_HI_CLOCK_CONTROL_DISABLE_DEBUG_REGISTERS |
-			  VIVS_HI_CLOCK_CONTROL_FSCALE_VAL(0x40);
+		control = VIVS_HI_CLOCK_CONTROL_FSCALE_VAL(0x40);
 
 		/* enable clock */
 		etnaviv_gpu_load_clock(gpu, control);
@@ -492,8 +491,7 @@ static int etnaviv_hw_reset(struct etnaviv_gpu *gpu)
 	}
 
 	/* We rely on the GPU running, so program the clock */
-	control = VIVS_HI_CLOCK_CONTROL_DISABLE_DEBUG_REGISTERS |
-		  VIVS_HI_CLOCK_CONTROL_FSCALE_VAL(0x40);
+	control = VIVS_HI_CLOCK_CONTROL_FSCALE_VAL(0x40);
 
 	/* enable clock */
 	etnaviv_gpu_load_clock(gpu, control);
@@ -1561,8 +1559,7 @@ static int etnaviv_gpu_hw_resume(struct etnaviv_gpu *gpu)
 	if (ret)
 		return ret;
 
-	clock = VIVS_HI_CLOCK_CONTROL_DISABLE_DEBUG_REGISTERS |
-		VIVS_HI_CLOCK_CONTROL_FSCALE_VAL(0x40);
+	clock = VIVS_HI_CLOCK_CONTROL_FSCALE_VAL(0x40);
 
 	etnaviv_gpu_load_clock(gpu, clock);
 	etnaviv_gpu_hw_init(gpu);
Signature · 6 lines
2.10.2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel