All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gustavo Padovan <gustavo@padovan.org>
To: dri-devel@lists.freedesktop.org
Cc: "Gustavo Padovan" <gustavo.padovan@collabora.co.uk>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"David Airlie" <airlied@linux.ie>,
	"Michel Dänzer" <michel.daenzer@amd.com>,
	"Jammy Zhou" <Jammy.Zhou@amd.com>,
	"Tom St Denis" <tom.stdenis@amd.com>,
	"Marek Olšák" <marek.olsak@amd.com>,
	yanyang1 <young.yang@amd.com>,
	linux-kernel@vger.kernel.org (open list)
Subject: [PATCH 01/14] drm/amdgpu: use drm_crtc_send_vblank_event()
Date: Thu, 14 Apr 2016 10:48:12 -0700	[thread overview]
Message-ID: <1460656118-16766-1-git-send-email-gustavo@padovan.org> (raw)

From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>

Replace the legacy drm_send_vblank_event() with the new helper function.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
---
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
index 6de2ce53..92c5a71 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
@@ -3370,7 +3370,7 @@ static int dce_v10_0_pageflip_irq(struct amdgpu_device *adev,
 
 	/* wakeup usersapce */
 	if (works->event)
-		drm_send_vblank_event(adev->ddev, crtc_id, works->event);
+		drm_crtc_send_vblank_event(&amdgpu_crtc->base, works->event);
 
 	spin_unlock_irqrestore(&adev->ddev->event_lock, flags);
 
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
index e9ccc6b..2f784f2 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
@@ -3366,7 +3366,7 @@ static int dce_v11_0_pageflip_irq(struct amdgpu_device *adev,
 
 	/* wakeup usersapce */
 	if(works->event)
-		drm_send_vblank_event(adev->ddev, crtc_id, works->event);
+		drm_crtc_send_vblank_event(&amdgpu_crtc->base, works->event);
 
 	spin_unlock_irqrestore(&adev->ddev->event_lock, flags);
 
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
index e56b55d..9155e3b 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
@@ -3379,7 +3379,7 @@ static int dce_v8_0_pageflip_irq(struct amdgpu_device *adev,
 
 	/* wakeup usersapce */
 	if (works->event)
-		drm_send_vblank_event(adev->ddev, crtc_id, works->event);
+		drm_crtc_send_vblank_event(&amdgpu_crtc->base, works->event);
 
 	spin_unlock_irqrestore(&adev->ddev->event_lock, flags);
 
-- 
2.5.5

WARNING: multiple messages have this Message-ID (diff)
From: Gustavo Padovan <gustavo@padovan.org>
To: dri-devel@lists.freedesktop.org
Cc: "Tom St Denis" <tom.stdenis@amd.com>,
	"Jammy Zhou" <Jammy.Zhou@amd.com>,
	"Marek Olšák" <marek.olsak@amd.com>,
	"Michel Dänzer" <michel.daenzer@amd.com>,
	"open list" <linux-kernel@vger.kernel.org>,
	yanyang1 <young.yang@amd.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Gustavo Padovan" <gustavo.padovan@collabora.co.uk>,
	"Christian König" <christian.koenig@amd.com>
Subject: [PATCH 01/14] drm/amdgpu: use drm_crtc_send_vblank_event()
Date: Thu, 14 Apr 2016 10:48:12 -0700	[thread overview]
Message-ID: <1460656118-16766-1-git-send-email-gustavo@padovan.org> (raw)

From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>

Replace the legacy drm_send_vblank_event() with the new helper function.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
---
 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
index 6de2ce53..92c5a71 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
@@ -3370,7 +3370,7 @@ static int dce_v10_0_pageflip_irq(struct amdgpu_device *adev,
 
 	/* wakeup usersapce */
 	if (works->event)
-		drm_send_vblank_event(adev->ddev, crtc_id, works->event);
+		drm_crtc_send_vblank_event(&amdgpu_crtc->base, works->event);
 
 	spin_unlock_irqrestore(&adev->ddev->event_lock, flags);
 
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
index e9ccc6b..2f784f2 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
@@ -3366,7 +3366,7 @@ static int dce_v11_0_pageflip_irq(struct amdgpu_device *adev,
 
 	/* wakeup usersapce */
 	if(works->event)
-		drm_send_vblank_event(adev->ddev, crtc_id, works->event);
+		drm_crtc_send_vblank_event(&amdgpu_crtc->base, works->event);
 
 	spin_unlock_irqrestore(&adev->ddev->event_lock, flags);
 
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
index e56b55d..9155e3b 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
@@ -3379,7 +3379,7 @@ static int dce_v8_0_pageflip_irq(struct amdgpu_device *adev,
 
 	/* wakeup usersapce */
 	if (works->event)
-		drm_send_vblank_event(adev->ddev, crtc_id, works->event);
+		drm_crtc_send_vblank_event(&amdgpu_crtc->base, works->event);
 
 	spin_unlock_irqrestore(&adev->ddev->event_lock, flags);
 
-- 
2.5.5

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2016-04-14 17:48 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-14 17:48 Gustavo Padovan [this message]
2016-04-14 17:48 ` [PATCH 01/14] drm/amdgpu: use drm_crtc_send_vblank_event() Gustavo Padovan
2016-04-14 17:48 ` [PATCH 02/14] drm/armada: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-14 17:48 ` [PATCH 03/14] drm/atmel: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-14 17:48 ` [PATCH 04/14] drm/i915: " Gustavo Padovan
2016-04-15  7:42   ` Daniel Vetter
2016-04-14 17:48 ` [PATCH 05/14] drm/msm: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-14 20:51   ` Rob Clark
2016-04-14 20:51     ` Rob Clark
2016-04-19 14:02     ` Gustavo Padovan
2016-04-19 14:02       ` Gustavo Padovan
2016-04-20 11:13       ` Daniel Vetter
2016-04-20 11:13         ` Daniel Vetter
2016-05-02 15:04     ` Daniel Vetter
2016-05-02 15:04       ` Daniel Vetter
2016-04-14 17:48 ` [PATCH 06/14] drm/qxl: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-14 17:48 ` [PATCH 07/14] drm/nouveau: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-25  7:01   ` Mario Kleiner
2016-04-25  7:01     ` Mario Kleiner
2016-04-25 20:06     ` Gustavo Padovan
2016-04-14 17:48 ` [PATCH 08/14] drm/radeon: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-14 17:48 ` [PATCH 09/14] drm/rcar-du: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-14 21:59   ` Laurent Pinchart
2016-04-14 21:59     ` Laurent Pinchart
2016-04-14 21:59     ` Laurent Pinchart
2016-04-14 17:48 ` [PATCH 10/14] drm/shmobile: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-14 21:59   ` Laurent Pinchart
2016-04-14 21:59     ` Laurent Pinchart
2016-04-14 21:59     ` Laurent Pinchart
2016-05-02 15:06     ` Daniel Vetter
2016-05-02 15:06       ` Daniel Vetter
2016-05-02 15:06       ` Daniel Vetter
2016-04-14 17:48 ` [PATCH 11/14] drm/tilcdc: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-19 12:56   ` Jyri Sarha
2016-04-19 12:56     ` Jyri Sarha
2016-04-19 14:03     ` Gustavo Padovan
2016-04-19 14:03       ` Gustavo Padovan
2016-05-02 15:05       ` Daniel Vetter
2016-05-02 15:05         ` Daniel Vetter
2016-05-02 18:58         ` Jyri Sarha
2016-05-02 18:58           ` Jyri Sarha
2016-04-14 17:48 ` [PATCH 12/14] drm/udl: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-14 17:48 ` [PATCH 13/14] drm/virtio: " Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-14 17:48 ` [PATCH 14/14] drm: remove legacy drm_send_vblank_event() Gustavo Padovan
2016-04-14 17:48   ` Gustavo Padovan
2016-04-15  2:55 ` [PATCH 01/14] drm/amdgpu: use drm_crtc_send_vblank_event() Michel Dänzer
2016-04-15  2:55   ` Michel Dänzer
2016-05-02 15:03   ` Daniel Vetter
2016-05-02 15:03     ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1460656118-16766-1-git-send-email-gustavo@padovan.org \
    --to=gustavo@padovan.org \
    --cc=Jammy.Zhou@amd.com \
    --cc=airlied@linux.ie \
    --cc=alexander.deucher@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gustavo.padovan@collabora.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marek.olsak@amd.com \
    --cc=michel.daenzer@amd.com \
    --cc=tom.stdenis@amd.com \
    --cc=young.yang@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.