[Intel-gfx] [PATCH 9/9] drm/i915: Move releasing of the GEM request from free to retire/cancel

2016-04-18 Thread Chris Wilson
If we move the release of the GEM request (i.e. decoupling it from the various lists used for client and context tracking) after it is complete (either by the GPU retiring the request, or by the caller cancelling the request), we can remove the requirement that the final unreference of the GEM requ

[Intel-gfx] [PATCH 6/9] drm/i915: Move context initialisation to first-use

2016-04-18 Thread Chris Wilson
Instead of allocating a new request when allocating a context, use the request that initiated the allocation to emit the context initialisation. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_lrc.c | 39 ++-

[Intel-gfx] [PATCH 7/9] drm/i915: Move the magical deferred context allocation into the request

2016-04-18 Thread Chris Wilson
We can hide more details of execlists from higher level code by removing the explicit call to create an execlist context into its first use. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 8 drivers/gpu/drm/i915/intel_lrc.c | 21 ++---

[Intel-gfx] [PATCH 8/9] drm/i915: Track the previous pinned context inside the request

2016-04-18 Thread Chris Wilson
As the contexts are accessed by the hardware until the switch is completed to a new context, the hardware may still be writing to the context object after the breadcrumb is visible. We must not unpin/unbind/prune that object whilst still active and so we keep the previous context pinned until the f

[Intel-gfx] [PATCH 5/9] drm/i915: Rearrange switch_context to load the aliasing ppgtt on first use

2016-04-18 Thread Chris Wilson
The code to switch_mm() is already handled by i915_switch_context(), the only difference required to setup the aliasing ppgtt is that we need to emit te switch_mm() on the first context, i.e. when transitioning from engine->last_context == NULL. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i9

[Intel-gfx] Premature LRC unpin

2016-04-18 Thread Chris Wilson
So, I spent some time reorganising the patches I had for this into a usable state and found that we needed some more work to keep Braswell happy with the earlier unpinning. In particular, it needs a stable ctx descriptor id to keep igt/gem_ctx_switch from quicking hanging. -Chris _

[Intel-gfx] [PATCH 4/9] drm/i915: Remove early l3-remap

2016-04-18 Thread Chris Wilson
Since we do the l3-remap on context switch, and proceed to do a context switch immediately after manually doing the l3-remap, we can remove the redundant manual call. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h | 1 - drivers/gpu/drm/i915/i915_gem.c | 39 +---

[Intel-gfx] [PATCH 2/9] drm/i915: Replace the pinned context address with its unique ID

2016-04-18 Thread Chris Wilson
Rather than reuse the current location of the context in the global GTT, use its unique ID assigned to it for the lifetime of that context. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_debugfs.c | 12 +--- drivers/gpu/drm/i915/intel_lrc.c| 36 ++--

[Intel-gfx] [PATCH 3/9] drm/i915: Refactor execlists default context pinning

2016-04-18 Thread Chris Wilson
Refactor pinning and unpinning of contexts, such that the default context for an engine is pinned during initialisation and unpinned during teardown (pinning of the context handles the reference counting). Thus we can eliminate the special case handling of the default context that was required to m

[Intel-gfx] [PATCH 1/9] drm/i915: Assign every HW context a unique ID

2016-04-18 Thread Chris Wilson
The hardware tracks contexts and expects all live contexts (those active on the hardware) to have a unique identifier. This is used by the hardware to assign pagefaults and the like to a particular context. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Fix oops in vlv_force_pll_on()

2016-04-18 Thread Patchwork
== Series Details == Series: drm/i915: Fix oops in vlv_force_pll_on() URL : https://patchwork.freedesktop.org/series/5888/ State : failure == Summary == Series 5888v1 drm/i915: Fix oops in vlv_force_pll_on() http://patchwork.freedesktop.org/api/1.0/series/5888/revisions/1/mbox/ Test gem_busy:

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Define HSW/BDW display power domains the right way up

2016-04-18 Thread Imre Deak
On Mon, 2016-04-18 at 14:02 +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Currently we're trying to define HSW/BDW power wells by what's not > included. Let's do it the other way around, so that you can actually > tell when the power well would get enabled. This will also

Re: [Intel-gfx] [PATCH] drm/i915: Set legacy properties when using legacy gamma set IOCTL. (v2)

2016-04-18 Thread Maarten Lankhorst
Op 18-04-16 om 18:47 schreef Bob Paauwe: > The i915 driver is now using atomic properties and atomic commit > to handle the legacy set gamma IOCTL. However, if the driver is > configured without atomic (nuclear_pageflip = false), it won't > update the legacy properties for degamma_lut, gamma_lut an

Re: [Intel-gfx] [PATCH] drm/i915: Set legacy properties when using legacy gamma set IOCTL. (v2)

2016-04-18 Thread Maarten Lankhorst
Op 18-04-16 om 18:47 schreef Bob Paauwe: > The i915 driver is now using atomic properties and atomic commit > to handle the legacy set gamma IOCTL. However, if the driver is > configured without atomic (nuclear_pageflip = false), it won't > update the legacy properties for degamma_lut, gamma_lut an

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Define VLV/CHV display power well domains properly

2016-04-18 Thread Imre Deak
On Mon, 2016-04-18 at 14:02 +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Currently we're using POWER_DOMAIN_MASK as the power domains for the > display power well on VLV/CHV. That includes all power domains even > though the disp2d/pipe-a power well is not needed for a lo

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Set .domains=POWER_DOMAIN_MASK for the always-on well

2016-04-18 Thread Imre Deak
On Mon, 2016-04-18 at 14:02 +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > The always-on well is the same as runtime PM, so we should just > "enable" it for any power domain. Throw out the usless > FOO_ALWAYS_ON_DOMAINS defines and just use POWER_DOMAIN_MASK. > > Signed-of

Re: [Intel-gfx] SkyLake

2016-04-18 Thread cacook
On 04/18/2016 07:40 PM, Felix Miata wrote: > cac...@quantum-sci.com composed on 2016-04-18 19:09 (UTC-0700): >> >> I take it there's no SkyLake support on the Xen side, since that starts >> with kernel 4.4? > > Which distro and kernel are you using? Modeset driver built into Xorg > doesn't work fo

Re: [Intel-gfx] SkyLake

2016-04-18 Thread Felix Miata
cac...@quantum-sci.com composed on 2016-04-18 19:09 (UTC-0700): I take it there's no SkyLake support on the Xen side, since that starts with kernel 4.4? Which distro and kernel are you using? Modeset driver built into Xorg doesn't work for you? "The latest xf86-video-intel driver was causi

Re: [Intel-gfx] [PATCH] drm/i915: Wait for power cycle delay after turning off DSI panel power

2016-04-18 Thread Kumar, Shobhit
On Monday 18 April 2016 09:47 PM, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä The power cycle delay starts _after_ turning off the panel power. Do the msleep after frobbing the pmic panel power gpio. Also toss in a FIXME about optimizing away needless waits. Cc: Shobhit Kumar Cc

[Intel-gfx] SkyLake

2016-04-18 Thread cacook
I take it there's no SkyLake support on the Xen side, since that starts with kernel 4.4? 0xF8ED1710.asc Description: application/pgp-keys ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel

[Intel-gfx] DMAR PTE access not set

2016-04-18 Thread cacook
On boot after kernel compile I'm getting: DMAR PTE access not set. Fast TSC calibration failed. -- It concludes with "DRHD Fault". And it hangs there. CentOS 3.10 kernel boots fine with intel_iommu=on. Why? VT-d and SRIOV capable (Supermicro) mobo, with both on. Bing only has stuff from 2012

Re: [Intel-gfx] [4.4-rc1][Regression] drm/i915: Check live status before reading edid

2016-04-18 Thread Joseph Salisbury
On 03/28/2016 02:39 PM, Joseph Salisbury wrote: > On 03/02/2016 04:58 PM, Joseph Salisbury wrote: >> On 02/29/2016 04:33 AM, Jani Nikula wrote: >>> On Wed, 24 Feb 2016, Joseph Salisbury >>> wrote: Hi Sonika, A kernel bug report was opened against Ubuntu [0]. After a kernel bi

Re: [Intel-gfx] [PATCH] drm: fix lut value extraction function

2016-04-18 Thread Emil Velikov
On 18 April 2016 at 16:53, Daniel Vetter wrote: > On Mon, Apr 18, 2016 at 03:40:11PM +0100, Emil Velikov wrote: >> On 18 April 2016 at 13:36, Daniel Vetter wrote: >> > On Mon, Apr 18, 2016 at 12:09:51PM +0100, Lionel Landwerlin wrote: >> >> Ping? >> >> >> >> On 22/03/16 14:10, Lionel Landwerlin w

[Intel-gfx] [PATCH] drm/i915: Fix oops in vlv_force_pll_on()

2016-04-18 Thread ville . syrjala
From: Ville Syrjälä intel_pipe_will_have_type() doesn't just look at the passied in pipe_config, instead it expects there to be a full atomic state behind it. Obviously that won't go so well when vlv_force_pll_on() just uses a temp pipe_config. Fix things by using pipe_config->has_dsi_encoder ins

Re: [Intel-gfx] [PATCH] drm/i915/kbl: Reset secondary power well requests left on by DMC/KVMR

2016-04-18 Thread Imre Deak
On ma, 2016-04-18 at 10:15 +0200, Patrik Jakobsson wrote: > On Fri, Apr 15, 2016 at 10:32:58PM +0300, Imre Deak wrote: > > The workaround added in c6782b76d31a ("drm/i915/gen9: Reset > > secondary power > > well requests left on by DMC/KVMR") needs to be applied on Kabylake > > too as > > shown by

Re: [Intel-gfx] [PATCH] drm/i915: Unify VLV/CHV DPOunit clock gating disable/enable

2016-04-18 Thread Jani Nikula
On Mon, 18 Apr 2016, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Check for VLV/CHV instead if !BXT when re-enabling DPOunit clock gating > after DSI disable. That's what we checked when disabling the clock > gating when enabling DSI. > > Also use the same temporary variable name

[Intel-gfx] ✗ Fi.CI.BAT: warning for drm/i915: Wait for power cycle delay after turning off DSI panel power

2016-04-18 Thread Patchwork
== Series Details == Series: drm/i915: Wait for power cycle delay after turning off DSI panel power URL : https://patchwork.freedesktop.org/series/5885/ State : warning == Summary == Series 5885v1 drm/i915: Wait for power cycle delay after turning off DSI panel power http://patchwork.freedesk

Re: [Intel-gfx] [PATCH] drm/i915: Wait for power cycle delay after turning off DSI panel power

2016-04-18 Thread Jani Nikula
On Mon, 18 Apr 2016, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > The power cycle delay starts _after_ turning off the panel power. Do the > msleep after frobbing the pmic panel power gpio. > > Also toss in a FIXME about optimizing away needless waits. > > Cc: Shobhit Kumar > Cc

Re: [Intel-gfx] [PATCH] drm/i915: Clean up PCI config register handling

2016-04-18 Thread Jani Nikula
On Mon, 18 Apr 2016, Chris Wilson wrote: > [ text/plain ] > On Mon, Apr 18, 2016 at 06:09:28PM +0300, Joonas Lahtinen wrote: >> @@ -251,7 +245,7 @@ static int swsci(struct drm_device *dev, u32 function, >> u32 parm, u32 *parm_out) >> struct drm_i915_private *dev_priv = dev->dev_private; >>

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/3] drm/i915: Do CRT HPD force trigger only when needed

2016-04-18 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915: Do CRT HPD force trigger only when needed URL : https://patchwork.freedesktop.org/series/5884/ State : success == Summary == Series 5884v1 Series without cover letter http://patchwork.freedesktop.org/api/1.0/series/5884/revisio

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Power domain fixes

2016-04-18 Thread Ville Syrjälä
On Mon, Apr 18, 2016 at 07:42:00PM +0300, Ville Syrjälä wrote: > On Mon, Apr 18, 2016 at 12:03:01PM -, Patchwork wrote: > > == Series Details == > > > > Series: drm/i915: Power domain fixes > > URL : https://patchwork.freedesktop.org/series/5863/ > > State : failure > > > > == Summary == >

[Intel-gfx] [PATCH] drm/i915: Set legacy properties when using legacy gamma set IOCTL. (v2)

2016-04-18 Thread Bob Paauwe
The i915 driver is now using atomic properties and atomic commit to handle the legacy set gamma IOCTL. However, if the driver is configured without atomic (nuclear_pageflip = false), it won't update the legacy properties for degamma_lut, gamma_lut and ctm leaving them out of sync with the atomic ve

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Power domain fixes

2016-04-18 Thread Ville Syrjälä
On Mon, Apr 18, 2016 at 12:03:01PM -, Patchwork wrote: > == Series Details == > > Series: drm/i915: Power domain fixes > URL : https://patchwork.freedesktop.org/series/5863/ > State : failure > > == Summary == > > Series 5863v1 drm/i915: Power domain fixes > http://patchwork.freedesktop.or

[Intel-gfx] [PATCH] drm/i915: Unify VLV/CHV DPOunit clock gating disable/enable

2016-04-18 Thread ville . syrjala
From: Ville Syrjälä Check for VLV/CHV instead if !BXT when re-enabling DPOunit clock gating after DSI disable. That's what we checked when disabling the clock gating when enabling DSI. Also use the same temporary variable name in both cases, and toss in a bit of dev vs. dev_priv cleanup while at

[Intel-gfx] [PATCH] drm/i915: Wait for power cycle delay after turning off DSI panel power

2016-04-18 Thread ville . syrjala
From: Ville Syrjälä The power cycle delay starts _after_ turning off the panel power. Do the msleep after frobbing the pmic panel power gpio. Also toss in a FIXME about optimizing away needless waits. Cc: Shobhit Kumar Cc: Jani Nikula Fixes: fc45e8219907 ("drm/i915: Use the CRC gpio for panel

[Intel-gfx] [PATCH 3/3] drm/i915: Always power on TX wells before CMN well on VLV

2016-04-18 Thread ville . syrjala
From: Ville Syrjälä Supposedly we need to power on the TX wells before CMN well on VLV. We currently do that when enabling HDMI/DP ports, but when we enable the CRT port we only power up the CMN well. So if someone enables the CRT port first, and then HDMI/DP the wells will power up in the suppos

[Intel-gfx] [PATCH 2/3] drm/i915: Disable CRT HPD around force trigger

2016-04-18 Thread ville . syrjala
From: Ville Syrjälä The CRT HPD force trigger will generate a HPD irq. Let's ignore it since we're already doing the detect and there's no point in scheduling another one immediately. This is rather important on VLV since turning on the disp2d power well will trigger a CRT HPD and when processin

[Intel-gfx] [PATCH 1/3] drm/i915: Do CRT HPD force trigger only when needed

2016-04-18 Thread ville . syrjala
From: Ville Syrjälä There doesn't seem to be any need to for the force trigger trick every single time on VLV CRT output. Let's do it the same way as on ILK+, and do the force trigger only on the first detect after reset. This means we can actually just call the ILK+ code on VLV. The only differ

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Replace nondescript 'WARN_ON(!lret)' with a sensible error message

2016-04-18 Thread Ville Syrjälä
On Mon, Apr 18, 2016 at 01:43:13PM +0200, Maarten Lankhorst wrote: > Op 18-04-16 om 13:29 schreef ville.syrj...@linux.intel.com: > > From: Ville Syrjälä > > > > When a vblank wait times out in intel_atomic_wait_for_vblanks() we just > > get a cryptic 'WARN_ON(!ret)' backtrace in dmesg. Repace it w

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Clean up PCI config register handling (rev2)

2016-04-18 Thread Patchwork
== Series Details == Series: drm/i915: Clean up PCI config register handling (rev2) URL : https://patchwork.freedesktop.org/series/5768/ State : failure == Summary == Series 5768v2 drm/i915: Clean up PCI config register handling http://patchwork.freedesktop.org/api/1.0/series/5768/revisions/2/

Re: [Intel-gfx] [PATCH] drm: fix lut value extraction function

2016-04-18 Thread Daniel Vetter
On Mon, Apr 18, 2016 at 03:40:11PM +0100, Emil Velikov wrote: > On 18 April 2016 at 13:36, Daniel Vetter wrote: > > On Mon, Apr 18, 2016 at 12:09:51PM +0100, Lionel Landwerlin wrote: > >> Ping? > >> > >> On 22/03/16 14:10, Lionel Landwerlin wrote: > >> >When extracting the value at full precision

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Fix a few suspend/resume and driver unload bugs (rev3)

2016-04-18 Thread Imre Deak
On ma, 2016-04-18 at 13:57 +, Patchwork wrote: > == Series Details == > > Series: drm/i915: Fix a few suspend/resume and driver unload bugs > (rev3) > URL   : https://patchwork.freedesktop.org/series/5856/ > State : failure > > == Summary == > > Series 5856v3 drm/i915: Fix a few suspend/resu

[Intel-gfx] ✗ Fi.CI.BAT: warning for series starting with [v2,1/4] drm/i915/overlay: Replace i915_gem_obj_ggtt_offset() with the known flip_addr (rev2)

2016-04-18 Thread Patchwork
== Series Details == Series: series starting with [v2,1/4] drm/i915/overlay: Replace i915_gem_obj_ggtt_offset() with the known flip_addr (rev2) URL : https://patchwork.freedesktop.org/series/5865/ State : warning == Summary == Series 5865v2 Series without cover letter http://patchwork.freedes

Re: [Intel-gfx] [PATCH] drm/i915: Move ioremap_wc tracking onto VMA

2016-04-18 Thread Tvrtko Ursulin
On 18/04/16 16:22, Chris Wilson wrote: On Mon, Apr 18, 2016 at 04:08:55PM +0100, Tvrtko Ursulin wrote: On 18/04/16 15:54, Chris Wilson wrote: @@ -3378,6 +3378,8 @@ static int __i915_vma_unbind(struct i915_vma *vma, bool wait) ret = i915_gem_object_put_fence(obj);

Re: [Intel-gfx] [PATCH] drm/i915: Clean up PCI config register handling

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 06:09:28PM +0300, Joonas Lahtinen wrote: > @@ -251,7 +245,7 @@ static int swsci(struct drm_device *dev, u32 function, > u32 parm, u32 *parm_out) > struct drm_i915_private *dev_priv = dev->dev_private; > struct opregion_swsci *swsci = dev_priv->opregion.swsci; >

Re: [Intel-gfx] [PATCH] drm/i915: Move ioremap_wc tracking onto VMA

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 04:08:55PM +0100, Tvrtko Ursulin wrote: > On 18/04/16 15:54, Chris Wilson wrote: > >@@ -3378,6 +3378,8 @@ static int __i915_vma_unbind(struct i915_vma *vma, > >bool wait) > > ret = i915_gem_object_put_fence(obj); > > if (ret) > >

Re: [Intel-gfx] [PATCH] drm/i915: Move ioremap_wc tracking onto VMA

2016-04-18 Thread kbuild test robot
Hi Chris, [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on next-20160418] [cannot apply to v4.6-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Chris-Wilson

Re: [Intel-gfx] [PATCH] drm/i915: Move ioremap_wc tracking onto VMA

2016-04-18 Thread Tvrtko Ursulin
On 18/04/16 15:54, Chris Wilson wrote: By tracking the iomapping on the VMA itself, we can share that area between multiple users. Also by only revoking the iomapping upon unbinding from the mappable portion of the GGTT, we can keep that iomap across multiple invocations (e.g. execlists context

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915/vlv: Reset the ADPA in vlv_display_power_well_init()

2016-04-18 Thread Ville Syrjälä
On Mon, Apr 18, 2016 at 10:00:36AM -0400, Lyude wrote: > While VGA hotplugging worked(ish) before, it looks like that was mainly > because we'd unintentionally enable it in > valleyview_crt_detect_hotplug() when we did a force trigger. This > doesn't work reliably enough because whenever the displa

[Intel-gfx] [PATCH] drm/i915: Clean up PCI config register handling

2016-04-18 Thread Joonas Lahtinen
Do not use magic numbers, do not prefix stuff with "PCI_", do not declare registers in implementation files. Also move the PCI registers under correct comment in i915_reg.h. v2: - Consistently use BSM (not BDSM or other variants from PRM) (Chris) - Also include register address to help identify th

Re: [Intel-gfx] [PATCH v2 2/4] drm/i915: Fix system resume if PCI device remained enabled

2016-04-18 Thread Ville Syrjälä
On Mon, Apr 18, 2016 at 02:45:54PM +0300, Imre Deak wrote: > During system resume we depended on pci_enable_device() also putting the > device into PCI D0 state. This won't work if the PCI device was already > enabled but still in D3 state. This is because pci_enable_device() is > refcounted and wi

[Intel-gfx] [PATCH] drm/i915: Move ioremap_wc tracking onto VMA

2016-04-18 Thread Chris Wilson
By tracking the iomapping on the VMA itself, we can share that area between multiple users. Also by only revoking the iomapping upon unbinding from the mappable portion of the GGTT, we can keep that iomap across multiple invocations (e.g. execlists context pinning). Note that by moving the iounnma

Re: [Intel-gfx] [PATCH] drm: fix lut value extraction function

2016-04-18 Thread Emil Velikov
On 18 April 2016 at 13:36, Daniel Vetter wrote: > On Mon, Apr 18, 2016 at 12:09:51PM +0100, Lionel Landwerlin wrote: >> Ping? >> >> On 22/03/16 14:10, Lionel Landwerlin wrote: >> >When extracting the value at full precision (16 bits), no need to >> >round the value. >> > >> >This was spotted by Ja

[Intel-gfx] ✗ Fi.CI.BAT: failure for Add USB typeC based DP support for BXT platform (rev5)

2016-04-18 Thread Patchwork
== Series Details == Series: Add USB typeC based DP support for BXT platform (rev5) URL : https://patchwork.freedesktop.org/series/1731/ State : failure == Summary == Series 1731v5 Add USB typeC based DP support for BXT platform http://patchwork.freedesktop.org/api/1.0/series/1731/revisions/5/

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915: Introduce i915_vm_to_ggtt()

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 04:37:12PM +0300, Joonas Lahtinen wrote: > On ma, 2016-04-18 at 12:14 +0100, Chris Wilson wrote: > > In a couple of places, we have an i915_address_space that we know is > > really an i915_ggtt that we want to use. Create an inline helper to > > convert from the i915_address

[Intel-gfx] [PATCH v3 2/2] drm/i915/vlv: Reset the ADPA in vlv_display_power_well_init()

2016-04-18 Thread Lyude
While VGA hotplugging worked(ish) before, it looks like that was mainly because we'd unintentionally enable it in valleyview_crt_detect_hotplug() when we did a force trigger. This doesn't work reliably enough because whenever the display powerwell on vlv gets disabled, the values set in VLV_ADPA ge

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Fix a few suspend/resume and driver unload bugs (rev3)

2016-04-18 Thread Patchwork
== Series Details == Series: drm/i915: Fix a few suspend/resume and driver unload bugs (rev3) URL : https://patchwork.freedesktop.org/series/5856/ State : failure == Summary == Series 5856v3 drm/i915: Fix a few suspend/resume and driver unload bugs http://patchwork.freedesktop.org/api/1.0/seri

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915: Introduce i915_vm_to_ggtt()

2016-04-18 Thread Joonas Lahtinen
On ma, 2016-04-18 at 12:14 +0100, Chris Wilson wrote: > In a couple of places, we have an i915_address_space that we know is > really an i915_ggtt that we want to use. Create an inline helper to > convert from the i915_address_space subclass into its container. > > Signed-off-by: Chris Wilson > C

Re: [Intel-gfx] [PATCH 1/5] drm/i915: use dev_priv directly in gen8_ppgtt_notify_vgt

2016-04-18 Thread Joonas Lahtinen
On ma, 2016-04-18 at 14:11 +0100, Chris Wilson wrote: > On Mon, Apr 18, 2016 at 03:51:20PM +0300, Joonas Lahtinen wrote: > > > > On ti, 2016-04-12 at 16:57 +0100, Matthew Auld wrote: > > > > > > Remove dev local and use to_i915() in gen8_ppgtt_notify_vgt. > > > > > > v2: use dev_priv directly fo

[Intel-gfx] ✗ Fi.CI.BAT: warning for series starting with [v2,1/4] drm/i915/overlay: Replace i915_gem_obj_ggtt_offset() with the known flip_addr

2016-04-18 Thread Patchwork
== Series Details == Series: series starting with [v2,1/4] drm/i915/overlay: Replace i915_gem_obj_ggtt_offset() with the known flip_addr URL : https://patchwork.freedesktop.org/series/5865/ State : warning == Summary == Series 5865v1 Series without cover letter http://patchwork.freedesktop.or

Re: [Intel-gfx] [PATCH 4/5] drm/i915: call kunmap_px on pt_vaddr

2016-04-18 Thread Joonas Lahtinen
On ti, 2016-04-12 at 16:57 +0100, Matthew Auld wrote: > We need to kunmap pt_vaddr and not pt itself, otherwise we end up > mapping a bunch of pages without ever unmapping them. > It's always a good idea to use 'git blame' to figure out the bug inducing commit, and include that information + CC'i

Re: [Intel-gfx] [PATCH 3/5] drm/i915: bail in alloc_pdp when !FULL_48BIT_PPGTT

2016-04-18 Thread Joonas Lahtinen
On ti, 2016-04-12 at 16:57 +0100, Matthew Auld wrote: > If we are not in FULL_48BIT_PPGTT mode then we really shouldn't > continue on with our allocations, given that the call to free_dpd would > bail early without freeing everything, thus leaking memory. > > Cc: Chris Wilson > Cc: Joonas Lahtine

Re: [Intel-gfx] [PATCH 2/5] drm/i915: harden allocation paths in allocate_va_range

2016-04-18 Thread Joonas Lahtinen
On ti, 2016-04-12 at 16:57 +0100, Matthew Auld wrote: > For the gen6/gen8_allocate_va_range functions remove the WARN_ON range > sanity checks in favour of simply hardening the allocation paths. This > also fixes the inconsistency in which we don't always handle the > potential overflow in our chec

Re: [Intel-gfx] [PATCH 1/5] drm/i915: use dev_priv directly in gen8_ppgtt_notify_vgt

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 03:51:20PM +0300, Joonas Lahtinen wrote: > On ti, 2016-04-12 at 16:57 +0100, Matthew Auld wrote: > > Remove dev local and use to_i915() in gen8_ppgtt_notify_vgt. > > > > v2: use dev_priv directly for QUESTION_MACROS (Joonas Lahtinen) > > > > Cc: Joonas Lahtinen > > Revie

Re: [Intel-gfx] [PATCH 07/16] drm/i915/gen9: Allow skl_allocate_pipe_ddb() to operate on in-flight state

2016-04-18 Thread Maarten Lankhorst
Op 14-04-16 om 03:58 schreef Matt Roper: > On Tue, Apr 05, 2016 at 11:35:31AM +0200, Maarten Lankhorst wrote: >> Op 01-04-16 om 03:46 schreef Matt Roper: >>> We eventually want to calculate watermark values at atomic 'check' time >>> instead of atomic 'commit' time so that any requested configurati

[Intel-gfx] [PATCHv4 0/3] Add USB typeC based DP support for BXT platform

2016-04-18 Thread Durgadoss R
This patch series adds upfront link training support to enable USB type C based DP on BXT platform. To support USB type C alternate DP mode, the display driver needs to know the number of lanes required by the DP panel as well as number of lanes that can be supported by the type-C cable. Sometimes

[Intel-gfx] [PATCH 2/3] drm/i915: Split bxt_ddi_pll_select()

2016-04-18 Thread Durgadoss R
Split out of bxt_ddi_pll_select() the logic that calculates the pll dividers and dpll_hw_state into a new function that doesn't depend on crtc state. This will be used for enabling the port pll when doing upfront link training. v1: * Rebased on top of intel_dpll_mgr.c (Durga) * Initial version fro

[Intel-gfx] [PATCHv4 3/3] drm/i915/dp: Enable Upfront link training for typeC DP support on BXT

2016-04-18 Thread Durgadoss R
To support USB type C alternate DP mode, the display driver needs to know the number of lanes required by the DP panel as well as number of lanes that can be supported by the type-C cable. Sometimes, the type-C cable may limit the bandwidth even if Panel can support more lanes. To address these sce

[Intel-gfx] [PATCHv4 1/3] drm/i915: Make finding unused crtc as a generic function

2016-04-18 Thread Durgadoss R
Looping over the crtc list and finding an unused crtc has other users like upfront link training. Hence move it to a common function to re-use the logic. v4: * Added ERR_PTR as a return value in kernel Doc comment (Ander) v3: * Added kernel Doc and removed an invalid comment (Ander) * Rebased on t

Re: [Intel-gfx] [PATCH 1/5] drm/i915: use dev_priv directly in gen8_ppgtt_notify_vgt

2016-04-18 Thread Joonas Lahtinen
On ti, 2016-04-12 at 16:57 +0100, Matthew Auld wrote: > Remove dev local and use to_i915() in gen8_ppgtt_notify_vgt. > > v2: use dev_priv directly for QUESTION_MACROS (Joonas Lahtinen) > > Cc: Joonas Lahtinen Reviewed-by: Joonas Lahtinen > Signed-off-by: Matthew Auld > --- >  drivers/gpu/drm

Re: [Intel-gfx] [PATCH] drm: atomic: fix legacy gamma set helper

2016-04-18 Thread Daniel Vetter
On Mon, Apr 18, 2016 at 11:07:43AM +0100, Lionel Landwerlin wrote: > On 12/04/16 17:07, Daniel Vetter wrote: > >On Tue, Apr 12, 2016 at 01:51:02PM +0100, Lionel Landwerlin wrote: > >>On 12/04/16 12:57, Daniel Vetter wrote: > >>>On Mon, Apr 11, 2016 at 02:43:39PM +0100, Lionel Landwerlin wrote: > >>

Re: [Intel-gfx] [PATCH] drm: fix lut value extraction function

2016-04-18 Thread Daniel Vetter
On Mon, Apr 18, 2016 at 12:09:51PM +0100, Lionel Landwerlin wrote: > Ping? > > On 22/03/16 14:10, Lionel Landwerlin wrote: > >When extracting the value at full precision (16 bits), no need to > >round the value. > > > >This was spotted by Jani when running sparse. Unfortunately this fix > >doesn't

Re: [Intel-gfx] [PATCH 2/2] drm/atomic-helper: Print an error if vblank wait times out

2016-04-18 Thread Daniel Vetter
On Mon, Apr 18, 2016 at 02:29:33PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Vblank waits timing out is no a normal thing to happen, so let's inform > people when it happens. > > Signed-off-by: Ville Syrjälä Applied to drm-misc, let's see how much it blows up. We /s

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Remove a couple pointless WARN_ONs (rev2)

2016-04-18 Thread Patchwork
== Series Details == Series: drm/i915: Remove a couple pointless WARN_ONs (rev2) URL : https://patchwork.freedesktop.org/series/5772/ State : failure == Summary == Series 5772v2 drm/i915: Remove a couple pointless WARN_ONs http://patchwork.freedesktop.org/api/1.0/series/5772/revisions/2/mbox/

Re: [Intel-gfx] [i-g-t PATCH v2 1/2] lib: update kmstest_get_pipe_from_crtc_id

2016-04-18 Thread Tomeu Vizoso
On 18 April 2016 at 14:09, Daniel Vetter wrote: > On Wed, Mar 09, 2016 at 04:57:37PM +0100, Tomeu Vizoso wrote: >> From: Micah Fedke >> >> This function uses an intel-specific ioctl to fetch a mapping between pipes >> and >> crtc ids, but this technique is outdated as the crtc id is now always >

Re: [Intel-gfx] Polymorphic to_i915()

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 02:49:26PM +0300, Jani Nikula wrote: > On Mon, 18 Apr 2016, Dave Gordon wrote: > > The GuC changes are OK, and we might as well convert "dev_priv" to > > "i915" at the same time, if that's now the preferred name. > > Hmph, I see that "struct drm_i915_private *i915" is alr

Re: [Intel-gfx] [i-g-t PATCH v2 1/2] lib: update kmstest_get_pipe_from_crtc_id

2016-04-18 Thread Daniel Vetter
On Wed, Mar 09, 2016 at 04:57:37PM +0100, Tomeu Vizoso wrote: > From: Micah Fedke > > This function uses an intel-specific ioctl to fetch a mapping between pipes > and > crtc ids, but this technique is outdated as the crtc id is now always > equivalent to its index in the array of crtcs returned

Re: [Intel-gfx] [PATCH v2 4/4] drm/i915: Move ioremap_wc tracking onto VMA

2016-04-18 Thread Tvrtko Ursulin
On 18/04/16 12:56, Chris Wilson wrote: On Mon, Apr 18, 2016 at 12:14:02PM +0100, Chris Wilson wrote: By tracking the iomapping on the VMA itself, we can share that area between multiple users. Also by only revoking the iomapping upon unbinding from the mappable portion of the GGTT, we can keep

Re: [Intel-gfx] [PATCH v2 4/4] drm/i915/gen9: Fix runtime PM refcounting in case DMC firmware isn't loaded

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 02:48:21PM +0300, Imre Deak wrote: > While we disable runtime PM and with that display power well support if > the DMC firmware isn't loaded, we still want to disable power wells > during system suspend and driver unload. So drop/reacquire the > corresponding power refcount

Re: [Intel-gfx] [PATCH v2 4/4] drm/i915: Move ioremap_wc tracking onto VMA

2016-04-18 Thread Tvrtko Ursulin
On 18/04/16 12:14, Chris Wilson wrote: By tracking the iomapping on the VMA itself, we can share that area between multiple users. Also by only revoking the iomapping upon unbinding from the mappable portion of the GGTT, we can keep that iomap across multiple invocations (e.g. execlists context

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Power domain fixes

2016-04-18 Thread Patchwork
== Series Details == Series: drm/i915: Power domain fixes URL : https://patchwork.freedesktop.org/series/5863/ State : failure == Summary == Series 5863v1 drm/i915: Power domain fixes http://patchwork.freedesktop.org/api/1.0/series/5863/revisions/1/mbox/ Test gem_ringfill: Subgroup ba

Re: [Intel-gfx] [PATCH v2 3/4] drm/i915: Introduce i915_vm_to_ggtt()

2016-04-18 Thread Tvrtko Ursulin
On 18/04/16 12:14, Chris Wilson wrote: In a couple of places, we have an i915_address_space that we know is really an i915_ggtt that we want to use. Create an inline helper to convert from the i915_address_space subclass into its container. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc:

Re: [Intel-gfx] [PATCH v2 4/4] drm/i915: Move ioremap_wc tracking onto VMA

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 12:14:02PM +0100, Chris Wilson wrote: > By tracking the iomapping on the VMA itself, we can share that area > between multiple users. Also by only revoking the iomapping upon > unbinding from the mappable portion of the GGTT, we can keep that iomap > across multiple invocati

Re: [Intel-gfx] Polymorphic to_i915()

2016-04-18 Thread Jani Nikula
On Mon, 18 Apr 2016, Dave Gordon wrote: > The GuC changes are OK, and we might as well convert "dev_priv" to > "i915" at the same time, if that's now the preferred name. Hmph, I see that "struct drm_i915_private *i915" is already being used in a few places. This is more than a little confusing s

[Intel-gfx] [PATCH v2 4/4] drm/i915/gen9: Fix runtime PM refcounting in case DMC firmware isn't loaded

2016-04-18 Thread Imre Deak
While we disable runtime PM and with that display power well support if the DMC firmware isn't loaded, we still want to disable power wells during system suspend and driver unload. So drop/reacquire the corresponding power refcount during suspend/resume and driver unloading. This also means we have

[Intel-gfx] [PATCH v2 2/4] drm/i915: Fix system resume if PCI device remained enabled

2016-04-18 Thread Imre Deak
During system resume we depended on pci_enable_device() also putting the device into PCI D0 state. This won't work if the PCI device was already enabled but still in D3 state. This is because pci_enable_device() is refcounted and will not change the HW state if called with a non-zero refcount. Leav

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/guc: keep GuC objects mapped in kernel

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 12:28:43PM +0100, Dave Gordon wrote: > On 18/04/16 11:25, Chris Wilson wrote: > >On Mon, Apr 18, 2016 at 11:15:07AM +0100, Dave Gordon wrote: > >>With the new i915_gem_obj_pin_map() interface, it makes sense to keep > >>GuC objects (which are always pinned in memory and in t

[Intel-gfx] [i-g-t PATCH v1 4/7] tests/kms_flip: Move bufmgr requirement into subtests

2016-04-18 Thread Tomeu Vizoso
Because bufmgr is currently a i915-only thing and it's only needed in a subset of the subtests, require it only in the subtests that actually need it so that the other subtests aren't skipped without a reason. Signed-off-by: Tomeu Vizoso --- tests/kms_flip.c | 12 ++-- 1 file changed, 1

[Intel-gfx] [i-g-t PATCH v1 6/7] tests/kms_flip_event_leak: Use non-tiled formats

2016-04-18 Thread Tomeu Vizoso
As the test doesn't actually need tiled BOs, drop the tiled formats so the test can run on drivers other than i915. Signed-off-by: Tomeu Vizoso --- tests/kms_flip_event_leak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kms_flip_event_leak.c b/tests/kms_flip_ev

[Intel-gfx] [i-g-t PATCH v1 7/7] tests/kms_flip_event_leak: Open DRM device with DRIVER_ANY

2016-04-18 Thread Tomeu Vizoso
So that this test can be run in drivers other than i915. Signed-off-by: Tomeu Vizoso --- tests/kms_flip_event_leak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/kms_flip_event_leak.c b/tests/kms_flip_event_leak.c index 0a4a755ee954..a1389b4c5e1d 100644 --- a/te

[Intel-gfx] [i-g-t PATCH v1 5/7] tests/kms_flip: Open DRM device with DRIVER_ANY

2016-04-18 Thread Tomeu Vizoso
So that this test can be run in drivers other than i915. Signed-off-by: Tomeu Vizoso --- tests/kms_flip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 58b167d46d90..dc251e902bef 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c

[Intel-gfx] [i-g-t PATCH v1 2/7] tests/kms_render: Move dependency on i915 into subtest

2016-04-18 Thread Tomeu Vizoso
Batchbuffers are only needed in the subtest that does the blit on the GPU, so move that dependency into it so the other subtest can be ran on !i915. Signed-off-by: Tomeu Vizoso --- tests/kms_render.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/test

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Replace nondescript 'WARN_ON(!lret)' with a sensible error message

2016-04-18 Thread Maarten Lankhorst
Op 18-04-16 om 13:29 schreef ville.syrj...@linux.intel.com: > From: Ville Syrjälä > > When a vblank wait times out in intel_atomic_wait_for_vblanks() we just > get a cryptic 'WARN_ON(!ret)' backtrace in dmesg. Repace it with > something that tells you what actually happened. > > Cc: Maarten Lankho

[Intel-gfx] [i-g-t PATCH v1 1/7] tests/drm_read: Drop DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID

2016-04-18 Thread Tomeu Vizoso
So the test runs on other drivers, drop the usage of the i915-specific DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID ioctl. Wait for a vblank event on pipe0 and if we get it, then the test can proceed (code copied from kms_vblank). Signed-off-by: Tomeu Vizoso --- tests/drm_read.c | 44 +

[Intel-gfx] [i-g-t PATCH v1 0/7] Make more tests generic

2016-04-18 Thread Tomeu Vizoso
Hi, these patches allow a few more tests to run on drivers other than i915, mainly by removing the last usage of DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID and removing superfluous dependencies on bufmgr and tiled BOs. Thanks, Tomeu Tomeu Vizoso (7): tests/drm_read: Drop DRM_IOCTL_I915_GET_PIPE_FRO

[Intel-gfx] [i-g-t PATCH v1 3/7] tests/kms_flip: Create tiled BOs only when needed

2016-04-18 Thread Tomeu Vizoso
Because attempts to create a tiled BO will cause a igt_require call to fail on drivers that don't support tiling, do so in the subtest that actually needs it so that other subtests aren't skipped without reason. Signed-off-by: Tomeu Vizoso --- tests/kms_flip.c | 11 +++ 1 file changed,

Re: [Intel-gfx] [PATCH i-g-t] ksm_pipe_color: Set legacy gamma values inside loop.

2016-04-18 Thread Lionel Landwerlin
Hi Bob, Thanks for spotting this. Reviewed-by: Lionel Landwerlin On 11/04/16 18:41, Bob Paauwe wrote: When testing multple outputs, make sure to set the gamma values before testing the output. Otherwise we're testing using the gamma values that were reset after last output was tested. Witho

[Intel-gfx] [PATCH i-g-t] tests: rename kms_pipe_color to get it picked up by the BAT

2016-04-18 Thread Lionel Landwerlin
These tests should skip properly on platforms not supporting color management & pipe CRC. They should also run within 10s. So it makes sense to have run by the BAT as we missed some regressions lately. Signed-off-by: Lionel Landwerlin --- tests/Makefile.sources |2 +- tests/kms_pipe_co

[Intel-gfx] [PATCH 2/2] drm/atomic-helper: Print an error if vblank wait times out

2016-04-18 Thread ville . syrjala
From: Ville Syrjälä Vblank waits timing out is no a normal thing to happen, so let's inform people when it happens. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_atomic_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/

[Intel-gfx] [PATCH 1/2] drm/i915: Replace nondescript 'WARN_ON(!lret)' with a sensible error message

2016-04-18 Thread ville . syrjala
From: Ville Syrjälä When a vblank wait times out in intel_atomic_wait_for_vblanks() we just get a cryptic 'WARN_ON(!ret)' backtrace in dmesg. Repace it with something that tells you what actually happened. Cc: Maarten Lankhorst Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_displ

  1   2   >