Bug 95043 - [KBL] xrandr rotation is not working
Summary: [KBL] xrandr rotation is not working
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: highest normal
Assignee: Humberto Israel Perez Rodriguez
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-20 21:07 UTC by Humberto Israel Perez Rodriguez
Modified: 2016-07-01 14:59 UTC (History)
2 users (show)

See Also:
i915 platform: KBL
i915 features: display/HDMI


Attachments
dmesg.log (63.35 KB, text/plain)
2016-04-20 21:07 UTC, Humberto Israel Perez Rodriguez
no flags Details
Xorg.log (19.74 KB, text/plain)
2016-04-20 21:08 UTC, Humberto Israel Perez Rodriguez
no flags Details
xorg (22.54 KB, text/plain)
2016-05-17 15:58 UTC, maria guadalupe
no flags Details

Description Humberto Israel Perez Rodriguez 2016-04-20 21:07:54 UTC
Created attachment 123099 [details]
dmesg.log

Bug description
====================
xrand rotation is not working on HDMI

Steps to reproduce
===================
1) xrandr --output HDMI --rotation left / right 

Current result
===================
xrand rotation is not working on HDMI

Expected result
===================
rotation must be works without any issues

Additional information
=====================
rotation for normal and inverted works without issues

Attachments
====================
dmesg.log
Xorg.log

Hardware information
========================================================
Platform                            : KBL (RVP7)
Motherboard model                   : Kabylake Client platform
Motherboard type                    : Skylake U DDR3L RVP7 Laptop
Motherboard manufacturer            : Intel Corporation
CPU family                          : Other
CPU information                     : Genuine Intel(R) CPU 0000 @ 2.60GHz
GPU Card                            : Intel Corporation Device 5916 (prog-if 00 [VGA controller])
Memory ram                          : 4 GB
Maximum memory ram allowed          : 16 GB
CPU's number                        : 4


Software information
========================================================
Linux distribution : Ubuntu 15.10 x64
Bios  : 75.03
KSC   : 1.20


Graphic stack
=========================================================

 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-25-gcc9a53f 
	 commit : cc9a53f 
	 author : Daniel Vetter <daniel.vetter@ffwll.ch> 
	 age : 3 weeks ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 10 weeks ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-634-g81029be 
	 commit : 81029be 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 2 days ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0-1-g2339d10 
	 commit : 2339d10 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 5 weeks ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0-8-g2c1bec0 
	 commit : 2c1bec0 
	 author : peng.chen <peng.c.chen@intel.com> 
	 age : 13 days ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 4 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.0-274-g8437955 
	 commit : 8437955 
	 author : Olivier Fourdan <ofourdan@redhat.com> 
	 age : 5 weeks ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-189-g7bd2ac6 
	 commit : 7bd2ac6 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 days ago 


kernel 
==============================================
commit d9131d62d18ba94fb3ca019f1156c22b5f4ce23c
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Fri Apr 15 14:54:26 2016 +0100

    drm-intel-nightly: 2016y-04m-15d-13h-53m-44s UTC integration manifest


Kernel version : 4.6.0-rc3
Architecture : source amd64 all
Homepage : http://www.kernel.org/
Comment 1 Humberto Israel Perez Rodriguez 2016-04-20 21:08:26 UTC
Created attachment 123100 [details]
Xorg.log
Comment 2 Chris Wilson 2016-04-20 21:14:11 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #0)
>  --> Component : xf86-video-intel 
> 	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
> 	 tag : 2.99.917-634-g81029be 
> 	 commit : 81029be 
> 	 author : Chris Wilson <chris@chris-wilson.co.uk> 
> 	 age : 2 days ago 

This is not the driver that corresponds with the Xorg.0.log.

At any rate, you probably need

commit c62177ec321e009a1abcdc969dd808fb37136013
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Apr 20 21:31:46 2016 +0100

    sna: Force the shadow buffer even after we fail to set the crtc for TearFree
Comment 3 Humberto Israel Perez Rodriguez 2016-04-21 16:40:21 UTC
(In reply to Chris Wilson from comment #2)
> (In reply to Humberto Israel Perez Rodriguez from comment #0)
> >  --> Component : xf86-video-intel 
> > 	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
> > 	 tag : 2.99.917-634-g81029be 
> > 	 commit : 81029be 
> > 	 author : Chris Wilson <chris@chris-wilson.co.uk> 
> > 	 age : 2 days ago 
> 
> This is not the driver that corresponds with the Xorg.0.log.
> 
> At any rate, you probably need
> 
> commit c62177ec321e009a1abcdc969dd808fb37136013
> Author: Chris Wilson <chris@chris-wilson.co.uk>
> Date:   Wed Apr 20 21:31:46 2016 +0100
> 
>     sna: Force the shadow buffer even after we fail to set the crtc for
> TearFree

Hi , this commit is does not appers in drm-intel-nightly, so i've tried with the latest available and the result is the same

commit 9dabb0053b63bc32ab6ad5d13209d1e43395313f
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Apr 21 11:27:44 2016 +0200

    drm-intel-nightly: 2016y-04m-21d-09h-27m-12s UTC integration manifest
Comment 4 Humberto Israel Perez Rodriguez 2016-04-21 17:23:52 UTC
it also happen with 3 pipes, but with 3 pipes sometimes works and sometimes not
Comment 5 Kimmo Nikkanen 2016-04-27 07:30:39 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #3)
> (In reply to Chris Wilson from comment #2)
> > (In reply to Humberto Israel Perez Rodriguez from comment #0)
> > >  --> Component : xf86-video-intel 
> > > 	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
> > > 	 tag : 2.99.917-634-g81029be 
> > > 	 commit : 81029be 
> > > 	 author : Chris Wilson <chris@chris-wilson.co.uk> 
> > > 	 age : 2 days ago 
> > 
> > This is not the driver that corresponds with the Xorg.0.log.
> > 
> > At any rate, you probably need
> > 
> > commit c62177ec321e009a1abcdc969dd808fb37136013
> > Author: Chris Wilson <chris@chris-wilson.co.uk>
> > Date:   Wed Apr 20 21:31:46 2016 +0100
> > 
> >     sna: Force the shadow buffer even after we fail to set the crtc for
> > TearFree
> 
> Hi , this commit is does not appers in drm-intel-nightly, so i've tried with
> the latest available and the result is the same
> 
> commit 9dabb0053b63bc32ab6ad5d13209d1e43395313f
> Author: Daniel Vetter <daniel.vetter@ffwll.ch>
> Date:   Thu Apr 21 11:27:44 2016 +0200
> 
>     drm-intel-nightly: 2016y-04m-21d-09h-27m-12s UTC integration manifest

It does not appear in the nightly as its not a Kernel patch but rather a backend for our xf86-intel-video driver.
Comment 6 yann 2016-04-29 12:11:12 UTC
Milestone criteria blocker so increasing priority
Comment 7 Humberto Israel Perez Rodriguez 2016-04-29 15:53:01 UTC
This issue still happen with the following configuration on KBL

Software information
====================
Kernel version                      : 4.6.0-rc4-drm-intel-nightly-ww17-commit-1e81bac+
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Bios revision                       : 5.5
KSC revision                        : 1.20


Hardware information
=====================
Platform                            : KBL (RVP7)
Motherboard model                   : Kabylake Client platform
Motherboard type                    : Skylake U DDR3L RVP7 Laptop
Motherboard manufacturer            : Intel Corporation
CPU family                          : Other
CPU information                     : Genuine Intel(R) CPU 0000 @ 2.60GHz
GPU Card                            : Intel Corporation Device 5916 (prog-if 00 [VGA controller])
Memory ram                          : 4 GB

Kernel
======================
commit 1e81bacf1f7fdbdf83f46b55389713fa13cb1256
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Apr 24 11:36:51 2016 +0100

    drm-intel-nightly: 2016y-04m-24d-10h-36m-11s UTC integration manifest


Kernel version : 4.6.0-rc4
Architecture : source amd64 all
Homepage : http://www.kernel.org/


Graphic stack
=====================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-26-g739b888 
	 commit : 739b888 
	 author : Nicolas Dechesne <nicolas.dechesne@linaro.org> 
	 age : 2 weeks ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 3 months ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-640-gbca4e0e 
	 commit : bca4e0e 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 2 days ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0-1-g2339d10 
	 commit : 2339d10 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 6 weeks ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0-8-g2c1bec0 
	 commit : 2c1bec0 
	 author : peng.chen <peng.c.chen@intel.com> 
	 age : 3 weeks ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 5 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.0-291-g16e4bce 
	 commit : 16e4bce 
	 author : Simon Thum <simon.thum@gmx.de> 
	 age : 2 weeks ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-212-g1e9a3ac 
	 commit : 1e9a3ac 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 days ago
Comment 8 maria guadalupe 2016-05-17 15:57:49 UTC
This issue still happen with the following configuration on KBL, please see the attachment "Xorg.log" for more information about it

rotation left / right still not working


Attachments
====================
Xorg.log

|=== Software information ===| 

 ++ Kernel version              	: 4.6.0-rc7-nightly+ 
 ++ Linux distribution          	: Ubuntu 15.10 
 ++ Architecture                	: 64-bit 
 ++ Mesa version                	: Not found << Please see the message at the bottom >> 
 ++ xf86-video-intel version    	: 2.99.917 
 ++ Xorg-Xserver version        	: 1.17.2 
 ++ DRM version                 	: 2.4.68 
 ++ VAAPI version               	: Not found 
 ++ Cairo version               	: 1.15.2 
 ++ Intel GPU Tools version     	: 1.11-1 <-- This is a generic version of IGT 
 ++ Kernel driver in use        	: i915 
 ++ Hardware acceleration        	:  
 ++ Bios revision               	: 36.2 
 ++ KSC revision                	: 1.20 


 |=== Hardware information ===| 

 ++ Platform                     	: KBL (RVP7) 
 ++ Motherboard model            	: Kabylake Client platform 
 ++ Motherboard type             	: Skylake U DDR3L RVP7 Laptop 
 ++ Motherboard manufacturer     	: Intel Corporation 
 ++ CPU family                   	: Other 
 ++ CPU information              	: Genuine Intel(R) CPU 0000 @ 2.60GHz 
 ++ GPU Card                     	: Intel Corporation Device 5916 (prog-if 00 [VGA controller]) 
 ++ Memory ram                   	: 4 GB 
 ++ Maximum memory ram allowed   	: 16 GB 
 ++ Display resolution       		: 3200x1800 
 ++ CPU's number             		: 4 
 ++ Hard drive capacity      		: 80.0 GB 


kernel information
======================
commit 5528ede25a356196417ee02aa153b17fe90c1be5
Author: Chris Wilson <chris@chris-wilson.co.uk>

    drm-intel-nightly: 2016y-05m-14d-08h-24m-24s UTC integration manifest
Comment 9 maria guadalupe 2016-05-17 15:58:54 UTC
Created attachment 123833 [details]
xorg
Comment 10 yann 2016-06-08 09:38:52 UTC
Maria, did you try "xrandr --output HDMI --rotation left / right" (ie using only HDMI as output?)
From the log, it looks like this rotation is appearing on eDP.
Comment 11 Kimmo Nikkanen 2016-06-14 06:32:21 UTC
Re-test with 

commit c62177ec321e009a1abcdc969dd808fb37136013
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Apr 20 21:31:46 2016 +0100

    sna: Force the shadow buffer even after we fail to set the crtc for TearFree
Comment 12 Humberto Israel Perez Rodriguez 2016-06-22 20:41:37 UTC
(In reply to Kimmo Nikkanen from comment #11)
> Re-test with 
> 
> commit c62177ec321e009a1abcdc969dd808fb37136013
> Author: Chris Wilson <chris@chris-wilson.co.uk>
> Date:   Wed Apr 20 21:31:46 2016 +0100
> 
>     sna: Force the shadow buffer even after we fail to set the crtc for
> TearFree

Hi Kimmo :

with this commit of xf86-video-intel and the latest nightly kernel the issue does not happen 

kernel used :
================
commit 8e5ac92ab08152bfef7d7eddde92183a781e638e
Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
Date:   Wed Jun 22 21:10:53 2016 +0300

    drm-intel-nightly: 2016y-06m-22d-18h-10m-30s UTC integration manifest
Comment 13 Jani Nikula 2016-06-23 08:43:41 UTC
(In reply to Humberto Israel Perez Rodriguez from comment #12)
> with this commit of xf86-video-intel and the latest nightly kernel the issue
> does not happen 

Thanks. Please feel free to resolve yourself when the issue is gone. Done now.
Comment 14 cprigent 2016-07-01 14:59:26 UTC
I confirm rotation works on KBL-U with fresh setup.


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.