Re: [Intel-gfx] [PATCH] drm/i915: Remove i915_execbuffer_params

2017-02-03 Thread Joonas Lahtinen
e/linux-2.6/commit/?h=prescheduler=33dc0f3f6d065cf76abd9ad9778c182519fb49a8 > > is what I've been trying to get in for the year or so. Well, the remaining bits could be moved like that, yep. But I'd do it as a second patch on top of this, for easier review. Re

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Allow large objects to be tiled on gen2/3

2017-02-03 Thread Joonas Lahtinen
Ursulin <tvrtko.ursu...@linux.intel.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Hmm, there really isn't any single commit for Fixes, and it's not a regression, so fine as is. Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas

Re: [Intel-gfx] [PATCH 19/19] drm/i915: Remove unused ppgtt->enable()

2017-02-03 Thread Joonas Lahtinen
On to, 2017-02-02 at 15:02 +, Chris Wilson wrote: > We never assign or use the ppgtt->enable() callback, so remove it. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joo

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Disable -Woverride-init

2017-01-23 Thread Joonas Lahtinen
On ke, 2017-01-18 at 16:27 +, Chris Wilson wrote: > On Wed, Jan 18, 2017 at 05:56:13PM +0200, Joonas Lahtinen wrote: > > > > On ke, 2017-01-18 at 12:18 +, Chris Wilson wrote: > > > > > > -subdir-ccflags-$(CONFIG_DRM_I915_WERROR) := -Werror > > &g

Re: [Intel-gfx] [PATCH] agp/intel: Move intel_fake_agp_sizes into #ifdef block

2017-01-23 Thread Joonas Lahtinen
izes’ > defined but not used [-Wunused-const-variable=] > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation _

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Assert that the kernel_context is hw-id 0

2017-01-23 Thread Joonas Lahtinen
On la, 2017-01-21 at 17:29 +, Chris Wilson wrote: > For easy recognisability, we want the kernel context to have id 0 and > all user contexts to have non-zero ids. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lah

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Assert that the context-switch completion matches our context

2017-01-23 Thread Joonas Lahtinen
_CTX_STATUS_PREEMPTED); This is good for now, Mika has to update it for the SVM code, though. (Counterpart at intel_lr_context_descriptor_update). Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Reset the gpu on takeover

2017-01-23 Thread Joonas Lahtinen
ggest better names for the functions, so; Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Tidy max/display priority macro

2017-01-23 Thread Joonas Lahtinen
On la, 2017-01-21 at 09:25 +, Chris Wilson wrote: > Convert I915_PRIORITY_DISPLAY to an enum for easier ranking with new > priorities in later patches. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Split intel_engine allocation and initialisation

2017-01-23 Thread Joonas Lahtinen
kfree(engine); > + dev_priv->engine[id] = NULL; > + continue; > + } > + > + mask |= ENGINE_MASK(id); > + } As discussed in IRC, this loop is broken after first erroring init. Looking for

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Priority boost for locked waits

2017-01-23 Thread Joonas Lahtinen
mutex clear and prevents boosting priority uselessly > for when we are waiting for idle. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> > Cc: Tvrtko Ursulin <tvrtko.ursu...@intel.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc:

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Priority boost switching to an idle ring

2017-01-23 Thread Joonas Lahtinen
multaneously. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Any specific testcase where this helped? Code itself does what the text says; Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Techn

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Skip the execlists CSB scan and rewrite if the ring is untouched

2017-01-23 Thread Joonas Lahtinen
hould not matter, I wonder if this is covered well enough in CI that we're confident to skip such writes? Code is; Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation __

Re: [Intel-gfx] [CI 2/2] drm/i915: Assert that the context-switch completion matches our context

2017-01-23 Thread Joonas Lahtinen
dword from elsp submission (i.e. includes the group id as well as the > context id). Include this check as well. > v3: Only check against lrc_desc (as this contains the hw_id check) > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> > Cc: Joonas Lahtinen <joonas.lahti..

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Split intel_engine allocation and initialisation

2017-01-23 Thread Joonas Lahtinen
On ma, 2017-01-23 at 09:57 +, Chris Wilson wrote: > On Mon, Jan 23, 2017 at 11:41:12AM +0200, Joonas Lahtinen wrote: > > > > On la, 2017-01-21 at 14:50 +, Chris Wilson wrote: > > > > > > In order to reset the GPU early on in the module load sequence, we

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Remove BXT restore arbitration around ctx switch

2017-01-23 Thread Joonas Lahtinen
Kuoppala <mika.kuopp...@linux.intel.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Tvrtko Ursulin <tvrtko.ursu...@intel.com> Ditto. Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahti

Re: [Intel-gfx] [PATCH 5/6] drm/i915: Remove BXT TDL state w/a

2017-01-23 Thread Joonas Lahtinen
Kuoppala <mika.kuopp...@linux.intel.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Tvrtko Ursulin <tvrtko.ursu...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahti

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Remove BXT disable pixel mask clamping w/a

2017-01-23 Thread Joonas Lahtinen
wilson.co.uk> > Cc: Mika Kuoppala <mika.kuopp...@linux.intel.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Tvrtko Ursulin <tvrtko.ursu...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas La

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Remove BXT incoherent seqno write workaround

2017-01-23 Thread Joonas Lahtinen
.intel.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Tvrtko Ursulin <tvrtko.ursu...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation __

Re: [Intel-gfx] [PATCH 1/6] drm/i915: Remove disable_lite_restore_wa

2017-01-23 Thread Joonas Lahtinen
.intel.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Tvrtko Ursulin <tvrtko.ursu...@intel.com> This is on par with the current trend. Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahti

Re: [Intel-gfx] [PATCH 4/4] drm/i915: Emit dma-fence (and execlists submit) first from signaler

2017-01-23 Thread Joonas Lahtinen
it's well isolated to one patch, so should make bisecting easier during testing; Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx ma

Re: [Intel-gfx] [PATCH] drm/i915: Move atomic state free from out of fence release

2017-01-24 Thread Joonas Lahtinen
helper.free_work); > + WARN_ON(!llist_empty(_priv->atomic_helper.free_list)); Maybe make this while(!llist_empty) flush_work() to begin with? There's exactly no locking in place to prevent that from happening? Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards,

Re: [Intel-gfx] [PATCH] drm/i915: Sanity check the computed size and base of stolen memory

2017-01-30 Thread Joonas Lahtinen
(base == 0 || add_overflows(base, ggtt->stolen_size)) Looks good. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH i-g-t] tests: Clean up shell scripts

2017-01-30 Thread Joonas Lahtinen
Convert all scripts to use /bin/sh shebang and fix all shellcheck reported problems. Signed-off-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Cc: Petri Latvala <petri.latv...@intel.com> Cc: Daniel Vetter <daniel.vet...@ffwll.ch> Cc: Jani Nikula <jani.nik...@

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915: Make intel_detect_preproduction_hw easier to extend

2017-01-30 Thread Joonas Lahtinen
ARLY_SDV(dev_priv) || > - IS_SKL_REVID(dev_priv, 0, SKL_REVID_F0)) > + bool pre = false; > + > + pre |= IS_HSW_EARLY_SDV(dev_priv); > + pre |= IS_SKL_REVID(dev_priv, 0, SKL_REVID_F0); Did you compare the asm with "pre = pre || ..."? Reviewed-by: Joonas

Re: [Intel-gfx] [PATCH v2 2/3] drm/i915: Mark the kernel as tainted if we fail the preproduction check

2017-01-30 Thread Joonas Lahtinen
; Correct use of taint flags. I think CPU_OUT_OF_SPEC could be more correct flag, though? Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ In

Re: [Intel-gfx] [PATCH v2 3/3] drm/i915: Add early BXT sdv to the list of preproduction machines

2017-01-30 Thread Joonas Lahtinen
i <rodrigo.v...@intel.com> > Cc: Jani Nikula <jani.nik...@intel.com> > Cc: Ville Syrjälä <ville.syrj...@linux.intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___

Re: [Intel-gfx] [PATCH] drm/i915: Check fence status after serialising with the spinlock

2017-01-30 Thread Joonas Lahtinen
ient barriers between the execution and the assert in retirement. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Inte

Re: [Intel-gfx] [PATCH] drm/i915: Sanity check the computed size and base of stolen memory

2017-01-30 Thread Joonas Lahtinen
_stolen_to_dma(struct > drm_i915_private *dev_priv) >   base = tom - tseg_size - ggtt->stolen_size; >   } >   > - if (base == 0) > + if (base == 0 || base + ggtt->stolen_size <= base) range_overflows? Regards, Joonas -- Joonas Lahtinen

Re: [Intel-gfx] [PATCH v2 34/38] drm/i915: Live testing for context execution

2017-01-25 Thread Joonas Lahtinen
g count, u32 > value) > +{ It smells like goto err; in this function. > +} Other than that, -EMAGIC, too many numbers and weakly named variables, can't really follow the test. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation

Re: [Intel-gfx] [PATCH v2 02/38] drm/i915: Provide a hook for selftests

2017-01-25 Thread Joonas Lahtinen
> + if (err == -EINTR && !signal_pending(current)) > + err = 0; > + if (err) > + break; > + } > + > + if (WARN(err > 0 || err == -ENOTTY, > +  "%s returned %d, conflic

Re: [Intel-gfx] [PATCH v2 37/38] drm/i915: Add mock exercise for i915_gem_gtt_insert

2017-01-25 Thread Joonas Lahtinen
, > +    0); > + if (err) { > + pr_err("i915_gem_gtt_insert (pass 1) failed at > %llu/%llu with err=%d\n", pass 3? Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen O

Re: [Intel-gfx] [PATCH v2 36/38] drm/i915: Add mock exercise for i915_gem_gtt_reserve

2017-01-25 Thread Joonas Lahtinen
rs, but regardless; Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesk

Re: [Intel-gfx] [PATCH v2 01/38] drm: Provide a driver hook for drm_dev_release()

2017-01-25 Thread Joonas Lahtinen
this once already, but here goes; Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https:/

Re: [Intel-gfx] [PATCH] drm/i915: Remove early pre-production RPS workarounds for BXT

2017-01-25 Thread Joonas Lahtinen
;mika.kuopp...@intel.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation __

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Use common LRU inactive vma bumping for unpin_from_display

2017-01-20 Thread Joonas Lahtinen
Reviewed-by: Jonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Treat an error from i915_vma_instance() as unlikely

2017-01-20 Thread Joonas Lahtinen
gt; - if (IS_ERR(vma)) > + if (unlikely(IS_ERR(vma))) >   return vma; I bet we have many spots similar to this, any ideas how we could get some good code coverage testing data from the selftests? I think we only now optimize when it appears during debugging some specific problem.

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Assert the vma can fit within the address space

2017-01-20 Thread Joonas Lahtinen
son.co.uk> > > + GEM_BUG_ON(vma->size > vm->total); > > Seconds thoughts, it is probably wiser to bail here with > ERR_PTR(-E2BIG); We don't check in execbuf and this stops from having to > write patch 2 as well. I had similar thoughts, so slap my R-b for tha

Re: [Intel-gfx] [PATCH 5/6] drm/i915: Assert the drm_mm_node is allocated when on the VM lists

2017-01-20 Thread Joonas Lahtinen
On to, 2017-01-19 at 19:26 +, Chris Wilson wrote: > Before moving the vma between the VM active/inactive lists, assert that > the node is still allocated. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linu

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Avoid decomposing a signal-on-any fence-array

2017-02-21 Thread Joonas Lahtinen
On ma, 2017-02-20 at 13:12 +0100, Maarten Lankhorst wrote: > Op 20-02-17 om 13:03 schreef Chris Wilson: > > > > On Mon, Feb 20, 2017 at 01:32:42PM +0200, Joonas Lahtinen wrote: > > > > > > Smells like a helper function? While that helper is finding t

Re: [Intel-gfx] [PATCH] dma-buf/reservation: Wrap ww_mutex_trylock

2017-02-21 Thread Joonas Lahtinen
t; > Cc: Sumit Semwal <sumit.sem...@linaro.org> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Daniel Vetter <daniel.vet...@ffwll.ch> > @@ -151,6 +151,26 @@ reservation_object_lock(struct reservation_object *obj, >  } >   >  /** > + * reserva

Re: [Intel-gfx] [PATCH] drm/i915: Use reservation_object_lock()

2017-02-21 Thread Joonas Lahtinen
On ti, 2017-02-21 at 09:17 +, Chris Wilson wrote: > Replace the calls to ww_mutex_lock(>lock) with the helper > reservation_object_lock(resv) and similarly for unlock. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.

Re: [Intel-gfx] [PATCH] drm/fb: Proper support of boundary conditions in bitmasks.

2017-02-21 Thread Joonas Lahtinen
this must add: > > Fixes: 3c779a49bd7c ("drm/i915: Avoid BIT(max) - 1 and use GENMASK(max - 1, > 0)") > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Chris Wilson <ch...@chris-wilson.co.uk> > Cc: Daniel Vetter <daniel.vet...@

Re: [Intel-gfx] [PATCH] drm/i915: Remove temporary allocation of dma addresses when rotating

2017-02-21 Thread Joonas Lahtinen
wilson.co.uk> > Cc: Matthew Auld <matthew.william.a...@gmail.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Tvrtko Ursulin <tvrtko.ursu...@intel.com> > +rotate_pages(struct drm_i915_gem_object *obj, > +  const struct intel_rotation_p

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: Perform object clflushing asynchronously

2017-02-21 Thread Joonas Lahtinen
ash Goel <akash.g...@intel.com> > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Matthew Auld <matthew.a...@intel.com> > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -3389,7 +3389,13 @@ int

Re: [Intel-gfx] [PATCH v3 3/6] drm/i915: Amalgamate flushing of display objects

2017-02-22 Thread Joonas Lahtinen
} > - > + i915_gem_object_flush_to_display(obj); .._flush_if_display() and this is Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel

Re: [Intel-gfx] [PATCH] drm/i915: Remove Braswell GGTT update w/a

2017-02-22 Thread Joonas Lahtinen
original fix has been appropriate, when adding stop_machine for a software bug :P Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing li

Re: [Intel-gfx] [PATCH v3 6/6] drm/i915: Remove 'retire' parameter from intel_fb_obj_flush

2017-02-22 Thread Joonas Lahtinen
n.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v3 1/6] drm/i915: Remove change_domain tracepoint

2017-02-22 Thread Joonas Lahtinen
hris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org ht

Re: [Intel-gfx] [PATCH v3 5/6] drm/i915: Perform object clflushing asynchronously

2017-02-22 Thread Joonas Lahtinen
m_clflush.h and use a new name, split out some > extras into separate patches. > > Suggested-by: Akash Goel <akash.g...@intel.com> > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc:

Re: [Intel-gfx] [PATCH] drm/i915: Add i915_param charp macro magic

2017-02-22 Thread Joonas Lahtinen
er requires us to copy it for > > > the error state, or remember to lock it when reading (in case it used > > > with 0600). > > > > > > v2: Use __always_inline and __builtin_strcmp > > > > > > Signed-off-by: Chris Wilson <ch...@chris-wilson.

Re: [Intel-gfx] [PATCH v3 2/6] drm/i915: Move cpu_cache_is_coherent() to header

2017-02-22 Thread Joonas Lahtinen
On ke, 2017-02-22 at 09:41 +, Chris Wilson wrote: > For use in the next patch, take the current is-coherent helper and add > it to i915_gem_object.h > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.

Re: [Intel-gfx] [PATCH] drm/i915/skl: Do not write the replay bit of the ring mode register for Gen 9

2017-02-22 Thread Joonas Lahtinen
n Gen8 production steppings, so we should be able to drop it entirely. > > Thanks, > Daniele Yeah, should be removed completely. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list I

Re: [Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-22 Thread Joonas Lahtinen
Hi, Seems like there were couple too many steps away from "just reordering code", and indeed it's not working with GuC enabled, so have to spend some time to see why. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel C

Re: [Intel-gfx] [PATCH v2 02/15] drm/i915: Move reeerve_seqno() next to unreserve_seqno()

2017-02-22 Thread Joonas Lahtinen
Patch title s/reeerve/reserve/. On ke, 2017-02-22 at 11:45 +, Chris Wilson wrote: > Move the companion functions next to each other. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joona

Re: [Intel-gfx] [PATCH] drm/i915/selftests: don't leak the gem object

2017-02-22 Thread Joonas Lahtinen
gt; Fixes: 8d28ba4568f4 ("drm/i915: Exercise filling the top/bottom portions of > the ppgtt") > Signed-off-by: Matthew Auld <matthew.a...@intel.com> > Cc: Chris Wilson <ch...@chris-wilson.co.uk> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> &g

Re: [Intel-gfx] [PATCH 4/8] drm/i915/uc: Rename intel_?uc_init() to intel_?uc_fetch_fw()

2017-02-22 Thread Joonas Lahtinen
ng the dev_priv as param) >  * fetch being the verb >  * uc_fw being the subject > > v2: settle on intel_uc_fetch_fw name (M. Wajdeczko) > > Cc: Chris Wilson <ch...@chris-wilson.co.uk> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Michal Wajd

Re: [Intel-gfx] [PATCH] drm/i915/guc: Add onion teardown to the GuC setup

2017-02-20 Thread Joonas Lahtinen
+err_relaychan: > + guc_log_relay_channel_destroy(guc); > +err_vaddr: > > + i915_gem_object_unpin_map(guc->log.vma->obj); > + > > + return ret; >  } > @@ -609,17 +615,24 @@ int i915_guc_log_control(struct drm_i915_private > *dev_priv, u64 control_val) >  

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Avoid decomposing a signal-on-any fence-array

2017-02-20 Thread Joonas Lahtinen
ignal-on-any, we should not decompose as we must not wait on > them all, just the first in *that* set. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> > CC: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Tvrtko Ursulin <tvrtko.u

Re: [Intel-gfx] [PATCH] drm/i915/guc: Add onion teardown to the GuC setup

2017-02-20 Thread Joonas Lahtinen
roy(_priv->guc); > > OCD nitpick: i915_guc_log_unregister is not simmetric with  > i915_guc_log_register after this change, because intel_guc_log_destroy()  > is destroying the vma, which was not created by guc_log_late_setup(). Yeah, destroy should be hoisted to calling function.

Re: [Intel-gfx] [patch] drm/i915: return false on failure in intel_dp_compute_config()

2017-02-23 Thread Joonas Lahtinen
turn false; >   } You can drop the braces, too. Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-21 Thread Joonas Lahtinen
On ke, 2017-02-15 at 18:28 -0800, Daniele Ceraolo Spurio wrote: > > On 14/02/17 05:53, Joonas Lahtinen wrote: > > > > Started adding proper teardown to guc_client_alloc, ended up removing > > quite a few dead ends where errors communicating with the GuC were > >

Re: [Intel-gfx] [PATCH 5/8] drm/i915/uc: Make intel_uc_fw_fetch() static

2017-02-22 Thread Joonas Lahtinen
let's > move it to 'intel_uc.c'. > > We can make a intel_uc_fw callback out of it, to avoid leaking it > outside `intel_uc.c` > > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Michal Winiarski <michal.winiar...@intel.com> > Signed-off-by: Arkadiusz Hiler

Re: [Intel-gfx] [PATCH 4/8] drm/i915/uc: Rename intel_?uc_init() to intel_?uc_fetch_fw()

2017-02-22 Thread Joonas Lahtinen
On ke, 2017-02-22 at 16:29 +0100, Arkadiusz Hiler wrote: > On Wed, Feb 22, 2017 at 03:59:01PM +0200, Joonas Lahtinen wrote: > > > > > + * @huc: intel_huc struct > > >   * > > >   * Called early during driver load, but after GEM is initialised. The > > &

Re: [Intel-gfx] [PATCH 8/8] drm/i915/uc: Simplify firmware path handling

2017-02-22 Thread Joonas Lahtinen
p being named) aware that -1 have special meaning. > > Now the version cross-check looks like that: > > if (uc_fw->major_ver_found != uc_fw->major_ver_wanted || > uc_fw->minor_ver_found < uc_fw->minor_ver_wanted) { What Chris proposed, together with tweaking th

Re: [Intel-gfx] [PATCH 8/8] drm/i915/uc: Simplify firmware path handling

2017-02-23 Thread Joonas Lahtinen
mware pending, path %s\n", fw_path); >   guc->fw.fetch(dev_priv, >fw); This was function pointer was discussed in other thread. With above addressed; Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 7/8] drm/i915/guc: Simplify intel_guc_init_hw()

2017-02-23 Thread Joonas Lahtinen
's so convoluted), but it's in the better direction (and it was previously so). +++ b/drivers/gpu/drm/i915/intel_uc.h > @@ -29,6 +29,8 @@ >  #include "intel_ringbuffer.h" >   >  #include "i915_vma.h" > +/* WaEnableGuCBootHashCheckNotSet:skl,bxt */ > +#defin

Re: [Intel-gfx] [PATCH 6/8] drm/i915/guc: Extract param logic form guc_init

2017-02-23 Thread Joonas Lahtinen
iniar...@intel.com> > Cc: Michal Wajdeczko <michal.wajdec...@intel.com> > Cc: Daniele Ceraolo Spurio <daniele.ceraolospu...@intel.com> > Signed-off-by: Arkadiusz Hiler <arkadiusz.hi...@intel.com> Ah, you already had this patch :) Reviewed-by: Joonas Lahtinen <joo

Re: [Intel-gfx] [PATCH 2/8] drm/i915/uc: Drop superfluous externs in intel_uc.h

2017-02-23 Thread Joonas Lahtinen
quot; there's EXPORT_SYMBOL (which is not needed here). Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.o

Re: [Intel-gfx] [PATCH 04/14] drm/i915: Inline __i915_gem_request_wait_for_execute()

2017-02-14 Thread Joonas Lahtinen
i915_reset(req->i915); I'm no the expert here, but this reads funnily; "if reset in progress, do reset". This was pre-existing code, so; Reviewed-by: Joonas Lahtinen <joonas.laht...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel

Re: [Intel-gfx] [PATCH] drm/i915: Use preferred kernel types in i915_gem_gtt.c

2017-02-14 Thread Joonas Lahtinen
x.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v10] drm/i915: Emit to ringbuffer directly

2017-02-14 Thread Joonas Lahtinen
rt GVT code as well. > > v8: >  * Rename *out++ to *cs++. > > v9: >  * Fix GVT out to cs conversion in GVT. > > v10: >  * Rebase for new intel_ring_begin in selftests. > > Signed-off-by: Tvrtko Ursulin <tvrtko.ursu...@intel.com> > Cc: Chris Wilson <ch...

Re: [Intel-gfx] [PATCH 02/14] drm/i915: Use a local to shorten req->i915->gpu_error.wait_queue

2017-02-14 Thread Joonas Lahtinen
ng->anything->i915... Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.fr

Re: [Intel-gfx] [PATCH] drm/i915: Convert remaining users of 32bit power domain masks

2017-02-14 Thread Joonas Lahtinen
: d8fc70b7367b ("drm/i915: Make power domain masks 64 bit long") > Cc: Jani Nikula <jani.nik...@linux.intel.com> > Cc: Joonas Lahtinen <joonas.lahti...@linux.intel.com> > Cc: Rodrigo Vivi <rodrigo.v...@intel.com> > Cc: Ville Syrjälä <ville.syrj...@linux.in

Re: [Intel-gfx] [PATCH 01/14] drm/i915: Keep a global seqno per-engine

2017-02-14 Thread Joonas Lahtinen
t, request); >   >   list_add_tail(>ring_link, >request_list); >   request->emitted_jiffies = jiffies; >   > - i915_gem_mark_busy(engine); > + if (!request->i915->gt.active_requests++) > + i915_gem_mark_busy(engine); This kinda hides the

Re: [Intel-gfx] [PATCH 03/14] drm/i915: Add ourselves to the gpu error waitqueue for the entire wait

2017-02-14 Thread Joonas Lahtinen
> Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@

Re: [Intel-gfx] [RFC/CI] drm/i915: Sanitize GuC client initialization

2017-02-14 Thread Joonas Lahtinen
deep into the low-level functions it'll be more difficult  > to do any reworks in the future. Indeed, the ctx_index should move. I'd like to keep it __ prefixed function, because the client needs the desc updated for the function to be meaningful. So I'll make it __guc_

[Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-14 Thread Joonas Lahtinen
symmetry/proximity (Michal/Daniele) - Fix __reserve_doorbell accounting for high priority (Daniele) - Call __update_doorbell_desc! (Daniele) - Isolate __guc_{,de}allocate_doorbell (Michal/Daniele) Signed-off-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Cc:

Re: [Intel-gfx] [RFC/CI] drm/i915: Sanitize GuC client initialization

2017-02-14 Thread Joonas Lahtinen
On pe, 2017-02-10 at 14:36 +, Chris Wilson wrote: > On Fri, Feb 10, 2017 at 03:30:10PM +0200, Joonas Lahtinen wrote: > > > > +static unsigned long __reserve_cacheline(struct intel_guc* guc) > >  { > > - const uint32_t cacheline_size = cache_line_size

Re: [Intel-gfx] [RFC/CI] drm/i915: Sanitize GuC client initialization

2017-02-14 Thread Joonas Lahtinen
On pe, 2017-02-10 at 11:55 -0800, Daniele Ceraolo Spurio wrote: > > On 10/02/17 05:30, Joonas Lahtinen wrote: > > +static bool __test_doorbell(struct i915_guc_client *client) > > +{ > > + return test_bit(client->doorbell_id, client->guc->doorbell_bitmap);

Re: [Intel-gfx] [RFC/CI] drm/i915: Sanitize GuC client initialization

2017-02-14 Thread Joonas Lahtinen
On pe, 2017-02-10 at 16:11 +0100, Michal Wajdeczko wrote: > On Fri, Feb 10, 2017 at 03:30:10PM +0200, Joonas Lahtinen wrote: > > > > Started adding proper teardown to guc_client_alloc, ended up removing > > quite a few dead ends where errors communicating with the GuC were

Re: [Intel-gfx] [PATCH] drm/i915/guc: Don't take struct_mutex for object unreference

2017-02-14 Thread Joonas Lahtinen
on <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org ht

Re: [Intel-gfx] [PATCH 2/2] drm/i915/scheduler: emulate a scheduler for guc

2017-02-14 Thread Joonas Lahtinen
vrtko Ursulin <tvrtko.ursu...@linux.intel.com> I already did, but here goes again; Acked-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH i-g-t 3/8] lib: Define a common bit operations library

2017-02-08 Thread Joonas Lahtinen
On ke, 2017-02-08 at 18:18 -0800, Michel Thierry wrote: > Bring the test/set/clear bit functions we have into a single place. > > Signed-off-by: Michel Thierry <michel.thie...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas --

Re: [Intel-gfx] [PATCH i-g-t 1/8] lib/igt: remove duplicate igt_core include

2017-02-08 Thread Joonas Lahtinen
On ke, 2017-02-08 at 18:18 -0800, Michel Thierry wrote: > igt_core must be really important, but no need to do it twice. > > Signed-off-by: Michel Thierry <michel.thie...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas

Re: [Intel-gfx] [PATCH 19/46] drm/i915: Test request ordering between engines

2017-02-09 Thread Joonas Lahtinen
t; + wmb(); > + i915_gem_object_unpin_map(request[id]->batch->obj); recursive_batch_release() With the helper; Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Ce

Re: [Intel-gfx] [PATCH i-g-t 5/8] lib/igt_draw: Use igt_bitops

2017-02-08 Thread Joonas Lahtinen
istency with BIT() Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 20/46] drm/i915: Live testing of empty requests

2017-02-09 Thread Joonas Lahtinen
On to, 2017-02-02 at 09:08 +, Chris Wilson wrote: > Primarily to emphasize the difference between just advancing the > breadcrumb using a bare request and the overhead of dispatching an > execbuffer. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewe

Re: [Intel-gfx] [PATCH 32/46] drm/i915: Exercise filling the top/bottom portions of the ppgtt

2017-02-09 Thread Joonas Lahtinen
small <-> large > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Code is more understandable now; Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation __

Re: [Intel-gfx] [PATCH i-g-t 2/8] lib/igt_draw: rename BIT macro to BIT_GET

2017-02-08 Thread Joonas Lahtinen
On ke, 2017-02-08 at 18:18 -0800, Michel Thierry wrote: > Keeping macros names unique. We'll soon have a bit operations header > file and BIT is already taken. > > Signed-off-by: Michel Thierry <michel.thie...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linu

Re: [Intel-gfx] [PATCH i-g-t 7/8] test/gem_create: import igt_bitops

2017-02-09 Thread Joonas Lahtinen
On ke, 2017-02-08 at 18:18 -0800, Michel Thierry wrote: > It will make sense once we use the BIT macro. > > Signed-off-by: Michel Thierry <michel.thie...@intel.com> Squash this to the later patch that actually uses these. Regards, Joonas -- Joonas Lahtinen Open Source Technolo

Re: [Intel-gfx] [PATCH 44/46] drm/i915: Add mock tests for GTT/VMA handling

2017-02-09 Thread Joonas Lahtinen
On to, 2017-02-02 at 09:09 +, Chris Wilson wrote: > Use the live tests against the mock ppgtt for quick testing on all > platforms of the VMA layer. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.inte

Re: [Intel-gfx] [PATCH 30/46] drm/i915: Add a live dmabuf selftest

2017-02-09 Thread Joonas Lahtinen
Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH i-g-t 4/8] lib/intel_device_info: Use igt_bitops

2017-02-08 Thread Joonas Lahtinen
On ke, 2017-02-08 at 18:18 -0800, Michel Thierry wrote: > BIT macro already defined in the new bitops header. > > Signed-off-by: Michel Thierry <michel.thie...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen O

Re: [Intel-gfx] [PATCH v6] drm/i915: Emit to ringbuffer directly

2017-02-09 Thread Joonas Lahtinen
tel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_DISABLE); > + *out++ = MI_ARB_ON_OFF | MI_ARB_DISABLE; I expressed my concern in the previous iteration of this series months ago, and here goes again; Lets try to keep the writes easily greppable. So intel_ring_emit (or better name)

Re: [Intel-gfx] [PATCH i-g-t] gitignore: Add files starting with .

2017-02-15 Thread Joonas Lahtinen
tel.com> > +++ b/.gitignore > @@ -81,6 +81,7 @@ core >  *.swo >  *.swp >  *.dirstamp > +.* You need to at least have "!.gitignore" to avoid ignoring further changes :) Regards, Joonas >  cscope.* >  TAGS >  build-au

Re: [Intel-gfx] [PATCH] drm/i915/guc: Keep the ctx_pool_vaddr mapped, for easy access

2017-02-15 Thread Joonas Lahtinen
*ctx_pool_vma; s/ctx_pool_vma/ctx_pool/ would bring out the dependency explicitly. > + void *ctx_pool_vaddr; >   struct ida ctx_ids; >   >   struct i915_guc_client *execbuf_client; This needs a rebase on top of my cleanup, but is very welcome improvement. The types of variable

Re: [Intel-gfx] [PATCH 1/5] drm/i915/uc: Rename intel_?uc_{setup, load}() to _init_hw()

2017-02-15 Thread Joonas Lahtinen
; > Signed-off-by: Arkadiusz Hiler <arkadiusz.hi...@intel.com> Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation ___ Intel-gfx mailing list Intel-gf

Re: [Intel-gfx] [PATCH 3/5] drm/i915/guc: Extract param logic form guc_init

2017-02-15 Thread Joonas Lahtinen
functions, which are then be called from central point where more can be added, without changing the existing ones. So this applies to intel_uc_init, too. It'll be easier to add these generic functions iff we start repeating calls to a bunch of functions, and we can then see patterns emerging. Re

Re: [Intel-gfx] [PATCH v2] drm/i915: Drop support for I915_EXEC_CONSTANTS_* execbuf parameters.

2017-02-14 Thread Joonas Lahtinen
i?id=92448 > Signed-off-by: Kenneth Graunke <kenn...@whitecape.org> Explanation makes sense, only Google hits seem to be on Mesa detecting the feature and later, removing the detection when unused. Reviewed-by: Joonas Lahtinen <joonas.lahti...@linux.intel.com> Regards, Joonas -- J

<    4   5   6   7   8   9   10   11   12   13   >