Re: [Intel-gfx] [PATCH v3] drm/i915: Move execlists irq handler to a bottom half

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 12:18:49PM +, Tvrtko Ursulin wrote: > /** > * intel_lrc_irq_handler() - handle Context Switch interrupts > - * @ring: Engine Command Streamer to handle. > + * @engine: Engine Command Streamer to handle. > * > * Check the unread Context Status Buffers and manage

Re: [Intel-gfx] [RFC v2] drm/i915: Move execlists irq handler to a bottom half

2016-03-24 Thread Imre Deak
On Thu, 2016-03-24 at 19:56 +, Chris Wilson wrote: > On Thu, Mar 24, 2016 at 06:40:55PM +0200, Imre Deak wrote: > > Hm yea, I missed that it's only an execlist tasklet and so there > > shouldn't be any pending tasklet after mark_idle(). Perhaps it > > would > > still make sense to assert for

Re: [Intel-gfx] [PATCH 3/4] drm/i915: opt-out CPU and WC mmaps from FBC

2016-03-24 Thread ch...@chris-wilson.co.uk
On Thu, Mar 24, 2016 at 09:21:49PM +, Zanoni, Paulo R wrote: > Em Qui, 2016-03-24 às 21:03 +, ch...@chris-wilson.co.uk escreveu: > > On Thu, Mar 24, 2016 at 08:53:21PM +, Zanoni, Paulo R wrote: > > > > > > Em Qui, 2016-03-24 às 19:31 +, Chris Wilson escreveu: > > > > > > > > On

Re: [Intel-gfx] [PATCH 3/4] drm/i915: opt-out CPU and WC mmaps from FBC

2016-03-24 Thread Zanoni, Paulo R
Em Qui, 2016-03-24 às 21:03 +, ch...@chris-wilson.co.uk escreveu: > On Thu, Mar 24, 2016 at 08:53:21PM +, Zanoni, Paulo R wrote: > > > > Em Qui, 2016-03-24 às 19:31 +, Chris Wilson escreveu: > > > > > > On Thu, Mar 24, 2016 at 04:16:11PM -0300, Paulo Zanoni wrote: > > > > > > > > >

Re: [Intel-gfx] [PATCH 3/4] drm/i915: opt-out CPU and WC mmaps from FBC

2016-03-24 Thread ch...@chris-wilson.co.uk
On Thu, Mar 24, 2016 at 09:03:59PM +, ch...@chris-wilson.co.uk wrote: > On Thu, Mar 24, 2016 at 08:53:21PM +, Zanoni, Paulo R wrote: > > Em Qui, 2016-03-24 às 19:31 +, Chris Wilson escreveu: > > > On Thu, Mar 24, 2016 at 04:16:11PM -0300, Paulo Zanoni wrote: > > > > > > > > FBC and

Re: [Intel-gfx] [PATCH 3/4] drm/i915: opt-out CPU and WC mmaps from FBC

2016-03-24 Thread ch...@chris-wilson.co.uk
On Thu, Mar 24, 2016 at 08:53:21PM +, Zanoni, Paulo R wrote: > Em Qui, 2016-03-24 às 19:31 +, Chris Wilson escreveu: > > On Thu, Mar 24, 2016 at 04:16:11PM -0300, Paulo Zanoni wrote: > > > > > > FBC and the frontbuffer tracking infrastructure were designed > > > assuming > > > that user

Re: [Intel-gfx] [PATCH 3/4] drm/i915: opt-out CPU and WC mmaps from FBC

2016-03-24 Thread Zanoni, Paulo R
Em Qui, 2016-03-24 às 19:31 +, Chris Wilson escreveu: > On Thu, Mar 24, 2016 at 04:16:11PM -0300, Paulo Zanoni wrote: > > > > FBC and the frontbuffer tracking infrastructure were designed > > assuming > > that user space applications would follow a specific set of rules > > regarding

Re: [Intel-gfx] [RFC v2] drm/i915: Move execlists irq handler to a bottom half

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 06:40:55PM +0200, Imre Deak wrote: > Hm yea, I missed that it's only an execlist tasklet and so there > shouldn't be any pending tasklet after mark_idle(). Perhaps it would > still make sense to assert for this in gen8_logical_ring_put_irq() or > somewhere? Similarly there

Re: [Intel-gfx] [PATCH 3/4] drm/i915: opt-out CPU and WC mmaps from FBC

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 04:16:11PM -0300, Paulo Zanoni wrote: > FBC and the frontbuffer tracking infrastructure were designed assuming > that user space applications would follow a specific set of rules > regarding frontbuffer management and mmapping. I recently discovered > that current user

[Intel-gfx] [PATCH 4/4] drm/i915/fbc: enable FBC on gen 9+ too

2016-03-24 Thread Paulo Zanoni
Now that we're more protected against user space doing frontbuffer mmap rendering, the last - how many times did I say this before? - SKL problem seems to be solved. So let's give it a try. And since the other newer platforms are still under preliminary support, let's enable FBC on them too to

[Intel-gfx] [PATCH 3/4] drm/i915: opt-out CPU and WC mmaps from FBC

2016-03-24 Thread Paulo Zanoni
FBC and the frontbuffer tracking infrastructure were designed assuming that user space applications would follow a specific set of rules regarding frontbuffer management and mmapping. I recently discovered that current user space is not exactly following these rules: my investigation led me to the

[Intel-gfx] [PATCH 1/4] drm/i915/fbc: update busy_bits even for GTT and flip flushes

2016-03-24 Thread Paulo Zanoni
We ignore ORIGIN_GTT because the hardware tracking can recognize GTT writes and take care of them. We also ignore ORIGIN_FLIP because we deal with flips without relying on the frontbuffer tracking infrastructure. On the other hand, a flush is a flush and means we're good to go, so we need to

[Intel-gfx] [PATCH 0/4] Enable FBC on SKL, v2

2016-03-24 Thread Paulo Zanoni
Hi The Kernel patches are mostly the same, but with the review suggestions implemented. The DDX patch is new and should really help things now. Thanks, Paulo Paulo Zanoni (4): drm/i915/fbc: update busy_bits even for GTT and flip flushes drm/i915/fbc: sanitize i915.enable_fbc during FBC init

[Intel-gfx] [PATCH 2/4] drm/i915/fbc: sanitize i915.enable_fbc during FBC init

2016-03-24 Thread Paulo Zanoni
The DDX driver changes its behavior depending on the value it reads from i915.enable_fbc, so sanitize the value in order to allow it to know what's going on. It uses this in order to choose the defaults for the TearFree option. Before this patch, it will read -1 and always assume that FBC is

[Intel-gfx] [PATCH xf86-video-intel] sna: Opt-out of the Kernel mmap workaround

2016-03-24 Thread Paulo Zanoni
... by issuing dirtyfb calls upon framebuffer creation. Since the non-working SNA versions just never ever issued dirtyfb or sw_finish calls, the Kernel workaround disables itself in case it sees one of those calls. The problem is that we've fixed the bug by forcing TearFree, so we're still not

Re: [Intel-gfx] [PATCH v3 1/2] drm/i915/guc: Reset GuC and retry on firmware load failure

2016-03-24 Thread Dave Gordon
BTW, this two-item patchset was just a repost to get CI to pick it up, without getting confused by it previously being embedded in a longer set .Dave. ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org

[Intel-gfx] [PATCH v3 2/2] drm/i915/guc: always reset GuC before loading firmware

2016-03-24 Thread Dave Gordon
After a suspend-resume cycle, the resumed kernel has no idea what the booted kernel may have done to the GuC before replacing itself with the resumed image. In particular, it may have already loaded the GuC with firmware, which will then cause this kernel's attempt to (re)load the firmware to fail

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: Make pages of GFX allocations movable

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 11:52:59PM +0530, akash.g...@intel.com wrote: > +static int > +unsafe_drop_pages(struct drm_i915_gem_object *obj) > +{ > + struct i915_vma *vma, *next; > + int ret; > + > + drm_gem_object_reference(>base); > + list_for_each_entry_safe(vma, next, >vma_list,

[Intel-gfx] [PATCH v3 1/2] drm/i915/guc: Reset GuC and retry on firmware load failure

2016-03-24 Thread Dave Gordon
From: Arun Siluvery Due to timing issues in the HW some of the status bits required for GuC authentication doesn't get set occassionally, when that happens, GuC cannot be initialized and we will be left with a wedged GPU. The WA suggested is to perform a soft reset

[Intel-gfx] [PATCH v4 4/5] drm/dp_helper: Perform throw-away read before actual read in drm_dp_dpcd_read()

2016-03-24 Thread Lyude
This is part of a patch series to migrate all of the workarounds for commonly seen behavior from bad sinks in intel_dp_dpcd_read_wake() to drm's DP helper. Some sinks will just return garbage for the first aux tranaction they receive when coming out of sleep mode, so we need to perform an

[Intel-gfx] [PATCH v4 5/5] drm/i915: Get rid of intel_dp_dpcd_read_wake()

2016-03-24 Thread Lyude
Since we've fixed up drm_dp_dpcd_read() to allow for retries when things timeout, there's no use for having this function anymore. Good riddens. Signed-off-by: Lyude --- drivers/gpu/drm/i915/intel_dp.c | 79 - 1 file changed, 22

[Intel-gfx] [PATCH v4 3/5] drm/dp_helper: Retry aux transactions on all errors

2016-03-24 Thread Lyude
This is part of a patch series to migrate all of the workarounds for commonly seen behavior from bad sinks in intel_dp_dpcd_read_wake() to drm's DP helper. We cannot rely on sinks NACKing or deferring when they can't receive transactions, nor can we rely on any other sort of consistent error to

[Intel-gfx] [PATCH v4 2/5] drm/dp_helper: Always wait before retrying native aux transactions

2016-03-24 Thread Lyude
This is part of a patch series to migrate all of the workarounds for commonly seen behavior from bad sinks in intel_dp_dpcd_read_wake() to drm's DP helper. Some sinks need some time during the process of resuming the system from sleep before they're ready to handle transactions. While it would be

[Intel-gfx] [PATCH v4 1/5] drm/dp_helper: Increase retry interval to 1000us

2016-03-24 Thread Lyude
This is part of a patch series to migrate all of the workarounds for commonly seen behavior from bad sinks in intel_dp_dpcd_read_wake() to drm's DP helper. Signed-off-by: Lyude --- drivers/gpu/drm/drm_dp_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[Intel-gfx] [PATCH v4 0/5] Move workarounds from intel_dp_dpcd_read_wake() into drm's DP helpers

2016-03-24 Thread Lyude
This series of patches takes all of the workarounds we used in intel_dp_dpcd_read_wake() for working around misbehaving sinks into drm's DP aux transaction helpers, so that they can be applied to all aux transactions across each driver. While this patch series was intended to fix issues with the

[Intel-gfx] [PATCH v2 2/2] drm/i915: Make pages of GFX allocations movable

2016-03-24 Thread akash . goel
From: Chris Wilson On a long run of more than 2-3 days, physical memory tends to get fragmented severely, which considerably slows down the system. In such a scenario, Shrinker is also unable to help as lack of memory is not the actual problem, since it has been

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/4] drm/i915: use a substruct in vbt data for edp

2016-03-24 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915: use a substruct in vbt data for edp URL : https://patchwork.freedesktop.org/series/4868/ State : failure == Summary == Series 4868v1 Series without cover letter

[Intel-gfx] ✗ Fi.CI.BAT: warning for series starting with [v2] drm/i915: Rename GGTT init functions (rev3)

2016-03-24 Thread Patchwork
== Series Details == Series: series starting with [v2] drm/i915: Rename GGTT init functions (rev3) URL : https://patchwork.freedesktop.org/series/4790/ State : warning == Summary == Series 4790v3 Series without cover letter

Re: [Intel-gfx] ✗ Fi.CI.BAT: warning for kernfs: Move faulting copy_user operations outside of the mutex (rev2)

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 04:34:01PM -, Patchwork wrote: > == Series Details == > > Series: kernfs: Move faulting copy_user operations outside of the mutex (rev2) > URL : https://patchwork.freedesktop.org/series/3722/ > State : warning > > == Summary == > > Series 3722v2 kernfs: Move

[Intel-gfx] ✗ Fi.CI.BAT: warning for kernfs: Move faulting copy_user operations outside of the mutex (rev2)

2016-03-24 Thread Patchwork
== Series Details == Series: kernfs: Move faulting copy_user operations outside of the mutex (rev2) URL : https://patchwork.freedesktop.org/series/3722/ State : warning == Summary == Series 3722v2 kernfs: Move faulting copy_user operations outside of the mutex

Re: [Intel-gfx] [RFC v2] drm/i915: Move execlists irq handler to a bottom half

2016-03-24 Thread Imre Deak
On to, 2016-03-24 at 16:05 +, Chris Wilson wrote: > On Thu, Mar 24, 2016 at 05:56:40PM +0200, Imre Deak wrote: > > On ke, 2016-03-23 at 14:57 +, Tvrtko Ursulin wrote: > > > From: Tvrtko Ursulin > > > > > > Doing a lot of work in the interrupt handler introduces

Re: [Intel-gfx] [PATCH v2 1/5] drm: add picture aspect ratio flags

2016-03-24 Thread Vivi, Rodrigo
Thanks Shashank. When they get merged and propagated to nightly I merge the last one in internal. On Thu, 2016-03-24 at 12:57 +, Sharma, Shashank wrote: > Ok, will do it for other patches too. > > Regards > Shashank > -Original Message- > From: Jani Nikula

Re: [Intel-gfx] [PATCH v9] drm/i915: Support to enable TRTT on GEN9

2016-03-24 Thread Goel, Akash
On 3/24/2016 9:59 PM, Gore, Tim wrote: Tim Gore Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ -Original Message- From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of akash.g...@intel.com Sent: Tuesday, March 22, 2016 8:43 AM

Re: [Intel-gfx] [PATCH v9] drm/i915: Support to enable TRTT on GEN9

2016-03-24 Thread Gore, Tim
Tim Gore  Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ > -Original Message- > From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf > Of akash.g...@intel.com > Sent: Tuesday, March 22, 2016 8:43 AM > To:

[Intel-gfx] ✗ Fi.CI.BAT: warning for drm/i915: Rename __force_wake_get to __force_wake_auto

2016-03-24 Thread Patchwork
== Series Details == Series: drm/i915: Rename __force_wake_get to __force_wake_auto URL : https://patchwork.freedesktop.org/series/4864/ State : warning == Summary == Series 4864v1 drm/i915: Rename __force_wake_get to __force_wake_auto

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Rename GGTT init functions

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 04:01:53PM +, Dave Gordon wrote: > On 24/03/16 07:40, Joonas Lahtinen wrote: > >On ke, 2016-03-23 at 18:02 +0200, Ville Syrjälä wrote: > >>On Wed, Mar 23, 2016 at 05:54:09PM +0200, Mika Kuoppala wrote: > >>> > >>>Ville Syrjälä writes: >

Re: [Intel-gfx] [RFC v2] drm/i915: Move execlists irq handler to a bottom half

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 05:56:40PM +0200, Imre Deak wrote: > On ke, 2016-03-23 at 14:57 +, Tvrtko Ursulin wrote: > > From: Tvrtko Ursulin > > > > Doing a lot of work in the interrupt handler introduces huge > > latencies to the system as a whole. > > > > Most

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Rename GGTT init functions

2016-03-24 Thread Dave Gordon
On 24/03/16 07:40, Joonas Lahtinen wrote: On ke, 2016-03-23 at 18:02 +0200, Ville Syrjälä wrote: On Wed, Mar 23, 2016 at 05:54:09PM +0200, Mika Kuoppala wrote: Ville Syrjälä writes: [ text/plain ] On Wed, Mar 23, 2016 at 03:00:22PM +0200, Joonas Lahtinen

Re: [Intel-gfx] [RFC v2] drm/i915: Move execlists irq handler to a bottom half

2016-03-24 Thread Imre Deak
On ke, 2016-03-23 at 14:57 +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Doing a lot of work in the interrupt handler introduces huge > latencies to the system as a whole. > > Most dramatic effect can be seen by running an all engine > stress test like

[Intel-gfx] [PATCH 1/4] drm/i915: use a substruct in vbt data for edp

2016-03-24 Thread Jani Nikula
Housekeeping, similar to psr, backlight, and dsi. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 19 ++- drivers/gpu/drm/i915/intel_bios.c | 38 +++---

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Allow mmio updates on all platforms.

2016-03-24 Thread Ville Syrjälä
On Thu, Mar 24, 2016 at 04:19:13PM +0100, Maarten Lankhorst wrote: > Op 24-03-16 om 15:48 schreef Ville Syrjälä: > > On Thu, Mar 24, 2016 at 03:42:28PM +0100, Maarten Lankhorst wrote: > >> Op 24-03-16 om 15:26 schreef Ville Syrjälä: > >>> On Thu, Mar 24, 2016 at 09:35:04AM +0100, Maarten Lankhorst

[Intel-gfx] [PATCH] drm/i915: BUG_ON when ggtt_view is NULL

2016-03-24 Thread Matthew Auld
Lets BUG_ON and don't bother with a WARN and returning an error, so we can remove the need to pollute the code with error handling, after all it is a programmer error to provide NULL view. Also while we're here remove redundant NULL ggtt_view check. Cc: Joonas Lahtinen

[Intel-gfx] ✗ Fi.CI.BAT: warning for drm/i915: Use atomic state in debugfs.

2016-03-24 Thread Patchwork
== Series Details == Series: drm/i915: Use atomic state in debugfs. URL : https://patchwork.freedesktop.org/series/4862/ State : warning == Summary == Series 4862v1 drm/i915: Use atomic state in debugfs. http://patchwork.freedesktop.org/api/1.0/series/4862/revisions/1/mbox/ Test pm_rpm:

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Only arm the forcewake release timer on the final put (rev2)

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 03:03:24PM -, Patchwork wrote: > == Series Details == > > Series: drm/i915: Only arm the forcewake release timer on the final put (rev2) > URL : https://patchwork.freedesktop.org/series/4859/ > State : failure > > == Summary == > > Series 4859v2 drm/i915: Only arm

[Intel-gfx] [PATCH 3/4] drm/i915: move sdvo mappings to vbt data

2016-03-24 Thread Jani Nikula
Move all data initialized from VBT under dev_priv->vbt. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 3 +-- drivers/gpu/drm/i915/intel_bios.c | 2 +- drivers/gpu/drm/i915/intel_sdvo.c | 16 3 files changed,

[Intel-gfx] [PATCH 2/4] drm/i915: move edp low vswing config to vbt data

2016-03-24 Thread Jani Nikula
Move all data initialized from VBT under dev_priv->vbt. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 3 +-- drivers/gpu/drm/i915/intel_bios.c | 4 ++-- drivers/gpu/drm/i915/intel_ddi.c | 4 ++-- drivers/gpu/drm/i915/intel_dp.c

[Intel-gfx] [PATCH 4/4] drm/i915: remove unused dev_priv->render_reclock_avail

2016-03-24 Thread Jani Nikula
Set from VBT, but never used. Good riddance. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 3 --- drivers/gpu/drm/i915/intel_bios.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] drm/i915: vbt data housecleaning

2016-03-24 Thread Jani Nikula
After this series, afaict, intel_bios.c only updates fields under dev_priv->vbt with the data from VBT. ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915: Rename __force_wake_get to __force_wake_auto

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 03:12:02PM +, Dave Gordon wrote: > On 24/03/16 14:31, Chris Wilson wrote: > >__force_wake_get() only acquire a temporary wakeref on forcewake that is > >automatically releases when a timer expires. When reading the code > >again, I confused __intel_uncore_forcewake_get

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Only arm the forcewake release timer on the final put (rev2)

2016-03-24 Thread Patchwork
== Series Details == Series: drm/i915: Only arm the forcewake release timer on the final put (rev2) URL : https://patchwork.freedesktop.org/series/4859/ State : failure == Summary == Series 4859v2 drm/i915: Only arm the forcewake release timer on the final put

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Allow mmio updates on all platforms.

2016-03-24 Thread Maarten Lankhorst
Op 24-03-16 om 15:48 schreef Ville Syrjälä: > On Thu, Mar 24, 2016 at 03:42:28PM +0100, Maarten Lankhorst wrote: >> Op 24-03-16 om 15:26 schreef Ville Syrjälä: >>> On Thu, Mar 24, 2016 at 09:35:04AM +0100, Maarten Lankhorst wrote: Op 23-03-16 om 16:07 schreef Ville Syrjälä: > On Wed, Mar

Re: [Intel-gfx] [PATCH] drm/i915: Rename __force_wake_get to __force_wake_auto

2016-03-24 Thread Tvrtko Ursulin
On 24/03/16 14:31, Chris Wilson wrote: __force_wake_get() only acquire a temporary wakeref on forcewake that is automatically releases when a timer expires. When reading the code again, I confused __intel_uncore_forcewake_get for __force_wake_get and to my shame thought I found a bug in an

Re: [Intel-gfx] ✗ Fi.CI.BAT: warning for drm/i915: Move execlists irq handler to a bottom half (rev3)

2016-03-24 Thread Tvrtko Ursulin
On 24/03/16 14:03, Patchwork wrote: == Series Details == Series: drm/i915: Move execlists irq handler to a bottom half (rev3) URL : https://patchwork.freedesktop.org/series/4764/ State : warning == Summary == Series 4764v3 drm/i915: Move execlists irq handler to a bottom half

Re: [Intel-gfx] [PATCH i-g-t] scripts/run-test.sh: Piglit overwrite option.

2016-03-24 Thread Dylan Baker
Quoting Vivi, Rodrigo (2016-03-23 18:52:38) > > Thanks Dylan But how will you handle the piglig installed in > /usr/local/bin? Maybe we can have one version in our piglit dir inside > igt but another version in the system what could be different and > misslead this check. > I have this:

Re: [Intel-gfx] [PATCH] drm/i915: Rename __force_wake_get to __force_wake_auto

2016-03-24 Thread Dave Gordon
On 24/03/16 14:31, Chris Wilson wrote: __force_wake_get() only acquire a temporary wakeref on forcewake that is automatically releases when a timer expires. When reading the code again, I confused __intel_uncore_forcewake_get for __force_wake_get and to my shame thought I found a bug in an

Re: [Intel-gfx] [PATCH 3/3] drm/i915: CABC support for backlight control

2016-03-24 Thread Jani Nikula
On Thu, 24 Mar 2016, Deepak M wrote: > In CABC (Content Adaptive Brightness Control) content grey level > scale can be increased while simultaneously decreasing > brightness of the backlight to achieve same perceived brightness. > > The CABC is not standardized and panel

Re: [Intel-gfx] [PATCH] drm/i915: Only arm the forcewake release timer on the final put

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 01:54:36PM +, Tvrtko Ursulin wrote: > > On 24/03/16 13:42, Chris Wilson wrote: > >On Thu, Mar 24, 2016 at 01:32:53PM +, Chris Wilson wrote: > >>If we arm the release timer on acquiring the forcewake, we will release > >>the forcewake on the jiffie afterwards. If we

Re: [Intel-gfx] [PATCH] kernfs: Move faulting copy_user operations outside of the mutex

2016-03-24 Thread Joonas Lahtinen
On to, 2016-03-24 at 14:38 +, Chris Wilson wrote: > A fault in a user provided buffer may lead anywhere, and lockdep warns > that we have a potential deadlock between the mm->mmap_sem and the > kernfs file mutex: > > [   82.811702] == > [   

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Allow mmio updates on all platforms.

2016-03-24 Thread Ville Syrjälä
On Thu, Mar 24, 2016 at 03:42:28PM +0100, Maarten Lankhorst wrote: > Op 24-03-16 om 15:26 schreef Ville Syrjälä: > > On Thu, Mar 24, 2016 at 09:35:04AM +0100, Maarten Lankhorst wrote: > >> Op 23-03-16 om 16:07 schreef Ville Syrjälä: > >>> On Wed, Mar 23, 2016 at 02:24:30PM +0100, Maarten Lankhorst

Re: [Intel-gfx] [PATCH] drm/i915: Only arm the forcewake release timer on the final put

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 02:33:32PM +, Dave Gordon wrote: > On 24/03/16 13:42, Chris Wilson wrote: > >On Thu, Mar 24, 2016 at 01:32:53PM +, Chris Wilson wrote: > >>If we arm the release timer on acquiring the forcewake, we will release > >>the forcewake on the jiffie afterwards. If we only

[Intel-gfx] [PATCH v2] drm/i915: Rename GGTT init functions

2016-03-24 Thread Joonas Lahtinen
Rename and document the GGTT init functions to give a better idea of the context where they are called from. i915_gem_gtt_init => i915_ggtt_init_hw i915_gem_init_global_gtt => i915_gem_init_ggtt i915_global_gtt_cleanup => i915_ggtt_cleanup_hw Cc: Tvrtko Ursulin Cc:

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: fix potential dangling else problems in for_each_ macros (rev4)

2016-03-24 Thread Tvrtko Ursulin
On 24/03/16 12:03, Patchwork wrote: == Series Details == Series: drm/i915: fix potential dangling else problems in for_each_ macros (rev4) URL : https://patchwork.freedesktop.org/series/1142/ State : success == Summary == Series 1142v4 drm/i915: fix potential dangling else problems in

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Parsing the PWM cntrl and CABC ON/OFF fileds in VBT

2016-03-24 Thread Jani Nikula
On Thu, 24 Mar 2016, Deepak M wrote: > For dual link panel scenarios there are new fileds added in the > VBT which indicate on which port the PWM cntrl and CABC ON/OFF > commands needs to be sent. > > v2: Moving the comment to intel_dsi.h(Jani) > > Cc: Jani Nikula

Re: [Intel-gfx] [PATCH] drm/i915: Only arm the forcewake release timer on the final put

2016-03-24 Thread Dave Gordon
On 24/03/16 13:32, Chris Wilson wrote: If we arm the release timer on acquiring the forcewake, we will release the forcewake on the jiffie afterwards. If we only arm the release timer on the final put, we will release the forcewake slightly later instead. Yes, I had wondered why we armed to

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Set invert bit for hpd based on VBT

2016-03-24 Thread Ville Syrjälä
On Thu, Mar 24, 2016 at 05:40:51PM +0530, Shubhangi Shrivastava wrote: > This patch sets the invert bit for hpd detection for each port > based on VBT configuration. Since each AOB can be designed to > depend on invert bit or not, it is expected if an AOB requires > invert bit, the user will set

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Allow mmio updates on all platforms.

2016-03-24 Thread Maarten Lankhorst
Op 24-03-16 om 15:26 schreef Ville Syrjälä: > On Thu, Mar 24, 2016 at 09:35:04AM +0100, Maarten Lankhorst wrote: >> Op 23-03-16 om 16:07 schreef Ville Syrjälä: >>> On Wed, Mar 23, 2016 at 02:24:30PM +0100, Maarten Lankhorst wrote: Rename intel_unpin_work to intel_flip_work and use it for mmio

[Intel-gfx] ✗ Fi.CI.BAT: warning for drm/i915: Move execlists irq handler to a bottom half (rev3)

2016-03-24 Thread Patchwork
== Series Details == Series: drm/i915: Move execlists irq handler to a bottom half (rev3) URL : https://patchwork.freedesktop.org/series/4764/ State : warning == Summary == Series 4764v3 drm/i915: Move execlists irq handler to a bottom half

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Rename GGTT init functions

2016-03-24 Thread Joonas Lahtinen
On ke, 2016-03-23 at 17:54 +0200, Mika Kuoppala wrote: > Ville Syrjälä writes: > > > > > [ text/plain ] > > On Wed, Mar 23, 2016 at 03:00:22PM +0200, Joonas Lahtinen wrote: > > > > > > Rename and document the GGTT init functions to give a better > > > idea of the

[Intel-gfx] [PATCH] kernfs: Move faulting copy_user operations outside of the mutex

2016-03-24 Thread Chris Wilson
A fault in a user provided buffer may lead anywhere, and lockdep warns that we have a potential deadlock between the mm->mmap_sem and the kernfs file mutex: [ 82.811702] == [ 82.811705] [ INFO: possible circular locking dependency detected ]

Re: [Intel-gfx] [PATCH] drm/i915: check vma for error in ggtt_unpin_view

2016-03-24 Thread Joonas Lahtinen
On ke, 2016-03-23 at 15:39 +, Matthew Auld wrote: > When unpinning a ggtt_view check vma for error, otherwise we may end up > accessing an invalid pointer. > > Cc: Joonas Lahtinen > Signed-off-by: Matthew Auld > --- >  

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Refer to GGTT VM consistently

2016-03-24 Thread Joonas Lahtinen
On ke, 2016-03-23 at 13:25 +, Chris Wilson wrote: > On Wed, Mar 23, 2016 at 03:00:23PM +0200, Joonas Lahtinen wrote: > > > > Refer to the GGTT VM consistently as "ggtt_vm" instead of just "ggtt", > > "vm" or indirectly through other variables like "dev_priv->ggtt.base" > > to avoid confusion

[Intel-gfx] [PATCH] drm/i915: Rename __force_wake_get to __force_wake_auto

2016-03-24 Thread Chris Wilson
__force_wake_get() only acquire a temporary wakeref on forcewake that is automatically releases when a timer expires. When reading the code again, I confused __intel_uncore_forcewake_get for __force_wake_get and to my shame thought I found a bug in an unbalanced wake_count handling. I claim that

Re: [Intel-gfx] [PATCH] drm/i915: Only arm the forcewake release timer on the final put

2016-03-24 Thread Dave Gordon
On 24/03/16 13:42, Chris Wilson wrote: On Thu, Mar 24, 2016 at 01:32:53PM +, Chris Wilson wrote: If we arm the release timer on acquiring the forcewake, we will release the forcewake on the jiffie afterwards. If we only arm the release timer on the final put, we will release the forcewake

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Allow mmio updates on all platforms.

2016-03-24 Thread Ville Syrjälä
On Thu, Mar 24, 2016 at 09:35:04AM +0100, Maarten Lankhorst wrote: > Op 23-03-16 om 16:07 schreef Ville Syrjälä: > > On Wed, Mar 23, 2016 at 02:24:30PM +0100, Maarten Lankhorst wrote: > >> Rename intel_unpin_work to intel_flip_work and use it for mmio flips > >> and unpinning. Use flip_queued_req

Re: [Intel-gfx] [PATCH] drm/i915: Only arm the forcewake release timer on the final put

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 02:19:38PM +, Chris Wilson wrote: > On Thu, Mar 24, 2016 at 01:54:36PM +, Tvrtko Ursulin wrote: > > > > On 24/03/16 13:42, Chris Wilson wrote: > > >On Thu, Mar 24, 2016 at 01:32:53PM +, Chris Wilson wrote: > > >>If we arm the release timer on acquiring the

[Intel-gfx] [PATCH] drm/i915: Use atomic state in debugfs.

2016-03-24 Thread Maarten Lankhorst
Use proper locking, connector_state and encoder masks. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_debugfs.c | 72 ++--- 1 file changed, 34 insertions(+), 38 deletions(-) diff --git

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Update VBT fields for child devices

2016-03-24 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Update VBT fields for child devices URL : https://patchwork.freedesktop.org/series/4858/ State : success == Summary == Series 4858v1 Series without cover letter

[Intel-gfx] [PATCH v2] drm/i915: Only arm the forcewake release timer on the final put

2016-03-24 Thread Chris Wilson
If we arm the release timer on acquiring the forcewake, we will release the forcewake on the jiffie afterwards. If we only arm the release timer on the final put, we will release the forcewake slightly later instead. Much, much worse, we did not acquire a refcount for the armed timing during the

Re: [Intel-gfx] [PATCH] drm/i915: Only arm the forcewake release timer on the final put

2016-03-24 Thread Tvrtko Ursulin
On 24/03/16 13:42, Chris Wilson wrote: On Thu, Mar 24, 2016 at 01:32:53PM +, Chris Wilson wrote: If we arm the release timer on acquiring the forcewake, we will release the forcewake on the jiffie afterwards. If we only arm the release timer on the final put, we will release the forcewake

Re: [Intel-gfx] [PATCH] drm/i915: Only arm the forcewake release timer on the final put

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 01:32:53PM +, Chris Wilson wrote: > If we arm the release timer on acquiring the forcewake, we will release > the forcewake on the jiffie afterwards. If we only arm the release timer > on the final put, we will release the forcewake slightly later instead. > > Much,

Re: [Intel-gfx] [PATCH] drm/i915: Replace some more busy waits with normal ones

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 01:16:40PM +, Chris Wilson wrote: > On Thu, Mar 24, 2016 at 01:06:41PM +, Tvrtko Ursulin wrote: > > > > On 24/03/16 12:27, Chris Wilson wrote: > > >On Thu, Mar 24, 2016 at 11:37:07AM +, Tvrtko Ursulin wrote: > > >> > > >>On 23/03/16 16:40, Chris Wilson wrote: >

Re: [Intel-gfx] [PATCH] drm/i915: Replace some more busy waits with normal ones

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 01:06:41PM +, Tvrtko Ursulin wrote: > > On 24/03/16 12:27, Chris Wilson wrote: > >On Thu, Mar 24, 2016 at 11:37:07AM +, Tvrtko Ursulin wrote: > >> > >>On 23/03/16 16:40, Chris Wilson wrote: > >>>On Wed, Mar 23, 2016 at 04:24:48PM +, Tvrtko Ursulin wrote: >

Re: [Intel-gfx] [intelddx][strlcpy | strlcat | clock_gettime] clang-3.8: error: linker command failed with exit code 1

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 12:47:51PM +, Dave Gordon wrote: > On 24/03/16 11:11, Sedat Dilek wrote: > > From b35261adb49107e7dd6e480b1f7c5d4fb7552f9f Mon Sep 17 00:00:00 2001 > >From: Sedat Dilek > >Date: Thu, 24 Mar 2016 12:01:37 +0100 > >Subject: [PATCH 1/3] configure:

Re: [Intel-gfx] [PATCH v2] drm/i915: Tune down init error message due to failure injection

2016-03-24 Thread Joonas Lahtinen
On ma, 2016-03-21 at 17:12 +0200, Imre Deak wrote: > On ma, 2016-03-21 at 10:28 +0100, Daniel Vetter wrote: > > > > On Fri, Mar 18, 2016 at 11:15:35AM +0200, Imre Deak wrote: > > > > > > On Fri, 2016-03-18 at 10:59 +0200, Joonas Lahtinen wrote: > > > > > > > > On pe, 2016-03-18 at 00:18 +0200,

Re: [Intel-gfx] [PATCH] drm/i915: Replace some more busy waits with normal ones

2016-03-24 Thread Tvrtko Ursulin
On 24/03/16 12:27, Chris Wilson wrote: On Thu, Mar 24, 2016 at 11:37:07AM +, Tvrtko Ursulin wrote: On 23/03/16 16:40, Chris Wilson wrote: On Wed, Mar 23, 2016 at 04:24:48PM +, Tvrtko Ursulin wrote: Biggest thing to make sure is that you don't add a lot of cycles to the forcewake

Re: [Intel-gfx] [RFC v2] drm/i915: Move execlists irq handler to a bottom half

2016-03-24 Thread Tvrtko Ursulin
On 24/03/16 11:50, Tvrtko Ursulin wrote: Also, gem_latency -n 100 shows 25% better throughput and CPU usage, and 14% better latencies. Mention the benefits of parallelising dispatch. Hm, actually this should be the same as before I think. Of course not, silly me. Will add this at the next

Re: [Intel-gfx] [PATCH v2 1/5] drm: add picture aspect ratio flags

2016-03-24 Thread Sharma, Shashank
Ok, will do it for other patches too. Regards Shashank -Original Message- From: Jani Nikula [mailto:jani.nik...@linux.intel.com] Sent: Thursday, March 24, 2016 6:26 PM To: Sharma, Shashank; Vivi, Rodrigo Cc: intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH v2 1/5] drm: add

[Intel-gfx] ✗ Fi.CI.BAT: failure for Add aspect ratio parsing (rev2)

2016-03-24 Thread Patchwork
== Series Details == Series: Add aspect ratio parsing (rev2) URL : https://patchwork.freedesktop.org/series/1915/ State : failure == Summary == Series 1915v2 Add aspect ratio parsing http://patchwork.freedesktop.org/api/1.0/series/1915/revisions/2/mbox/ Test gem_exec_suspend:

Re: [Intel-gfx] [PATCH v2 1/5] drm: add picture aspect ratio flags

2016-03-24 Thread Jani Nikula
On Thu, 24 Mar 2016, Shashank Sharma wrote: > This patch adds drm flag bits for aspect ratio information > > Currently drm flag bits don't have field for mode's picture > aspect ratio. This field will help the driver to pick mode with > right aspect ratio, and help in

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/bxt: Fix DSI HW state readout (rev3)

2016-03-24 Thread Imre Deak
On to, 2016-03-24 at 11:32 +, Patchwork wrote: > == Series Details == > > Series: drm/i915/bxt: Fix DSI HW state readout (rev3) > URL   : https://patchwork.freedesktop.org/series/4832/ > State : success > > == Summary == > > Series 4832v3 drm/i915/bxt: Fix DSI HW state readout >

Re: [Intel-gfx] [intelddx][strlcpy | strlcat | clock_gettime] clang-3.8: error: linker command failed with exit code 1

2016-03-24 Thread Dave Gordon
On 24/03/16 11:11, Sedat Dilek wrote: From b35261adb49107e7dd6e480b1f7c5d4fb7552f9f Mon Sep 17 00:00:00 2001 From: Sedat Dilek Date: Thu, 24 Mar 2016 12:01:37 +0100 Subject: [PATCH 1/3] configure: Remove ACLOCAL_FLAGS to fix libtool vs automake problem ---

Re: [Intel-gfx] [intelddx] v2.99.917-580-gf656f6afa288: sh: 1: ACLOCAL_FLAGS: not found

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 12:29:32PM +, Dave Gordon wrote: > On 24/03/16 09:54, Chris Wilson wrote: > >On Thu, Mar 24, 2016 at 10:34:58AM +0100, Sedat Dilek wrote: > >>[ build-script, build and config logs attached ] > >> > >>Hi Chris, > >> > >>I am just seeing this (or noticed for the first

Re: [Intel-gfx] [intelddx] v2.99.917-580-gf656f6afa288: sh: 1: ACLOCAL_FLAGS: not found

2016-03-24 Thread Dave Gordon
On 24/03/16 09:54, Chris Wilson wrote: On Thu, Mar 24, 2016 at 10:34:58AM +0100, Sedat Dilek wrote: [ build-script, build and config logs attached ] Hi Chris, I am just seeing this (or noticed for the first time, here on Ubuntu/precise AMD64)... $ zgrep -A1 -B1 ACLOCAL_FLAGS:

Re: [Intel-gfx] [PATCH] drm/i915: Replace some more busy waits with normal ones

2016-03-24 Thread Chris Wilson
On Thu, Mar 24, 2016 at 11:37:07AM +, Tvrtko Ursulin wrote: > > On 23/03/16 16:40, Chris Wilson wrote: > >On Wed, Mar 23, 2016 at 04:24:48PM +, Tvrtko Ursulin wrote: > >>Biggest thing to make sure is that you don't add a lot of cycles to > >>the forcewake loops since for example

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: fix potential dangling else problems in for_each_ macros (rev4)

2016-03-24 Thread Patchwork
== Series Details == Series: drm/i915: fix potential dangling else problems in for_each_ macros (rev4) URL : https://patchwork.freedesktop.org/series/1142/ State : success == Summary == Series 1142v4 drm/i915: fix potential dangling else problems in for_each_ macros

Re: [Intel-gfx] [PATCH 5/5] drm/i915: force full detect on sink count change

2016-03-24 Thread Shrivastava, Shubhangi
Hi Daniel, Is something else required for this patch series (5 patches) to be merged? Thanks and Regards, Shubhangi Shrivastava. -Original Message- From: Ander Conselvan De Oliveira [mailto:conselv...@gmail.com] Sent: Wednesday, January 20, 2016 8:07 PM To: Shrivastava, Shubhangi

[Intel-gfx] [PATCH v3] drm/i915: Move execlists irq handler to a bottom half

2016-03-24 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Doing a lot of work in the interrupt handler introduces huge latencies to the system as a whole. Most dramatic effect can be seen by running an all engine stress test like igt/gem_exec_nop/all where, when the kernel config is lean enough, the whole

Re: [Intel-gfx] [PATCH 1/2] shmem: Support for registration of Driver/file owner specific ops

2016-03-24 Thread Joonas Lahtinen
On ke, 2016-03-23 at 11:39 +0530, akash.g...@intel.com wrote: > From: Chris Wilson > > This provides support for the Drivers or shmem file owners to register > a set of callbacks, which can be invoked from the address space operations > methods implemented by shmem. >

[Intel-gfx] [PATCH 2/2] drm/i915: Set invert bit for hpd based on VBT

2016-03-24 Thread Shubhangi Shrivastava
This patch sets the invert bit for hpd detection for each port based on VBT configuration. Since each AOB can be designed to depend on invert bit or not, it is expected if an AOB requires invert bit, the user will set respective bit in VBT. v2: Separated VBT parsing from the rest of the logic.

[Intel-gfx] [PATCH 1/2] drm/i915: Update VBT fields for child devices

2016-03-24 Thread Shubhangi Shrivastava
This patch adds new fields that are not yet added in drm code in child devices struct Signed-off-by: Sivakumar Thulasimani Signed-off-by: Durgadoss R Signed-off-by: Shubhangi Shrivastava Reviewed-by: Ville

  1   2   >