Skip to contentSkip to conversation

drm/panfrost: increase readl_relaxed_poll_timeout values

PATCH In review Christian Hewitt 2 participants 2 messages Oct 8, 2020 – Oct 9, 2020

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

PATCH 1/1 drm/panfrost: increase readl_relaxed_poll_timeout values

Amlogic SoC devices report the following errors frequently causing excessive dmesg log spam and early log rotataion, although the errors appear to be harmless as everything works fine:

[    7.202702] panfrost ffe40000.gpu: error powering up gpu L2
[    7.203760] panfrost ffe40000.gpu: error powering up gpu shader

ARM staff have advised increasing the timeout values to eliminate the errors in most normal scenarios, and testing with several different G31/G52 devices shows 20000 to be a reliable value.

Fixes f3ba91228e8e ("drm/panfrost: Add initial panfrost driver")
---
 drivers/gpu/drm/panfrost/panfrost_gpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/panfrost/panfrost_gpu.c +2 -2
index e1b2a3376624..2aae636f1cf5 100644
@@ -325,13 +325,13 @@ void panfrost_gpu_power_on(struct panfrost_device *pfdev)
 	/* Just turn on everything for now */
 	gpu_write(pfdev, L2_PWRON_LO, pfdev->features.l2_present);
 	ret = readl_relaxed_poll_timeout(pfdev->iomem + L2_READY_LO,
-		val, val == pfdev->features.l2_present, 100, 1000);
+		val, val == pfdev->features.l2_present, 100, 20000);
 	if (ret)
 		dev_err(pfdev->dev, "error powering up gpu L2");
 
 	gpu_write(pfdev, SHADER_PWRON_LO, pfdev->features.shader_present);
 	ret = readl_relaxed_poll_timeout(pfdev->iomem + SHADER_READY_LO,
-		val, val == pfdev->features.shader_present, 100, 1000);
+		val, val == pfdev->features.shader_present, 100, 20000);
 	if (ret)
 		dev_err(pfdev->dev, "error powering up gpu shader");
 
Signature · 1 line
2.17.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Christian Hewitt

Amlogic SoC devices report the following errors frequently causing excessive dmesg log spam and early log rotataion, although the errors appear to be harmless as everything works fine:

[    7.202702] panfrost ffe40000.gpu: error powering up gpu L2
[    7.203760] panfrost ffe40000.gpu: error powering up gpu shader
Quoted 7 lines

ARM staff have advised increasing the timeout values to eliminate the errors in most normal scenarios, and testing with several different G31/G52 devices shows 20000 to be a reliable value.

Fixes f3ba91228e8e ("drm/panfrost: Add initial panfrost driver")

I'll push this to drm-misc-next-fixes so it should coincide with the Bifrost support already in drm-misc-next.

Steve

Quoted 15 lines
---
  drivers/gpu/drm/panfrost/panfrost_gpu.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/panfrost/panfrost_gpu.c +1 -1
index e1b2a3376624..2aae636f1cf5 100644
@@ -325,13 +325,13 @@ void panfrost_gpu_power_on(struct panfrost_device *pfdev)
  	/* Just turn on everything for now */
  	gpu_write(pfdev, L2_PWRON_LO, pfdev->features.l2_present);
  	ret = readl_relaxed_poll_timeout(pfdev->iomem + L2_READY_LO,
-		val, val == pfdev->features.l2_present, 100, 1000);
+		val, val == pfdev->features.l2_present, 100, 20000);

drivers/gpu/drm/panfrost/panfrost_gpu.c void panfrost_gpu_power_on(struct panfrost_device *pfdev) · line 337

Quoted 10 lines
drivers/gpu/drm/panfrost/panfrost_gpu.c +1 -1
  	if (ret)
  		dev_err(pfdev->dev, "error powering up gpu L2");
 
  	gpu_write(pfdev, SHADER_PWRON_LO, pfdev->features.shader_present);
  	ret = readl_relaxed_poll_timeout(pfdev->iomem + SHADER_READY_LO,
-		val, val == pfdev->features.shader_present, 100, 1000);
+		val, val == pfdev->features.shader_present, 100, 20000);
  	if (ret)
  		dev_err(pfdev->dev, "error powering up gpu shader");
 

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