All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michel Dänzer" <michel@daenzer.net>
To: "Dieter Nützel" <Dieter@nuetzel-hh.de>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/radeon: Program page flips to execute in hblank instead of vblank
Date: Wed, 02 Jul 2014 12:52:39 +0900	[thread overview]
Message-ID: <53B38207.9060009@daenzer.net> (raw)
In-Reply-To: <53B37871.20601@daenzer.net>

On 02.07.2014 12:11, Michel Dänzer wrote:
> On 02.07.2014 12:01, Dieter Nützel wrote:
>> Am 02.07.2014 02:29, schrieb Michel Dänzer:
>>> On 02.07.2014 01:46, Dieter Nützel wrote:
>>>> Am 01.07.2014 10:14, schrieb Michel Dänzer:
>>>>> From: Michel Dänzer <michel.daenzer@amd.com>
>>>>>
>>>>> But move the programming back to the vertical blank interrupt handler.
>>>>> And signal the flip as being completed immediately after programming it
>>>>> to the hardware.
>>>>>
>>>>> This way we don't have to guess whether or not the hardware will
>>>>> execute
>>>>> the flip in a given vertical blank period, avoiding a whole lot of
>>>>> trouble.
>>>>>
>>>>> Also, not using the page flip interrupt anymore avoids problems due to
>>>>> completing page flips earlier than expected by userspace.
>>>>>
>>>>> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
>>>>
>>>> Michel,
>>>>
>>>> against which tree is this first one?
>>>> Don't apply clean on 3.16-rc2.
>>>>
>>>> Can't find this in 'my' source (radeon_display.c).
>>>>
>>>>>>        radeon_crtc->flip_status = RADEON_FLIP_SUBMITTED; <<<
>>>>         spin_unlock_irqrestore(&crtc->dev->event_lock, flags);
>>>>         up_read(&rdev->exclusive_lock);
>>>
>>> The patch applies on top of my previous page flipping fix.
>>
>> Had some trouble with the first one but...
>> After digikam -> OpenGL Viewer (r600g/RV730 AGP)
>>
>> [-]
>> [   503.736] (II) RADEON(0): Modeline "1920x1080"x60.0  172.80  1920
>> 2040 2248 2576  1080 1081 1084 1118 -hsync +vsync (67.1 kHz e)
>> [   999.627] (WW) RADEON(0): flip queue failed: Device or resource busy
>> [   999.627] (WW) RADEON(0): Page flip failed: Device or resource busy
> 
> I saw these as well. It means the Xorg driver tried to submit another
> page flip before the previous one completed. That should be a Xorg
> driver / Mesa issue, but I think the Xorg driver handles this case
> gracefully with a copy instead of a flip.

I can also reproduce these with 3.15 without any additional page
flipping changes (and probably could with older kernels as well). It
happens for me when changing some GL apps from windowed to fullscreen
mode. I think the first flip is from kwin and the second, failing one
from the client.


-- 
Earthling Michel Dänzer            |                  http://www.amd.com
Libre software enthusiast          |                Mesa and X developer
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2014-07-02  3:52 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26  9:29 [PATCH 1/2] drm/radeon: Only enable and handle pageflip interrupts when needed Michel Dänzer
2014-06-26  9:29 ` [PATCH 2/2] drm/radeon: Track the status of a page flip more explicitly Michel Dänzer
2014-06-30  9:12   ` [PATCH v2] " Michel Dänzer
2014-06-30  9:14     ` Christian König
2014-07-01 16:23     ` Alex Deucher
2014-06-26 10:39 ` [PATCH 1/2] drm/radeon: Only enable and handle pageflip interrupts when needed Christian König
2014-06-26 11:51   ` Dieter Nützel
2014-06-27  0:53   ` Dieter Nützel
2014-06-27  1:03     ` Michel Dänzer
2014-06-27  1:08       ` Dieter Nützel
2014-06-27  2:06       ` Dieter Nützel
2014-06-27  3:03         ` Michel Dänzer
2014-06-27  3:17           ` Michel Dänzer
2014-06-27  2:58   ` Michel Dänzer
2014-06-27  8:18     ` Christian König
2014-06-27  9:44       ` Michel Dänzer
2014-06-27 10:47         ` Christian König
2014-06-30  9:34           ` Michel Dänzer
2014-06-30 12:31             ` Christian König
2014-06-30 16:22               ` Dieter Nützel
2014-07-01  8:14               ` [PATCH 1/2] drm/radeon: Program page flips to execute in hblank instead of vblank Michel Dänzer
2014-07-01  8:14                 ` [PATCH 2/2] drm/radeon: Remove radeon_kms_pflip_irq_get/put() Michel Dänzer
2014-07-01 10:12                 ` [PATCH 1/2] drm/radeon: Program page flips to execute in hblank instead of vblank Christian König
2014-07-02  3:55                   ` [PATCH v2 " Michel Dänzer
2014-07-02  3:55                     ` [PATCH v2 2/2] drm/radeon: Remove radeon_kms_pflip_irq_get/put() and the pflip atomic Michel Dänzer
2014-07-02 10:10                       ` [PATCH 1/2] drm/radeon: Move pinning the BO back to radeon_crtc_page_flip() Michel Dänzer
2014-07-02 10:10                         ` [PATCH 2/2] drm/radeon: Complete page flip even if waiting on the BO fence fails Michel Dänzer
2014-07-02 11:42                         ` [PATCH 1/2] drm/radeon: Move pinning the BO back to radeon_crtc_page_flip() Christian König
2014-07-02 11:35                     ` [PATCH v2 1/2] drm/radeon: Program page flips to execute in hblank instead of vblank Christian König
2014-07-01 16:46                 ` [PATCH " Dieter Nützel
2014-07-02  0:29                   ` Michel Dänzer
2014-07-02  3:01                     ` Dieter Nützel
2014-07-02  3:11                       ` Michel Dänzer
2014-07-02  3:52                         ` Michel Dänzer [this message]

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=53B38207.9060009@daenzer.net \
    --to=michel@daenzer.net \
    --cc=Dieter@nuetzel-hh.de \
    --cc=dri-devel@lists.freedesktop.org \
    /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.