Skip to contentSkip to conversation

drm/exynos: Fix build after removal of DRM_HZ

PATCH In review Mark Brown 4 participants 6 messages Jan 7, 2014 – Jan 8, 2014

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/2 drm/exynos: Fix build after removal of DRM_HZ

From: Mark Brown <[email protected]>

Commit bfd8303af0c46 (drm: Kill DRM_HZ) removed the definition of DRM_HZ but did not remove its use in the Exynos DRM driver causing it to fail to build. Fix that.

---
 drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +1 -1
index 267aca91b70d..bdfe31fb731b 100644
@@ -347,7 +347,7 @@ static void fimd_wait_for_vblank(struct device *dev)
 	 */
 	if (!wait_event_timeout(ctx->wait_vsync_queue,
 				!atomic_read(&ctx->wait_vsync_event),
-				DRM_HZ/20))
+				HZ / 20))
 		DRM_DEBUG_KMS("vblank wait timed out.\n");
 }
 
Signature · 1 line
1.8.5.2
author
#1 lore raw

PATCH 2/2 drm/exynos: Fix build after removal of DRM_WAKUP

From: Mark Brown <[email protected]>

Commit 57ed0f7b4375 (drm: Kill DRM_WAKUP and DRM_INIT_WAITQUEUE) removed the definition of DRM_WAKUP but did not remove the use of it in the Exynos DRM driver causing it to fail to build. Fix that.

---
 drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +1 -1
index bdfe31fb731b..05b72b07a134 100644
@@ -706,7 +706,7 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id)
 	/* set wait vsync event to zero and wake up queue. */
 	if (atomic_read(&ctx->wait_vsync_event)) {
 		atomic_set(&ctx->wait_vsync_event, 0);
-		DRM_WAKEUP(&ctx->wait_vsync_queue);
+		wake_up(&ctx->wait_vsync_queue);
 	}
 out:
 	return IRQ_HANDLED;
Signature · 1 line
1.8.5.2
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] drm/exynos: Fix build after removal of DRM_WAKUP

Quoted 7 lines · Mark Brown

From: Mark Brown <[email protected]>

Commit 57ed0f7b4375 (drm: Kill DRM_WAKUP and DRM_INIT_WAITQUEUE) removed the definition of DRM_WAKUP but did not remove the use of it in the Exynos DRM driver causing it to fail to build. Fix that.

Oops, looks like something slipped past between me making the patches and them getting merged. Thanks for taking care of this. Both patches are

Quoted 20 lines
---
 drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +1 -1
index bdfe31fb731b..05b72b07a134 100644
@@ -706,7 +706,7 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id)
 	/* set wait vsync event to zero and wake up queue. */
 	if (atomic_read(&ctx->wait_vsync_event)) {
 		atomic_set(&ctx->wait_vsync_event, 0);
-		DRM_WAKEUP(&ctx->wait_vsync_queue);
+		wake_up(&ctx->wait_vsync_queue);
 	}
 out:
 	return IRQ_HANDLED;
Signature · 1 line
1.8.5.2
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
maintainer
#3 lore raw

Re: [PATCH 2/2] drm/exynos: Fix build after removal of DRM_WAKUP

Hi,

2014/1/8 Daniel Vetter <[email protected]>:

Quoted 12 lines · Mark Brown
Quoted 7 lines

From: Mark Brown <[email protected]>

Commit 57ed0f7b4375 (drm: Kill DRM_WAKUP and DRM_INIT_WAITQUEUE) removed the definition of DRM_WAKUP but did not remove the use of it in the Exynos DRM driver causing it to fail to build. Fix that.

Oops, looks like something slipped past between me making the patches and them getting merged. Thanks for taking care of this. Both patches are

These patches already were posted by Seung-Woo link below, and I merged already them to exynos-drm-next.

    http://www.spinics.net/lists/dri-devel/msg50921.html

Thanks,
Inki Dae

Quoted 30 lines
Quoted 18 lines
---
 drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_fimd.c +1 -2
index bdfe31fb731b..05b72b07a134 100644
@@ -706,7 +706,7 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id)
      /* set wait vsync event to zero and wake up queue. */
      if (atomic_read(&ctx->wait_vsync_event)) {
              atomic_set(&ctx->wait_vsync_event, 0);
-             DRM_WAKEUP(&ctx->wait_vsync_queue);
+             wake_up(&ctx->wait_vsync_queue);
      }
 out:
      return IRQ_HANDLED;
--
Quoted 2 lines

1.8.5.2

--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author
#4 lore raw

Re: [PATCH 2/2] drm/exynos: Fix build after removal of DRM_WAKUP

Quoted 8 lines · Inki Dae

2014/1/8 Daniel Vetter <[email protected]>:

Quoted 2 lines

Oops, looks like something slipped past between me making the patches and them getting merged. Thanks for taking care of this. Both patches are

These patches already were posted by Seung-Woo link below, and I merged already them to exynos-drm-next.

    http://www.spinics.net/lists/dri-devel/msg50921.html

Are you sure? I still need those patches in -next as of today.

maintainer
#5 lore raw

Re: [PATCH 2/2] drm/exynos: Fix build after removal of DRM_WAKUP

Hello,

Quoted 12 lines · Mark Brown
Quoted 8 lines · Inki Dae

2014/1/8 Daniel Vetter <[email protected]>:

Quoted 2 lines

Oops, looks like something slipped past between me making the patches and them getting merged. Thanks for taking care of this. Both patches are

These patches already were posted by Seung-Woo link below, and I merged already them to exynos-drm-next.

    http://www.spinics.net/lists/dri-devel/msg50921.html

Are you sure? I still need those patches in -next as of today.

Yes, at least for exynos-drm-next tree of Inki. Inki sent pull request including my patch yesterday.

Best Regards,
- Seung-Woo Kim
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel