Skip to contentSkip to conversation

drm: drm init call takes large time

PATCH In review Abbas Raza 2 participants 3 messages Jun 30, 2013 – Jul 8, 2013

Subsystems (2)
lore
Share & tools
lore

Abbas Raza

author
#0 lore raw

PATCH 1/1 drm: drm init call takes large time

From: Abbas Raza <[email protected]>

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.

---
 drivers/gpu/drm/drm_irq.c      | 6 +++---
 drivers/gpu/drm/drm_platform.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/drm_irq.c +3 -3
index c798eea..782f5ff 100644
@@ -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++) {
drivers/gpu/drm/drm_platform.c +1 -1
index 82431dc..7649963 100644
@@ -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);
 
Signature · 1 line
1.8.2
#1 lore raw
Quoted 5 lines · Abbas Raza

From: Abbas Raza <[email protected]>

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.

Serial console enabled?

Not that I think these printks are particularly useful...

Quoted 49 lines
---
 drivers/gpu/drm/drm_irq.c      | 6 +++---
 drivers/gpu/drm/drm_platform.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/drm_irq.c +3 -3
index c798eea..782f5ff 100644
@@ -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++) {
drivers/gpu/drm/drm_platform.c +1 -1
index 82431dc..7649963 100644
@@ -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);
 
Signature · 6 lines
1.8.2

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 2 lines
Ville Syrjälä
Intel OTC
author
#2 lore raw
Quoted 10 lines · Ville Syrjälä
Quoted 5 lines · Abbas Raza

From: Abbas Raza <[email protected]>

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.

Serial console enabled?

Not that I think these printks are particularly useful...

Yes serial console is enabled. these printk's seem useful but they take lot of time, increasing the boot time.

Quoted 43 lines
Quoted 43 lines
---
 drivers/gpu/drm/drm_irq.c      | 6 +++---
 drivers/gpu/drm/drm_platform.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/drm_irq.c +3 -3
index c798eea..782f5ff 100644
@@ -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++) {
drivers/gpu/drm/drm_platform.c +1 -1
index 82431dc..7649963 100644
@@ -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);
 
Quoted 8 lines
Quoted 7 lines
Signature · 6 lines
1.8.2

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

Thanks .
Abbas Raza