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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux