[PATCH 1/6] drm/gma500: Wait longer for the GPU to power-down

Hans de Goede hdegoede at redhat.com
Fri Sep 9 11:56:41 UTC 2022


On a cedartrail during boot the following error was logged each boot:

[   12.168341] gma500 0000:00:02.0: GPU: power management timed out.

Increase the timeout to fix this.

Sometimes the display also failed to come up properly (userspace was
running normally, but the LCD was showing all black as contents).
Hopefully this also fix this issue.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 drivers/gpu/drm/gma500/cdv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/gma500/cdv_device.c b/drivers/gpu/drm/gma500/cdv_device.c
index ce96234f3df2..ff5104fe5692 100644
--- a/drivers/gpu/drm/gma500/cdv_device.c
+++ b/drivers/gpu/drm/gma500/cdv_device.c
@@ -230,7 +230,7 @@ static void cdv_init_pm(struct drm_device *dev)
 		u32 pwr_sts = inl(dev_priv->apm_base + PSB_APM_STS);
 		if ((pwr_sts & PSB_PWRGT_GFX_MASK) == 0)
 			return;
-		udelay(10);
+		usleep_range(100, 1000);
 	}
 	dev_err(dev->dev, "GPU: power management timed out.\n");
 }
-- 
2.37.2



More information about the dri-devel mailing list