Re: [Intel-gfx] [PATCH 09/42] drm/i915: Make intel_modeset_fixup_state similar to the atomic helper.

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 04:24:45PM +0200, Maarten Lankhorst wrote: > This should be safe. Usual request: A few more details about what you've changed to help guide the review would be great. E.g. which functions from the atomic helpers you're trying to copy here exactly. It looks like this models

Re: [Intel-gfx] [PATCH] i-g-t: Update kms_panel_fitting to work on other platforms

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 11:51:56AM -0700, Chandra Konduru wrote: > From: chandra konduru > > kms_panel_fitting currently enabled for SKL only, but as > panel_fitters are available on prior platforms, enable this > kms test for them too. > > Signed-off-by: chandra konduru Makes sense, applied.

Re: [Intel-gfx] [PATCH i-g-t] quick_dump/skl: Add more pipe/plane registers

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 07:36:07PM +0100, Damien Lespiau wrote: > With the recent developments, add scaler and NV12 registers to the dump. > Also add the cursor registers that were missing in the first batch. > > Signed-off-by: Damien Lespiau Jani has this shiny new swiss army knive tool now ...

Re: [Intel-gfx] [PATCH] drm/i915: Warn when execlists changes context without IRQs

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 09:26:40PM +0100, Chris Wilson wrote: > On Mon, May 11, 2015 at 06:37:14PM +0200, Daniel Vetter wrote: > > On Mon, May 11, 2015 at 04:03:27PM +0100, Peter Antoine wrote: > > > If an batch ends while the IRQs are not turned on the notification can > > > go missing and the GPU

Re: [Intel-gfx] [PATCH] drm/i915: Make scaler_id check in check_crtc_state work for all gens

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 02:35:47PM -0700, Chandra Konduru wrote: > During check_crtc_state, scaler_id mispatch is being reported for HSW. > This is applicable for skl+ and not for HSW. It is introduced by > commit id: > commit a1b2278e4dfcd2dbea85e319ebf73a6b7b2f180b > Author: Chandra Kondu

Re: [Intel-gfx] DP MST audio support

2015-05-11 Thread Dave Airlie
On 12 May 2015 at 11:50, Dave Airlie wrote: > Hi, > > So I have a branch that makes no sound, > http://cgit.freedesktop.org/~airlied/linux/log/?h=dp-mst-audio > > and I'm not sure where I need to turn to next, > > The Intel docs I've read are kinda vague, assuming you know lots of > things I clear

[Intel-gfx] DP MST audio support

2015-05-11 Thread Dave Airlie
Hi, So I have a branch that makes no sound, http://cgit.freedesktop.org/~airlied/linux/log/?h=dp-mst-audio and I'm not sure where I need to turn to next, The Intel docs I've read are kinda vague, assuming you know lots of things I clearly don't. so in theory my branch, sets up the SDP stream to

[Intel-gfx] [PATCH] drm/i915/chv: Recomputing CHV watermark.

2015-05-11 Thread abhay . kumar
From: Abhay Current WM calculation is causing regression on SR residency. Recomputing WM using new formula as provided by VPG Change-Id: I9dbd6a7b70c84454748dee41738130934230b763 Signed-off-by: Abhay --- drivers/gpu/drm/i915/intel_pm.c | 26 +++--- 1 file changed, 15 insert

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Add 90/270 rotation for NV12 format.

2015-05-11 Thread Konduru, Chandra
> -Original Message- > From: Ville Syrjälä [mailto:ville.syrj...@linux.intel.com] > Sent: Monday, May 11, 2015 5:03 AM > To: Konduru, Chandra > Cc: intel-gfx@lists.freedesktop.org; Vetter, Daniel; Syrjala, Ville > Subject: Re: [Intel-gfx] [PATCH 2/2] drm/i915: Add 90/270 rotation for NV12

Re: [Intel-gfx] [PATCH] i-g-t: Adding rotation to plane scaling test

2015-05-11 Thread Konduru, Chandra
> -Original Message- > From: Thomas Wood [mailto:thomas.w...@intel.com] > Sent: Wednesday, April 22, 2015 9:58 AM > To: Konduru, Chandra > Cc: Intel Graphics Development > Subject: Re: [Intel-gfx] [PATCH] i-g-t: Adding rotation to plane scaling test > > "kms_plane_scaling" would be a bet

[Intel-gfx] [PREFIX i-g-t] Improvements to kms_plane_scaling

2015-05-11 Thread Chandra Konduru
From: chandra konduru Resending with correct subject-prefix. This patch has below improvements: - use tile-Y for fb1 which is used for 90/270 rotation - add 90/270 rotation tests along with scaling - remove primary_plane_scaling flag which isn't required anymore - use helper igt_get_image_si

[Intel-gfx] [PATCH] Improvements to kms_plane_scaling

2015-05-11 Thread Chandra Konduru
From: chandra konduru This patch has below improvements: - use tile-Y for fb1 which is used for 90/270 rotation - add 90/270 rotation tests along with scaling - remove primary_plane_scaling flag which isn't required anymore - use helper igt_get_image_size() to get image size - use fb's width

[Intel-gfx] [PATCH] drm/i915: Make scaler_id check in check_crtc_state work for all gens

2015-05-11 Thread Chandra Konduru
During check_crtc_state, scaler_id mispatch is being reported for HSW. This is applicable for skl+ and not for HSW. It is introduced by commit id: commit a1b2278e4dfcd2dbea85e319ebf73a6b7b2f180b Author: Chandra Konduru Date: Tue Apr 7 15:28:45 2015 -0700 drm/i915: skylake pa

Re: [Intel-gfx] [PATCH] drm/i915: perform scaler_id check for skl+

2015-05-11 Thread Konduru, Chandra
> > Scaler id is added for skylake to handle its shared scalers. > > This is not applicable for platforms before SKL. This patch limits > > the scaler_id check during intel_pipe_config_compare to platforms > > SKL and above. > > Please add a References: line here with the bug report from mailing

Re: [Intel-gfx] [PATCH] drm/i915: Warn when execlists changes context without IRQs

2015-05-11 Thread Chris Wilson
On Mon, May 11, 2015 at 06:37:14PM +0200, Daniel Vetter wrote: > On Mon, May 11, 2015 at 04:03:27PM +0100, Peter Antoine wrote: > > If an batch ends while the IRQs are not turned on the notification can > > go missing and the GPU can hang. So generate a warning in this case. > > > > Signed-off-by:

Re: [Intel-gfx] [PATCH 05/16] drm/i915: Fix race on unreferencing the wrong mmio-flip-request

2015-05-11 Thread Chris Wilson
On Mon, May 11, 2015 at 06:51:03PM +0200, Daniel Vetter wrote: > On Mon, Apr 27, 2015 at 01:41:16PM +0100, Chris Wilson wrote: > > As we perform the mmio-flip without any locking and then try to acquire > > the struct_mutex prior to dereferencing the request, it is possible for > > userspace to que

Re: [Intel-gfx] [i915 dp mst] drm-intel-nightly-2015y-05m-11d dies when monitor at docking station

2015-05-11 Thread Nicolas Kalkhof
> Yeah that one is busted unfortunately. I've just pushed out a new -nightly > with an updated patch from Maarten: > commit c363376d3d5586c1e99f92969a7a7baf179206d7 > Author: Maarten Lankhorst > Date: Mon May 11 10:45:15 2015 +0200 > drm/i915: Always keep crtc_state->active in sync with enable

Re: [Intel-gfx] VBIOS doesn't recognize the eDP port on Baytrail-I

2015-05-11 Thread Sanchez, AdolfoX
Hello siewhoon Thanks for your reply I wanted to be sure if there was another VBIOS that I should/could use. I'm considering testing the EMGD drivers, thanks for your suggestion. Do you know if there is a way to override the device_type on the open source graphic drivers? Best Regards, Adolfo.

[Intel-gfx] [PATCH] i-g-t: Update kms_panel_fitting to work on other platforms

2015-05-11 Thread Chandra Konduru
From: chandra konduru kms_panel_fitting currently enabled for SKL only, but as panel_fitters are available on prior platforms, enable this kms test for them too. Signed-off-by: chandra konduru --- tests/kms_panel_fitting.c |8 1 file changed, 8 deletions(-) diff --git a/tests/kms

[Intel-gfx] [PATCH i-g-t] quick_dump/skl: Add more pipe/plane registers

2015-05-11 Thread Damien Lespiau
With the recent developments, add scaler and NV12 registers to the dump. Also add the cursor registers that were missing in the first batch. Signed-off-by: Damien Lespiau --- tools/quick_dump/skl_display.txt | 97 1 file changed, 97 insertions(+) diff --

[Intel-gfx] [PATCH 0/8] drm-intel-collector - update

2015-05-11 Thread Rodrigo Vivi
This is another drm-intel-collector updated notice: http://cgit.freedesktop.org/~vivijim/drm-intel/log/?h=drm-intel-collector Here goes the update list in order for better reviewers assignment: Patch drm/i915: Remove pinned check from madvise_ioctl - Reviewer: Patch drm/i915: Remove unne

[Intel-gfx] [PATCH 8/8] drm/i915/skl: Select DDIA lane capability based upon vbt

2015-05-11 Thread Rodrigo Vivi
From: "sonika.jin...@intel.com" Currently, if bios fails to drive an edp panel due to any reason, the ddi buffer will not be enabled. And the DDIA lane capability will remain 0. This leads to assumption of DDIA x2 which means DDIA supports 2 lanes and DDIE supports 2 lanes. For some higher resolu

[Intel-gfx] [PATCH 2/8] drm/i915: Remove unneeded check on execlist ringbuf alloc

2015-05-11 Thread Rodrigo Vivi
From: Mika Kuoppala We just allocated the intel_ringbuffer with kzalloc. There is no chance of the ringbuf->obj being other than NULL so remove the redudant check. Signed-off-by: Mika Kuoppala Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_lrc.c | 29 +

[Intel-gfx] [PATCH 6/8] drm/i915: Attach a PSR property on eDP

2015-05-11 Thread Rodrigo Vivi
Let userspace know the status of Panel Self-Refresh by virtue of a property on the appropriate connector. v2: Only attach the property if the driver is capable of PSR. v3: Add docbook courtesy of Damien. v4: Mark the initial value as 'unsupported' - it will be determined correctly when we late

[Intel-gfx] [PATCH 5/8] drm/i915: Remove duplicated intel_fbc_update calls.

2015-05-11 Thread Rodrigo Vivi
With frontbuffer tracking taking care of fbc we were duplicating fbc update call on these cases here. Cc: Paulo Zanoni Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/intel_display.c | 12 drivers/gpu/drm/i915/intel_drv.h | 1 - 2 files changed, 13 deletions(-) diff --g

[Intel-gfx] [PATCH 4/8] drm/i915: Changes required to enable DSI Video Mode on CHT

2015-05-11 Thread Rodrigo Vivi
From: Gaurav K Singh On CHT, changes are required for calculating the correct m,n & p with minimal error +/- for the required DSI clock, so that the correct dividor & ctrl values are written in cck regs for DSI. This patch has been tested on CHT RVP with 1200 x 1920 panel. Signed-off-by: Gaurav

[Intel-gfx] [PATCH 3/8] drm/i915: Support for higher DSI clk

2015-05-11 Thread Rodrigo Vivi
From: Gaurav K Singh For MIPI panels requiring higher DSI clk, values needs to be added in lfsr_converts table for getting the correct values of pll ctrl and dividor values which gets programmed in cck regs, otherwise DSI PLL does not get locked leading to no display on the MIPI panel. Signed-of

[Intel-gfx] [PATCH 1/8] drm/i915: Remove pinned check from madvise_ioctl

2015-05-11 Thread Rodrigo Vivi
From: Chris Wilson We don't need to incur the overhead of checking whether the object is pinned prior to changing its madvise. If the object is pinned, the madvise will not take effect until it is unpinned and so we cannot free the pages being pointed at by hardware. Marking a pinned object with

[Intel-gfx] [PATCH 7/8] drm/i915/skl: Disallow tiling changes during page flip

2015-05-11 Thread Rodrigo Vivi
From: Tvrtko Ursulin It would require watermark reprogramming which we do not want to do. Signed-off-by: Tvrtko Ursulin Cc: Daniel Vetter Cc: Sonika Jindal Cc: Damien Lespiau Cc: Chris Wilson Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Sign

Re: [Intel-gfx] [PATCH 08/42] drm/i915: Implement intel_crtc_toggle using atomic state

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 04:24:44PM +0200, Maarten Lankhorst wrote: > Assume the function is locked with drm_modeset_lock_all for now. s/toggle/control/ in the commit message. And a bit of blabla would be good to explain why we need to make a mass-replacement of state->enable to state->active here

Re: [Intel-gfx] [RFC 0/2] strace/drm: Add i915 ioctls to strace

2015-05-11 Thread Gabriel Laskar
On Mon, 11 May 2015 15:54:24 +0200 Patrik Jakobsson wrote: > On Mon, May 11, 2015 at 12:50:36PM +0200, Gabriel Laskar wrote: > > On Wed, 6 May 2015 16:48:01 +0200 > > Patrik Jakobsson wrote: > > > > > This patch set aims to make strace more useful when tracing i915 ioctls. > > > The ioctl type

[Intel-gfx] [PATCH 1/2] drm/i915: Remove excess inline keywords

2015-05-11 Thread ville . syrjala
From: Ville Syrjälä Remove some inline keywords. One of the functions has clearly outgrown it anyway, so let's just leave it to the compiler. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_irq.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/

[Intel-gfx] [PATCH 2/2] drm/i915: Use HOTPLUG_INT_STATUS_G4X on VLV/CHV

2015-05-11 Thread ville . syrjala
From: Ville Syrjälä Use HOTPLUG_INT_STATUS_G4X instead of HOTPLUG_INT_STATUS_I915 on VLV/CHV so that we don't confuse the AUX status bits with SDVO status bits. Avoid pointless log spam as below while handling AUX interrupts: [drm:intel_hpd_irq_handler] hotplug event received, stat 0x0040, d

Re: [Intel-gfx] [PATCH 07/42] drm/i915: Get rid of crtc->new_enabled, v2.

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 07:33:01PM +0200, Daniel Vetter wrote: > On Mon, May 11, 2015 at 04:24:43PM +0200, Maarten Lankhorst wrote: > > @@ -14679,7 +14646,8 @@ static bool primary_get_hw_state(struct intel_crtc > > *crtc) > > return I915_READ(DSPCNTR(crtc->plane)) & DISPLAY_PLANE_ENABLE; > >

Re: [Intel-gfx] [PATCH 07/42] drm/i915: Get rid of crtc->new_enabled, v2.

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 04:24:43PM +0200, Maarten Lankhorst wrote: > @@ -14679,7 +14646,8 @@ static bool primary_get_hw_state(struct intel_crtc > *crtc) > return I915_READ(DSPCNTR(crtc->plane)) & DISPLAY_PLANE_ENABLE; > } > > -static void intel_modeset_readout_hw_state(struct drm_device *

Re: [Intel-gfx] [PATCH 06/42] drm/i915: get rid of new_crtc

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 04:24:42PM +0200, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhorst Same comment about the terse commit message as in the previous patch. > --- > drivers/gpu/drm/i915/intel_display.c | 15 --- > drivers/gpu/drm/i915/intel_drv.h | 5 - > 2 f

Re: [Intel-gfx] [PATCH 05/42] drm/i915: Get rid of new_encoder.

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 04:24:41PM +0200, Maarten Lankhorst wrote: Too terse commit message, especially explaining why the changes in restore_mode are what we want seems appropriate. And mentioning the general replacement is connector->new_encoder -> free_standing_state->best_encoder would be good

Re: [Intel-gfx] [PATCH 04/42] drm/i915: use intel_crtc_control everywhere

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 04:24:40PM +0200, Maarten Lankhorst wrote: > @@ -6079,26 +6059,29 @@ void intel_crtc_control(struct drm_crtc *crtc, bool > enable) > enum intel_display_power_domain domain; > unsigned long domains; > > + if (enable == intel_crtc->active) > + re

Re: [Intel-gfx] [PATCH 02/42] drm/i915: get rid of intel_crtc_disable and related code, v2

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 04:24:38PM +0200, Maarten Lankhorst wrote: > Now that the dpll updates are (mostly) atomic, the .off() code is no longer > used, > and there are no more callers for intel_put_shared_dpll. Move all the updates > done in intel_crtc_disable to intel_modeset_update_state, one l

Re: [Intel-gfx] [PATCH 03/42] drm/i915: Only update required power domains.

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 04:24:39PM +0200, Maarten Lankhorst wrote: > This prevents unnecessarily updating power domains, while still > enabling all power domains on initial setup. > > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/i915/intel_display.c | 52 > ++

Re: [Intel-gfx] [PATCH 05/16] drm/i915: Fix race on unreferencing the wrong mmio-flip-request

2015-05-11 Thread Daniel Vetter
On Mon, Apr 27, 2015 at 01:41:16PM +0100, Chris Wilson wrote: > As we perform the mmio-flip without any locking and then try to acquire > the struct_mutex prior to dereferencing the request, it is possible for > userspace to queue a new pageflip before the worker can finish clearing > the old state

[Intel-gfx] [PATCH i-g-t] build: Add missing line continuation

2015-05-11 Thread Damien Lespiau
When -lrt was added, it was missing a '\' at the end of line. Add it. Cc: Tim Gore Cc: Thomas Wood Signed-off-by: Damien Lespiau --- tools/quick_dump/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/quick_dump/Makefile.am b/tools/quick_dump/Makefile.am inde

Re: [Intel-gfx] [PATCH 04/16] drm/i915: Ensure cache flushes prior to doing CS flips

2015-05-11 Thread Daniel Vetter
On Mon, Apr 27, 2015 at 01:41:15PM +0100, Chris Wilson wrote: > Synchronising to an object active on the same ring is a no-op, for the > benefit of execbuffer scheduler. However, for CS flips this means that > we can forgo checking whether the last write request of the object is > actually queued a

Re: [Intel-gfx] [PATCH 03/16] drm/i915: Remove domain flubbing from i915_gem_object_finish_gpu()

2015-05-11 Thread Daniel Vetter
On Mon, Apr 27, 2015 at 01:41:14PM +0100, Chris Wilson wrote: > We no longer interpolate domains in the same manner, and even if we did, > we should trust setting either of the other write domains would trigger > an invalidation rather than force it. Remove the tweaking of the > read_domains since

Re: [Intel-gfx] [PATCH] drm/i915: Warn when execlists changes context without IRQs

2015-05-11 Thread Daniel Vetter
On Mon, May 11, 2015 at 04:03:27PM +0100, Peter Antoine wrote: > If an batch ends while the IRQs are not turned on the notification can > go missing and the GPU can hang. So generate a warning in this case. > > Signed-off-by: Peter Antoine Queued for -next, thanks for the patch. -Daniel > --- >

[Intel-gfx] [PATCH i-g-t] kms_cursor_crc: Move comment to the appropriate place

2015-05-11 Thread Damien Lespiau
Signed-off-by: Damien Lespiau --- tests/kms_cursor_crc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c index 9f20ae2..98a91d9 100644 --- a/tests/kms_cursor_crc.c +++ b/tests/kms_cursor_crc.c @@ -158,11 +158,10 @@ static vo

Re: [Intel-gfx] [PATCH] drm/i915: Unconditionally flush writes before execbuffer

2015-05-11 Thread Chris Wilson
On Mon, May 11, 2015 at 12:34:37PM +0200, Daniel Vetter wrote: > On Mon, May 11, 2015 at 08:51:36AM +0100, Chris Wilson wrote: > > With the advent of mmap(wc), we have a path to write directly into > > active GPU buffers. When combined with async updates (i.e. avoiding the > > explicit domain manag

[Intel-gfx] [PATCH] drm/i915: Warn when execlists changes context without IRQs

2015-05-11 Thread Peter Antoine
If an batch ends while the IRQs are not turned on the notification can go missing and the GPU can hang. So generate a warning in this case. Signed-off-by: Peter Antoine --- drivers/gpu/drm/i915/intel_lrc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_lrc.c

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915/bxt: Port PLL programming BUN

2015-05-11 Thread Kannan, Vandana
On 5/7/2015 2:57 PM, Imre Deak wrote: On to, 2015-05-07 at 12:00 +0530, Vandana Kannan wrote: BUN 1: prop_coeff, int_coeff, tdctargetcnt programming updated and tied to VCO frequencies. Program i_lockthresh in PORT_PLL_9. VCO calculated based on the formula: Desired Output = Port bit rate in

Re: [Intel-gfx] [PATCH v3] drm/i915/bxt: eDP Panel Power sequencing

2015-05-11 Thread Kannan, Vandana
On 5/7/2015 1:07 PM, Jani Nikula wrote: On Thu, 07 May 2015, Vandana Kannan wrote: Changes for BXT - added a IS_BROXTON check to use the macro related to PPS registers for BXT. BXT does not have PP_DIV register. Making changes to handle this. Second set of PPS registers have been defined but

[Intel-gfx] [PATCH 38/42] drm/i915: Use global atomic state for staged pll config

2015-05-11 Thread Maarten Lankhorst
From: Ander Conselvan de Oliveira Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_drv.h | 1 - drivers/gpu/drm/i915/intel_atomic.c | 49 drivers/gpu/drm/i915/intel_display.c | 111 +++ drivers/gpu/drm/i915/intel_drv.h

[Intel-gfx] [PATCH 32/42] drm/i915: Calculate haswell plane workaround.

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 109 +-- drivers/gpu/drm/i915/intel_drv.h | 2 + 2 files changed, 81 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_di

[Intel-gfx] [PATCH 20/42] drm/i915: remove use of crtc->config from intel_atomic.c and intel_sprite.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_atomic.c | 10 +++--- drivers/gpu/drm/i915/intel_sprite.c | 4 ++-- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c index 7ed8033aae60..ac

[Intel-gfx] [PATCH 15/42] drm/i915: Use hwmode for vblanks.

2015-05-11 Thread Maarten Lankhorst
Must start somewhere to get rid of crtc->config. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_irq.c | 13 ++--- drivers/gpu/drm/i915/intel_display.c | 6 ++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drive

[Intel-gfx] [PATCH 19/42] drm/i915: remove use of crtc->config from intel_fbc.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_fbc.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c index 6abb83432d4d..098461ce1fe4 100644 --- a/drivers/gpu/drm/i915/intel_fbc.c +++

[Intel-gfx] [PATCH 11/42] drm/i915: Update less state during modeset.

2015-05-11 Thread Maarten Lankhorst
No need to repeatedly call update_watermarks, or update_fbc. For update_watermarks once should be enough after disabling crtc's and swapping the state. Down to a single call to update_watermarks in .crtc_enable Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 79 +

[Intel-gfx] [PATCH 27/42] drm/i915: Remove use of crtc->config from intel_dp.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_dp.c | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index eda1b22c3111..e6876faca7f0 100644 --- a/drivers/gpu/

[Intel-gfx] [PATCH 00/42] drm/i915: Convert to atomic, part 2.

2015-05-11 Thread Maarten Lankhorst
This patch makes this happen by consolidating all modeset paths and getting rid of most transitional state. This happens first by unifying all paths so all code that disables a crtc goes through either intel_crtc_toggle or __intel_set_mode. After that's done crtc_state->active is updated in intel_

[Intel-gfx] [PATCH 08/42] drm/i915: Implement intel_crtc_toggle using atomic state

2015-05-11 Thread Maarten Lankhorst
Assume the function is locked with drm_modeset_lock_all for now. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_irq.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 79 ++-- 2 files changed, 50 insertions(+), 31 deletions(-) diff --git a/dri

[Intel-gfx] [PATCH 17/42] drm/i915: Remove use of crtc->config from intel_pm.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_pm.c | 96 - 1 file changed, 46 insertions(+), 50 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index a70b2d1fc844..869b587f463d 100644 --- a/driv

[Intel-gfx] [PATCH 22/42] drm/i915: Pass old state to crtc_disable and use it.

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_drv.h | 3 +- drivers/gpu/drm/i915/intel_display.c | 207 ++- drivers/gpu/drm/i915/intel_dp.c | 2 + drivers/gpu/drm/i915/intel_drv.h | 10 +- drivers/gpu/drm/i915/intel_panel.c |

[Intel-gfx] [PATCH 42/42] drm/i915: return early in __intel_set_mode_setup_plls without modeset

2015-05-11 Thread Maarten Lankhorst
Don't walk the crtc_state twice if there's no need for it. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c inde

[Intel-gfx] [PATCH 40/42] drm/i915: Move cdclk and pll setup to intel_modeset_compute_config()

2015-05-11 Thread Maarten Lankhorst
From: Ander Conselvan de Oliveira It makes more sense there, since these are computation steps that can fail. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 70 ++-- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/dri

[Intel-gfx] [PATCH 21/42] drm/i915: Remove use of crtc->config from intel_overlay.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_overlay.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c index 5fd2d5ac02e2..fa0ff6974dcc 100644 --- a/drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH 14/42] drm/i915: Make __intel_set_mode() take only atomic state as argument

2015-05-11 Thread Maarten Lankhorst
From: Ander Conselvan de Oliveira The last remaining portion that required the modeset_crtc argument is converted to deal with all crtcs in the state that need_modeset(). By doing that, __intel_set_mode() is generic enough, behaving like a commit function for the atomic state. Signed-off-by: Maa

[Intel-gfx] [PATCH 33/42] drm/i915: remove crtc->active tracking completely

2015-05-11 Thread Maarten Lankhorst
Small behavioral change: DPLL_DVO_2X_MODE may stay enabled during modeset for I830 if new state requires it, instead of being disabled and enabled again. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 140 ++- drivers/gpu/drm/i915/inte

[Intel-gfx] [PATCH 06/42] drm/i915: get rid of new_crtc

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 15 --- drivers/gpu/drm/i915/intel_drv.h | 5 - 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 00b15

[Intel-gfx] [PATCH 29/42] drm/i915: Remove use of crtc->config from intel_dsi.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_dsi.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c index 3f28b046751b..ec5f4509dc87 100644 --- a/drivers/gpu/drm/i915/intel_dsi

[Intel-gfx] [PATCH 16/42] drm/i915: Remove usage of crtc->config from i915_debugfs.c

2015-05-11 Thread Maarten Lankhorst
Another abuser gone. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_debugfs.c | 42 - 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index acd4d2c7613a.

[Intel-gfx] [PATCH 24/42] drm/i915: Remove use of crtc->config from intel_fbdev.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_fbdev.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c index 4e7e7da2e03b..cc180bfe4c1b 100644 --- a/drivers/gpu/drm/i

[Intel-gfx] [PATCH 31/42] drm/i915: Remove use of crtc->config in intel_sdvo.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_sdvo.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index 6a68098f8b08..93b31d66a1ab 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 12/42] drm/i915: move swap_state to the right place

2015-05-11 Thread Maarten Lankhorst
Done as a separate commit to allow better bisecting. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 50 +--- 1 file changed, 7 insertions(+), 43 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/in

[Intel-gfx] [PATCH 05/42] drm/i915: Get rid of new_encoder.

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 16 +--- drivers/gpu/drm/i915/intel_drv.h | 6 -- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 702

[Intel-gfx] [PATCH 39/42] drm/i915: Support modeset across multiple pipes

2015-05-11 Thread Maarten Lankhorst
From: Ander Conselvan de Oliveira Compute new pipe_configs for all crtcs in the atomic state. The commit part of the mode set (__intel_set_mode()) is already enabled to support multiple pipes, the only thing missing was calculating a new pipe_config for every crtc. Signed-off-by: Maarten Lankhor

[Intel-gfx] [PATCH 10/42] drm/i915: make plane helpers fully atomic

2015-05-11 Thread Maarten Lankhorst
This kills off most of the transitional helpers and uses atomic plane updates in the modeset path to update everything. Getting rid of the transitional plane helpers meant that planes had to be added in the crtc check function. On modeset a connector can be moved to a different crtc, and this is n

[Intel-gfx] [PATCH 35/42] drm/i915: get rid of crtc->config in intel_display.c, part 2

2015-05-11 Thread Maarten Lankhorst
Convert the rest of the file, but remove crtc->config in a separate commit to hopefully allow easier bisecting. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 351 ++- drivers/gpu/drm/i915/intel_dp.c | 4 +- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 04/42] drm/i915: use intel_crtc_control everywhere

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_debugfs.c | 18 -- drivers/gpu/drm/i915/intel_display.c | 68 +--- drivers/gpu/drm/i915/intel_drv.h | 1 - 3 files changed, 39 insertions(+), 48 deletions(-) diff --git a/drivers/gpu/drm/

[Intel-gfx] [PATCH 28/42] drm/i915: Remove use of crtc->config from intel_dp_mst.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_dp_mst.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c index 4992c8025520..4ecbc58c4e04 100644 --- a/drivers/gpu/drm/i915/intel_d

[Intel-gfx] [PATCH 18/42] drm/i915: Remove use of crtc->config from intel_audio.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c index c4312177b0ee..dd74fd3157ee 100644 --- a/drivers/gpu/drm/i915/intel_audio.c +++

[Intel-gfx] [PATCH 07/42] drm/i915: Get rid of crtc->new_enabled, v2.

2015-05-11 Thread Maarten Lankhorst
No longer any different from state->enable. v2: Keep track of enabled crtc's for calling intel_crtc_restore_mode. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 63 +++- drivers/gpu/drm/i915/intel_drv.h | 1 - 2 files changed, 18

[Intel-gfx] [PATCH 41/42] drm/i915: Read hw state into an atomic state struct

2015-05-11 Thread Maarten Lankhorst
From: Ander Conselvan de Oliveira This lets us change the force restore path in setup_hw_state() to use a single call to intel_mode_set() to restore all the previous user requested state. Signed-off-by: Ander Conselvan de Oliveira Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH 26/42] drm/i915: Remove use of crtc->config from intel_ddi.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_ddi.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index c5a9e36d6a0e..388f02a8e6e1 100644 --- a/drivers/gpu/drm/i915/intel_dd

[Intel-gfx] [PATCH 25/42] drm/i915: Remove use of crtc->config from intel_psr.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_psr.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_psr.c b/drivers/gpu/drm/i915/intel_psr.c index 5ee0fa57ed19..868817402c11 100644 --- a/drivers/gpu/drm/i

[Intel-gfx] [PATCH 09/42] drm/i915: Make intel_modeset_fixup_state similar to the atomic helper.

2015-05-11 Thread Maarten Lankhorst
This should be safe. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 82 ++-- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index a21b2e51c05

[Intel-gfx] [PATCH 23/42] drm/i915: Pass old state to encoder->(post_)disable.

2015-05-11 Thread Maarten Lankhorst
This removes a lot of users for crtc->config. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_crt.c | 21 ++ drivers/gpu/drm/i915/intel_ddi.c | 78 +--- drivers/gpu/drm/i915/intel_display.c | 36 ++--- drivers/gpu/drm/i9

[Intel-gfx] [PATCH 30/42] drm/i915: Remove use of crtc->config in intel_hdmi.c

2015-05-11 Thread Maarten Lankhorst
Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_hdmi.c | 58 +++ 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 76994dc033a3..9efc3dd62a00 100644 --- a

[Intel-gfx] [PATCH 03/42] drm/i915: Only update required power domains.

2015-05-11 Thread Maarten Lankhorst
This prevents unnecessarily updating power domains, while still enabling all power domains on initial setup. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 52 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/driver

[Intel-gfx] [PATCH 01/42] drm/atomic: Allow drivers to subclass drm_atomic_state

2015-05-11 Thread Maarten Lankhorst
Drivers may need to store the state of shared resources, such as PLLs or FIFO space, into the atomic state. Allow this by making it possible to subclass drm_atomic_state. Cc: dri-de...@lists.freedesktop.org Acked-by: Ander Conselvan de Oliveira Signed-off-by: Maarten Lankhorst --- drivers/gpu/d

[Intel-gfx] [PATCH 37/42] drm/i915: swap state correctly in intel_atomic_commit

2015-05-11 Thread Maarten Lankhorst
crtc->config is gone, swap swap swap. :D Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_atomic.c | 36 ++-- drivers/gpu/drm/i915/intel_display.c | 7 +-- 2 files changed, 7 insertions(+), 36 deletions(-) diff --git a/drivers/gpu/drm/i915/in

[Intel-gfx] [PATCH 36/42] drm/i915: get rid of crtc->config

2015-05-11 Thread Maarten Lankhorst
This is now unused, goodbye. :-) Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 2 -- drivers/gpu/drm/i915/intel_drv.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 2c467cda

[Intel-gfx] [PATCH 02/42] drm/i915: get rid of intel_crtc_disable and related code, v2

2015-05-11 Thread Maarten Lankhorst
Now that the dpll updates are (mostly) atomic, the .off() code is no longer used, and there are no more callers for intel_put_shared_dpll. Move all the updates done in intel_crtc_disable to intel_modeset_update_state, one less special case to worry about. Changes since v1: - Move drm_atomic_helpe

[Intel-gfx] [PATCH 34/42] drm/i915: get rid of crtc->config in intel_display.c, part 1

2015-05-11 Thread Maarten Lankhorst
Removed some occurences, roughly based on where the errors of removing crtc->config occured. Because it's used a lot in this file the changes are done in passes. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 205 ++- drivers/gpu/drm/i

[Intel-gfx] [PATCH 13/42] drm/i915: Set mode_changed for audio in intel_modeset_pipe_config()

2015-05-11 Thread Maarten Lankhorst
From: Ander Conselvan de Oliveira A follow up patch will make intel_modeset_compute_config() deal with multiple crtcs, so move crtc specific stuff into the lower level crtc specific function. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 37 ---

[Intel-gfx] [PATCH i-g-t] lib: Add missing '\n' to error message

2015-05-11 Thread Damien Lespiau
Those messages where missing a new line at the end. Take the opportunity to re-format the messages to fit in the 80 chars limit. Signed-off-by: Damien Lespiau --- lib/igt_aux.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/igt_aux.c b/lib/igt_aux.c index 84

Re: [Intel-gfx] [i915 dp mst] drm-intel-nightly-2015y-05m-11d dies when monitor at docking station

2015-05-11 Thread Daniel Martin
On 11 May 2015 at 12:35, Daniel Vetter wrote: > On Mon, May 11, 2015 at 10:19:58AM +0200, Daniel Martin wrote: >> Just tested >> b5a0fd0 drm-intel-nightly: 2015y-05m-11d-06h-03m-04s UTC >> integration manifest >> >> The problem still exists. > > Yeah that one is busted unfortunately. I've just

Re: [Intel-gfx] [RFC 0/2] strace/drm: Add i915 ioctls to strace

2015-05-11 Thread Patrik Jakobsson
On Mon, May 11, 2015 at 12:50:36PM +0200, Gabriel Laskar wrote: > On Wed, 6 May 2015 16:48:01 +0200 > Patrik Jakobsson wrote: > > > This patch set aims to make strace more useful when tracing i915 ioctls. > > The ioctl type is first checked for being drm and then the driver > > backing the opene

[Intel-gfx] [PATCH v5] drm/i915: Avoid GPU Hang when comming out of s3 or s4

2015-05-11 Thread Peter Antoine
This patch fixed a timing issue that causes a GPU hang when a the system comes out of power saving. During pm_resume, We are submitting batchbuffers before enabling Interrupts this is causing us to miss the context switch interrupt, and in consequence intel_execlists_handle_ctx_events is not trigg

Re: [Intel-gfx] [PATCH v4] drm/i915: Avoid GPU Hang when comming out of s3 or s4

2015-05-11 Thread Greg KH
On Mon, May 11, 2015 at 12:05:27PM +0100, Peter Antoine wrote: > This patch fixed a timing issue that causes a GPU hang when a the system > comes out of power saving. > > During pm_resume, We are submitting batchbuffers before enabling > Interrupts this is causing us to miss the context switch int

Re: [Intel-gfx] [PATCH] i-g-t: Adding display NV12 testcase

2015-05-11 Thread Tvrtko Ursulin
Hi, On 05/09/2015 05:32 AM, Chandra Konduru wrote: From: chandra konduru This patch adds kms_nv12 test case. It covers testing NV12 in all supported linear/tile-X/tile-Y/tile-Yf tile formats in 0 and 180 orientations. For each tiling format, it tests various combinations of planes and scaling

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Add 90/270 rotation for NV12 format.

2015-05-11 Thread Ville Syrjälä
On Fri, May 08, 2015 at 08:22:47PM -0700, Chandra Konduru wrote: > Adding NV12 90/270 rotation support for primary and sprite planes. > > Signed-off-by: Chandra Konduru > --- > drivers/gpu/drm/i915/intel_display.c | 23 --- > drivers/gpu/drm/i915/intel_sprite.c | 32

  1   2   >