Bug 101308 - [DP] [HSW] Wrong video streaming behavior
Summary: [DP] [HSW] Wrong video streaming behavior
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high critical
Assignee: Dhinakaran Pandiyan
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-05 20:46 UTC by Victor Lopez
Modified: 2017-08-03 17:49 UTC (History)
2 users (show)

See Also:
i915 platform: HSW
i915 features: display/DP


Attachments
Adobe video speed failure (993.81 KB, text/plain)
2017-06-05 20:46 UTC, Victor Lopez
no flags Details
Chopped video failure (1.09 MB, text/plain)
2017-06-05 20:47 UTC, Victor Lopez
no flags Details

Description Victor Lopez 2017-06-05 20:46:42 UTC
Created attachment 131725 [details]
Adobe video speed failure

System Environment
=======
OS: Linux Ubuntu 17.04 64 bits
Kernel: 4.12.0-rc3-drm-tip-ww2-commit-187376e+
X-Org: 1.19.99.1

Regression?
=======
No

Bug detailed description
=======
Embedded content derived from Adobe products plays at a high rate of speed, disregarding if the video has been buffered or not, it will play at high speed.

Videos have frame rate issues as they seem to get stuck momentarily (specially with the FLV/SWF formats), the higher the resolution, the heavier the problem (chopped playback)

Reproduce Steps
==============
Open a video (streamed or local), from 720p resolution and up

Expected Result
=============
It should play at normal speed.

Actual Result
===========
Plays intermittently at different frame rates with a regular frame drop every one or two seconds and, in the case of FLV/SWF videos it plays at a 2X - 3X playback rate when not chopped or stuck.

Analysis & Root Cause
===================
Possible and maybe required bottleneck detection within the graphics stack (even per-output port display sequencing), improper buffer usage.

It may happen due to the fact of the audio clocks being misconfigured that the video couldn't find a correct speed value to display the required amount of textures buffered, however, this is a totally different behavior while using x264 or other video codecs, it seems to fail only with Adobe derived video content.
Comment 1 Victor Lopez 2017-06-05 20:47:47 UTC
Created attachment 131726 [details]
Chopped video failure
Comment 2 Ricardo Madrigal 2017-08-03 17:48:52 UTC
I verified this issue with the follow configuration: 
And everything works well

I tested it on Platform HSD-NUC with drm-tip 4.12.0-rc7+ connected (mDP-DP) to monitor - ASUS (1920x1080)

=====================================
             Software
======================================
kernel version              : 4.12.0 +
xorg-xserver              : 1.19.3
os version                  : Ubuntu 17.04
platform                   : HSW-Nuc

======================================
             Hardware
======================================
platform                   : Haswell-Nuc
motherboard id             : D54250WYK
form factor                : Desktop
cpu family                 : Core i5
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz
gpu card                   : Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 3.79 GB
max memory ram             : 16 GB
display resolution         : 3520x1080
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 69
cpu stepping               : 1
socket                     : Socket LGA1150
signature                  : Type 0, Family 6, Model 69, Stepping 1
hard drive                 : 223GiB (240GB)
current cd clock frequency : 450000 kHz
maximum cd clock frequency : 450000 kHz
========================================


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.