[Intel-gfx] [PATCH] drm/i915/gt: move files more files into debugfs

2020-03-18 Thread Andi Shyti
From: Andi Shyti The following interfaces: i915_wedged i915_forcewake_user i915_gem_interrupt i915_gem_drop_caches are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure: gt | +-- drop_caches | +-- forc

Re: [Intel-gfx] [PATCH] drm/i915/gt: move files more files into debugfs

2020-03-18 Thread Andi Shyti
Hi Chris, On Wed, Mar 18, 2020 at 02:06:07PM +, Chris Wilson wrote: > Quoting Andi Shyti (2020-03-18 13:58:37) > > From: Andi Shyti > > > > The following interfaces: > > > > i915_wedged > > i915_forcewake_user > > Ok. > > > i915_ge

[Intel-gfx] [PATCH v2] drm/i915/gt: move files more files into debugfs

2020-03-20 Thread Andi Shyti
From: Andi Shyti The following interfaces: i915_wedged i915_forcewake_user i915_gem_interrupt i915_sseu_status are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure: gt | +-- forcewake_user | +-- interrupt

Re: [Intel-gfx] [PATCH v2] drm/i915/gt: move files more files into debugfs

2020-03-20 Thread Andi Shyti
Hi Chris, On Fri, Mar 20, 2020 at 11:11:46AM +, Chris Wilson wrote: > Quoting Andi Shyti (2020-03-20 03:49:01) > > From: Andi Shyti > > > > The following interfaces: > > > > i915_wedged > > i915_forcewake_user > > i915_gem_interrupt > > i

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gt: Leave rps->cur_freq on unpark

2020-03-22 Thread Andi Shyti
h. > > Signed-off-by: Chris Wilson > Cc: Andi Shyti > Cc: Lyude Paul > --- > drivers/gpu/drm/i915/gt/intel_rps.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpu/drm/i915/gt/intel_rps.c > b/drivers/gpu/drm/i915/gt/in

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gt: Treat idling as a RPS downclock event

2020-03-22 Thread Andi Shyti
hes > and doesn't justify full power. > > Closes: https://gitlab.freedesktop.org/drm/intel/issues/1500 > Fixes: 3e7abf814193 ("drm/i915: Extract GT render power state management") > Signed-off-by: Chris Wilson > Cc: Andi Shyti > Cc: Lyude

Re: [Intel-gfx] [PATCH] drm/i915/gt: Select the deepest available parking mode for rc6

2020-03-24 Thread Andi Shyti
Hi Chris, > struct intel_uncore *uncore = rc6_to_uncore(rc6); > + unsigned int target; > > if (!rc6->enabled) > return; > @@ -622,7 +623,14 @@ void intel_rc6_park(struct intel_rc6 *rc6) > > /* Turn off the HW timers and go directly to rc6 */ > set(unco

Re: [Intel-gfx] [PATCH] drm/i915/gt: Select the deepest available parking mode for rc6

2020-03-24 Thread Andi Shyti
l rc6 */ > > can we put names to these values? actually, you are using these only here and there is a comment to them... givinb those values a meaningful define is a bit of a formality, I'd say. It's up to you. Reviewed-by: Andi Shyti Thanks, Andi __

Re: [Intel-gfx] [PATCH i-g-t] i915/i915_pm_rc6_residency: Make ringbuffer rc6 fast

2020-03-24 Thread Andi Shyti
/gitlab.freedesktop.org/drm/intel/issues/1516 > 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 v2 0/6] Re-org uC debugfs files and move them under GT

2020-03-24 Thread Andi Shyti
bugs: > - keep printing HUC_STATUS register > - correcly set permissions for writable debugfs files > > Cc: Andi Shyti > Cc: Michal Wajdeczko > Cc: John Harrison > Cc: Matthew Brost > > Andi Shyti (1): > drm/i915/gt: allow setting generic data pointer &g

Re: [Intel-gfx] [PATCH] drm/i915/selftests: Measure the energy consumed while in RC6

2020-03-25 Thread Andi Shyti
y > means we failed to enter RC0 correctly. > > If we can't measure the energy draw with the MSR, then it will report 0 > for both measurements. Since the measurement works on all gen6+, this seems > worth flagging as an error. > > Signed-off-by: Chris Wilson > Cc: M

Re: [Intel-gfx] [PATCH] drm/i915: Differentiate between aliasing-ppgtt and ggtt pinning

2020-03-27 Thread Andi Shyti
Hi Chris, On Thu, Mar 26, 2020 at 02:27:27PM +, Chris Wilson wrote: > Userptr causes lockdep to complain when we are using the aliasing-ppgtt > (and ggtt, but for that it is rightfully so to complain about) in that > when we revoke the userptr we take a mutex which we also use to revoke > the

Re: [Intel-gfx] [PATCH] drm/i915: Differentiate between aliasing-ppgtt and ggtt pinning

2020-03-27 Thread Andi Shyti
Hi Chris, > > On Thu, Mar 26, 2020 at 02:27:27PM +, Chris Wilson wrote: > > > Userptr causes lockdep to complain when we are using the aliasing-ppgtt > > > (and ggtt, but for that it is rightfully so to complain about) in that > > > when we revoke the userptr we take a mutex which we also us

Re: [Intel-gfx] [PATCH v3] drm/i915/gt: move remaining debugfs interfaces into gt

2020-03-31 Thread Andi Shyti
Hi Chris, On Tue, Mar 31, 2020 at 05:53:32PM +0100, Chris Wilson wrote: > Quoting Andi Shyti (2020-03-31 17:45:08) > > +static void intel_sseu_copy_subslices(const struct sseu_dev_info *sseu, > > + int slice, u8 *to_mask) > > +{ > >

[Intel-gfx] [PATCH v3] drm/i915/gt: move remaining debugfs interfaces into gt

2020-03-31 Thread Andi Shyti
From: Andi Shyti The following interfaces: i915_wedged i915_forcewake_user i915_gem_interrupt i915_sseu_status are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure: gt | +-- forcewake_user | +-- inte

Re: [Intel-gfx] [PATCH] drm/i915/gem: Ignore readonly failures when updating relocs

2020-03-31 Thread Andi Shyti
> error") > Signed-off-by: Chris Wilson > Cc: Matthew Auld > Cc: Joonas Lahtinen Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH v4] drm/i915/gt: move remaining debugfs interfaces into gt

2020-03-31 Thread Andi Shyti
From: Andi Shyti The following interfaces: i915_wedged i915_forcewake_user i915_gem_interrupt i915_sseu_status are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure: gt | +-- forcewake_user | +-- inte

Re: [Intel-gfx] [PATCH v4] drm/i915/gt: move remaining debugfs interfaces into gt

2020-03-31 Thread Andi Shyti
On Tue, Mar 31, 2020 at 11:10:55PM +0100, Chris Wilson wrote: > Quoting Andi Shyti (2020-03-31 23:04:32) > > From: Andi Shyti > > > > The following interfaces: > > > > i915_wedged > > i915_forcewake_user > > i915_gem_interrupt > > i915_sseu_s

[Intel-gfx] [PATCH v5] drm/i915/gt: move remaining debugfs interfaces into gt

2020-04-02 Thread Andi Shyti
From: Andi Shyti The following interfaces: i915_wedged i915_forcewake_user i915_gem_interrupt i915_rcs_topology i915_sseu_status are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure: gt | +-- forc

[Intel-gfx] [PATCH v5] drm/i915/gt: move remaining debugfs interfaces into gt

2020-04-03 Thread Andi Shyti
From: Andi Shyti The following interfaces: i915_wedged i915_forcewake_user i915_gem_interrupt i915_rcs_topology i915_sseu_status are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure: gt | +-- forc

[Intel-gfx] [PATCH v6] drm/i915/gt: move remaining debugfs interfaces into gt

2020-04-04 Thread Andi Shyti
From: Andi Shyti The following interfaces: i915_wedged i915_forcewake_user i915_gem_interrupt i915_rcs_topology i915_sseu_status are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure: dri/0/gt | +-- forc

Re: [Intel-gfx] [PATCH i-g-t] i915/gem_busy: Drop i915_hangcheck_info

2020-04-06 Thread Andi Shyti
Hi Chris, On Mon, Apr 06, 2020 at 12:00:26PM +0100, Chris Wilson wrote: > All the information for hangcheck is pulled into i915_engine_info so the > separate dump is redundant. > > Signed-off-by: Chris Wilson > Cc: Andi Shyti Reviewed-by: Andi Shyti now we can get rid of i915

Re: [Intel-gfx] [PATCH i-g-t] i915/i915_hangman: Drop last reference to bygone 'i915_error_state'

2020-04-06 Thread Andi Shyti
ture problem -- and leave it to whoever has to debug it next time. > > Signed-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

[Intel-gfx] [PATCH v7 1/2] drm/i915: remove broken i915_sseu_status interface

2020-04-07 Thread Andi Shyti
From: Andi Shyti The i915_sseu_status is broken and the tests on this interface are disabled. There is no reason to drag it along. Remove it! Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/i915_debugfs.c | 257 1 file changed, 257 deletions(-) diff --git a

Re: [Intel-gfx] [PATCH v6] drm/i915/gt: move remaining debugfs interfaces into gt

2020-04-07 Thread Andi Shyti
Please ignore... wrong patch! :/ Andi On Wed, Apr 08, 2020 at 12:43:50AM +0300, Andi Shyti wrote: > From: Andi Shyti > > The following interfaces: > > i915_wedged > i915_forcewake_user > i915_gem_interrupt > i915_rcs_topology > i915_sseu_status > >

[Intel-gfx] [PATCH v6] drm/i915/gt: move remaining debugfs interfaces into gt

2020-04-07 Thread Andi Shyti
From: Andi Shyti The following interfaces: i915_wedged i915_forcewake_user i915_gem_interrupt i915_rcs_topology i915_sseu_status are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure: dri/0/gt | +-- forc

[Intel-gfx] [PATCH v7 0/2] debugfs cleanup and gt depenencies.

2020-04-07 Thread Andi Shyti
From: Andi Shyti Hi, In this 7th version I removed in a separate patch the sseu interface which is broken and therefore useless. Thanks Tvrtko and Chris for the review, Andi Changelog = v7: - add a preliminary patch that removes completely the i915_sseu_status interface. v6

[Intel-gfx] [PATCH v7 2/2] drm/i915/gt: move remaining debugfs interfaces into gt

2020-04-07 Thread Andi Shyti
From: Andi Shyti The following interfaces: i915_wedged i915_forcewake_user i915_gem_interrupt i915_rcs_topology i915_sseu_status are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure: dri/0/gt | +-- forc

Re: [Intel-gfx] [PATCH v7 1/2] drm/i915: remove broken i915_sseu_status interface

2020-04-08 Thread Andi Shyti
Hi Tvrtko, I start by saying that this patch was mainly sent to kickstart a discussion about cleanups required in debugfs and how debugfs can be inconsistent and how much it looks to me that we are relying on its current state. > > The i915_sseu_status is broken and the tests on this interface >

Re: [Intel-gfx] [PATCH i-g-t] i915/i915_pm_rc6_residency: Show where the time is spent

2020-04-09 Thread Andi Shyti
ris 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] agp/intel: Reinforce the barrier after GTT updates

2020-04-10 Thread Andi Shyti
forcing the > uncached read, and adding the missing barrier for the singular > insert_page (relocation paths), the sporadic failures go away. > > Fixes: 983d308cb8f6 ("agp/intel: Serialise after GTT updates") > Signed-off-by: Chris Wilson > Cc: sta...@vger.kernel.

Re: [Intel-gfx] [PATCH] drm/i915/selftests: Check for an already completed timeslice

2020-04-10 Thread Andi Shyti
s) && > + execlists_active(&engine->execlists) == rq && > !i915_request_completed(rq)) { > struct drm_printer p = > drm_info_printer(gt->i915->drm.dev); Reviewed-b

Re: [Intel-gfx] [PATCH i-g-t] kms_flip: Reduce hang tests to minimum duration

2020-04-10 Thread Andi Shyti
TEST_PAN | TEST_HANG, > "flip-vs-panning-vs-hang" }, > + { 1, TEST_FLIP | TEST_MODESET | TEST_HANG | TEST_NOEVENT, > "flip-vs-modeset-vs-hang" }, > + { 1, TEST_FLIP | TEST_PAN | TEST_HANG, > "flip-vs-panning-vs-hang"

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gt: Try to smooth RPS spikes

2020-04-15 Thread Andi Shyti
is true and we > compare the interrupt with the EI that caused it.] looks reasonable to me. Wouldn't it make also sense to evaluate the difference between the current and the previous pm_iir? Reviewed-by: Andi Shyti Andi ___ Intel-gfx mail

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gt: Shrink the RPS evalution intervals

2020-04-15 Thread Andi Shyti
wart jitter on bursty workloads by > making it easier to increase than it is to decrease frequencies, and > reduce the number of interrupts we would need to process. > > Fixes: 21abf0bf168d ("drm/i915/gt: Treat idling as a RPS downclock event") > Closes: https://gitlab.f

Re: [Intel-gfx] [PATCH] drm/i915/gt: Update PMINTRMSK holding fw

2020-04-15 Thread Andi Shyti
for long > periods of time. > > Reported-by: Francisco Jerez > Suggested-by: Francisco Jerez > Fixes: 35cc7f32c298 ("drm/i915/gt: Use non-forcewake writes for RPS") > Signed-off-by: Chris Wilson > Cc: Francisco Jerez > Cc: Mika Kuoppala > Cc: Andi Shyti

Re: [Intel-gfx] [CI 1/2] drm/i915/selftests: Exercise basic RPS interrupt generation

2020-04-15 Thread Andi Shyti
see > an interrupt if we keep the GPU busy for an entire EI. > > Signed-off-by: Chris Wilson Looks correct 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 2/2] drm/i915/gt: Use the RPM config register to determine clk frequencies

2020-04-16 Thread Andi Shyti
gned-off-by: Chris Wilson > Cc: Andi Shyti > Cc: Mika Kuoppala > --- > drivers/gpu/drm/i915/Makefile | 1 + > drivers/gpu/drm/i915/gt/debugfs_gt_pm.c | 27 + > drivers/gpu/drm/i915/gt/intel_gt_clk.c | 76 + > drivers/gpu/drm/i915/gt/inte

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gt: Use the RPM config register to determine clk frequencies

2020-04-16 Thread Andi Shyti
Hi Chris, On Thu, Apr 16, 2020 at 09:33:52PM +0100, Chris Wilson wrote: > Quoting Andi Shyti (2020-04-16 21:31:10) > > Hi Chris, > > > > > For many configuration details within RC6 and RPS we are programming > > > intervals for the internal clo

Re: [Intel-gfx] [PATCH 2/2] drm/i915/selftests: Check power consumption at min/max frequencies

2020-04-16 Thread Andi Shyti
Hi Chris, > +static u64 __measure_power(int duration_ms) > +{ > + u64 nrg, dt; > + > + dt = -ktime_get(); > + nrg = -st_energy_uJ(); > + msleep(5); usleep_range? Reviewed-by: Andi Shyti Thanks, Andi ___ Intel-g

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gem: Remove object_is_locked assertion from unpin_from_display_plane

2020-04-21 Thread Andi Shyti
3589] drm_mode_page_flip_ioctl+0x587/0x5d0 > > This completes the symmetry lost in commit 8b1c78e06e61 ("drm/i915: Avoid > calling i915_gem_object_unbind holding object lock"). > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1743 > Fixes: 8b1c78e06e61 ("drm/i915: Avoid calling i915_gem_object_unbind holding > object lock") > Signed-off-by: Chris Wilson > Cc: Matthew Auld > Cc: Andi Shyti > Cc: # v5.6+ Acked-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] drm/i915/selftests: Add request throughput measurement to perf

2020-04-22 Thread Andi Shyti
Hi Chris, [...] > +static int s_many(void *arg) > +{ > + struct perf_series *ps = arg; why do we need to go through void... all functions are taking a perf_series structure. > + IGT_TIMEOUT(end_time); > + unsigned int idx = 0; > + [...] > + for (idx = 0; idx < nengines

Re: [Intel-gfx] [PATCH] drm/i915/selftests: Add request throughput measurement to perf

2020-04-23 Thread Andi Shyti
request_put as well? > > No. Nasty API, add consumes the reference. It's on the list to update > now that we have a ~majority of cases that want to keep a reference to > their request. arrghh! > > > + for_each_uabi_engine(engine, i915) { > > >

Re: [Intel-gfx] [PATCH] drm/i915: Only close vma we open

2020-04-24 Thread Andi Shyti
\n"); > err = -EINVAL; > - goto out_close; > + goto out_put; > } > > err = i915_subtests(tests, ppgtt); > > -out_close: > +out_put: > i915_vm_put(&ppgtt->vm); Did anything change here

Re: [Intel-gfx] [PATCH] drm/i915: Only close vma we open

2020-04-24 Thread Andi Shyti
On Fri, Apr 24, 2020 at 11:22:13AM +0100, Chris Wilson wrote: > Quoting Andi Shyti (2020-04-24 11:16:17) > > Hi Chris, > > > > On Wed, Apr 22, 2020 at 08:05:58PM +0100, Chris Wilson wrote: > > > The history of i915_vma_close() is confusing, as is its use. As the >

Re: [Intel-gfx] [PATCH 1/3] drm/i915/gt: Prefer soft-rc6 over RPS DOWN_TIMEOUT

2020-04-24 Thread Andi Shyti
Hi Chris, On Wed, Apr 22, 2020 at 01:17:01AM +0100, Chris Wilson wrote: > The RPS DOWN_TIMEOUT interrupt is signaled after a period of rc6, and > upon receipt of that interrupt we reprogram the GPU clocks down to the > next idle notch [to help convserve power during rc6]. However, on > execlists,

Re: [Intel-gfx] [PATCH 2/3] drm/i915/gt: Trace RPS events

2020-04-24 Thread Andi Shyti
lson 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 1/3] drm/i915/gt: Prefer soft-rc6 over RPS DOWN_TIMEOUT

2020-04-24 Thread Andi Shyti
t; > > > - mask &= READ_ONCE(rps->pm_events); > > > + mask &= rps->pm_events; > > > > we are giving up the read/write ordering here because we thing > > that removing the down interval we won't have anymore > >

Re: [Intel-gfx] [PATCH] drm/i915: Drop rq->ring->vma peeking from error capture

2020-04-24 Thread Andi Shyti
> static void engine_record_execlists(struct intel_engine_coredump *ee) > @@ -1231,8 +1235,10 @@ static void engine_record_execlists(struct > intel_engine_coredump *ee) > struct i915_request * const *port = el->active; > unsigned int n = 0; > > - while (*port) > - re

Re: [Intel-gfx] [PATCH 3/6] drm/i915/gt: Track use of RPS interrupts in flags

2020-04-26 Thread Andi Shyti
Hi Chris, On Sat, Apr 25, 2020 at 06:57:48PM +0100, Chris Wilson wrote: > Use the new intel_rps.flags field to store whether or not interrupts are > being used with RPS. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti Andi _

Re: [Intel-gfx] [PATCH] drm/i915/gt: Switch to manual evaluation of RPS

2020-04-26 Thread Andi Shyti
Hi Chris, On Sat, Apr 25, 2020 at 07:54:00PM +0100, Chris Wilson wrote: > As with the realisation for soft-rc6, we respond to idling the engines > within microseconds, far faster than the response times for HW RC6 and > RPS. Furthermore, our fast parking upon idle, prevents HW RPS from > running f

Re: [Intel-gfx] [PATCH 2/6] drm/i915/gt: Move rps.enabled/active to flags

2020-04-26 Thread Andi Shyti
Hi Chris, > intel_uncore_forcewake_get(uncore, FORCEWAKE_ALL); > if (IS_CHERRYVIEW(i915)) > - rps->enabled = chv_rps_enable(rps); > + enabled = chv_rps_enable(rps); > else if (IS_VALLEYVIEW(i915)) > - rps->enabled = vlv_rps_enable(rps); > +

Re: [Intel-gfx] [PATCH 7/9] drm/i915/gt: Switch to manual evaluation of RPS

2020-04-27 Thread Andi Shyti
more responsive for better performance and powersaving > for both spiky workloads and steady-state. > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1698 > Fixes: 98479ada421a ("drm/i915/gt: Treat idling as a RPS downclock event") > Signed-off-by: Chris Wilson

Re: [Intel-gfx] [PATCH] drm/i915: Move more i915->ggtt to local variables

2020-04-27 Thread Andi Shyti
and instead > try and derive the pointer from a supplied intel_gt. > > Signed-off-by: Chris Wilson > Cc: Andi Shyti Reviewed-by: Andi Shyti Thank you, Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesk

Re: [Intel-gfx] [PATCH 1/9] drm/i915/gt: Sanitize GT first

2020-04-27 Thread Andi Shyti
read back from the CPU cache and > so we must clflush our control over that page. In doing so, push the > sanitisation to the start of the GT sequence so that our poisoning is > assuredly before we start talking to the HW. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti An

Re: [Intel-gfx] [PATCH 2/9] drm/i915/gt: Fix up clock frequency

2020-04-27 Thread Andi Shyti
Hi Chris, On Mon, Apr 27, 2020 at 09:54:01AM +0100, Chris Wilson wrote: > The bspec lists both the clock frequency and the effective interval. The > interval corresponds to observed behaviour, so adjust the frequency to > match. what is the observed behavior? Andi ___

Re: [Intel-gfx] [PATCH 8/9] drm/i915/gt: Apply the aggressive downclocking to parking

2020-04-27 Thread Andi Shyti
s > whose only interaction is through the manual parking events, carry over > the aggressive downclocking to the fake RPS events. > > References: 21abf0bf168d ("drm/i915/gt: Treat idling as a RPS downclock > event") > Signed-off-by: Chris Wilson Reviewed-by: And

Re: [Intel-gfx] [PATCH 9/9] drm/i915/gt: Restore aggressive post-boost downclocking

2020-04-27 Thread Andi Shyti
190751537693,100.00,, > 1447.89,Joules,power/energy-cores/,190751542360,100.00,, > 394.93,Joules,power/energy-gpu/,190751543518,100.00,, > 67956,M,i915/actual-frequency/,190751526709,100.00,, > 40240837120,ns,i915/rc6-residency/,190751523820,100.00,, > 147090761985,ns,i915/rcs0-busy/,190751525291,100.0

Re: [Intel-gfx] [PATCH 5/9] drm/i915/gt: Move rps.enabled/active to flags

2020-04-27 Thread Andi Shyti
Hi Chris, On Mon, Apr 27, 2020 at 09:54:04AM +0100, Chris Wilson wrote: > Pull the boolean intel_rps.enabled and intel_rps.active into a single > flags field, in preparation for more. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti

Re: [Intel-gfx] [PATCH] drm/i915/selftests: fix error handling in __live_lrc_indirect_ctx_bb()

2020-04-29 Thread Andi Shyti
for indirect ctx > batchbuffers") > Signed-off-by: Dan Carpenter 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: Sanitize RPS interrupts upon resume

2020-05-02 Thread Andi Shyti
up again > unexepectedly. > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1811 > Fixes: 8e99299a04bc ("drm/i915/gt: Track use of RPS interrupts in flags") > Signed-off-by: Chris Wilson > Cc: Andi Shyti Reviewed-by: Andi Shyti Thanks, Andi

Re: [Intel-gfx] [PATCH 01/17] drm/i915/execlists: Always clear pending&inflight requests on reset

2019-08-01 Thread Andi Shyti
sometimes^W > - * often trashed across a GPU reset! Instead we have to rely on > - * guessing the missed context-switch events by looking at what > - * requests were completed. > - */ > - execlists_cancel_port_requests(execlists); > - why did this end up

Re: [Intel-gfx] [PATCH 04/17] drm/i915: Use drm_i915_private directly from drv_get_drvdata()

2019-08-05 Thread Andi Shyti
Hi Chris, > static void i915_switcheroo_set_state(struct pci_dev *pdev, enum > vga_switcheroo_state state) > { > - struct drm_device *dev = pci_get_drvdata(pdev); > + struct drm_i915_private *i915 = pdev_to_i915(pdev); > pm_message_t pmm = { .event = PM_EVENT_SUSPEND }; > > +

Re: [Intel-gfx] [PATCH 12/17] drm/i915: Use intel_engine_lookup_user for probing HAS_BSD etc

2019-08-05 Thread Andi Shyti
Hi Chris, On Tue, Jul 30, 2019 at 02:30:30PM +0100, Chris Wilson wrote: > Use the same mechanism to determine if a backend engine exists for a > uabi mapping as used internally. Looks OK, Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list

Re: [Intel-gfx] [PATCH 05/17] drm/i915/gem: Make caps.scheduler static

2019-08-05 Thread Andi Shyti
Hi Chris, > /** > - * i915_gem_shrinker_register - Register the i915 shrinker > + * i915_gem_driver_register__shrinker - Register the i915 shrinker > * @i915: i915 device > * > * This function registers and sets up the i915 shrinker and OOM handler. > */ > -void i915_gem_shrinker_register

Re: [Intel-gfx] [PATCH 13/17] drm/i915: Isolate i915_getparam_ioctl()

2019-08-05 Thread Andi Shyti
n the fly :) Would be nice to have _any_ change documented in the log. In any case: 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 09/17] drm/i915: Push the ring creation flags to the backend

2019-08-05 Thread Andi Shyti
Hi Chris, On Tue, Jul 30, 2019 at 02:30:27PM +0100, Chris Wilson wrote: > Push the ring creation flags from the outer GEM context to the inner > intel_cotnext to avoid an unsightly back-reference from inside the > backend. > > Signed-off-by: Chris Wilson looks nice! Reviewed

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] i915/gem_exec_schedule: Avoid using borked engines

2019-08-05 Thread Andi Shyti
Hi Chris, On Tue, Jul 30, 2019 at 10:24:53PM +0100, Chris Wilson wrote: > Check for viability of store-dword before use. > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.

Re: [Intel-gfx] [PATCH] drm/i915: Use drm_i915_private directly from drv_get_drvdata()

2019-08-06 Thread Andi Shyti
use i915 inside drv_get_drvdata() > v3: Only expect i915 inside drv_get_drvdata() so drop the assumed > i915/drm equivalence. > > Signed-off-by: Chris Wilson > Cc: Andi Shyti Reviewed-by: Andi Shyti Thanks, Andi ___ In

Re: [Intel-gfx] [PATCH] drm/i915: Cancel persistent contexts if !hangcheck

2019-08-06 Thread Andi Shyti
em_context_is_banned(ctx)) > + return; just a question, if a context is "banned", don't we want to check on the requests anyway? > +++ b/drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c heartbeat? I like it :) Reviewed-by: Andi Shyti Thanks, Andi ___

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Remove unused debugfs/i915_emon_status

2019-08-11 Thread Andi Shyti
checking. > > Signed-off-by: Chris Wilson > Cc: Andi Shyti Acked-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 2/2] drm/i915: Verify the engine setup after recording the defaults

2019-08-11 Thread Andi Shyti
Hi Chris, On Sat, Aug 10, 2019 at 10:03:29AM +0100, Chris Wilson wrote: > Check that the engine w/a persist after we performed a context switch > and record those w/a into the default context state. > > Signed-off-by: Chris Wilson > Cc: Andi Shyti Acked-by: Andi Shyti

Re: [Intel-gfx] [PATCH i-g-t 2/9] i915/gem_eio: Restrict number of batches of submitted

2019-08-13 Thread Andi Shyti
9 > 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] [igt-dev] [PATCH i-g-t 1/9] i915/gem_exec_schedule: Limit the plug to fit small rings

2019-08-13 Thread Andi Shyti
, it > is in order submission (and so the batch is after the main setup > anyway!). > > Signed-off-by: Chris Wilson looks straight forward to me. Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailing list Intel-gfx@lists.

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 4/9] i915/gem_shrink: Make some pages dirty

2019-08-13 Thread Andi Shyti
Hi Chris, On Tue, Aug 13, 2019 at 07:20:11AM +0100, Chris Wilson wrote: > Trying to hit a deadlock for invalidating dirty userptr pages (via > kcompactd). > > Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti Andi ___ Intel-gfx mailin

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 9/9] i915/gem_ctx_engine: Drip feed requests into 'independent'

2019-08-13 Thread Andi Shyti
be run in fence order and fall back to submission > order, we will time out waiting for our incremental results and trigger > a few GPU hangs. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110987 > Signed-off-by: Chris Wils

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 5/9] i915/gem_userptr_blits: Apply some THP pressure

2019-08-13 Thread Andi Shyti
Hi Chris, On Tue, Aug 13, 2019 at 07:20:12AM +0100, Chris Wilson wrote: > Still trying to hit a deadlock with userptr from kcompatcd. > > Signed-off-by: Chris Wilson This looks all right, as well. Reveiwed-by: Andi Shyti Andi ___ Intel-gf

Re: [Intel-gfx] [PATCH] drm/i915: Stub out i915_gpu_coredump_put

2020-01-27 Thread Andi Shyti
ing up the GPU error capture") > Fixes: 748317386afb ("drm/i915/execlists: Offline error capture") > Signed-off-by: Chris Wilson > Cc: Mike Lothian > Cc: Andi Shyti right! Reviewed-by: Andi Shyti Thanks, Andi ___ Intel-gfx mai

Re: [Intel-gfx] [PATCH i-g-t] lib/i915: Fix is_physical_engine advancement

2020-01-29 Thread Andi Shyti
y case, 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: Fix rc6 on Ivybridge

2020-02-04 Thread Andi Shyti
reedesktop.org/drm/intel/issues/1114 > Testcase: igt/i915_pm_rc6_residency/rc6-idle #ivb > Signed-off-by: Chris Wilson > Cc: Andi Shyti > --- > drivers/gpu/drm/i915/gt/intel_rc6.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/gpu/dr

Re: [Intel-gfx] [PATCH] drm/i915/gt: Fix rc6 on Ivybridge

2020-02-04 Thread Andi Shyti
e system. > > > > > > Closes: https://gitlab.freedesktop.org/drm/intel/issues/1114 > > > Testcase: igt/i915_pm_rc6_residency/rc6-idle #ivb > > > Signed-off-by: Chris Wilson > > > Cc: Andi Shyti > > > --- > > > drivers/gpu/drm/i915/gt/intel_rc6.c | 5 +-

[Intel-gfx] [PATCH v4] drm/i915/selftests: add basic selftests for rc6

2020-02-04 Thread Andi Shyti
From: Andi Shyti Add three basic tests for rc6 power status: 1. live_rc6_basic - simply checks if rc6 works when it's enabled or stops when it's disabled. 2. live_rc6_threshold - rc6 should not work when the evaluation interval is less than the threshold and should work oth

Re: [Intel-gfx] [PATCH] drm/i915/selftests: add basic selftests for rc6

2020-02-05 Thread Andi Shyti
Hi Mika, > > +static bool test_rc6(struct intel_rc6 *rc6, bool enabled) > > +{ > > + struct intel_uncore *uncore = rc6_to_uncore(rc6); > > + intel_wakeref_t wakeref; > > + u32 ec1, ec2; > > + u32 interval; > > + > > + wakeref = intel_runtime_pm_get(uncore->rpm); > > + > > + interval =

[Intel-gfx] [PATCH v4] drm/i915/selftests: add basic selftests for rc6

2020-02-05 Thread Andi Shyti
From: Andi Shyti Add three basic tests for rc6 power status: 1. live_rc6_basic - simply checks if rc6 works when it's enabled or stops when it's disabled. 2. live_rc6_threshold - rc6 should not work when the evaluation interval is less than the threshold and should work oth

[Intel-gfx] [PATCH v5] drm/i915/selftests: add basic selftests for rc6

2020-02-05 Thread Andi Shyti
From: Andi Shyti Add three basic tests for rc6 power status: 1. live_rc6_basic - simply checks if rc6 works when it's enabled or stops when it's disabled. 2. live_rc6_threshold - rc6 should not work when the evaluation interval is less than the threshold and should work oth

[Intel-gfx] [PATCH v6 1/3] drm/i915/selftests: add busy selftests for rc6

2020-02-06 Thread Andi Shyti
From: Andi Shyti live_rc6_busy keeps the gpu busy and then goes in idle; checks that we don't fall in rc6 when busy and that we do fall in rc6 when idling. The test is added as subtest of the bigger live_late_gt_pm selftest. The basic rc6 functionality is tested by checking the refe

[Intel-gfx] [PATCH v6 2/3] drm/i915/selftests: add threshold selftests for rc6

2020-02-06 Thread Andi Shyti
From: Andi Shyti rc6 should not work when the evaluation interval is less than the threshold and should work otherwise. live_rc6_threshold tests such behavior The test is added as subtest of the bigger live_late_gt_pm selftest. Signed-off-by: Andi Shyti Cc: Chris Wilson --- drivers/gpu/drm

[Intel-gfx] [PATCH v6 3/3] drm/i915/selftests: add basic on/off selftests for rc6

2020-02-06 Thread Andi Shyti
From: Andi Shyti live_rc6_basic simply checks if rc6 works when it's enabled or stops when it's disabled. The test is added as subtest of the bigger live_late_gt_pm selftest. Signed-off-by: Andi Shyti Cc: Chris Wilson --- drivers/gpu/drm/i915/gt/selftest_gt_pm.c | 1 + drivers/gp

[Intel-gfx] [PATCH v6 0/3] Add basic selftests for rc6

2020-02-06 Thread Andi Shyti
From: Andi Shyti Hi, unfortunately rc6 is still a mysterious system and not all tests provide the expected results. I split the three tests in three different patches in order to have more flexibility in picking them. Thanks Chris and Mika for the reviews, Andi Changelog: * v5 ->

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

2020-02-08 Thread Andi Shyti
From: 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 --- drivers/gpu/drm/i915/Makefile| 4 +- dri

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

2020-02-08 Thread Andi Shyti
On Sat, Feb 08, 2020 at 04:26:18PM +, Chris Wilson wrote: > Quoting Andi Shyti (2020-02-08 12:27:59) > > From: Andi Shyti > > > > The GT has its own properties and in sysfs they should be grouped > > in the 'gt/' directory. > > > > Creat

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

2020-02-08 Thread Andi Shyti
Hi Chris, > > > > 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. > > > > > > As shown by BAT, we have a conundrum; do we have to preserve th

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

2020-02-08 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. > > > > > > > > > > As shown by BAT, we have a conundrum; do we ha

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

2020-02-09 Thread Andi Shyti
Hi Jani, > > void intel_gt_init_early(struct intel_gt *gt, struct drm_i915_private > > *i915) > > { > > @@ -321,6 +322,7 @@ void intel_gt_driver_register(struct intel_gt *gt) > > intel_rps_driver_register(>->rps); > > > > debugfs_gt_register(gt); > > Yikes, when did this happen? Not

[Intel-gfx] [PATCH] drm/i915/gt: change prefix to debugfs functions

2020-02-10 Thread Andi Shyti
"We don't own the debugfs 'namespace' prefix." (Jani Nikula [*]) I agree, change the functions name from "debugfs_*" to "intel_gt_*" prefix. [*] https://patchwork.freedesktop.org/patch/352553/#comment_651183 Signed-off-by: Andi Shyti

Re: [Intel-gfx] [PATCH] drm/i915/gt: change prefix to debugfs functions

2020-02-10 Thread Andi Shyti
Hi Chris, > > "We don't own the debugfs 'namespace' prefix." (Jani Nikula [*]) > > > > I agree, change the functions name from "debugfs_*" to > > "intel_gt_*" prefix. > > An alternate way of looking at it is that these are all dependent on > CONFIG_DEBUGFS. So are they not the debugfs interface?

Re: [Intel-gfx] [PATCH i-g-t] i915/gem_exec_nop: Keep a copy of the names

2020-02-10 Thread Andi Shyti
Hi Chris, On Tue, Feb 11, 2020 at 12:37:42AM +, Chris Wilson wrote: > The engine names are now stored inside the iterator and not as static > strings. If we wish to use them later, we need to make a copy. But we are not using them later. Your patch just copies and frees an array. Is there a

Re: [Intel-gfx] [PATCH 1/7] drm/i915/gt: Avoid resetting ring->head outside of its timeline mutex

2020-02-11 Thread Andi Shyti
t;drm/i915/execlists: Leave resetting ring to > intel_ring") > Signed-off-by: Chris Wilson > Cc: Matthew Auld > Cc: Tvrtko Ursulin > Cc: Mika Kuoppala looks OK 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 v2] drm/i915/gt: make a gt sysfs group and move power management files

2020-02-11 Thread Andi Shyti
On Tue, Feb 11, 2020 at 08:10:27PM +0200, Andi Shyti wrote: > From: 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 > rela

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

2020-02-11 Thread Andi Shyti
From: 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 second version takes into account the co

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