Re: [Intel-gfx] [PATCH v2] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-11 Thread Andi Shyti
Hi Tvrtko, > > +void intel_gt_sysfs_register(struct intel_gt *gt) > > +{ > > + struct kobject *parent = > > kobject_get(>->i915->drm.primary->kdev->kobj); > > Does this needs a kobject_put to balance out somewhere? Yes, I forgot the two kobject_put that are needed. > > + int ret; > > + > >

Re: [Intel-gfx] [PATCH] drm/mm: Break long searches in fragmented address spaces

2020-02-11 Thread Andi Shyti
rward progress.) > > Reported-by: Zbigniew Kempczyński > Signed-off-by: Chris Wilson > Cc: Zbigniew Kempczyński > Cc: Joonas Lahtinen nice! Reviewed-by: Andi Shyti Thanks, Andi > --- > drivers/gpu/drm/drm_mm.c | 8 +++- > 1 file changed, 7 insertions(+), 1 delet

Re: [Intel-gfx] [PATCH v3 02/10] drm/i915/guc: Kill USES_GUC macro

2020-02-11 Thread Andi Shyti
ed-off-by: Daniele Ceraolo Spurio > Cc: Michal Wajdeczko > Cc: John Harrison > Cc: Matthew Brost > Reviewed-by: Michal Wajdeczko Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesk

Re: [Intel-gfx] [PATCH v3 01/10] drm/i915/debugfs: Pass guc_log struct to i915_guc_log_info

2020-02-11 Thread Andi Shyti
Hi Daniele, On Tue, Feb 11, 2020 at 04:31:15PM -0800, Daniele Ceraolo Spurio wrote: > The log struct is the only thing the function needs (apart from > the seq_file), so we can pass just that instead of the whole dev_priv. > > v2: Split this change to its own patch (Michal) > > Signed-off-by: Da

Re: [Intel-gfx] [PATCH v3 08/10] drm/i915/uc: Abort early on uc_init failure

2020-02-11 Thread Andi Shyti
Not a big deal though: Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v3 05/10] drm/i915/uc: autogenerate uC checker functions

2020-02-11 Thread Andi Shyti
ow. I haven't spotted anything wrong (also in the patches that follow), and I hope you tested it properly :) Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v3 03/10] drm/i915/guc: Kill USES_GUC_SUBMISSION macro

2020-02-12 Thread Andi Shyti
ad > > Signed-off-by: Daniele Ceraolo Spurio > Cc: Michal Wajdeczko > Cc: John Harrison > Cc: Matthew Brost > Reviewed-by: Michal Wajdeczko #v1 Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.or

[Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Andi Shyti
The GT has its own properties and in sysfs they should be grouped in the 'gt/' directory. Create the 'gt/' directory in sysfs and move the power management related files. Signed-off-by: Andi Shyti --- Hi, this version has some more substantial differences, nothing tha

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Andi Shyti
Hi Tvrtko, > > The GT has its own properties and in sysfs they should be grouped > > in the 'gt/' directory. > > > > Create the 'gt/' directory in sysfs and move the power management > > related files. > > Can you paste the new and legacy paths in the commit message? sure! > > diff --git a/dri

Re: [Intel-gfx] [PATCH] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-14 Thread Andi Shyti
Hi Tvrtko, > > > > + } > > > > + > > > > + intel_gt_sysfs_pm_remove(gt, root); > > > > + kobject_put(root); > > > > > > Maybe stick to the same terminology regarding root and parent. > > > > yes. > > > > > Get/put on the parent looks unbalanced. Both register and unregister ta

Re: [Intel-gfx] [PATCH 02/10] drm/i915: Drop i915_request.lock serialisation around await_start

2021-01-13 Thread Andi Shyti
t; very careful probes that anticipate the links being deleted and the > fences recycled before we are able to acquire a strong reference to it. > We do not need the signal->lock crutch anymore, nor want the contention. > > Signed-off-by: Chris Wilson > Cc: Tvrtko Ursulin Revie

Re: [Intel-gfx] [PATCH 04/10] drm/i915/gem: Reduce ctx->engines_mutex for get_engines()

2021-01-13 Thread Andi Shyti
Hi Chris, On Wed, Jan 13, 2021 at 12:45:54PM +, Chris Wilson wrote: > Take a snapshot of the ctx->engines, so we can avoid taking the > ctx->engines_mutex for a mere read in get_engines(). > > Signed-off-by: Chris Wilson Reviewed-by: Andi Sh

Re: [Intel-gfx] [PATCH 03/10] drm/i915/gem: Reduce ctx->engine_mutex for reading the clone source

2021-01-13 Thread Andi Shyti
this > we need only take a reference to the src->engines, rather than hold the > src->engine_mutex, so long as we verify that nothing changed under the > read. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti Thanks, Andi > + if (user_engines) >

Re: [Intel-gfx] [PATCH 09/10] drm/i915/gt: Reduce engine runtime stats from seqlock to a latch

2021-01-13 Thread Andi Shyti
arrange by a pair of memory bariiers and carefully sequencing of the > writes and reads. > > Signed-off-by: Chris Wilson overall looks like a nice simplification... Reviewed-by: Andi Shyti Thanks, Andi ___ Intel-gfx mailing list Intel-gfx@

Re: [Intel-gfx] [PATCH 05/10] drm/i915: Reduce test_and_set_bit to set_bit in i915_request_submit()

2021-01-13 Thread Andi Shyti
Hi Chris, On Wed, Jan 13, 2021 at 12:45:55PM +, Chris Wilson wrote: > Avoid the full blown memory barrier of test_and_set_bit() by noting the > completed request and removing it from the lists. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti

Re: [Intel-gfx] [PATCH 07/10] drm/i915/gt: Extract busy-stats for ring-scheduler

2021-01-13 Thread Andi Shyti
tel_engine_stats.h | 49 +++ > .../drm/i915/gt/intel_execlists_submission.c | 34 + > 2 files changed, 50 insertions(+), 33 deletions(-) > create mode 100644 drivers/gpu/drm/i915/gt/intel_engine_stats.h this looks like just a copy paste... Reviewed-by

Re: [Intel-gfx] [PATCH 10/10] drm/i915/gt: Reduce GT runtime stats from seqlock to a latch

2021-01-13 Thread Andi Shyti
at can be > arrange by a pair of memory bariiers and carefully sequencing of the > writes and reads. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti Thanks, Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.fr

Re: [Intel-gfx] [PATCH 06/10] drm/i915/gt: Drop atomic for engine->fw_active tracking

2021-01-13 Thread Andi Shyti
d-off-by: Chris Wilson Reviewed-by: Andi Shyti Thanks, Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 01/10] drm/i915: Mark up protected uses of 'i915_request_completed'

2021-01-13 Thread Andi Shyti
Hi Chris, > diff --git a/drivers/gpu/drm/i915/i915_request.c > b/drivers/gpu/drm/i915/i915_request.c > index 0b1a46a0d866..784c05ac5cca 100644 > --- a/drivers/gpu/drm/i915/i915_request.c > +++ b/drivers/gpu/drm/i915/i915_request.c > @@ -276,7 +276,7 @@ static void remove_from_engine(struct i915_r

Re: [Intel-gfx] [PATCH 08/10] drm/i915/gt: Convert stats.active to plain unsigned int

2021-01-14 Thread Andi Shyti
seqcount. > > Signed-off-by: Chris Wilson looks correct... Reviewed-by: Andi Shyti Thanks, Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 01/10] drm/i915: Mark up protected uses of 'i915_request_completed'

2021-01-14 Thread Andi Shyti
gt; > This holds the request->context->timeline->mutex. > > The locking is basically split between frontend/backend: > > construction/destruction - under the timeline->mutex > > execution - under the engine->active.lock (coordinates with > timeline->mutex)

Re: [Intel-gfx] [PATCH 04/10] drm/i915: Remove I915_USER_PRIORITY_SHIFT

2021-01-21 Thread Andi Shyti
Hi Chris, On Wed, Jan 20, 2021 at 12:21:59PM +, Chris Wilson wrote: > As we do not have any internal priority levels, the priority can be set > directed from the user values. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti

Re: [Intel-gfx] [PATCH 03/10] drm/i915: Strip out internal priorities

2021-01-21 Thread Andi Shyti
t; - return; > - > - spin_lock_irqsave(&schedule_lock, flags); > - __bump_priority(&rq->sched, bump); > - spin_unlock_irqrestore(&schedule_lock, flags); > -} was, indeed, this function used anywhere else? Reviewed-by: Andi Shyti Andi __

Re: [Intel-gfx] [PATCH 02/10] drm/i915/gt: Skip over completed active execlists, again

2021-01-21 Thread Andi Shyti
handle this as it will ultimately > - * find itself trying to jump back into a context it has just > - * completed and barf. >*/ > + active = execlists->active; > + while ((last = *active) && completed(last)) > + active++; looks reasonable to me... Reviewed-by: Andi Shyti Thanks, Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 01/10] drm/i915/gt: Do not suspend bonded requests if one hangs

2021-01-21 Thread Andi Shyti
Hi Chris, On Wed, Jan 20, 2021 at 12:21:56PM +, Chris Wilson wrote: > Treat the dependency between bonded requests as weak and leave the > remainder of the pair on the GPU if one hangs. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti

Re: [Intel-gfx] [PATCH 05/10] drm/i915: Replace engine->schedule() with a known request operation

2021-01-21 Thread Andi Shyti
Hi Chris, On Wed, Jan 20, 2021 at 12:22:00PM +, Chris Wilson wrote: > Looking to the future, we want to set the scheduling attributes > explicitly and so replace the generic engine->schedule() with the more > direct i915_request_set_priority() > > What it loses in removing the 'schedule' name

Re: [Intel-gfx] [PATCH 07/10] drm/i915: Restructure priority inheritance

2021-01-26 Thread Andi Shyti
Hi Chris, > + local_bh_disable(); > + i915_request_set_priority(rq, prio); > + local_bh_enable(); > + > + i915_request_put(rq); > + rq = ptr_mask_bits(rn, 1); why are you using ptr_mask_bits here? > + } while (rq); > +} > + > +void

Re: [Intel-gfx] [PATCH 08/10] drm/i915/selftests: Measure set-priority duration

2021-01-26 Thread Andi Shyti
On Wed, Jan 20, 2021 at 12:22:03PM +, Chris Wilson wrote: > As a topological sort, we expect it to run in linear graph time, > O(V+E). In removing the recursion, it is no longer a DFS but rather a > BFS, and performs as O(VE). Let's demonstrate how bad this is with a few > examples, and build a

Re: [Intel-gfx] [PATCH 10/10] drm/i915: Improve DFS for priority inheritance

2021-01-26 Thread Andi Shyti
run for a few hundred > milliseconds given a wide enough graph, not the microseconds as required. > > Signed-off-by: Chris Wilson I have seen this patch long time ago... I'm r-b'eing starting from the last patch :) Reviewed-by: Andi Shyti Andi

Re: [Intel-gfx] [PATCH] drm/i915/gt: Retire unexpected starting state error dumping

2021-02-02 Thread Andi Shyti
stead, we > inspect the context state before submission which will alert us to any > issues prior to execution. > > Signed-off-by: Chris Wilson > Cc: Mika Kuoppala > Cc: Tvrtko Ursulin > Cc: Andi Shyti Reviewed-by: Andi Shyti Thanks, Andi

Re: [Intel-gfx] [PATCH] drm/i915/gt: Limit frequency drop to RPe on parking

2020-11-24 Thread Andi Shyti
wn > beforehand, but measurements with 30fps media playback indicate that RPe > is a better choice. > > Reported-by: Edward Baker > Fixes: 043cd2d14ede ("drm/i915/gt: Leave rps->cur_freq on unpark") > Signed-off-by: Chris Wilson > Cc: Edward Baker > Cc: Andi Sh

Re: [Intel-gfx] [PATCH] drm/i915/gem: Spring clean debugfs

2020-12-02 Thread Andi Shyti
i915_ring_freq_table > i915_context_status > i915_llc > i915_shrinker_info > > Signed-off-by: Chris Wilson > Cc: Andi Shyti > Cc: Tvrtko Ursulin > Cc: Joonas Lahtinen And that's the statement :) Reviewed-by: Andi Shyti Andi ___

Re: [Intel-gfx] [PATCH] drm/i915: Check the correct variable

2020-12-03 Thread Andi Shyti
ERR(obj)) { > - err = PTR_ERR(obj); > + if (IS_ERR(obj2)) { > + err = PTR_ERR(obj2); Reviewed-by: Andi Shyti Thanks, Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH i-g-t 1/2] i915/query: Cross-check engine list against execbuf interface

2020-12-08 Thread Andi Shyti
gine = > + (struct drm_i915_engine_info *)&engines->engines[i]; I would have liked it with one single for loop, perhaps resetting engines individually. But this works, as well and I'm not strong with this: Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 07/22] drm/i915/gt: Stop holding onto the pinned_default_state

2020-05-05 Thread Andi Shyti
is Wilson > Cc: Tvrtko Ursulin > Cc: Mika Kuoppala > Cc: Andi Shyti I don't see any issue, looks correct to me: Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 05/28] drm/i915/selftests: Trim execlists runtime

2020-06-12 Thread Andi Shyti
e context > switches. A thousand context switches may be 50-100ms, causing us to > timeout as the HW is not fast enough to complete the deep smoketests. > > Signed-off-by: Chris Wilson looks all right to me: Reviewed-by: Andi Shyti Andi ___ I

Re: [Intel-gfx] [PATCH 01/23] drm/i915: Drop vm.ref for duplicate vma on construction

2020-07-02 Thread Andi Shyti
Hi Chris, > diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c > index 1f63c4a1f055..7fe1f317cd2b 100644 > --- a/drivers/gpu/drm/i915/i915_vma.c > +++ b/drivers/gpu/drm/i915/i915_vma.c > @@ -198,6 +198,7 @@ vma_create(struct drm_i915_gem_object *obj, > cmp

Re: [Intel-gfx] [PATCH 01/23] drm/i915: Drop vm.ref for duplicate vma on construction

2020-07-02 Thread Andi Shyti
Hi Chris, > Ta, going to send that as a patch? mine was a suggestion, it was easier to build the diff than explain myself :) If you want I can send it, though. Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.o

Re: [Intel-gfx] [PATCH 02/23] drm/i915/gem: Split the context's obj:vma lut into its own mutex

2020-07-02 Thread Andi Shyti
IST_HEAD(&ctx->stale.engines); > > @@ -35,7 +37,7 @@ mock_context(struct drm_i915_private *i915, > RCU_INIT_POINTER(ctx->engines, e); > > INIT_RADIX_TREE(&ctx->handles_vma, GFP_KERNEL); > - mutex_init(&ctx-

Re: [Intel-gfx] [PATCH 03/23] drm/i915/gem: Drop forced struct_mutex from shrinker_taints_mutex

2020-07-02 Thread Andi Shyti
Since we > don't use generally use struct_mutex, we can relax the tainting. > > Signed-off-by: Chris Wilson Looks good! Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org

Re: [Intel-gfx] [PATCH] drm/i915: Also drop vm.ref along error paths for vma construction

2020-07-02 Thread Andi Shyti
Hi Chris, On Thu, Jul 02, 2020 at 10:10:15PM +0100, Chris Wilson wrote: > Not only do we need to release the vm.ref we acquired for the vma on the > duplicate insert branch, but also for the normal error paths, so roll > them all into one. > > Reported-by: Andi Shyti > Sugges

Re: [Intel-gfx] [PATCH 05/23] drm/i915: Export ppgtt_bind_vma

2020-07-03 Thread Andi Shyti
gt; differ with the aliasing-ppgtt. > > Signed-off-by: Chris Wilson very nice! Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 17/23] drm/i915/gem: Asynchronous GTT unbinding

2020-07-05 Thread Andi Shyti
Hi Chris, > +static int gen6_fixup_ggtt(struct i915_vma *vma) you create this function here and remove it in patch 21. This series is a bit confusing, can we have a final version of it? Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org ht

Re: [Intel-gfx] [PATCH] drm/i915: Fix wrong return value

2020-08-02 Thread Andi Shyti
Hi Tianjia, > diff --git a/drivers/gpu/drm/i915/i915_active.c > b/drivers/gpu/drm/i915/i915_active.c > index d960d0be5bd2..cc017e3cc9c5 100644 > --- a/drivers/gpu/drm/i915/i915_active.c > +++ b/drivers/gpu/drm/i915/i915_active.c > @@ -758,7 +758,7 @@ int i915_active_acquire_preallocate_barrier(st

Re: [Intel-gfx] [PATCH] drm/i915: Fix wrong return value

2020-08-02 Thread Andi Shyti
t; > > > - int err; > > > + int err = 0; > > > > you don't need the initialization here. > > But it's close enough that I can munge the patch inline. > Reviewed-by: Chris Wilson sure... you can also remove it before merging it and it migh

Re: [Intel-gfx] [PATCH] drm/i915/selftests: test the correct variable in igt_gem_ww_ctx()

2020-09-11 Thread Andi Shyti
; - err = PTR_ERR(obj); > + if (IS_ERR(obj2)) { > + err = PTR_ERR(obj2); > goto put1; > } ops... Reviewed-by: Andi Shyti Thanks, Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH] drm/i915/gt: Do not attempt to reprogram IA/ring frequencies for dgfx

2020-02-19 Thread Andi Shyti
Hi Chris, On Wed, Feb 19, 2020 at 01:01:19PM +, Chris Wilson wrote: > For dgfx, we do not need to reconfigure the IA/ring frequencies of the > main processors as they are distinct devices. > > Signed-off-by: Chris Wilson > Cc: Andi Shyti > Cc: Tvrtko Ursulin looks

[Intel-gfx] [PATCH v4] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-19 Thread Andi Shyti
t/gt_max_freq_mhz gt/gt_min_freq_mhz gt/gt_RP0_freq_mhz gt/gt_RP1_freq_mhz gt/gt_RPn_freq_mhz gt/rc6_enable gt/rc6_residency_ms The once in the root directory will be marked as deprecated, if accessed a warning message is printed. Signed-off-by: Andi Shyti --- v3 -> v4: - fixed Tvrtko's comme

Re: [Intel-gfx] [PATCH v4] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-19 Thread Andi Shyti
> drivers/gpu/drm/i915/Makefile|4 +- > drivers/gpu/drm/i915/gt/intel_gt.c |3 + > drivers/gpu/drm/i915/gt/intel_gt_types.h |1 + > drivers/gpu/drm/i915/gt/sysfs_gt.c | 79 ++ > drivers/gpu/drm/i915/gt/sysfs_gt.h | 22 + > drivers/gpu/drm/i915/gt/sysfs

[Intel-gfx] [PATCH v5] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-19 Thread Andi Shyti
t/gt_max_freq_mhz gt/gt_min_freq_mhz gt/gt_RP0_freq_mhz gt/gt_RP1_freq_mhz gt/gt_RPn_freq_mhz gt/rc6_enable gt/rc6_residency_ms The once in the root directory will be marked as deprecated, if accessed a warning message is printed. Signed-off-by: Andi Shyti --- v4 -> v5: - removed spurious ghost &#

Re: [Intel-gfx] [PATCH] drm/i915/gt: Push the GPU cancellation to the backend

2020-02-21 Thread Andi Shyti
y: Chris Wilson > Cc: Andi Shyti Reviewed-by: Andi Shyti Thanks, Chris, Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH v5] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-24 Thread Andi Shyti
> > +void intel_gt_sysfs_register(struct intel_gt *gt) > > +{ > > + struct kobject *parent = kobject_get(gt_get_parent_obj(gt)); > > + int ret; > > + > > + ret = kobject_init_and_add(>->sysfs_root, > > + &sysfs_gt_ktype, > > + parent,

Re: [Intel-gfx] [PATCH v5] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-24 Thread Andi Shyti
> > > > +void intel_gt_sysfs_unregister(struct intel_gt *gt) > > > > +{ > > > > + struct kobject *parent = gt_get_parent_obj(gt); > > > > + > > > > + /* > > > > +* the name gt tells us wether sysfs_root > > > > +* object was initialized properly > > > > +*/ > > >

Re: [Intel-gfx] [PATCH v5] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-25 Thread Andi Shyti
> > > > > > +void intel_gt_sysfs_register(struct intel_gt *gt) > > > > > > +{ > > > > > > + struct kobject *parent = kobject_get(gt_get_parent_obj(gt)); > > > > > > + int ret; > > > > > > + > > > > and if I need to call kobject_put at the end. If for some reason > > the files have failed to be

Re: [Intel-gfx] [PATCH] drm/i915/gt: Check engine-is-awake on reset later

2020-02-27 Thread Andi Shyti
till > in flight. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 01/20] drm/i915: Skip barriers inside waits

2020-02-27 Thread Andi Shyti
signaling on the > fence we need to double check it is a fence! > > Fixes: d13a31770077 ("drm/i915: Flush idle barriers when waiting") > Signed-off-by: Chris Wilson > Cc: Tvrtko Ursulin Reviewed-by: Andi Shyti Andi ___

Re: [Intel-gfx] [PATCH 08/20] drm/i915/selftests: Disable heartbeat around manual pulse tests

2020-02-27 Thread Andi Shyti
gt; + spin_unlock_wait(&ref->tree_lock); maybe one day I will stop complaining about out of context changes... maybe one day. Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH i-g-t 1/5] i915: Start putting the mmio_base to wider use

2020-02-28 Thread Andi Shyti
gned-off-by: Chris Wilson Looks good! Reviewed-by: Andi Shyti Andi ___ 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/5] i915: Exercise preemption timeout controls in sysfs

2020-02-28 Thread Andi Shyti
Hi Chris, > +static int create_ext_ioctl(int i915, > + struct drm_i915_gem_context_create_ext *arg) > +{ > + int err; > + > + err = 0; > + if (igt_ioctl(i915, DRM_IOCTL_I915_GEM_CONTEXT_CREATE_EXT, arg)) { > + err = -errno; > + igt_assume

Re: [Intel-gfx] [PATCH i-g-t 3/5] i915: Exercise preemption timeout controls in sysfs

2020-02-28 Thread Andi Shyti
> > > +void dyn_sysfs_engines(int i915, int engines, const char *file, > > > +void (*test)(int, int)) > > > +{ > > > + char buf[512]; > > > + int len; > > > + > > > + lseek(engines, 0, SEEK_SET); > > > + while ((len = syscall(SYS_getdents64, engines, buf, sizeof(

Re: [Intel-gfx] [PATCH i-g-t 4/5] i915: Exercise sysfs heartbeat controls

2020-02-28 Thread Andi Shyti
On Fri, Feb 28, 2020 at 10:43:39AM +, Chris Wilson wrote: > We [will] expose various per-engine scheduling controls. One of which, > 'heartbeat_duration_ms', defines how often we send a heartbeat down the > engine to check upon the health of the engine. If a heartbeat does not > complete within

Re: [Intel-gfx] [PATCH i-g-t 3/5] i915: Exercise preemption timeout controls in sysfs

2020-02-29 Thread Andi Shyti
> > > > > + char buf[512]; > > > > > + int len; > > > > > + > > > > > + lseek(engines, 0, SEEK_SET); > > > > > + while ((len = syscall(SYS_getdents64, engines, buf, > > > > > sizeof(buf))) > 0) { > > > > > + void *ptr = buf; > > > > > + > > > > > + while (le

Re: [Intel-gfx] [PATCH 5/6] drm/i915/uc: Move uC debugfs to its own folder under GT

2020-03-02 Thread Andi Shyti
Hi Daniele, I'm sorry I missed this patch, On Thu, Feb 27, 2020 at 06:28:42PM -0800, Daniele Ceraolo Spurio wrote: > uC is a component of the GT, so it makes sense for the uC debugfs files > to be in the GT folder. A subfolder has been used to keep the same > structure we have for the code. Can

Re: [Intel-gfx] [PATCH 5/6] drm/i915/uc: Move uC debugfs to its own folder under GT

2020-03-05 Thread Andi Shyti
Hi Daniele, > > On Thu, Feb 27, 2020 at 06:28:42PM -0800, Daniele Ceraolo Spurio wrote: > > > uC is a component of the GT, so it makes sense for the uC debugfs files > > > to be in the GT folder. A subfolder has been used to keep the same > > > structure we have for the code. > > > > Can we pleas

[Intel-gfx] [PATCH] drm/i915/gt: allow setting generic data pointer

2020-03-05 Thread Andi Shyti
ate data as argument. Still keep it simple by defining a wrapper where struct *gt is the chosen private data to be stored. I take the chance to rename the functions by using "intel_gt_" as prefix instead of "debugfs_". Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/debugfs

Re: [Intel-gfx] [PATCH] drm/i915/gt: allow setting generic data pointer

2020-03-05 Thread Andi Shyti
Hi Daniele, > > diff --git a/drivers/gpu/drm/i915/gt/debugfs_gt.c > > b/drivers/gpu/drm/i915/gt/debugfs_gt.c > > index 75255aaacaed..9112a8585caf 100644 > > --- a/drivers/gpu/drm/i915/gt/debugfs_gt.c > > +++ b/drivers/gpu/drm/i915/gt/debugfs_gt.c > > @@ -26,15 +26,14 @@ void debugfs_gt_register(s

Re: [Intel-gfx] [PATCH] drm/i915/gt: allow setting generic data pointer

2020-03-06 Thread Andi Shyti
Hi Daniele, > > > > diff --git a/drivers/gpu/drm/i915/gt/debugfs_gt.c > > > > b/drivers/gpu/drm/i915/gt/debugfs_gt.c > > > > index 75255aaacaed..9112a8585caf 100644 > > > > --- a/drivers/gpu/drm/i915/gt/debugfs_gt.c > > > > +++ b/drivers/gpu/drm/i915/gt/debugfs_gt.c > > > > @@ -26,15 +26,14 @@ vo

[Intel-gfx] [PATCH v2] drm/i915/gt: allow setting generic data pointer

2020-03-06 Thread Andi Shyti
From: Andi Shyti When registering debugfs files the intel gt debugfs library forces a 'struct *gt' private data on the caller. There might be different needs, therefore make it generic by adding one more argument to the "debugfs_register_files()" function which gets the

Re: [Intel-gfx] [PATCH v2] drm/i915/gt: allow setting generic data pointer

2020-03-06 Thread Andi Shyti
Hi Daniele, > > diff --git a/drivers/gpu/drm/i915/gt/debugfs_gt.c > > b/drivers/gpu/drm/i915/gt/debugfs_gt.c > > index 75255aaacaed..24099fb157be 100644 > > --- a/drivers/gpu/drm/i915/gt/debugfs_gt.c > > +++ b/drivers/gpu/drm/i915/gt/debugfs_gt.c > > @@ -26,15 +26,14 @@ void debugfs_gt_register(s

[Intel-gfx] [PATCH v3] drm/i915/gt: allow setting generic data pointer

2020-03-06 Thread Andi Shyti
From: Andi Shyti When registering debugfs files the intel gt debugfs library forces a 'struct *gt' private data on the caller. There might be different needs, therefore make it generic by adding one more argument to the "debugfs_register_files()" function which gets the

[Intel-gfx] [PATCH v4] drm/i915/gt: allow setting generic data pointer

2020-03-06 Thread Andi Shyti
From: Andi Shyti When registering debugfs files the intel gt debugfs library forces a 'struct *gt' private data on the caller. To be open to different usages make the new "intel_gt_debugfs_register_files()"[*] function more generic by converting the 'struct *gt'

Re: [Intel-gfx] [PATCH v4] drm/i915/gt: allow setting generic data pointer

2020-03-07 Thread Andi Shyti
Hi Chris, On Sat, Mar 07, 2020 at 12:07:22PM +, Chris Wilson wrote: > Quoting Andi Shyti (2020-03-06 23:03:44) > > -void debugfs_gt_register_files(struct intel_gt *gt, > > - struct dentry *root, > > - const s

Re: [Intel-gfx] [PATCH v4] drm/i915/gt: allow setting generic data pointer

2020-03-07 Thread Andi Shyti
Hi Chris, > > > Quoting Andi Shyti (2020-03-06 23:03:44) > > > > -void debugfs_gt_register_files(struct intel_gt *gt, > > > > - struct dentry *root, > > > > -

Re: [Intel-gfx] [PATCH v4] drm/i915/gt: allow setting generic data pointer

2020-03-09 Thread Andi Shyti
Hi Daniele, > > > > > Quoting Andi Shyti (2020-03-06 23:03:44) > > > > > > -void debugfs_gt_register_files(struct intel_gt *gt, > > > > > > - struct dentry *root, > > > > > &g

[Intel-gfx] [PATCH] drm/i915: fix wrong error number report

2018-10-01 Thread Andi Shyti
t the consistent error value from drm_dev_init() and embed it in the pointer return value. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/i915_drv.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c

Re: [Intel-gfx] [PATCH] drm/i915: fix wrong error number report

2018-10-02 Thread Andi Shyti
> > struct intel_device_info *device_info; > > struct drm_i915_private *i915; > > + int err; > > > > i915 = kzalloc(sizeof(*i915), GFP_KERNEL); > > if (!i915) > > return NULL; > > Ahem. oh yes :) Thanks, Andi ___

[Intel-gfx] [PATCH v2] drm/i915: fix wrong error number report

2018-10-02 Thread Andi Shyti
t the consistent error value from drm_dev_init() and embed it in the pointer return value. Signed-off-by: Andi Shyti --- Hi, I did forget in the version 1 to return -ENOMEM in case of kzalloc failure. Thanks Chris! Andi drivers/gpu/drm/i915/i915_drv.c | 12 +++- 1 file changed, 7 insertions(

[Intel-gfx] [PATCH v9 0/7] Update AUX invalidation sequence

2023-07-24 Thread Andi Shyti
atch 2 for enabling the EMIT_FLUSH flag. v1 -> v2 - add a clean up preliminary patch for the existing registers - add support for more engines - add the Fixes tag Andi Shyti (5): drm/i915/gt: Cleanup aux invalidation registers drm/i915: Add the gen12_needs_ccs_aux_inv helper drm/i915/

[Intel-gfx] [PATCH v9 1/7] drm/i915/gt: Cleanup aux invalidation registers

2023-07-24 Thread Andi Shyti
on't exist and add BCS0 and CCS0. Signed-off-by: Andi Shyti Cc: # v5.8+ Reviewed-by: Nirmoy Das Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 8 drivers/gpu/drm/i915/gt/intel_gt_regs.h | 16 drivers/gpu/drm/i915/gt/intel_lrc.c

[Intel-gfx] [PATCH v9 2/7] drm/i915: Add the gen12_needs_ccs_aux_inv helper

2023-07-24 Thread Andi Shyti
needed or not. Currently PVC is the only exception to the above mentioned rule. Requires: 059ae7ae2a1c ("drm/i915/gt: Cleanup aux invalidation registers") Signed-off-by: Andi Shyti Cc: Matt Roper Cc: Jonathan Cavitt Cc: # v5.8+ Reviewed-by: Matt Roper Reviewed-by: Andrzej Hajda R

[Intel-gfx] [PATCH v9 3/7] drm/i915/gt: Ensure memory quiesced before invalidation

2023-07-24 Thread Andi Shyti
er") Signed-off-by: Jonathan Cavitt Signed-off-by: Andi Shyti Cc: # v5.8+ Reviewed-by: Nirmoy Das Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/gen8_engine_cs.c b/dri

[Intel-gfx] [PATCH v9 4/7] drm/i915/gt: Rename flags with bit_group_X according to the datasheet

2023-07-24 Thread Andi Shyti
ently only PIPE_CONTROL0_HDC_PIPELINE_FLUSH bit is set. Signed-off-by: Andi Shyti Cc: # v5.8+ Reviewed-by: Matt Roper Reviewed-by: Andrzej Hajda Reviewed-by: Nirmoy Das --- drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 34 +--- drivers/gpu/drm/i915/gt/gen8_engine_cs.h | 18

[Intel-gfx] [PATCH v9 5/7] drm/i915/gt: Enable the CCS_FLUSH bit in the pipe control and in the CS

2023-07-24 Thread Andi Shyti
gines") Requires: 8da173db894a ("drm/i915/gt: Rename flags with bit_group_X according to the datasheet") Signed-off-by: Andi Shyti Cc: Jonathan Cavitt Cc: Nirmoy Das Cc: # v5.8+ Reviewed-by: Matt Roper Reviewed-by: Andrzej Hajda Reviewed-by: Nirmoy Das --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v9 6/7] drm/i915/gt: Poll aux invalidation register bit on invalidation

2023-07-24 Thread Andi Shyti
From: Jonathan Cavitt For platforms that use Aux CCS, wait for aux invalidation to complete by checking the aux invalidation register bit is cleared. Fixes: 972282c4cf24 ("drm/i915/gen12: Add aux table invalidate for all engines") Signed-off-by: Jonathan Cavitt Signed-off-by: Andi

[Intel-gfx] [PATCH v9 7/7] drm/i915/gt: Support aux invalidation on all engines

2023-07-24 Thread Andi Shyti
gines") Signed-off-by: Andi Shyti Cc: Jonathan Cavitt Cc: Matt Roper Cc: # v5.8+ Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/gen8_engine_cs.c | 66 +--- drivers/gpu/drm/i915/gt/gen8_engine_cs.h | 3 +- drivers/gpu/drm/i915/gt/intel_lrc.c | 17 +- 3 files c

Re: [Intel-gfx] [PATCH v2 1/9] drm/i915: Consolidate condition for Wa_22011802037

2023-07-25 Thread Andi Shyti
Hi Matt, > +/* > + * Wa_22011802037 requires that we (or the GuC) ensure that no command > + * streamers are executing MI_FORCE_WAKE while an engine reset is initiated. > + */ > +bool intel_engine_reset_needs_wa_22011802037(struct intel_gt *gt) I've seen this format in a recent Jonathan's patch a

Re: [Intel-gfx] [PATCH v2 2/9] drm/i915/xelpmp: Don't assume workarounds extend to future platforms

2023-07-25 Thread Andi Shyti
Hi Matt, On Mon, Jul 24, 2023 at 05:13:15PM -0700, Matt Roper wrote: > The currently implemented Xe_LPM+ workarounds are specific to media > version 13.00. When new IP versions show up in the future, they'll need > their own workaround lists. Makes sense... Reviewed-by: Andi

Re: [Intel-gfx] [PATCH v2 3/9] drm/i915/xelpg: Call Xe_LPG workaround functions based on IP version

2023-07-25 Thread Andi Shyti
Hi Matt, [...] all good [...] > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h Is this the right place to define this? Maybe in i915/gt/intel_gt.h? > @@ -431,6 +431,29 @@ static inline struct intel_gt *to_gt(struct > drm_i915_private *i915) > #define IS_GRAPHI

Re: [Intel-gfx] [PATCH v2 4/9] drm/i915: Eliminate IS_MTL_GRAPHICS_STEP

2023-07-25 Thread Andi Shyti
Hi Matt, > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -436,6 +436,9 @@ static inline struct intel_gt *to_gt(struct > drm_i915_private *i915) > #define __GT_VER_FULL(gt) (__IS_MEDIA_GT(gt) ? \ > MEDIA_VER_FULL((gt)->i915) : \ >

Re: [Intel-gfx] [PATCH v2 9/9] drm/i915: Replace several IS_METEORLAKE with proper IP version checks

2023-07-25 Thread Andi Shyti
Hi Matt, > --- a/drivers/gpu/drm/i915/gem/i915_gem_pages.c > +++ b/drivers/gpu/drm/i915/gem/i915_gem_pages.c > @@ -470,9 +470,13 @@ enum i915_map_type i915_coherent_map_type(struct > drm_i915_private *i915, > bool always_coherent) > { > /* > - *

[Intel-gfx] [PATCH] drm/i915: Replace i915->gt0 with to_gt(i915)

2023-07-25 Thread Andi Shyti
Quite surprised to see that around i915 there are still i915->gt0 references. Replace them with the to_gt() helper. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gem/i915_gem_stolen.c | 2 +- drivers/gpu/drm/i915/gt/intel_gt.c | 2 +- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] drm/i915: Avoid GGTT flushing on non-GGTT paths of i915_vma_pin_iomap

2023-07-25 Thread Andi Shyti
ot remembering what > else do we use for it? > > It is needed because i915_flush_writes()'s point AFAIU is to make sure CPU > writes after i915_vma_pin_iomap() have landed in RAM. All three methods the > latter can map the buffer are WC, therefore "flushing" of the WC

Re: [Intel-gfx] [PATCH v3 1/1] drm/i915: Move abs_diff() to math.h

2023-07-25 Thread Andi Shyti
Hi Andy, On Mon, Jul 24, 2023 at 11:25:11AM +0300, Andy Shevchenko wrote: > abs_diff() belongs to math.h. Move it there. > This will allow others to use it. > > Signed-off-by: Andy Shevchenko > Reviewed-by: Jiri Slaby # tty/serial Reviewed-by: Andi Shyti Thanks, Andi

intel-gfx@lists.freedesktop.org

2023-07-25 Thread Andi Shyti
Hi Uwe, > > If you think the reported changes have nothing to do with the changes > > introduced in Patchwork_121164v1_full, please notify your bug team to > > allow them > > to document this new failure mode, which will reduce false positives in > > CI. > > I don't think my patch results

intel-gfx@lists.freedesktop.org

2023-07-25 Thread Andi Shyti
: Uwe Kleine-König that's correct! Thanks for the cleanup. Reviewed-by: Andi Shyti Andi

Re: [Intel-gfx] [PATCH dii-client 1/2] drm/i915: Make i915_coherent_map_type GT-centric

2023-07-25 Thread Andi Shyti
Hi Jonathan, On Fri, Jul 21, 2023 at 07:05:58AM -0700, Jonathan Cavitt wrote: > Refactor i915_coherent_map_type to be GT-centric rather than > device-centric. Each GT may require different coherency > handling due to hardware workarounds. [...] > -enum i915_map_type i915_coherent_map_type(struc

Re: [Intel-gfx] [PATCH] drm/i915: Use the i915_vma_flush_writes helper

2023-07-25 Thread Andi Shyti
} > + for_each_ggtt_vma(vma, obj) > + i915_vma_flush_writes(vma); yes, that's some duplicated code removed here! Thanks! I believe I'm in time to add my: Reviewed-by: Andi Shyti Andi > spin_unlock(&obj->vma.lock); > > i915_gem_object_flush_frontbuffer(obj, ORIGIN_CPU); > -- > 2.39.2

intel-gfx@lists.freedesktop.org

2023-07-25 Thread Andi Shyti
Hi Uwe, On Fri, Jul 21, 2023 at 11:21:33PM +0200, Uwe Kleine-König wrote: > to_i915 is defined as > > container_of(dev, struct drm_i915_private, drm); > > So for a struct drm_device *dev, to_i915(dev)->drm is just dev. Simplify > accordingly. > > Signed-off-by: Uwe Kleine-König pushed t

Re: [Intel-gfx] [PATCH] drm/i915/huc: silence injected failure in the load via GSC path

2023-07-25 Thread Andi Shyti
t wasn't explicitly > injected. > > Link: https://gitlab.freedesktop.org/drm/intel/-/issues/7061 > Signed-off-by: Daniele Ceraolo Spurio Reviewed-by: Andi Shyti Andi

Re: [Intel-gfx] [PATCH] drm/i915: Replace i915->gt0 with to_gt(i915)

2023-07-25 Thread Andi Shyti
Hi, On Tue, Jul 25, 2023 at 03:41:31PM +0200, Andrzej Hajda wrote: > On 25.07.2023 12:33, Andi Shyti wrote: > > Quite surprised to see that around i915 there are still i915->gt0 > > references. Replace them with the to_gt() helper. > > > > Signed-off-by: Andi Shyti

<    2   3   4   5   6   7   8   9   10   11   >