Re: [Intel-gfx] Request Linux Graphic Driver for Intel GMA 3150

2015-08-31 Thread Jani Nikula
On Sat, 22 Aug 2015, David Ho wrote: > REQUEST > > May I please request support for driver of Intel GMA 3150 for Ubuntu 14.04.3 > 32 bit (Trusty Tahr)? > > I installed "Intel Graphic Installer for Linux" from 01.org, but it stops at > the very first step saying "Distribution not supported". Rodri

Re: [Intel-gfx] [PATCH v2 00/22] Enable gpu switching on the MacBook Pro

2015-08-31 Thread Jani Nikula
On Mon, 31 Aug 2015, Jani Nikula wrote: > On Sat, 29 Aug 2015, Lukas Wunner wrote: >> Hi Daniel, Hi Jani, >> >> the patch set I've posted August 12 included 3 commits which fix bugs >> in i915. These bugs should be fixed independently of MacBook Pro GPU >> switching, please consider merging them:

Re: [Intel-gfx] [PATCH v2 12/22] drm/i915: Preserve SSC earlier

2015-08-31 Thread Jani Nikula
On Mon, 31 Aug 2015, Jesse Barnes wrote: > On 07/15/2015 04:57 AM, Lukas Wunner wrote: >> Commit 92122789b2d6 ("drm/i915: preserve SSC if previously set v3") >> added code to intel_modeset_gem_init to override the SSC status read >> from VBT with the SSC status set by BIOS. >> >> However, intel_m

Re: [Intel-gfx] [PATCH 10/13] drm/i915: Calculate watermark configuration during atomic check

2015-08-31 Thread Maarten Lankhorst
Op 28-08-15 om 15:42 schreef Ander Conselvan De Oliveira: > On Thu, 2015-08-20 at 18:12 -0700, Matt Roper wrote: >> Signed-off-by: Matt Roper >> --- >> drivers/gpu/drm/i915/i915_drv.h | 10 ++ >> drivers/gpu/drm/i915/intel_display.c | 51 ++-- >> drivers/gpu/drm/i

Re: [Intel-gfx] [RFC 1/3] drm/i915: Roll intel_crtc->atomic into intel_crtc_state

2015-08-31 Thread Maarten Lankhorst
Op 29-08-15 om 01:57 schreef Matt Roper: > Way back at the beginning of i915's atomic conversion I added > intel_crtc->atomic as a temporary dumping ground for "stuff to do > outside vblank evasion" flags since CRTC states weren't properly wired > up and tracked at that time. We've had proper CRTC

[Intel-gfx] [PATCH 11/16] drm/i915: Add NV12 to primary plane programming.

2015-08-31 Thread Chandra Konduru
This patch is adding NV12 support to skylake primary plane programming. It is covering linear/X/Y/Yf tiling formats for 0 and 180 rotations. For 90/270 rotation, Y and UV subplanes should be treated as separate surfaces and GTT remapping for rotation should be done separately for each subplane. On

[Intel-gfx] [PATCH 15/16] drm/i915: skl nv12 wa - NV12 to RGB switch

2015-08-31 Thread Chandra Konduru
Switching format from NV12 to RGB can result in display underrun and corruption. This workaround sets bits 15 & 19 to 1 in CLKGATE_DIS_PSL register to address transition underrun. Signed-off-by: Chandra Konduru --- drivers/gpu/drm/i915/i915_reg.h |8 drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH 10/16] drm/i915: Add NV12 support to intel_framebuffer_init

2015-08-31 Thread Chandra Konduru
This patch adds NV12 as supported format to intel_framebuffer_init and performs various checks. v2: -Fix an issue in checks added (me) Signed-off-by: Chandra Konduru Testcase: igt/kms_nv12 --- drivers/gpu/drm/i915/intel_display.c | 28 1 file changed, 28 insertion

[Intel-gfx] [PATCH 08/16] drm/i915: Add NV12 as supported format for primary plane

2015-08-31 Thread Chandra Konduru
This patch adds NV12 to list of supported formats for primary plane. v2: -Rebased (me) Signed-off-by: Chandra Konduru Testcase: igt/kms_nv12 --- drivers/gpu/drm/i915/intel_display.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i91

[Intel-gfx] [PATCH 13/16] drm/i915: Set initial phase & trip for NV12 scaler

2015-08-31 Thread Chandra Konduru
This patch sets default initial phase and trip to scale NV12 content. In future, if needed these can be set via properties or other means depending on incoming stream request. Until then defaults are fine. Signed-off-by: Chandra Konduru --- drivers/gpu/drm/i915/intel_display.c |7 +++ dr

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

2015-08-31 Thread Chandra Konduru
Adding NV12 90/270 rotation support for primary and sprite planes. v2: -For 90/270 adjust pixel boundary only in Y-direction (bspec) v3: -Rebased (me) Signed-off-by: Chandra Konduru Testcase: igt/kms_nv12 --- drivers/gpu/drm/i915/intel_display.c | 28 +++-- drivers/gpu/drm/i915/i

[Intel-gfx] [PATCH 09/16] drm/i915: Add NV12 as supported format for sprite plane

2015-08-31 Thread Chandra Konduru
This patch adds NV12 to list of supported formats for sprite plane. Signed-off-by: Chandra Konduru Testcase: igt/kms_nv12 --- drivers/gpu/drm/i915/intel_sprite.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/

[Intel-gfx] [PATCH 03/16] drm/i915: Add register definitions for NV12 support

2015-08-31 Thread Chandra Konduru
This patch adds register definitions for skylake display NV12 support. Signed-off-by: Chandra Konduru --- drivers/gpu/drm/i915/i915_reg.h | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 1fa

[Intel-gfx] [PATCH 12/16] drm/i915: Add NV12 to sprite plane programming.

2015-08-31 Thread Chandra Konduru
This patch is adding NV12 support to skylake sprite plane programming. It is covering linear/X/Y/Yf tiling formats for 0 and 180 rotations. For 90/270 rotation, Y and UV subplanes should be treated as separate surfaces and GTT remapping for rotation should be done separately for each subplane. Onc

[Intel-gfx] [PATCH 04/16] drm/i915: Set scaler mode for NV12

2015-08-31 Thread Chandra Konduru
This patch sets appropriate scaler mode for NV12 format. In this mode, skylake scaler does either chroma-upsampling or chroma-upsampling and resolution scaling. Signed-off-by: Chandra Konduru --- drivers/gpu/drm/i915/intel_atomic.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) di

[Intel-gfx] [PATCH 07/16] drm/i915: Upscale scaler max scale for NV12.

2015-08-31 Thread Chandra Konduru
This patch updates max supported scaler limits for NV12. v2: -Rebased to current kernel version 4.2.0.rc4 (me) Signed-off-by: Chandra Konduru --- drivers/gpu/drm/i915/intel_display.c | 13 + drivers/gpu/drm/i915/intel_drv.h |3 ++- drivers/gpu/drm/i915/intel_sprite.c |

[Intel-gfx] [PATCH 14/16] drm/i915: skl nv12 wa - disable streamer fix

2015-08-31 Thread Chandra Konduru
When the plane source pixel format is NV12, the CHICKEN_PIPESL register bit 22 must be set to 1 v2: -one wa per commit with comments, and function headers (Daniel) Signed-off-by: Chandra Konduru --- drivers/gpu/drm/i915/i915_reg.h | 12 drivers/gpu/drm/i915/intel_csr.c | 2

[Intel-gfx] [PATCH 05/16] drm/i915: Stage scaler request for NV12 as src format

2015-08-31 Thread Chandra Konduru
This patch stages a scaler request when input format is NV12. The same scaler does both chroma-upsampling and resolution scaling as needed. v2: -Added helper function for need_scaling (Ville) v3: -Rebased to current kernel version 4.2.0.rc4 (me) Signed-off-by: Chandra Konduru --- drivers/gpu/d

[Intel-gfx] [PATCH 06/16] drm/i915: Update format_is_yuv() to include NV12

2015-08-31 Thread Chandra Konduru
This patch adds NV12 to format_is_yuv() function and made it available for both primary and sprite planes. v2: -Use intel_ prefix for format_is_yuv (Ville) Signed-off-by: Chandra Konduru --- drivers/gpu/drm/i915/intel_drv.h|1 + drivers/gpu/drm/i915/intel_sprite.c |9 + 2 fi

[Intel-gfx] [PATCH 01/16] drm/i915: Allocate min dbuf blocks per bspec

2015-08-31 Thread Chandra Konduru
Properly allocate min blocks per hw requirements. Signed-off-by: Chandra Konduru --- drivers/gpu/drm/i915/intel_pm.c | 39 +-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c in

[Intel-gfx] [PATCH 02/16] drm/i915: In DBUF/WM calcs for 90/270, swap w & h

2015-08-31 Thread Chandra Konduru
This patch swaps src width and height for dbuf/wm calculations when rotation is 90/270 as per hw requirements. Signed-off-by: Chandra Konduru --- drivers/gpu/drm/i915/intel_pm.c | 32 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 00/16] drm/i915: Adding NV12 for skylake display

2015-08-31 Thread Chandra Konduru
This patch series is adding initial NV12 support for Skylake display after rebasing on latest drm-intel-nightly. Earlier I had two patch series one for 0/180 and another for 90/270. Some of the patches were already merged. This is combined series to support 0/90/180/270 and removing the ones that a

Re: [Intel-gfx] [PATCH] drm/i915: Fix module initialisation, v2.

2015-08-31 Thread Matt Roper
On Thu, Aug 27, 2015 at 03:15:15PM +0200, Maarten Lankhorst wrote: > Set DRIVER_MODESET and DRIVER_ATOMIC by default. The driver is fully atomic. > Remove the legacy suspend/resume, to fix a warning introduced by: > > "drm: WARN_ON if a modeset driver uses legacy suspend/resume helpers" > > and r

[Intel-gfx] [PATCH 2/2] drm/i915/skl+: Enable pipe CSC on cursor planes. (v2)

2015-08-31 Thread Bob Paauwe
Extend this to SKL and BXT as it's needed for these platforms as well. v2: Change if condition to HAS_DDI() instead of listing each platform Signed-off-by: Bob Paauwe --- drivers/gpu/drm/i915/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH v2 12/22] drm/i915: Preserve SSC earlier

2015-08-31 Thread Jesse Barnes
On 07/15/2015 04:57 AM, Lukas Wunner wrote: > Commit 92122789b2d6 ("drm/i915: preserve SSC if previously set v3") > added code to intel_modeset_gem_init to override the SSC status read > from VBT with the SSC status set by BIOS. > > However, intel_modeset_gem_init is invoked *after* intel_modeset_

Re: [Intel-gfx] [PATCH v2 00/22] Enable gpu switching on the MacBook Pro

2015-08-31 Thread Jani Nikula
On Sat, 29 Aug 2015, Lukas Wunner wrote: > Hi Daniel, Hi Jani, > > the patch set I've posted August 12 included 3 commits which fix bugs > in i915. These bugs should be fixed independently of MacBook Pro GPU > switching, please consider merging them: > > drm/i915: Preserve SSC earlier > http://pat

Re: [Intel-gfx] [PATCH libdrm v2] intel: error out on has_error in exec2

2015-08-31 Thread Chris Wilson
On Mon, Aug 31, 2015 at 08:01:21PM +0100, Emil Velikov wrote: > > Reusing bo_gem here is a little worrying as it would be very easy for > > someone to add code to the end of the function thinking that bo_gem > > still was the batch. > > > Doesn't this concert apply to drm_intel_gem_bo_exec() as wel

Re: [Intel-gfx] [PATCH libdrm v2] intel: error out on has_error in exec2

2015-08-31 Thread Emil Velikov
On 31 August 2015 at 19:26, Chris Wilson wrote: > On Mon, Aug 31, 2015 at 07:14:12PM +0100, Emil Velikov wrote: >> Just like we do for the original exec() >> >> v2: move bo_gem declaration to the top of the function. >> >> Cc: Chris Wilson >> Cc: intel-gfx@lists.freedesktop.org >> Signed-off-by:

Re: [Intel-gfx] [PATCH v2] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-08-31 Thread Chris Wilson
On Mon, Aug 31, 2015 at 06:59:40PM +0200, Michał Winiarski wrote: > On each call to gen8_alloc_va_range_3lvl we're allocating temporary > bitmaps needed for error handling. Unfortunately, when we increase > address space size (48b ppgtt) we do additional (512 - 4) calls to > kcalloc, increasing lat

Re: [Intel-gfx] [PATCH libdrm v2] intel: error out on has_error in exec2

2015-08-31 Thread Chris Wilson
On Mon, Aug 31, 2015 at 07:14:12PM +0100, Emil Velikov wrote: > Just like we do for the original exec() > > v2: move bo_gem declaration to the top of the function. > > Cc: Chris Wilson > Cc: intel-gfx@lists.freedesktop.org > Signed-off-by: Emil Velikov > --- > intel/intel_bufmgr_gem.c | 7

Re: [Intel-gfx] [PATCH libdrm v2] intel: resolve shadowing warnings

2015-08-31 Thread Chris Wilson
On Mon, Aug 31, 2015 at 07:13:12PM +0100, Emil Velikov wrote: > v2: keep the bo_gem declaration in exec2() within the loop (Chris) > > Cc: Chris Wilson > Cc: intel-gfx@lists.freedesktop.org > Signed-off-by: Emil Velikov Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Techn

[Intel-gfx] [PATCH libdrm v2] intel: error out on has_error in exec2

2015-08-31 Thread Emil Velikov
Just like we do for the original exec() v2: move bo_gem declaration to the top of the function. Cc: Chris Wilson Cc: intel-gfx@lists.freedesktop.org Signed-off-by: Emil Velikov --- intel/intel_bufmgr_gem.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/intel/intel_b

[Intel-gfx] [PATCH libdrm v2] intel: resolve shadowing warnings

2015-08-31 Thread Emil Velikov
v2: keep the bo_gem declaration in exec2() within the loop (Chris) Cc: Chris Wilson Cc: intel-gfx@lists.freedesktop.org Signed-off-by: Emil Velikov --- intel/intel_bufmgr_fake.c | 2 +- intel/intel_bufmgr_gem.c | 7 +++ intel/intel_decode.c | 7 ++- 3 files changed, 6 insertions(+

[Intel-gfx] [PATCH v2] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-08-31 Thread Michał Winiarski
On each call to gen8_alloc_va_range_3lvl we're allocating temporary bitmaps needed for error handling. Unfortunately, when we increase address space size (48b ppgtt) we do additional (512 - 4) calls to kcalloc, increasing latency between exec and actual start of execution on the GPU. Let's just do

Re: [Intel-gfx] [PATCH] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-08-31 Thread Chris Wilson
On Mon, Aug 31, 2015 at 06:27:40PM +0200, Michał Winiarski wrote: > On each call to gen8_alloc_va_range_3lvl we're allocating temporary > bitmaps needed for error handling. Unfortunately, when we increase > address space size (48b ppgtt) we do additional (512 - 4) calls to > kcalloc, increasing lat

[Intel-gfx] [PATCH] drm/i915/gtt: Avoid calling kcalloc in a loop when allocating temp bitmaps

2015-08-31 Thread Michał Winiarski
On each call to gen8_alloc_va_range_3lvl we're allocating temporary bitmaps needed for error handling. Unfortunately, when we increase address space size (48b ppgtt) we do additional (512 - 4) calls to kcalloc, increasing latency between exec and actual start of execution on the GPU. Let's just do

Re: [Intel-gfx] [PATCH] drm/i915: Check DP link status on long hpd too

2015-08-31 Thread Jani Nikula
On Thu, 20 Aug 2015, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > We are no longer checkling the DP link status on long hpd. We used to do > that from the .hot_plug() handler, but it was removed when MST got > introduced. > > If there's no userspace we now fail to retrain the lin

Re: [Intel-gfx] [PATCH] drm/i915: apply the PCI_D0/D3 hibernation workaround everywhere on pre GEN6

2015-08-31 Thread Jani Nikula
On Sat, 29 Aug 2015, Mikko Rapeli wrote: > Please, please merge this patch already. Without it hibernation poweroff > is broken for several users. There were some doubts raised over the > approach on lkml review but Imre as maintainer thinks this is the right > thing to do and users like me need t

Re: [Intel-gfx] [PATCH 2/2] drm/i915/skl: Adding DDI_E power well domain

2015-08-31 Thread Jani Nikula
On Thu, 13 Aug 2015, Xiong Zhang wrote: > From B spec, DDI_E port belong to PowerWell 2, but > DDI_E share the powerwell_req/staus register bit with > DDI_A which belong to DDI_A_E_POWER_WELL. > > In order to communicate with the connector on DDI-E, both > DDI_A_E_POWER_WELL and POWER_WELL_2 must

Re: [Intel-gfx] [PATCH 8/6] drm/i915/skl: Enable DDI-E

2015-08-31 Thread Jani Nikula
On Sat, 08 Aug 2015, Rodrigo Vivi wrote: > There are OEMs using DDI-E out there, > so let's enable it. > > Unfortunately there is no detection bit for DDI-E > So we need to rely on VBT for that. > > I also need to give credits to Xiong since before seing > his approach to check info->support_* I w

Re: [Intel-gfx] [PATCH 6/6 v3] drm/i915: Enable HDMI on DDI-E

2015-08-31 Thread Jani Nikula
On Mon, 17 Aug 2015, Xiong Zhang wrote: > DDI-E doesn't have the correspondent GMBUS pin. > > We rely on VBT to tell us which one it being used instead. > > The DVI/HDMI on shared port couldn't exist. > > This patch isn't tested without hardware wchich has HDMI > on DDI-E. > > v2: fix trailing whi

Re: [Intel-gfx] [PATCH 4/6] drm/i915: eDP can be present on DDI-E

2015-08-31 Thread Jani Nikula
On Thu, 06 Aug 2015, Xiong Zhang wrote: > From: Rodrigo Vivi > > On Skylake we have eDP-to-VGA using DDI-E and another aux. > So let's identify it properly. > > Also let's remove duplicated definitions to avoid later > confusion. > > Signed-off-by: Rodrigo Vivi Pushed to drm-intel-next-fixes wi

Re: [Intel-gfx] [PATCH 6/6] drm/radeon: Send out the full AUX address

2015-08-31 Thread Alex Deucher
On Thu, Aug 27, 2015 at 10:23 AM, wrote: > From: Ville Syrjälä > > AUX addresses are 20 bits long. Send out the entire address instead of > just the low 16 bits. > > Cc: Alex Deucher > Cc: "Christian König" > Signed-off-by: Ville Syrjälä Applied. thanks! Alex > --- > drivers/gpu/drm/rade

Re: [Intel-gfx] [PATCH 11/13] drm/i915: Add two-stage ILK-style watermark programming (v3)

2015-08-31 Thread Ander Conselvan De Oliveira
On Thu, 2015-08-20 at 18:12 -0700, Matt Roper wrote: > In addition to calculating final watermarks, let's also pre-calculate a > set of intermediate watermark values at atomic check time. These > intermediate watermarks are a combination of the watermarks for the old > state and the new state; the

Re: [Intel-gfx] [PATCH 2/3] drm/i915: add yesno utility function

2015-08-31 Thread Chris Wilson
On Mon, Aug 31, 2015 at 05:23:27PM +0300, Jani Nikula wrote: > On Thu, 27 Aug 2015, Jani Nikula wrote: > > On Thu, 27 Aug 2015, Chris Wilson wrote: > >> On Thu, Aug 27, 2015 at 04:23:30PM +0300, Jani Nikula wrote: > >>> Add a common function to return "yes" or "no" string based on the > >>> argum

Re: [Intel-gfx] [PATCH 2/3] drm/i915: add yesno utility function

2015-08-31 Thread Jani Nikula
On Thu, 27 Aug 2015, Jani Nikula wrote: > On Thu, 27 Aug 2015, Chris Wilson wrote: >> On Thu, Aug 27, 2015 at 04:23:30PM +0300, Jani Nikula wrote: >>> Add a common function to return "yes" or "no" string based on the >>> argument, and drop the local versions of it. >> >> Purely out of curiosity,

[Intel-gfx] [PATCH] drm/i915: Always mark the object as dirty when used by the GPU

2015-08-31 Thread Chris Wilson
There have been many hard to track down bugs whereby userspace forgot to flag a write buffer and then cause graphics corruption or a hung GPU when that buffer was later purged under memory pressure (as the buffer appeared clean, its pages would have been evicted rather than preserved and any change

Re: [Intel-gfx] [PATCH v2] drm/atomic: Fix bookkeeping with TEST_ONLY, v2.

2015-08-31 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 7274 -Summary- Platform Delta drm-intel-nightly Series Applied ILK -1

Re: [Intel-gfx] [PATCH v2 2/6] drm/i915: Enable full ppgtt for vgpu on Broadwell

2015-08-31 Thread Joonas Lahtinen
On pe, 2015-08-28 at 15:41 +0800, Zhiyuan Lv wrote: > The full ppgtt is supported now in Intel GVT-g device model. > Broadwell > is allowed to use it in virtual machines. > > v2: > - Keep backward compatibility on HSW with old device model (daniel) > > Signed-off-by: Zhiyuan Lv > Signed-off-by:

Re: [Intel-gfx] [PATCH v2 3/6] drm/i915: Always enable execlists on BDW for vgpu

2015-08-31 Thread Joonas Lahtinen
On pe, 2015-08-28 at 15:41 +0800, Zhiyuan Lv wrote: > Broadwell hardware supports both ring buffer mode and execlist mode. > When i915 runs inside a VM with Intel GVT-g, we allow execlist mode > only. > > The main reason of EXECLIST only is that GVT-g does not support the > dynamic mode switch bet

Re: [Intel-gfx] [PATCH v2 5/6] drm/i915: guest i915 notification for Intel GVT-g

2015-08-31 Thread Joonas Lahtinen
On pe, 2015-08-28 at 15:41 +0800, Zhiyuan Lv wrote: > When i915 drivers run inside a VM with Intel GVT-g, some explicit > notifications are needed from guest to host device model through PV > INFO page write. The notifications include: > > PPGTT create > PPGTT destroy > > They are use

Re: [Intel-gfx] [PATCH v4 2/5] drm: Add private data field to trace control block

2015-08-31 Thread Patrik Jakobsson
On Wed, Aug 26, 2015 at 03:26:08PM +0200, Patrik Jakobsson wrote: > On Tue, Aug 25, 2015 at 11:12 PM, Mike Frysinger wrote: > > On 24 Aug 2015 14:42, Patrik Jakobsson wrote: > >> We need to be able to store private data in the tcb across it's > >> lifetime. To ensure proper destruction of the data

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Also record time difference if vblank evasion fails.

2015-08-31 Thread Ville Syrjälä
On Mon, Aug 31, 2015 at 01:04:26PM +0200, Maarten Lankhorst wrote: > This makes the error message slightly more useful. > > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/i915/intel_drv.h| 2 ++ > drivers/gpu/drm/i915/intel_sprite.c | 6 -- > 2 files changed, 6 insertions(+), 2

Re: [Intel-gfx] [PATCH] drm/i915: Enabling RC6 immediately during init/resume

2015-08-31 Thread Salonie, Namrta
Hi Chris, Daniel. Thanks for your inputs. I agree that we need to amend the patch. Will do following changes. 1. RPM ref count is not needed with immediate enabling of RC6, I will remove that. 2. I will extend this to other GEN as well. This was one of the set of optimization we implement

Re: [Intel-gfx] [PATCH] i915: Set ddi_pll_sel in DP MST path

2015-08-31 Thread Ville Syrjälä
On Mon, Aug 31, 2015 at 11:23:28AM +0300, Ander Conselvan de Oliveira wrote: > The DP MST encoder config function never sets ddi_pll_sel, even though > its value is programmed in its ->pre_enable() hook. That used to work > because a new pipe_config was kzalloc'ed at every modeset, and the value >

[Intel-gfx] [PATCH 2/2] drm/i915: Also record time difference if vblank evasion fails.

2015-08-31 Thread Maarten Lankhorst
This makes the error message slightly more useful. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_drv.h| 2 ++ drivers/gpu/drm/i915/intel_sprite.c | 6 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i9

[Intel-gfx] [PATCH 1/2] drm/i915: Remove start frame argument to pipe_update_begin/end.

2015-08-31 Thread Maarten Lankhorst
There's already a per crtc member that can be used for it. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_display.c | 9 - drivers/gpu/drm/i915/intel_drv.h | 5 ++--- drivers/gpu/drm/i915/intel_sprite.c | 15 --- 3 files changed, 14 insertions(+), 15 d

Re: [Intel-gfx] [PATCH 14/15] drm/i915: Add some CHV DPIO lane power state asserts

2015-08-31 Thread Deepak
On 08/27/2015 04:32 PM, Ville Syrjälä wrote: On Thu, Aug 27, 2015 at 10:06:09AM +0530, Deepak wrote: On 07/09/2015 02:16 AM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä Add some checks that the state of the DPIO lanes is more or less what we expect based on the overrides. The

[Intel-gfx] [PATCH] drm/atomic: Fix bookkeeping with TEST_ONLY, v3.

2015-08-31 Thread Maarten Lankhorst
Commit ec9f932ed41622d120de52a5b525e4d77b9ef17e "drm/atomic: Cleanup on error properly in the atomic ioctl." cleaned up some error paths, but didn't fix the TEST_ONLY path. In the check only case plane->fb shouldn't be updated, and the vblank events should be cleared as on failure. Changes since v

Re: [Intel-gfx] [PATCH] intel-gpu-tools: Fixes-compiler-warnings-about-wrong-function-type

2015-08-31 Thread Stefan Dirsch
On Wed, Aug 26, 2015 at 11:42:23AM +0100, Thomas Wood wrote: > On 24 August 2015 at 10:59, Stefan Dirsch wrote: > > Hi > > > > Find a simple buildfix against current intel-gpu-tools git sources attached. > > I assume the compiler warning is about uninitialised values and unused > variables? It lo

Re: [Intel-gfx] [PATCH] drm/atomic: Make sure lock is held in trylock contexts.

2015-08-31 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 7273 -Summary- Platform Delta drm-intel-nightly Series Applied ILK

[Intel-gfx] [PATCH] drm/i915/bxt: Fix irq_port for eDP

2015-08-31 Thread Sonika Jindal
From: Durgadoss R Currently, HDMI hotplug with eDP as local panel is failing because the HDMI hpd is detected as a long hpd for eDP; and is thus rightfully ignored. But, it should really be handled as an interrupt on port B for HDMI (due to BXT A1 platform having HPD pins A and B swapped). This p

[Intel-gfx] [PATCH] i915: Set ddi_pll_sel in DP MST path

2015-08-31 Thread Ander Conselvan de Oliveira
The DP MST encoder config function never sets ddi_pll_sel, even though its value is programmed in its ->pre_enable() hook. That used to work because a new pipe_config was kzalloc'ed at every modeset, and the value of zero selects the highest clock for the PLL. Starting with the commit below, the va

Re: [Intel-gfx] drm/atomic: Reject events for inactive crtc's.

2015-08-31 Thread Maarten Lankhorst
Op 27-08-15 om 17:22 schreef Daniel Vetter: > On Thu, Aug 27, 2015 at 03:36:09PM +0100, Daniel Stone wrote: >> Hi, >> >> On 6 August 2015 at 13:49, Daniel Vetter wrote: >>> On Thu, Aug 06, 2015 at 01:19:35PM +0200, Maarten Lankhorst wrote: Op 06-08-15 om 11:47 schreef Daniel Stone: > On 3