[PATCH] drm: drm init call takes large time
Abbas Raza
abbas_raza at mentor.com
Sat Jun 29 17:41:59 PDT 2013
From: Abbas Raza <Abbas_Raza at mentor.com>
DRM_INFO calls in the drm init routines are causing a large delay at boot time
due to which imx_drm_init call average takes around 26 ms. Changing DRM_INFO to
DRM_DEBUG reduces startup time to < 3ms.
Signed-off-by: Abbas Raza <Abbas_Raza at mentor.com>
CC: David Airlie <airlied at linux.ie>
Acked-by: Dmitry Eremin-Solenikov <dmitry_eremin at mentor.com>
---
drivers/gpu/drm/drm_irq.c | 6 +++---
drivers/gpu/drm/drm_platform.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c
index c798eea..782f5ff 100644
--- a/drivers/gpu/drm/drm_irq.c
+++ b/drivers/gpu/drm/drm_irq.c
@@ -252,13 +252,13 @@ int drm_vblank_init(struct drm_device *dev, int num_crtcs)
if (!dev->_vblank_time)
goto err;
- DRM_INFO("Supports vblank timestamp caching Rev 1 (10.10.2010).\n");
+ DRM_DEBUG("Supports vblank timestamp caching Rev 1 (10.10.2010).\n");
/* Driver specific high-precision vblank timestamping supported? */
if (dev->driver->get_vblank_timestamp)
- DRM_INFO("Driver supports precise vblank timestamp query.\n");
+ DRM_DEBUG("Driver supports precise vblank timestamp query.\n");
else
- DRM_INFO("No driver support for vblank timestamp query.\n");
+ DRM_DEBUG("No driver support for vblank timestamp query.\n");
/* Zero per-crtc vblank stuff */
for (i = 0; i < num_crtcs; i++) {
diff --git a/drivers/gpu/drm/drm_platform.c b/drivers/gpu/drm/drm_platform.c
index 82431dc..7649963 100644
--- a/drivers/gpu/drm/drm_platform.c
+++ b/drivers/gpu/drm/drm_platform.c
@@ -92,7 +92,7 @@ int drm_get_platform_dev(struct platform_device *platdev,
mutex_unlock(&drm_global_mutex);
- DRM_INFO("Initialized %s %d.%d.%d %s on minor %d\n",
+ DRM_DEBUG("Initialized %s %d.%d.%d %s on minor %d\n",
driver->name, driver->major, driver->minor, driver->patchlevel,
driver->date, dev->primary->index);
--
1.8.2
More information about the dri-devel
mailing list