Tonga DC vblank_mode=0 not working as expected fullscreen
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: [email protected]
Reporter: [email protected]
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.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
--- Comment #1 from Michel Dänzer <[email protected]> --- (In reply to Andy Furniss from comment #0)
Quoted 1 line
R9285, I notice that on both drm-next-4.15-dc and amd-staging-drm-next,
Which commit exactly of amd-staging-drm-next?
Quoted 3 lines
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. :)
Quoted 5 lines
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.
Quoted 1 line
It doesn't happen with a months older DC kernel I have [...]
Can you try bisecting? Otherwise I'll try next week.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
--- Comment #2 from Andy Furniss <[email protected]> --- (In reply to Michel Dänzer from comment #1)
Quoted 4 lines
(In reply to Andy Furniss from comment #0)
Quoted 1 line
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
Quoted 5 lines
Quoted 3 lines
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.
Quoted 4 lines
Quoted 4 lines
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.
Quoted 8 lines
Quoted 1 line
Maybe this is expected?
Definitely not, looks like there's been a regression affecting async flips.
Quoted 1 line
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.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
--- Comment #3 from Andy Furniss <[email protected]> --- 786fb38531e8be6ebc5f81d1133f4aabaad70b1c is the first bad commit commit 786fb38531e8be6ebc5f81d1133f4aabaad70b1c
Author: Bhawanpreet Lakha <[email protected]> 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
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
--- Comment #4 from Harry Wentland <[email protected]> --- 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?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
--- Comment #5 from Andy Furniss <[email protected]> --- 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".
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
--- Comment #6 from Andy Furniss <[email protected]> --- (In reply to Andy Furniss from comment #5)
Quoted 1 line
When on the menu screen fps should now be seen lower left.
ugh, it's lower right.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
--- Comment #7 from Michel Dänzer <[email protected]> --- 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.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
Bhawan Lakha <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #8 from Bhawan Lakha <[email protected]> --- 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
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
[email protected]
Tested-by Michel Dänzerhttps://bugs.freedesktop.org/show_bug.cgi?id=103486
--- Comment #9 from Michel Dänzer <[email protected]> --- (In reply to Bhawan Lakha from comment #8)
Quoted 2 lines
Created attachment 135202 [details] [review]
Patch to fixvblank_modenot working properly
P.S. I had to convert the patch from DOS- to Unix-style line terminators before applying it.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
Bhawan Lakha <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #135202|0 |1
is obsolete| |
--- Comment #10 from Bhawan Lakha <[email protected]> --- Created attachment 135203
--> https://bugs.freedesktop.org/attachment.cgi?id=135203&action=edit
Unix-style line terminators
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
--- Comment #11 from Andy Furniss <[email protected]> --- Patch is good for me as well, thanks.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=103486
Andy Furniss <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #12 from Andy Furniss <[email protected]> --- Fix is in mentioned kernels.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel