[Intel-gfx] [PATCH] drm/i915: vlv: fix stuck primary plane due to SR watermarks

2014-05-29 Thread Imre Deak
Blanking/unblanking the console in a loop on an Asus T100 sometimes leaves the console blank. After some digging I found that applying commit 61bc95c1fbbb6a08b55bbe161fdf1ea5493fc595 Author: Egbert Eich Date: Mon Mar 4 09:24:38 2013 -0500 DRM/i915: On G45 enable cursor plane briefly after

[Intel-gfx] intel_fb_initilal_config encoder->crtc warn

2014-05-29 Thread Dave Airlie
Hi, Just wondering what the point of the WARN(!encoder->crtc) in that function is, I hit this with MST and I can't see what it should matter, where I hit it is if I dock MST while X is running and VT switch, I get it, I first wondered when encoder would ever be false in non-MST world anyways, bu

Re: [Intel-gfx] [PATCH v5 2/2] drm/i915: State readout and cross-checking for dp_m2_n2

2014-05-29 Thread Vandana Kannan
Hi Daniel, Please let me know if this patch (http://lists.freedesktop.org/archives/intel-gfx/2014-May/045877.html) and the patch http://lists.freedesktop.org/archives/intel-gfx/2014-May/045804.html require any other changes.. I have included all your review comments till date.. Thanks, Vandana O

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Allow vblank interrupts during modeset and eliminate some vblank races

2014-05-29 Thread Michel Dänzer
On 29.05.2014 19:56, Daniel Vetter wrote: > On Thu, May 29, 2014 at 6:11 AM, Michel Dänzer wrote: >> >>> We could rename the off/on to pre/post_modeset if you like, but then >>> someone gets to audit all the other drivers. That someone isn't >>> going to be me. >> >> I appreciate your caution wrt

Re: [Intel-gfx] [PATCH 3/5] ACPI: export target system state for use by drivers

2014-05-29 Thread Rafael J. Wysocki
On Thursday, May 29, 2014 02:48:44 PM Jesse Barnes wrote: > From: Kristen Carlson Accardi > > Needed in ->freeze routines to figure out the target system state and > take appropriate action. > > v2: split out ACPI patch > > Signed-off-by: Kristen Carlson Accardi > Signed-off-by: Jesse Barnes

[Intel-gfx] [PATCH] drm: Split connection_mutex out of mode_config.mutex (v2)

2014-05-29 Thread Daniel Vetter
After the split-out of crtc locks from the big mode_config.mutex there's still two major areas it protects: - Various connector probe states, like connector->status, EDID properties, probed mode lists and similar information. - The links from connector->encoder and encoder->crtc and other modes

[Intel-gfx] [PATCH 3/5] ACPI: export target system state for use by drivers

2014-05-29 Thread Jesse Barnes
From: Kristen Carlson Accardi Needed in ->freeze routines to figure out the target system state and take appropriate action. v2: split out ACPI patch Signed-off-by: Kristen Carlson Accardi Signed-off-by: Jesse Barnes --- drivers/acpi/sleep.c | 1 + 1 file changed, 1 insertion(+) diff --git

[Intel-gfx] [PATCH 4/5] drm/i915: send proper opregion notifications on suspend/resume

2014-05-29 Thread Jesse Barnes
This indicates to the firmware that it can power down various other components or bring them back up, depending on the target system state. Signed-off-by: Kristen Carlson Accardi Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 10 ++ 1 file changed, 10 insertions(+) d

Re: [Intel-gfx] [PATCH 1/6] drm/i915: use VBT to determine whether to enumerate the VGA port

2014-05-29 Thread Ben Widawsky
On Fri, Apr 04, 2014 at 04:12:07PM -0700, Jesse Barnes wrote: > Some platforms may not have it, and enumerating it is both confusing and > time consuming due to the hotplug and DDC probing. > > Signed-off-by: Jesse Barnes > --- > drivers/gpu/drm/i915/intel_display.c | 2 +- > 1 file changed, 1 i

[Intel-gfx] [PATCH] drm/i915: enable PPGTT on VLV

2014-05-29 Thread Jesse Barnes
Working for real this time. i915_ppgtt_info has all sorts of good stuff in it and X is running nicely on top. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/d

[Intel-gfx] [PATCH] drm/i915: Drop locking around fbdev-fb in debugfs

2014-05-29 Thread Daniel Vetter
All the date we print is invariant for the lifetime of the driver. And none of it would be protected by the mode_config.mutex anyway. So drop it. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_debugfs.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_

[Intel-gfx] [PATCH] drm/i915: Fix context locking in debugfs

2014-05-29 Thread Daniel Vetter
This goes all the way back to the introduction of this debugfs file, even though back then no locking really was required. None of the intermediate patches fixed this. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[Intel-gfx] Breaking suspend/resume by the Pipe A quirk

2014-05-29 Thread Thomas Richter
Hi Daniel, hi folks, according to my knowledge, the pipe A quirk is unconditionally enabled on the 830 to allow resume to work properly. Unfortunately, it does quite the opposite on the S6010, it breaks resume completely. If the pipe A quirk is disabled, then the boot console works correctly.

Re: [Intel-gfx] [PATCH] drm/i915/vlv: enable PPGTT

2014-05-29 Thread Ville Syrjälä
On Thu, May 29, 2014 at 08:44:51AM -0700, Jesse Barnes wrote: > On Thu, 29 May 2014 08:30:10 -0700 > "Volkin, Bradley D" wrote: > > > On Wed, May 28, 2014 at 03:02:24PM -0700, Jesse Barnes wrote: > > > Need testing and possibly disabling on earlier steppings, but looks ok > > > here on my B3. > >

[Intel-gfx] [PATCH 2/4] drm/i915: leave rc6 enabled at suspend time

2014-05-29 Thread Jesse Barnes
From: Kristen Carlson Accardi This allows the system to enter the lowest power mode during system freeze. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 3 --- drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_pm.c | 16 +++- 3 files changed,

[Intel-gfx] [PATCH 1/4] drm/i915: disable power wells on suspend

2014-05-29 Thread Jesse Barnes
From: Kristen Carlson Accardi We want to make sure everything is disabled and at its lowest power when freezing. Signed-off-by: Kristen Carlson Accardi Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i9

[Intel-gfx] [PATCH 3/4] drm/i915: send proper opregion notifications on suspend/resume

2014-05-29 Thread Jesse Barnes
From: Kristen Carlson Accardi This indicates to the firmware that it can power down various other components or bring them back up, depending on the target system state. Signed-off-by: Kristen Carlson Accardi Signed-off-by: Jesse Barnes --- drivers/acpi/sleep.c| 1 + drivers/gpu/

[Intel-gfx] [PATCH 4/4] drm/i915: make sure PC8 is enabled on suspend and disabled on resume

2014-05-29 Thread Jesse Barnes
From: Kristen Carlson Accardi This matches the runtime suspend paths and allows the system to enter the lowest power mode at freeze time. Signed-off-by: Kristen Carlson Accardi Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c | 6 ++ 1 file changed, 6 insertions(+) diff --

[Intel-gfx] [PATCH 0/3] connector debugfs properties

2014-05-29 Thread Thomas Wood
The following series adds support for exposing various connector features using debugfs. The first patch refactors the sysfs connector add and remove functions into generic functions to register and unregister connectors. The remaining patches add an interface for each connector to debugfs and expo

[Intel-gfx] [PATCH 1/3] drm: add register and unregister functions for connectors

2014-05-29 Thread Thomas Wood
Introduce generic functions to register and unregister connectors. This provides a common place to add and remove associated user space interfaces. Signed-off-by: Thomas Wood --- Documentation/DocBook/drm.tmpl| 6 +++--- drivers/gpu/drm/armada/armada_output.c| 4 ++-- d

[Intel-gfx] [PATCH 2/3] drm/debugfs: add a "force" file per connector

2014-05-29 Thread Thomas Wood
Add a file to debugfs for each connector to enable modification of the "force" connector attribute. This allows connectors to be enabled or disabled for testing and debugging purposes. Signed-off-by: Thomas Wood --- drivers/gpu/drm/drm_crtc.c| 17 ++- drivers/gpu/drm/drm_debugfs.c | 101

[Intel-gfx] [PATCH 3/3] drm/debugfs: add an "edid_override" file per connector

2014-05-29 Thread Thomas Wood
Add a file to debugfs for each connector that allows the edid data to be overridden. Signed-off-by: Thomas Wood --- drivers/gpu/drm/drm_crtc.c | 4 +++ drivers/gpu/drm/drm_debugfs.c | 56 ++ drivers/gpu/drm/drm_probe_helper.c | 9 +- include

Re: [Intel-gfx] [PATCH] drm/i915/vlv: enable PPGTT

2014-05-29 Thread Jesse Barnes
On Thu, 29 May 2014 08:30:10 -0700 "Volkin, Bradley D" wrote: > On Wed, May 28, 2014 at 03:02:24PM -0700, Jesse Barnes wrote: > > Need testing and possibly disabling on earlier steppings, but looks ok > > here on my B3. > > > > Signed-off-by: Jesse Barnes > > --- > > drivers/gpu/drm/i915/i915_

Re: [Intel-gfx] [PATCH] drm/i915/vlv: enable PPGTT

2014-05-29 Thread Volkin, Bradley D
On Wed, May 28, 2014 at 03:02:24PM -0700, Jesse Barnes wrote: > Need testing and possibly disabling on earlier steppings, but looks ok > here on my B3. > > Signed-off-by: Jesse Barnes > --- > drivers/gpu/drm/i915/i915_drv.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[Intel-gfx] [PATCH i-g-t 3/5] kms_plane: Update for universal plane changes

2014-05-29 Thread Matt Roper
Recent changes in igt_kms to support universal planes have removed the plane list order guarantees that kms_plane depended upon. Ensure that we loop over the entire plane list properly and then selectively skip non-overlay planes. While we're at it, update a couple igt_output_get_plane() calls to

[Intel-gfx] [PATCH i-g-t 2/5] kms: Add igt_drm_plane_try_commit()

2014-05-29 Thread Matt Roper
For some of our tests, we want to make sure that bogus plane programming attempts fail with the expected error code. Add igt_drm_plane_try_commit() that will just return the error code on failure rather than failing the current subtest. This lets us test the return value against the expected erro

[Intel-gfx] [PATCH i-g-t 1/5] kms: Add universal plane support

2014-05-29 Thread Matt Roper
Add support for universal planes. This involves revamping the existing plane handling a bit to allow primary & cursor planes to come from the DRM plane list, rather than always being manually added. Also, eliminate the hard-coded position of primary & cursor in the plane list since the DRM could

[Intel-gfx] [PATCH i-g-t 4/5] kms_universal_plane: Universal plane testing (v5)

2014-05-29 Thread Matt Roper
Add a simple test to exercise universal plane support. v5: - Check that we don't have more than one primary or cursor. This will catch accidental calls to drm_plane_init() in the kernel where drm_universal_plane_init() was intended (these don't cause a compile warning due to type compat

[Intel-gfx] [PATCH i-g-t 5/5] kms_cursor_crc: Combine data_t and test_data_t

2014-05-29 Thread Matt Roper
If a subtest fails, cleanup_crtc() never gets called and then the test_data_t structure for the test is lost, including the CRC file descriptor that we never got a chance to release; this causes all subsequent tests to fail with -EBUSY at igt_pipe_crc_new(). The split between permanent data_t and

[Intel-gfx] [PATCH 1/4] drm: Check CRTC compatibility in setplane

2014-05-29 Thread Matt Roper
The DRM core setplane code should check that the plane is usable on the specified CRTC before calling into the driver. Prior to this patch, a plane's possible_crtcs field was purely informational for userspace and was never actually verified at the kernel level (aside from the primary plane helper

[Intel-gfx] [PATCH 4/4] drm/i915: Intel-specific primary plane handling (v8)

2014-05-29 Thread Matt Roper
Intel hardware allows the primary plane to be disabled independently of the CRTC. Provide custom primary plane handling to allow this. v8: - Pin/unpin properly when clipping causes the primary plane to be disabled when it has previously been enabled. - s/drm_primary_helper_check_update/drm_p

[Intel-gfx] [PATCH 3/4] drm/i915: don't force full modeset if primary plane is disabled (v2)

2014-05-29 Thread Matt Roper
In a future patch, we'll allow the primary plane to be disabled by userspace via the universal plane API. If a modeset is requested while the primary plane is disabled, crtc->primary->fb will be NULL which generally triggers a full modeset (except in fastboot situations). If we detect that the cr

[Intel-gfx] [PATCH 2/4] drm/plane-helper: Add drm_plane_helper_check_update() (v3)

2014-05-29 Thread Matt Roper
Pull the parameter checking from drm_primary_helper_update() out into its own function; drivers that provide their own setplane() implementations rather than using the helper may still want to share this parameter checking logic. A few of the checks here were also updated based on suggestions by V

[Intel-gfx] [PATCH 0/4] Intel primary plane support (v7)

2014-05-29 Thread Matt Roper
Re-posting the final versions of these patches now that they all have a r-b, as requested by Daniel. Corresponding i-g-t tests will be sent shortly. Previous patch review thread and comments are here: http://lists.freedesktop.org/archives/intel-gfx/2014-April/044527.html Matt Roper (4): drm:

[Intel-gfx] 830GM still woes

2014-05-29 Thread Thomas Richter
Hi Daniel, hi folks, still a couple of observations from my side on this. The 1024x786x24 mode here uses a clock of 65MHz (65000kHz), if that is inserted into the watermark computation, it computes from that a prefetch of 40 entries, and thus a watermark level of four, which is much much too hi

[Intel-gfx] [PATCH] drm/i915: Support pf CRC source on haswell transcoder edp

2014-05-29 Thread Daniel Vetter
The always-on power well pixel path on haswell is routed such that it bypasses the panel fitter when we use is. Which means the pfit CRC source won't work in that configuration. Add a new disallow-bypass flags to the pfit pipe config state and set it when we want to use the pf CRC. Results in a bi

Re: [Intel-gfx] [PATCH] drm/i915: Support pf CRC source on haswell transcoder edp

2014-05-29 Thread Damien Lespiau
On Thu, May 29, 2014 at 12:41:44PM +0200, Daniel Vetter wrote: > On Thu, May 29, 2014 at 1:21 AM, Damien Lespiau > wrote: > > On Thu, May 29, 2014 at 12:27:55AM +0200, Daniel Vetter wrote: > >> - if (IS_HASWELL(dev) && > >> intel_crtc->config.pch_pfit.enabled) > >> +

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Allow vblank interrupts during modeset and eliminate some vblank races

2014-05-29 Thread Daniel Vetter
On Thu, May 29, 2014 at 6:11 AM, Michel Dänzer wrote: > >> We could rename the off/on to pre/post_modeset if you like, but then >> someone gets to audit all the other drivers. That someone isn't >> going to be me. > > I appreciate your caution wrt other drivers, but I'm worried that having > a sec

Re: [Intel-gfx] [PATCH] drm/i915: Support pf CRC source on haswell transcoder edp

2014-05-29 Thread Daniel Vetter
On Thu, May 29, 2014 at 1:21 AM, Damien Lespiau wrote: > On Thu, May 29, 2014 at 12:27:55AM +0200, Daniel Vetter wrote: >> - if (IS_HASWELL(dev) && >> intel_crtc->config.pch_pfit.enabled) >> + if (IS_HASWELL(dev) && >> intel_crtc->config.pch_pfit.enabled |

[Intel-gfx] [PATCH 2/3] drm/i915: Selection of MMIO vs CS flip at page flip time

2014-05-29 Thread sourab . gupta
From: Sourab Gupta This patch enables the selection of MMIO flip vs CS flip at page flip time. Earlier, this selection was done only at the init time, so, once .queue_flip was set, it was used forever. This patch enables this selection of flip mechanism at a time when page flips is being issued.

[Intel-gfx] [PATCH 3/3] drm/i915: Make module param for MMIO flip selection as tristate

2014-05-29 Thread sourab . gupta
From: Sourab Gupta This patch enhances the module parameter, 'use_mmio_flip' which enables MMIO flips, to make it tristate. The values being- 0: Force CS flip 1: Force MMIO flip (Gen5+) >1: Driver discretion is applied while selecting CS vs MMIO flip. For Valleyview, this driver selection happen

[Intel-gfx] [PATCH v9 1/3] drm/i915: Replaced Blitter ring based flips with MMIO flips

2014-05-29 Thread sourab . gupta
From: Sourab Gupta This patch enables the framework for using MMIO based flip calls, in contrast with the CS based flip calls which are being used currently. MMIO based flip calls can be enabled on architectures where Render and Blitter engines reside in different power wells. The decision to us

[Intel-gfx] [PATCH v4 0/3] Replace Blitter ring based flips with MMIO flips

2014-05-29 Thread sourab . gupta
From: Sourab Gupta This patch series enables the framework for using MMIO flips in place of Blitter ring based flips. This is useful for Media power well residency optimization. These may be enabled on architectures where Render and Blitter engines reside in different power wells. The blitter rin