All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
@ 2017-10-27 15:50 bugzilla-daemon
  2017-10-27 16:14 ` bugzilla-daemon
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-10-27 15:50 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1111 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

            Bug ID: 103486
           Summary: Tonga DC vblank_mode=0 not working as expected
                    fullscreen
           Product: DRI
           Version: DRI git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: adf.lists@gmail.com

R9285, I notice that on both drm-next-4.15-dc and amd-staging-drm-next, when
using DC, vblank_mode=0 works windowed but not properly full screen.

Tried forcing TearFree from auto to off no difference.

There is no tearing where it would be expected - but it's not like it's just
being ignored, a bench mark test will cap fps at 2X refresh rate rather than
1X.

Maybe this is expected?

It doesn't happen with a months older DC kernel I have and looking at DC
benches on Phoronix I don't see any fps cap.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2395 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
@ 2017-10-27 16:14 ` bugzilla-daemon
  2017-10-27 20:17 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-10-27 16:14 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 986 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

--- Comment #1 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Andy Furniss from comment #0)
> R9285, I notice that on both drm-next-4.15-dc and amd-staging-drm-next,

Which commit exactly of amd-staging-drm-next?


> when using DC, vblank_mode=0 works windowed but not properly full screen.
> 
> Tried forcing TearFree from auto to off no difference.

That's expected; forcing TearFree on works around the problem though. :)


> There is no tearing where it would be expected - but it's not like it's just
> being ignored, a bench mark test will cap fps at 2X refresh rate rather than
> 1X.
> 
> Maybe this is expected?

Definitely not, looks like there's been a regression affecting async flips.


> It doesn't happen with a months older DC kernel I have [...]

Can you try bisecting? Otherwise I'll try next week.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1968 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
  2017-10-27 16:14 ` bugzilla-daemon
@ 2017-10-27 20:17 ` bugzilla-daemon
  2017-10-27 23:03 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-10-27 20:17 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1787 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

--- Comment #2 from Andy Furniss <adf.lists@gmail.com> ---
(In reply to Michel Dänzer from comment #1)
> (In reply to Andy Furniss from comment #0)
> > R9285, I notice that on both drm-next-4.15-dc and amd-staging-drm-next,
> 
> Which commit exactly of amd-staging-drm-next?

I was the version before 11h ago update at time of filing bug,

4ce527eb8bb3c4130f3f6bcd9b4b2efe25fcd534
drm/amdgpu: Remove job->s_entity to avoid keeping reference to stale pointer

I first noticed on the version before that, while testing a different bug but
don't have the head commit available. I've just updated to what is current now
and it's the same. I see loads of warnings at startup, but see these have
already been reported.

7781a8c68a6ad110e0d3e11a38357b599ab04da3
drm/amdgpu: remove extra parameter from amdgpu_ttm_bind() v2

> > when using DC, vblank_mode=0 works windowed but not properly full screen.
> > 
> > Tried forcing TearFree from auto to off no difference.
> 
> That's expected; forcing TearFree on works around the problem though. :)

Ahh, so it does. I knew auto should = off for me, but it was worth being
explicit.

> > There is no tearing where it would be expected - but it's not like it's just
> > being ignored, a bench mark test will cap fps at 2X refresh rate rather than
> > 1X.
> > 
> > Maybe this is expected?
> 
> Definitely not, looks like there's been a regression affecting async flips.
> 
> 
> > It doesn't happen with a months older DC kernel I have [...]
> 
> Can you try bisecting? Otherwise I'll try next week.

I'll try, I just didn't want to start if this was already known/expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2846 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
  2017-10-27 16:14 ` bugzilla-daemon
  2017-10-27 20:17 ` bugzilla-daemon
@ 2017-10-27 23:03 ` bugzilla-daemon
  2017-10-31 20:57 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-10-27 23:03 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 632 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

--- Comment #3 from Andy Furniss <adf.lists@gmail.com> ---
786fb38531e8be6ebc5f81d1133f4aabaad70b1c is the first bad commit
commit 786fb38531e8be6ebc5f81d1133f4aabaad70b1c
Author: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Date:   Tue Sep 12 13:56:57 2017 -0400

    drm/amd/display: Refactor dc_update_planes_and_stream.

    Split update_planes_and_stream_state (split Software and Hardware
    programming) as the state is already build, so we only need to
    program the hardware

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1492 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-10-27 23:03 ` bugzilla-daemon
@ 2017-10-31 20:57 ` bugzilla-daemon
  2017-11-01  0:32 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-10-31 20:57 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 356 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

--- Comment #4 from Harry Wentland <harry.wentland@amd.com> ---
Thanks for the bisect. Bhawan is looking at what in his change might have
caused this.

How are you testing it? glxgears in fullscreen or some other app?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1160 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-10-31 20:57 ` bugzilla-daemon
@ 2017-11-01  0:32 ` bugzilla-daemon
  2017-11-01  0:39 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-11-01  0:32 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1095 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

--- Comment #5 from Andy Furniss <adf.lists@gmail.com> ---
glxgears is no good for this one, it doesn't seem to really get fullscreen.

I don't use a compositing window manager, if you do I guess you'll need to set
it to disable compositing for full screen.

To seeing if I can get full screen tearing I would use something like - 

vsync720p60.mp4 -
https://drive.google.com/file/d/0BxP5-S1t9VEEejRkMzlRck5GNTQ/view?usp=sharing

With no compositing and TearFree off I expect to see tearing playing like -

vblank_mode=0 mpv --vo=opengl -fs vsync720p60.mp4

For the frame rate capping issue I noticed with xonotic.

In the settings menu, video tab, make sure vertical synchronization is
unckecked.
On the misc tab check show frames per second.

When on the menu screen fps should now be seen lower left.
For "bad" it's 120 for good it will be 200. Running a timedemo will also show
being capped at 120 for "bad" but unlimited for "good".

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2016 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
                   ` (4 preceding siblings ...)
  2017-11-01  0:32 ` bugzilla-daemon
@ 2017-11-01  0:39 ` bugzilla-daemon
  2017-11-01  8:59 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-11-01  0:39 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 327 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

--- Comment #6 from Andy Furniss <adf.lists@gmail.com> ---
(In reply to Andy Furniss from comment #5)

> When on the menu screen fps should now be seen lower left.

ugh, it's lower right.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
                   ` (5 preceding siblings ...)
  2017-11-01  0:39 ` bugzilla-daemon
@ 2017-11-01  8:59 ` bugzilla-daemon
  2017-11-01 17:07 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-11-01  8:59 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 418 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

--- Comment #7 from Michel Dänzer <michel@daenzer.net> ---
FWIW, I've been testing with glxgears, either

 glxgears -fullscreen

or making the window fullscreen manually. This may not work depending on the
window manager, I'm using xfwm4 with compositing disabled for testing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1218 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
                   ` (6 preceding siblings ...)
  2017-11-01  8:59 ` bugzilla-daemon
@ 2017-11-01 17:07 ` bugzilla-daemon
  2017-11-01 17:15 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-11-01 17:07 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 636 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

Bhawan Lakha <bhawanpreet.lakha@amd.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bhawanpreet.lakha@amd.com

--- Comment #8 from Bhawan Lakha <bhawanpreet.lakha@amd.com> ---
Created attachment 135202
  --> https://bugs.freedesktop.org/attachment.cgi?id=135202&action=edit
Patch to fix vblank_mode not working properly

Please try this patch

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2269 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
                   ` (7 preceding siblings ...)
  2017-11-01 17:07 ` bugzilla-daemon
@ 2017-11-01 17:15 ` bugzilla-daemon
  2017-11-01 17:20 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-11-01 17:15 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 486 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

--- Comment #9 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Bhawan Lakha from comment #8)
> Created attachment 135202 [details] [review]
> Patch to fix vblank_mode not working properly

Tested-by: Michel Dänzer <michel.daenzer@amd.com>

P.S. I had to convert the patch from DOS- to Unix-style line terminators before
applying it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1749 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
                   ` (8 preceding siblings ...)
  2017-11-01 17:15 ` bugzilla-daemon
@ 2017-11-01 17:20 ` bugzilla-daemon
  2017-11-01 19:53 ` bugzilla-daemon
  2017-11-15 21:44 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-11-01 17:20 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 621 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

Bhawan Lakha <bhawanpreet.lakha@amd.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #135202|0                           |1
        is obsolete|                            |

--- Comment #10 from Bhawan Lakha <bhawanpreet.lakha@amd.com> ---
Created attachment 135203
  --> https://bugs.freedesktop.org/attachment.cgi?id=135203&action=edit
Unix-style line terminators

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2192 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
                   ` (9 preceding siblings ...)
  2017-11-01 17:20 ` bugzilla-daemon
@ 2017-11-01 19:53 ` bugzilla-daemon
  2017-11-15 21:44 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-11-01 19:53 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 233 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

--- Comment #11 from Andy Furniss <adf.lists@gmail.com> ---
Patch is good for me as well, thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1033 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen
  2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
                   ` (10 preceding siblings ...)
  2017-11-01 19:53 ` bugzilla-daemon
@ 2017-11-15 21:44 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-11-15 21:44 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 522 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=103486

Andy Furniss <adf.lists@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Andy Furniss <adf.lists@gmail.com> ---
Fix is in mentioned kernels.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2047 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-11-15 21:44 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-27 15:50 [Bug 103486] Tonga DC vblank_mode=0 not working as expected fullscreen bugzilla-daemon
2017-10-27 16:14 ` bugzilla-daemon
2017-10-27 20:17 ` bugzilla-daemon
2017-10-27 23:03 ` bugzilla-daemon
2017-10-31 20:57 ` bugzilla-daemon
2017-11-01  0:32 ` bugzilla-daemon
2017-11-01  0:39 ` bugzilla-daemon
2017-11-01  8:59 ` bugzilla-daemon
2017-11-01 17:07 ` bugzilla-daemon
2017-11-01 17:15 ` bugzilla-daemon
2017-11-01 17:20 ` bugzilla-daemon
2017-11-01 19:53 ` bugzilla-daemon
2017-11-15 21:44 ` bugzilla-daemon

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.