All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes"
@ 2017-10-22 23:22 bugzilla-daemon
  2017-10-23 23:18 ` bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-10-22 23:22 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 103408
           Summary: [bisected] frames dropped during video replay due to
                    "add hardware_planes_only to list of affected planes"
           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: jb5sgc1n.nya@20mm.eu

After updating my kernel compiled from
https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-drm-next recently
I noticed that when displaying videos full screen (displayed as 3840x2160 @
23.9760 Hz) the replay would loose/drop frames every 10 to 20 seconds.

I bisected the latest commits to amd-staging-drm-next and I could identify one
singe commit that 100% reproduceably introduces this symptom:

247258874c90af2b639b6f0dddd839c97464dacb is the first bad commit
commit 247258874c90af2b639b6f0dddd839c97464dacb
Author: Shirish S <shirish.s@amd.com>
Date:   Wed Sep 27 15:15:38 2017 +0530

    drm/amd/display: add hardware_planes_only to list of affected planes

    For SoC's having software designed cursor plane,
    should be treated differently than hardware cursor planes.

    The DRM core initializes cursor plane by default with
    legacy_cursor_update set.

    Hence legacy_cursor_update can be use effectively
    to handle software cursor planes' update and atomicity
    functionalities.

    This patch uses this variable to decide in the atomic_check
    to whether add a requested plane to the list of affected planes or
    not, hence fixing the issue of co-existence of MPO, i.e,
    setting of available hardware planes like underlay and
    updation of cursor planes as well.

    Without this patch when underlay is set from user space,
    only blank screen with backlight is visible.

    Signed-off-by: Shirish S <shirish.s@amd.com>
    Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>

When I revert just this commit from today's HEAD of amd-staging-drm-next, the
frame drops are gone.

How to reproduce:

- Use an HDMI connected 3840x2160 display, with Option "TearFree" "On" in your
Xorg config file amdgpu Device section. (Without "TearFree" "On", playing
videos is totally uglyfied by teared frames, so it would be hard to notice the
dropped frames.)

- Use "xrandr --output HDMI-A-0 --mode 3840x2160 --rate 23.976" to set your
display to the refresh rate of the video - I only tried videos recorded at
23.976, don't know whether the same effect happens with other frame rates.

- Use a player like "mpv" to full-screen(!) display a video that contains
scenes with smooth panning - in such scenes, the effect of dropping frames is
most pronounced. You will also see the "dropped frame" count emitted in the
status line of "mpv" increase.

Possible other causes I ruled out:

- Using different video-drivers with mpv - Xv, X11, opengl, all expose the same
symptom.

- Using hardware (vaapi) versus software decoding makes no difference.

- Using different parameters for mpv's "--video-sync=..." option makes no
difference - the drops occur in every mode

- Manually setting the GPU to e.g.
   cd /sys/class/drm/card0/device
   echo manual >power_dpm_force_performance_level
   echo 3 >pp_dpm_sclk
   echo 1 >pp_dpm_mclk 
  does not make a difference - the symptom occurs with and without this

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

[-- Attachment #1.2: Type: text/html, Size: 5357 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] 8+ messages in thread

* [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes"
  2017-10-22 23:22 [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes" bugzilla-daemon
@ 2017-10-23 23:18 ` bugzilla-daemon
  2017-10-25 18:56 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-10-23 23:18 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from dwagner <jb5sgc1n.nya@20mm.eu> ---
Created attachment 135018
  --> https://bugs.freedesktop.org/attachment.cgi?id=135018&action=edit
1-minute test video, smooth horizontal pan in 3840x2160 23.976 fps

For more convenient reproducability, I created and attached a one-minute sample
video file, which just contains a smooth horizontal pan over big letters.

When I replay this file with the defect, about 7 frames are dropped, easily
spottable as harsh temporary stops in the normally smooth scrolling.

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

[-- Attachment #1.2: Type: text/html, Size: 1801 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] 8+ messages in thread

* [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes"
  2017-10-22 23:22 [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes" bugzilla-daemon
  2017-10-23 23:18 ` bugzilla-daemon
@ 2017-10-25 18:56 ` bugzilla-daemon
  2017-10-26 14:00 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-10-25 18:56 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from Andy Furniss <adf.lists@gmail.com> ---
I can reproduce this on R9 285 with a different setup.

Made a 60fps 1920x1080 from the vid here, lengthened by repeating 4x + added
time counter, removed audio.

Monitor is 60Hz 1920x1080 DVI-D. CPU and GPU on perf. No TearFree, but same
results if on (I don't need tearfree due to not using a compositing desktop).

mpv vo=vdpau/opengl/vaapi = mostly 10 sec glitches some 20.

kodi = every 5 seconds.

mplayer = 30 seconds.

With the commit reverted all are glitch free.

Also notice that wayland/weston (composited full screen) doesn't have the
issue.

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

[-- Attachment #1.2: Type: text/html, Size: 1683 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] 8+ messages in thread

* [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes"
  2017-10-22 23:22 [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes" bugzilla-daemon
  2017-10-23 23:18 ` bugzilla-daemon
  2017-10-25 18:56 ` bugzilla-daemon
@ 2017-10-26 14:00 ` bugzilla-daemon
  2017-10-26 14:04 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-10-26 14:00 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #3 from shirish.s@amd.com ---
Created attachment 135062
  --> https://bugs.freedesktop.org/attachment.cgi?id=135062&action=edit
check if modeset is required before adding plane

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

[-- Attachment #1.2: Type: text/html, Size: 1493 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] 8+ messages in thread

* [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes"
  2017-10-22 23:22 [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes" bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-10-26 14:00 ` bugzilla-daemon
@ 2017-10-26 14:04 ` bugzilla-daemon
  2017-10-26 20:51 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-10-26 14:04 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from shirish.s@amd.com ---
I have tested the bisected patch:

drm/amd/display: add hardware_planes_only to list of affected planes

in ChromeOS on Stoney platform and did not find any regression during rendering
or video p/b, also may be the reason why Andy Furniss did not see the issue on
composited full screen.

I have attached a patch in anticipation to the description of bug, please try
it and let me know if it works.

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

[-- Attachment #1.2: Type: text/html, Size: 1478 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] 8+ messages in thread

* [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes"
  2017-10-22 23:22 [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes" bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-10-26 14:04 ` bugzilla-daemon
@ 2017-10-26 20:51 ` bugzilla-daemon
  2017-10-26 21:45 ` bugzilla-daemon
  2017-10-27  3:28 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-10-26 20:51 UTC (permalink / raw)
  To: dri-devel


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

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

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

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

[-- Attachment #1.2: Type: text/html, Size: 1141 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] 8+ messages in thread

* [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes"
  2017-10-22 23:22 [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes" bugzilla-daemon
                   ` (4 preceding siblings ...)
  2017-10-26 20:51 ` bugzilla-daemon
@ 2017-10-26 21:45 ` bugzilla-daemon
  2017-10-27  3:28 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-10-26 21:45 UTC (permalink / raw)
  To: dri-devel


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

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

dwagner <jb5sgc1n.nya@20mm.eu> changed:

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

--- Comment #6 from dwagner <jb5sgc1n.nya@20mm.eu> ---
Yes, the patch fixes this issue for me, too. Thank!

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

[-- Attachment #1.2: Type: text/html, Size: 2229 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] 8+ messages in thread

* [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes"
  2017-10-22 23:22 [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes" bugzilla-daemon
                   ` (5 preceding siblings ...)
  2017-10-26 21:45 ` bugzilla-daemon
@ 2017-10-27  3:28 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-10-27  3:28 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #7 from shirish.s@amd.com ---
Cool, will get the patch reviewed and merged.

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

[-- Attachment #1.2: Type: text/html, Size: 1168 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] 8+ messages in thread

end of thread, other threads:[~2017-10-27  3:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-22 23:22 [Bug 103408] [bisected] frames dropped during video replay due to "add hardware_planes_only to list of affected planes" bugzilla-daemon
2017-10-23 23:18 ` bugzilla-daemon
2017-10-25 18:56 ` bugzilla-daemon
2017-10-26 14:00 ` bugzilla-daemon
2017-10-26 14:04 ` bugzilla-daemon
2017-10-26 20:51 ` bugzilla-daemon
2017-10-26 21:45 ` bugzilla-daemon
2017-10-27  3:28 ` 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.