* [PATCH] drm/plane-helper: Adapt cursor hack to transitional helpers
@ 2015-05-20 8:36 Daniel Vetter
2015-05-20 8:43 ` Pekka Paalanen
2015-05-21 14:17 ` [Intel-gfx] " Mario Kleiner
0 siblings, 2 replies; 4+ messages in thread
From: Daniel Vetter @ 2015-05-20 8:36 UTC (permalink / raw)
To: Intel Graphics Development, DRI Development
Cc: wayland-devel, Daniel Vetter, Pekka Paalanen, stable,
Daniel Vetter
In
commit f02ad907cd9e7fe3a6405d2d005840912f1ed258
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Thu Jan 22 16:36:23 2015 +0100
drm/atomic-helpers: Recover full cursor plane behaviour
we've added a hack to atomic helpers to never to vblank waits for
cursor updates through the legacy apis since that's what X expects.
Unfortunately we've (again) forgotten to adjust the transitional
helpers. Do this now.
This fixes regressions for drivers only partially converted over to
atomic (like i915).
Reported-by: Pekka Paalanen <ppaalanen@gmail.com>
Cc: Pekka Paalanen <ppaalanen@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
---
drivers/gpu/drm/drm_plane_helper.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c
index 40c1db9ad7c3..2f0ed11024eb 100644
--- a/drivers/gpu/drm/drm_plane_helper.c
+++ b/drivers/gpu/drm/drm_plane_helper.c
@@ -465,6 +465,9 @@ int drm_plane_helper_commit(struct drm_plane *plane,
if (!crtc[i])
continue;
+ if (crtc[i]->cursor == plane)
+ continue;
+
/* There's no other way to figure out whether the crtc is running. */
ret = drm_crtc_vblank_get(crtc[i]);
if (ret == 0) {
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] drm/plane-helper: Adapt cursor hack to transitional helpers
2015-05-20 8:36 [PATCH] drm/plane-helper: Adapt cursor hack to transitional helpers Daniel Vetter
@ 2015-05-20 8:43 ` Pekka Paalanen
2015-05-21 14:17 ` [Intel-gfx] " Mario Kleiner
1 sibling, 0 replies; 4+ messages in thread
From: Pekka Paalanen @ 2015-05-20 8:43 UTC (permalink / raw)
To: Giulio Camuffo, Derek Foreman, nerdopolis
Cc: Daniel Vetter, Intel Graphics Development, DRI Development,
wayland-devel, stable, Daniel Vetter
On Wed, 20 May 2015 10:36:32 +0200
Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> In
>
> commit f02ad907cd9e7fe3a6405d2d005840912f1ed258
> Author: Daniel Vetter <daniel.vetter@ffwll.ch>
> Date: Thu Jan 22 16:36:23 2015 +0100
>
> drm/atomic-helpers: Recover full cursor plane behaviour
>
> we've added a hack to atomic helpers to never to vblank waits for
> cursor updates through the legacy apis since that's what X expects.
> Unfortunately we've (again) forgotten to adjust the transitional
> helpers. Do this now.
>
> This fixes regressions for drivers only partially converted over to
> atomic (like i915).
>
> Reported-by: Pekka Paalanen <ppaalanen@gmail.com>
> Cc: Pekka Paalanen <ppaalanen@gmail.com>
> Cc: stable@vger.kernel.org
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> ---
> drivers/gpu/drm/drm_plane_helper.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c
> index 40c1db9ad7c3..2f0ed11024eb 100644
> --- a/drivers/gpu/drm/drm_plane_helper.c
> +++ b/drivers/gpu/drm/drm_plane_helper.c
> @@ -465,6 +465,9 @@ int drm_plane_helper_commit(struct drm_plane *plane,
> if (!crtc[i])
> continue;
>
> + if (crtc[i]->cursor == plane)
> + continue;
> +
> /* There's no other way to figure out whether the crtc is running. */
> ret = drm_crtc_vblank_get(crtc[i]);
> if (ret == 0) {
Hi,
just adding more people to CC who might want to test this.
When you test this, please make sure your Weston does *NOT* have this
patch:
http://cgit.freedesktop.org/wayland/weston/commit/?id=6858383d51b12632481370fdc7d886a1e6bb4ebd
That is, use Weston 1.7.92 or earlier.
Thanks,
pq
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Intel-gfx] [PATCH] drm/plane-helper: Adapt cursor hack to transitional helpers
2015-05-20 8:36 [PATCH] drm/plane-helper: Adapt cursor hack to transitional helpers Daniel Vetter
2015-05-20 8:43 ` Pekka Paalanen
@ 2015-05-21 14:17 ` Mario Kleiner
2015-05-22 5:50 ` Jani Nikula
1 sibling, 1 reply; 4+ messages in thread
From: Mario Kleiner @ 2015-05-21 14:17 UTC (permalink / raw)
To: Daniel Vetter, Intel Graphics Development, DRI Development
Cc: Daniel Vetter, Pekka Paalanen, stable, wayland-devel
On 05/20/2015 10:36 AM, Daniel Vetter wrote:
> In
>
> commit f02ad907cd9e7fe3a6405d2d005840912f1ed258
> Author: Daniel Vetter <daniel.vetter@ffwll.ch>
> Date: Thu Jan 22 16:36:23 2015 +0100
>
> drm/atomic-helpers: Recover full cursor plane behaviour
>
> we've added a hack to atomic helpers to never to vblank waits for
> cursor updates through the legacy apis since that's what X expects.
> Unfortunately we've (again) forgotten to adjust the transitional
> helpers. Do this now.
>
> This fixes regressions for drivers only partially converted over to
> atomic (like i915).
>
> Reported-by: Pekka Paalanen <ppaalanen@gmail.com>
> Cc: Pekka Paalanen <ppaalanen@gmail.com>
> Cc: stable@vger.kernel.org
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> ---
> drivers/gpu/drm/drm_plane_helper.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c
> index 40c1db9ad7c3..2f0ed11024eb 100644
> --- a/drivers/gpu/drm/drm_plane_helper.c
> +++ b/drivers/gpu/drm/drm_plane_helper.c
> @@ -465,6 +465,9 @@ int drm_plane_helper_commit(struct drm_plane *plane,
> if (!crtc[i])
> continue;
>
> + if (crtc[i]->cursor == plane)
> + continue;
> +
> /* There's no other way to figure out whether the crtc is running. */
> ret = drm_crtc_vblank_get(crtc[i]);
> if (ret == 0) {
>
This one is
Reviewed-and-tested-by: Mario Kleiner <mario.kleiner.de@gmail.com>
I was looking into Weston performance and the cursor problem, so had
necessary tracing in place to test this. I can confirm that cursor
related blocking in Westons drm-backend execution are gone with this
patch applied, whereas they are still present when using hardware
overlays on Intel, as expected.
So hardware cursors should be fine again, once the patch also ends in
stable kernels.
thanks,
-mario
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Intel-gfx] [PATCH] drm/plane-helper: Adapt cursor hack to transitional helpers
2015-05-21 14:17 ` [Intel-gfx] " Mario Kleiner
@ 2015-05-22 5:50 ` Jani Nikula
0 siblings, 0 replies; 4+ messages in thread
From: Jani Nikula @ 2015-05-22 5:50 UTC (permalink / raw)
To: Mario Kleiner, Daniel Vetter, Intel Graphics Development,
DRI Development
Cc: Daniel Vetter, stable, wayland-devel
On Thu, 21 May 2015, Mario Kleiner <mario.kleiner.de@gmail.com> wrote:
> On 05/20/2015 10:36 AM, Daniel Vetter wrote:
>> In
>>
>> commit f02ad907cd9e7fe3a6405d2d005840912f1ed258
>> Author: Daniel Vetter <daniel.vetter@ffwll.ch>
>> Date: Thu Jan 22 16:36:23 2015 +0100
>>
>> drm/atomic-helpers: Recover full cursor plane behaviour
>>
>> we've added a hack to atomic helpers to never to vblank waits for
>> cursor updates through the legacy apis since that's what X expects.
>> Unfortunately we've (again) forgotten to adjust the transitional
>> helpers. Do this now.
>>
>> This fixes regressions for drivers only partially converted over to
>> atomic (like i915).
>>
>> Reported-by: Pekka Paalanen <ppaalanen@gmail.com>
>> Cc: Pekka Paalanen <ppaalanen@gmail.com>
>> Cc: stable@vger.kernel.org
>> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
>> ---
>> drivers/gpu/drm/drm_plane_helper.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c
>> index 40c1db9ad7c3..2f0ed11024eb 100644
>> --- a/drivers/gpu/drm/drm_plane_helper.c
>> +++ b/drivers/gpu/drm/drm_plane_helper.c
>> @@ -465,6 +465,9 @@ int drm_plane_helper_commit(struct drm_plane *plane,
>> if (!crtc[i])
>> continue;
>>
>> + if (crtc[i]->cursor == plane)
>> + continue;
>> +
>> /* There's no other way to figure out whether the crtc is running. */
>> ret = drm_crtc_vblank_get(crtc[i]);
>> if (ret == 0) {
>>
>
> This one is
>
> Reviewed-and-tested-by: Mario Kleiner <mario.kleiner.de@gmail.com>
>
> I was looking into Weston performance and the cursor problem, so had
> necessary tracing in place to test this. I can confirm that cursor
> related blocking in Westons drm-backend execution are gone with this
> patch applied, whereas they are still present when using hardware
> overlays on Intel, as expected.
>
> So hardware cursors should be fine again, once the patch also ends in
> stable kernels.
Pushed to our topic/drm-fixes, thanks for the patch and review.
BR,
Jani.
>
> thanks,
> -mario
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Jani Nikula, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-22 5:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-20 8:36 [PATCH] drm/plane-helper: Adapt cursor hack to transitional helpers Daniel Vetter
2015-05-20 8:43 ` Pekka Paalanen
2015-05-21 14:17 ` [Intel-gfx] " Mario Kleiner
2015-05-22 5:50 ` Jani Nikula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).