[Intel-gfx] [PATCH v3] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-03-02 Thread Janusz Krzysztofik
uot;) Cc: Chris Wilson Cc: sta...@vger.kernel.org # v5.5 Cc: Andi Shyti Signed-off-by: Janusz Krzysztofik --- drivers/gpu/drm/i915/i915_active.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_active.c b/drivers/gpu/drm/i91

Re: [Intel-gfx] [PATCH v2] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-03-02 Thread Janusz Krzysztofik
Hi Andy, Thanks for review. On Thursday, 2 March 2023 01:42:05 CET Andi Shyti wrote: > Hi Janusz, > > On Sat, Feb 25, 2023 at 11:12:18PM +0100, Janusz Krzysztofik wrote: > > Users reported oopses on list corruptions when using i915 perf with a > > number of concurre

[Intel-gfx] [CI v2 1/1] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-03-01 Thread Janusz Krzysztofik
t;), v5.4, - reword commit description. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6333 Fixes: 311770173fac ("drm/i915/gt: Schedule request retirement when timeline idles") Cc: Chris Wilson Cc: sta...@vger.kernel.org # v5.5 Signed-off-by: Janusz Krzyszt

[Intel-gfx] [CI v2 0/1] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-03-01 Thread Janusz Krzysztofik
Dummy cover letter to prevent CI / patchwork from picking up a previous one with an outdated Test-with: clause. Janusz Krzysztofik (1): drm/i915/active: Fix misuse of non-idle barriers as fence trackers drivers/gpu/drm/i915/i915_active.c | 25 ++--- 1 file changed, 14

[Intel-gfx] [CI v2 1/1] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-03-01 Thread Janusz Krzysztofik
t;), v5.4, - reword commit description. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6333 Fixes: 311770173fac ("drm/i915/gt: Schedule request retirement when timeline idles") Cc: Chris Wilson Cc: sta...@vger.kernel.org # v5.5 Signed-off-by: Janusz Krzyszt

[Intel-gfx] [CI v2 0/1] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-03-01 Thread Janusz Krzysztofik
Dummy cover letter to prevent CI / patchwork from picking up a previous one with an outdated Test-with: clause. Janusz Krzysztofik (1): drm/i915/active: Fix misuse of non-idle barriers as fence trackers drivers/gpu/drm/i915/i915_active.c | 25 ++--- 1 file changed, 14

[Intel-gfx] [PATCH v2] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-02-25 Thread Janusz Krzysztofik
t;), v5.4, - reword commit description. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6333 Fixes: 311770173fac ("drm/i915/gt: Schedule request retirement when timeline idles") Cc: Chris Wilson Cc: sta...@vger.kernel.org # v5.5 Signed-off-by: Janusz Krzyszt

Re: [Intel-gfx] [PATCH i-g-t v2] tests/i915_suspend: Refresh device list after *-without-i915 subtests

2023-02-24 Thread Janusz Krzysztofik
On Friday, 24 February 2023 09:38:54 CET Kamil Konieczny wrote: > On 2023-02-13 at 15:34:45 +0100, Janusz Krzysztofik wrote: > > If any of *-without-i915 subtests fails or skips for any reason, it may > > leave the i915 module unloaded while keeping our device list populated >

Re: [Intel-gfx] [PATCH i-g-t] tests/gem_barrier_race: Extend support over compute engines

2023-02-21 Thread Janusz Krzysztofik
On Monday, 20 February 2023 21:49:46 CET Kamil Konieczny wrote: > On 2023-02-20 at 14:24:45 +0100, Janusz Krzysztofik wrote: > > This test can work not only on render engines, as its current code > > suggests, but also on compute class engines. Add them to the set of > > eng

[Intel-gfx] [PATCH i-g-t] tests/gem_barrier_race: Extend support over compute engines

2023-02-20 Thread Janusz Krzysztofik
This test can work not only on render engines, as its current code suggests, but also on compute class engines. Add them to the set of engine classes supported by the test, in case a future platform has only those and no RCS available. Suggested-by: Chris Wilson Signed-off-by: Janusz

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for tests: Exercise remote request vs barrier handling race

2023-02-16 Thread Janusz Krzysztofik
On Thursday, 16 February 2023 01:30:47 CET Patchwork wrote: > == Series Details == > > Series: tests: Exercise remote request vs barrier handling race > URL : https://patchwork.freedesktop.org/series/114045/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_12741_full

[Intel-gfx] [PATCH i-g-t v4] tests: Exercise remote request vs barrier handling race

2023-02-15 Thread Janusz Krzysztofik
/6333 Signed-off-by: Janusz Krzysztofik Cc: Chris Wilson Cc: Kamil Konieczny Cc: Ashutosh Dixit Cc: Umesh Nerlige Ramappa --- tests/i915/gem_barrier_race.c | 153 ++ tests/meson.build | 8 ++ 2 files changed, 161 insertions(+) create mode 100644

Re: [Intel-gfx] [PATCH i-g-t v3 1/1] tests: Exercise remote request vs barrier handling race

2023-02-14 Thread Janusz Krzysztofik
Hi Kamil, Thanks for review. On Tuesday, 14 February 2023 22:20:10 CET Kamil Konieczny wrote: > Hi Janusz, > > On 2023-02-13 at 10:31:32 +0100, Janusz Krzysztofik wrote: > > Users reported oopses on list corruptions when using i915 perf with a > > number of concurre

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for Resolve barrier tasks list related issues

2023-02-14 Thread Janusz Krzysztofik
On Tuesday, 14 February 2023 04:38:12 CET Patchwork wrote: > == Series Details == > > Series: Resolve barrier tasks list related issues > URL : https://patchwork.freedesktop.org/series/113975/ > State : success > > == Summary == > > CI Bug Log - changes from CI_DRM_12734_full ->

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for Resolve barrier tasks list related issues

2023-02-14 Thread Janusz Krzysztofik
On Tuesday, 14 February 2023 01:11:42 CET Patchwork wrote: > == Series Details == > > Series: Resolve barrier tasks list related issues > URL : https://patchwork.freedesktop.org/series/113975/ > State : success > > == Summary == > > CI Bug Log - changes from CI_DRM_12734 -> Patchwork_113975v1

[Intel-gfx] [PATCH 2/2] drm/i915/active: Serialize access to barrier tasks lists

2023-02-13 Thread Janusz Krzysztofik
from other kernel requests") Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v5.4 --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 6 +++ .../gpu/drm/i915/gt/intel_engine_heartbeat.c | 10 - drivers/gpu/drm/i915/gt/intel_engine_pm.c | 4 ++ drivers/gpu/d

[Intel-gfx] [PATCH 1/2] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-02-13 Thread Janusz Krzysztofik
Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v5.4 --- drivers/gpu/drm/i915/i915_active.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_active.c b/drivers/gpu/drm/i915/i915_active.c index 7412abf166a8c..f92

[Intel-gfx] [PATCH 0/2] Resolve barrier tasks list related issues

2023-02-13 Thread Janusz Krzysztofik
rriers from an engine's barrier tasks list. Note: Again, I'm submitting this series with a request to CI for testing it with trybot submission of the new igt@gem_barrier_race@remote-request subtest, not yet in upstream IGT, to get comparable results from the widest possible HW range. Janusz Krzyszto

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/active: Serialize access to barrier tasks lists

2023-02-13 Thread Janusz Krzysztofik
On Monday, 13 February 2023 19:28:50 CET Patchwork wrote: > == Series Details == > > Series: drm/i915/active: Serialize access to barrier tasks lists > URL : https://patchwork.freedesktop.org/series/113962/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_12732 ->

[Intel-gfx] [PATCH 1/1] drm/i915/active: Serialize access to barrier tasks lists

2023-02-13 Thread Janusz Krzysztofik
from other kernel requests") Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v5.4 --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 6 +++ .../gpu/drm/i915/gt/intel_engine_heartbeat.c | 10 - drivers/gpu/drm/i915/gt/intel_engine_pm.c | 4 ++ drivers/gpu/d

[Intel-gfx] [PATCH 0/1] drm/i915/active: Serialize access to barrier tasks lists

2023-02-13 Thread Janusz Krzysztofik
ce trackers", I'm submitting this fix with a request to CI for testing it with trybot submission of the new igt@gem_barrier_race@remote-request subtest, not yet in upstream IGT, to get comparable results from the widest possible HW range. Janusz Krzysztofik (1): drm/i915/active: Serialize access

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-02-13 Thread Janusz Krzysztofik
On Monday, 13 February 2023 14:47:42 CET Patchwork wrote: > == Series Details == > > Series: drm/i915/active: Fix misuse of non-idle barriers as fence trackers > URL : https://patchwork.freedesktop.org/series/113950/ > State : success > > == Summary == > > CI Bug Log - changes from

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for tests/i915/perf: Add stress / race exercises (rev3)

2023-02-13 Thread Janusz Krzysztofik
On Monday, 13 February 2023 12:19:10 CET Patchwork wrote: > == Series Details == > > Series: tests/i915/perf: Add stress / race exercises (rev3) > URL : https://patchwork.freedesktop.org/series/113522/ > State : failure > > == Summary == > > CI Bug Log - changes from IGT_7160_full ->

[Intel-gfx] [PATCH i-g-t v2] tests/i915_suspend: Refresh device list after *-without-i915 subtests

2023-02-13 Thread Janusz Krzysztofik
t_main@@GLIBC_2.34() (i915_suspend:9050) igt_core-INFO: #6 [_start+0x2a] END Fixes: f7aff600ab16 ("tests/i915/i915_suspend: Disable d3cold_allowed for basic-s2idle-without-i915") Signed-off-by: Janusz Krzysztofik Cc: Riana Tauro --- lib/drmtest.c | 2 +- lib/i

[Intel-gfx] [PATCH 1/1] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-02-13 Thread Janusz Krzysztofik
Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v5.4 --- drivers/gpu/drm/i915/i915_active.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_active.c b/drivers/gpu/drm/i915/i915_active.c index 7412abf166a8c..f92

[Intel-gfx] [PATCH 0/1] drm/i915/active: Fix misuse of non-idle barriers as fence trackers

2023-02-13 Thread Janusz Krzysztofik
esting it with a new subtest igt@gem_barrier_race@remote-request, developed for that case, not yet in upstream IGT. I've selected trybot submission of the test, with the test added to BAT testlist, to get results from the widest possible HW range. Janusz Krzysztofik (1): drm/i915/active: Fix

Re: [Intel-gfx] [PATCH i-g-t] tests/i915_suspend: Free device list after *-without-i915 subtests

2023-02-13 Thread Janusz Krzysztofik
On Monday, 13 February 2023 10:51:39 CET Zbigniew Kempczyński wrote: > On Fri, Feb 10, 2023 at 10:33:21PM +0100, Janusz Krzysztofik wrote: > > On Thursday, 9 February 2023 20:32:31 CET Janusz Krzysztofik wrote: > > > If any of *-without-i915 subtests fails or skips for

Re: [Intel-gfx] [PATCH i-g-t v2 0/1] tests/i915/perf: Add stress / race exercises

2023-02-13 Thread Janusz Krzysztofik
On Friday, 10 February 2023 12:56:12 CET Janusz Krzysztofik wrote: > On Friday, 10 February 2023 12:21:58 CET Kamil Konieczny wrote: > > Hi, > > > > On 2023-02-10 at 08:53:12 +0100, Janusz Krzysztofik wrote: > > > Hi, > > > > > > On Thursday, 9 Feb

[Intel-gfx] [PATCH i-g-t v3 1/1] tests: Exercise remote request vs barrier handling race

2023-02-13 Thread Janusz Krzysztofik
. References: https://gitlab.freedesktop.org/drm/intel/-/issues/6333 Signed-off-by: Janusz Krzysztofik Cc: Chris Wilson Cc: Kamil Konieczny Cc: Ashutosh Dixit Cc: Umesh Nerlige Ramappa --- tests/i915/gem_barrier_race.c | 159 ++ tests/meson.build | 8

[Intel-gfx] [PATCH i-g-t v3 0/1] tests/i915/perf: Add stress / race exercises

2023-02-13 Thread Janusz Krzysztofik
subtest out of tests/i915/perf.c (Ashutosh). Janusz Krzysztofik (1): tests: Exercise remote request vs barrier handling race tests/i915/gem_barrier_race.c | 159 ++ tests/meson.build | 8 ++ 2 files changed, 167 insertions(+) create mode 100644

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t v2 1/1] tests/gem_ctx_exec: Exercise barrier race

2023-02-13 Thread Janusz Krzysztofik
Hi Umesh, On Friday, 10 February 2023 18:24:53 CET Umesh Nerlige Ramappa wrote: > On Fri, Feb 10, 2023 at 09:20:25AM -0800, Umesh Nerlige Ramappa wrote: > >On Thu, Feb 09, 2023 at 12:50:39PM +0100, Janusz Krzysztofik wrote: > >>Users reported oopses on list corruptions wh

Re: [Intel-gfx] [PATCH i-g-t] tests/i915_suspend: Free device list after *-without-i915 subtests

2023-02-10 Thread Janusz Krzysztofik
On Thursday, 9 February 2023 20:32:31 CET Janusz Krzysztofik wrote: > If any of *-without-i915 subtests fails or skips for any reason, it may > leave the i915 module unloaded while keeping our device list populated > with initially collected data. In a follow up igt_fixture section we t

Re: [Intel-gfx] [PATCH i-g-t] tests/i915_suspend: Free device list after *-without-i915 subtests

2023-02-10 Thread Janusz Krzysztofik
On Friday, 10 February 2023 15:02:59 CET Kamil Konieczny wrote: > Hi Janusz, > > I have one nit, see below. > > On 2023-02-09 at 20:32:31 +0100, Janusz Krzysztofik wrote: > > If any of *-without-i915 subtests fails or skips for any reason, it may > > leave the i915 mo

Re: [Intel-gfx] [PATCH i-g-t v2 0/1] tests/i915/perf: Add stress / race exercises

2023-02-10 Thread Janusz Krzysztofik
On Friday, 10 February 2023 12:21:58 CET Kamil Konieczny wrote: > Hi, > > On 2023-02-10 at 08:53:12 +0100, Janusz Krzysztofik wrote: > > Hi, > > > > On Thursday, 9 February 2023 12:50:38 CET Janusz Krzysztofik wrote: > > > Users reported oopses on l

Re: [Intel-gfx] [PATCH i-g-t v2 0/1] tests/i915/perf: Add stress / race exercises

2023-02-09 Thread Janusz Krzysztofik
Hi, On Thursday, 9 February 2023 12:50:38 CET Janusz Krzysztofik wrote: > Users reported oopses on list corruptions when using i915 perf with a > number of concurrently running graphics applications. That indicates we > are currently missing some important tests for such scenario

[Intel-gfx] [PATCH i-g-t] tests/i915_suspend: Free device list after *-without-i915 subtests

2023-02-09 Thread Janusz Krzysztofik
Fixes: f7aff600ab16 ("tests/i915/i915_suspend: Disable d3cold_allowed for basic-s2idle-without-i915") Signed-off-by: Janusz Krzysztofik Cc: Riana Tauro --- lib/drmtest.c | 2 +- lib/igt_device_scan.c | 4 tests/i915/i915_suspend.c | 10 +- 3 files change

[Intel-gfx] [PATCH i-g-t v2 1/1] tests/gem_ctx_exec: Exercise barrier race

2023-02-09 Thread Janusz Krzysztofik
/gem_ctx_exec.c. References: https://gitlab.freedesktop.org/drm/intel/-/issues/6333 Signed-off-by: Janusz Krzysztofik --- tests/i915/gem_ctx_exec.c | 123 ++ tests/meson.build | 9 ++- 2 files changed, 131 insertions(+), 1 deletion(-) diff --git a/tests/i915

[Intel-gfx] [PATCH i-g-t v2 0/1] tests/i915/perf: Add stress / race exercises

2023-02-09 Thread Janusz Krzysztofik
reported bug, but triggering other bugs which I can't see any fixes for queued yet, - move the other new subtest out of tests/i915/perf.c (Ashutosh). Janusz Krzysztofik (1): tests/gem_ctx_exec: Exercise barrier race tests/i915/gem_ctx_exec.c | 123

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 0/2] tests/i915/perf: Add stress / race exercises

2023-02-03 Thread Janusz Krzysztofik
Hi Umesh, Thanks for taking a look. On Friday, 3 February 2023 20:21:38 CET Umesh Nerlige Ramappa wrote: > On Tue, Jan 31, 2023 at 10:17:29AM +0100, Janusz Krzysztofik wrote: > >Users reported oopses on list corruptions when using i915 perf with a > >number of concurrently r

Re: [Intel-gfx] [PATCH i-g-t 2/2] tests/i915/perf: Exercise barrier race

2023-02-01 Thread Janusz Krzysztofik
Hi Kamil, On Wednesday, 1 February 2023 19:21:57 CET Kamil Konieczny wrote: > Hi Janusz, > > please send patches to igt ML and add other addresses to cc: > I have one nit, see below. > > On 2023-01-31 at 10:17:31 +0100, Janusz Krzysztofik wrote: > > Add a new subte

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 0/2] tests/i915/perf: Add stress / race exercises

2023-02-01 Thread Janusz Krzysztofik
Hi Ashutosh, On Tuesday, 31 January 2023 19:36:50 CET Dixit, Ashutosh wrote: > On Tue, 31 Jan 2023 09:36:30 -0800, Janusz Krzysztofik wrote: > > > > Since Chris' subtest didn't help in triggering the list corruption, I've > > developed a new subtest that can do it. Since i

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 0/2] tests/i915/perf: Add stress / race exercises

2023-01-31 Thread Janusz Krzysztofik
On Tuesday, 31 January 2023 17:55:54 CET Dixit, Ashutosh wrote: > On Tue, 31 Jan 2023 08:19:48 -0800, Dixit, Ashutosh wrote: > > > > On Tue, 31 Jan 2023 01:17:29 -0800, Janusz Krzysztofik wrote: > > > > > > > Hi Janusz, > > > > > Users repor

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 0/2] tests/i915/perf: Add stress / race exercises

2023-01-31 Thread Janusz Krzysztofik
On Tuesday, 31 January 2023 17:19:48 CET Dixit, Ashutosh wrote: > On Tue, 31 Jan 2023 01:17:29 -0800, Janusz Krzysztofik wrote: > > > > Hi Janusz, > > > Users reported oopses on list corruptions when using i915 perf with a > > number of concurrently running graphics

Re: [Intel-gfx] [PATCH i-g-t 1/2] i915/perf: Stress opening of new perf streams against existing contexts

2023-01-31 Thread Janusz Krzysztofik
Hi Kamil, Thanks for review. On Tuesday, 31 January 2023 12:59:10 CET Kamil Konieczny wrote: ... > > @@ -5259,6 +5324,15 @@ igt_main > > igt_subtest("whitelisted-registers-userspace-config") > > test_whitelisted_registers_userspace_config(); > > > > Please add description to

[Intel-gfx] [PATCH i-g-t 2/2] tests/i915/perf: Exercise barrier race

2023-01-31 Thread Janusz Krzysztofik
/-/issues/6333 Signed-off-by: Janusz Krzysztofik Cc: Chris Wilson --- tests/i915/perf.c | 41 +++-- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/tests/i915/perf.c b/tests/i915/perf.c index e33cacc443..11a3ec21ab 100644 --- a/tests/i915/perf.c

[Intel-gfx] [PATCH i-g-t 1/2] i915/perf: Stress opening of new perf streams against existing contexts

2023-01-31 Thread Janusz Krzysztofik
-by: Chris Wilson Signed-off-by: Janusz Krzysztofik Cc: Andi Shyti --- tests/i915/perf.c | 74 +++ 1 file changed, 74 insertions(+) diff --git a/tests/i915/perf.c b/tests/i915/perf.c index dd1f1ac399..e33cacc443 100644 --- a/tests/i915/perf.c +++ b/tests

[Intel-gfx] [PATCH i-g-t 0/2] tests/i915/perf: Add stress / race exercises

2023-01-31 Thread Janusz Krzysztofik
existing contexts Janusz Krzysztofik (1): tests/i915/perf: Exercise barrier race tests/i915/perf.c | 111 ++ 1 file changed, 111 insertions(+) -- 2.25.1

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915: Never return 0 if not all requests retired

2022-11-24 Thread Janusz Krzysztofik
On Wednesday, 23 November 2022 13:57:26 CET Tvrtko Ursulin wrote: > > On 23/11/2022 09:28, Janusz Krzysztofik wrote: > > Hi Tvrtko, > > > > Thanks for your comments. > > > > On Tuesday, 22 November 2022 11:50:38 CET Tvrtko Ursulin wrote: > >> >

Re: [Intel-gfx] [PATCH v3 1/2] drm/i915: Fix negative value passed as remaining time

2022-11-23 Thread Janusz Krzysztofik
On Tuesday, 22 November 2022 11:41:29 CET Tvrtko Ursulin wrote: > > On 21/11/2022 23:19, Janusz Krzysztofik wrote: > > Hi Andrzej, > > > > Thanks for providing your R-b. > > > > On Monday, 21 November 2022 18:40:51 CET Andrzej Hajda wrote: > >>

Re: [Intel-gfx] [PATCH v3 2/2] drm/i915: Never return 0 if not all requests retired

2022-11-23 Thread Janusz Krzysztofik
Hi Tvrtko, Thanks for your comments. On Tuesday, 22 November 2022 11:50:38 CET Tvrtko Ursulin wrote: > > On 21/11/2022 14:56, Janusz Krzysztofik wrote: > > Users of intel_gt_retire_requests_timeout() expect 0 return value on > > success. However, we have no protection f

Re: [Intel-gfx] [PATCH v3 1/2] drm/i915: Fix negative value passed as remaining time

2022-11-21 Thread Janusz Krzysztofik
Hi Andrzej, Thanks for providing your R-b. On Monday, 21 November 2022 18:40:51 CET Andrzej Hajda wrote: > On 21.11.2022 15:56, Janusz Krzysztofik wrote: > > Commit b97060a99b01 ("drm/i915/guc: Update intel_gt_wait_for_idle to work > > with Gu

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: Never return 0 if not all requests retired

2022-11-21 Thread Janusz Krzysztofik
Hajda wrote: > On 21.11.2022 11:59, Janusz Krzysztofik wrote: > > On Monday, 21 November 2022 11:51:15 CET Janusz Krzysztofik wrote: > >> Hi Andrzej, > >> > >> Thanks for your comment. > >> > >> On Monday, 21 November 2022 11:17:42 CET Andrze

[Intel-gfx] [PATCH v3 2/2] drm/i915: Never return 0 if not all requests retired

2022-11-21 Thread Janusz Krzysztofik
() is not affected. Fixes: f33a8a51602c ("drm/i915: Merge wait_for_timelines with retire_request") Signed-off-by: Janusz Krzysztofik Reviewed-by: Andrzej Hajda Cc: sta...@vger.kernel.org # v5.5+ --- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[Intel-gfx] [PATCH v3 0/2] drm/i915: Fix timeout handling when retiring requests

2022-11-21 Thread Janusz Krzysztofik
. Janusz Krzysztofik (2): drm/i915: Fix negative value passed as remaining time drm/i915: Never return 0 if not all requests retired drivers/gpu/drm/i915/gt/intel_gt.c | 9 +++-- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions

[Intel-gfx] [PATCH v3 1/2] drm/i915: Fix negative value passed as remaining time

2022-11-21 Thread Janusz Krzysztofik
d back via remaining_timeout. v2: Fix the issue on the caller side, not the provider. Fixes: b97060a99b01 ("drm/i915/guc: Update intel_gt_wait_for_idle to work with GuC") Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v5.15+ --- drivers/gpu/drm/i915/gt/intel_gt.c | 9 +

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: Never return 0 if not all requests retired

2022-11-21 Thread Janusz Krzysztofik
On Monday, 21 November 2022 11:51:15 CET Janusz Krzysztofik wrote: > Hi Andrzej, > > Thanks for your comment. > > On Monday, 21 November 2022 11:17:42 CET Andrzej Hajda wrote: > > > > On 21.11.2022 09:30, Janusz Krzysztofik wrote: > > > Hi Ni

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: Never return 0 if not all requests retired

2022-11-21 Thread Janusz Krzysztofik
Hi Andrzej, Thanks for your comment. On Monday, 21 November 2022 11:17:42 CET Andrzej Hajda wrote: > > On 21.11.2022 09:30, Janusz Krzysztofik wrote: > > Hi Nimroy, > > > > Thanks for looking at this. > > > > On Friday, 18 November 2022 20:56:50 CET Das, Ni

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915: Fix negative value passed as remaining time

2022-11-21 Thread Janusz Krzysztofik
On Friday, 18 November 2022 11:42:21 CET Janusz Krzysztofik wrote: > Commit b97060a99b01 ("drm/i915/guc: Update intel_gt_wait_for_idle to work > with GuC") extended the API of intel_gt_retire_requests_timeout() with an > extra argument 'remaining_timeout', intended for pass

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: Never return 0 if not all requests retired

2022-11-21 Thread Janusz Krzysztofik
Hi Nimroy, Thanks for looking at this. On Friday, 18 November 2022 20:56:50 CET Das, Nirmoy wrote: > > On 11/18/2022 11:42 AM, Janusz Krzysztofik wrote: > > Users of intel_gt_retire_requests_timeout() expect 0 return value on > > success. However, we have no protection f

[Intel-gfx] [PATCH v2 2/2] drm/i915: Never return 0 if not all requests retired

2022-11-18 Thread Janusz Krzysztofik
the timeout value as return code, so -ETIME is returned if there are still some requests not retired after timeout, 0 otherwise. v2: Move the added lines down so flush_submission() is not affected. Fixes: f33a8a51602c ("drm/i915: Merge wait_for_timelines with retire_request") Signed-off-

[Intel-gfx] [PATCH v2 1/2] drm/i915: Fix negative value passed as remaining time

2022-11-18 Thread Janusz Krzysztofik
7060a99b01 ("drm/i915/guc: Update intel_gt_wait_for_idle to work with GuC") Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v5.15+ --- drivers/gpu/drm/i915/gt/intel_gt.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/i

[Intel-gfx] [PATCH v2 0/2] drm/i915: Fix timeout handling when retiring requests

2022-11-18 Thread Janusz Krzysztofik
() is not affected, reword commit message and description. PATCH 3: drop -- controversial, not needed. Janusz Krzysztofik (2): drm/i915: Fix negative value passed as remaining time drm/i915: Never return 0 if not all requests retired drivers/gpu/drm/i915/gt/intel_gt.c | 11

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Never return 0 if request wait succeeds

2022-11-16 Thread Janusz Krzysztofik
On Wednesday, 16 November 2022 15:42:46 CET Andrzej Hajda wrote: > On 16.11.2022 12:25, Janusz Krzysztofik wrote: > > According to the docs of i915_request_wait_timeout(), its return value > > "may be zero if the request is unfinished after the timeout expires." > &

[Intel-gfx] [PATCH 3/3] drm/i915: Never return 0 if request wait succeeds

2022-11-16 Thread Janusz Krzysztofik
he timeout is 0, it will return 1 if the fence is signaled.", return 1 also when the fence is found signaled after non-zero timeout has expired. Fixes: 7e2e69ed4678 ("drm/i915: Fix i915_request fence wait semantics") Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v

[Intel-gfx] [PATCH 2/3] drm/i915: Never return 0 on timeout when retiring requests

2022-11-16 Thread Janusz Krzysztofik
Merge wait_for_timelines with retire_request") Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v5.5+ --- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_gt_requests.c b/drivers/gpu/drm/i915/gt/intel_gt_

[Intel-gfx] [PATCH 1/3] drm/i915: Fix negative remaining time after retire requests

2022-11-16 Thread Janusz Krzysztofik
ot;drm/i915/guc: Update intel_gt_wait_for_idle to work with GuC") Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v5.15+ --- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 23 ++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/dri

[Intel-gfx] [PATCH 0/3] drm/i915: Fix timeout handling when retiring requests

2022-11-16 Thread Janusz Krzysztofik
this series and individual patches as v2. Janusz Krzysztofik (3): drm/i915: Fix negative remaining time after retire requests drm/i915: Never return 0 on timeout when retiring requests drm/i915: Never return 0 if request wait succeeds drivers/gpu/drm/i915/gt/intel_gt_requests.c | 26

[Intel-gfx] [PATCH] drm/i915: Fix build failure with debug and extra logging enabled

2022-11-15 Thread Janusz Krzysztofik
A comma is missing, fix it. Signed-off-by: Janusz Krzysztofik --- drivers/gpu/drm/i915/i915_vma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c index 3b969d679c1e2..947fde68e5f53 100644 --- a/drivers/gpu/drm

Re: [Intel-gfx] [PATCH 0/3] Fix timeout handling when retiring requests

2022-11-10 Thread Janusz Krzysztofik
On Wednesday, 9 November 2022 20:09:34 CET Janusz Krzysztofik wrote: > Fixes for issues discovered via code review while working on > https://gitlab.freedesktop.org/drm/intel/issues/7349. > > Janusz Krzysztofik (3): > drm/i915: Fix timeout handling when retiring requests &g

[Intel-gfx] [PATCH 3/3] drm/i915: Fix 0 return value from DMA fence wait on i915 requests

2022-11-09 Thread Janusz Krzysztofik
uccess, don't touch it, update the i915_fence_wait() wrapper instead. Return 1 instead of 0, but keep -ETIME in case of timeout since some i915 users of dma_fence_wait_timeout() may expect it. Signed-off-by: Janusz Krzysztofik --- drivers/gpu/drm/i915/i915_request.c | 2 +- 1 file changed, 1 ins

[Intel-gfx] [PATCH 2/3] drm/i915: Fix unintended submission flush after retire times out

2022-11-09 Thread Janusz Krzysztofik
was intended. Fix it by replacing -ETIME value of the argument with 0. Fixes: 09137e945437 ("drm/i915/gem: Unpin idle contexts from kswapd reclaim") Signed-off-by: Janusz Krzysztofik --- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Intel-gfx] [PATCH 1/3] drm/i915: Fix timeout handling when retiring requests

2022-11-09 Thread Janusz Krzysztofik
lines with retire_request") Signed-off-by: Janusz Krzysztofik Cc: sta...@vger.kernel.org # v5.5+ --- drivers/gpu/drm/i915/gt/intel_gt_requests.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_gt_requests.c b/drivers/gpu/d

[Intel-gfx] [PATCH 0/3] Fix timeout handling when retiring requests

2022-11-09 Thread Janusz Krzysztofik
Fixes for issues discovered via code review while working on https://gitlab.freedesktop.org/drm/intel/issues/7349. Janusz Krzysztofik (3): drm/i915: Fix timeout handling when retiring requests drm/i915: Fix unintended submission flush after retire times out drm/i915: Fix 0 return value from

Re: [Intel-gfx] [core-for-CI][PATCH] iommu: Remove iova cpu hotplugging flushing

2022-09-30 Thread Janusz Krzysztofik
I think this issue can hit any user with a platform that loads iommu and coretemp drivers. Adding regressi...@lists.linux.dev to the loop. Thanks, Janusz On Thursday, 22 September 2022 14:09:35 CEST Robin Murphy wrote: > On 22/09/2022 11:10 am, Janusz Krzysztofik wrote: > > From: Chr

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for iommu: Remove iova cpu hotplugging flushing (rev2)

2022-09-29 Thread Janusz Krzysztofik
On Thursday, 29 September 2022 11:35:23 CEST Patchwork wrote: > == Series Details == > > Series: iommu: Remove iova cpu hotplugging flushing (rev2) > URL : https://patchwork.freedesktop.org/series/108880/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_12193_full ->

Re: [Intel-gfx] [core-for-CI][PATCH v2 0/2] iommu: Remove iova cpu hotplugging flushing

2022-09-28 Thread Janusz Krzysztofik
On Wednesday, 28 September 2022 11:22:21 CEST Tvrtko Ursulin wrote: > > On 28/09/2022 09:58, Janusz Krzysztofik wrote: > > Manual revert of commit f598a497bc7d ("iova: Add CPU hotplug handler to > > flush rcaches"). It is trying to instantiate a cpuhp notifier from

[Intel-gfx] [core-for-CI][PATCH v2 1/2] iommu: Remove iova cpu hotplugging flushing

2022-09-28 Thread Janusz Krzysztofik
+0x3c1/0x900 <4>[6.961106] ? dev_set_name+0x4e/0x70 <4>[6.961109] platform_device_add+0x108/0x240 <4>[6.961112] coretemp_cpu_online+0xe1/0x15e [coretemp] <4>[6.961117] ? create_core_data+0x550/0x550 [coretemp] <4>[6.961120] cpuhp_invoke_callback+

[Intel-gfx] [core-for-CI][PATCH v2 0/2] iommu: Remove iova cpu hotplugging flushing

2022-09-28 Thread Janusz Krzysztofik
tter in place. Note: I'm no longer CCing IOMMU nor mainstream, they have been already warned. Chris Wilson (1): iommu: Remove iova cpu hotplugging flushing Janusz Krzysztofik (1): Restore "iommu/dma: Fix race condition during iova_domain initialization" d

[Intel-gfx] [core-for-CI][PATCH v2 2/2] Restore "iommu/dma: Fix race condition during iova_domain initialization"

2022-09-28 Thread Janusz Krzysztofik
This reverts commit bc79ef6d5a223ea59acf874f0493b79c835b17d4 that reverted commit ac9a5d522bb80be50ea84965699e1c8257d745ce. That revert is no longer needed with "iommu: Remove iova cpu hotplugging flushing" in place that breaks more instances of the same lockdep loop. Signed-off-

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for iommu: Remove iova cpu hotplugging flushing

2022-09-23 Thread Janusz Krzysztofik
On Thursday, 22 September 2022 21:18:51 CEST Patchwork wrote: > == Series Details == > > Series: iommu: Remove iova cpu hotplugging flushing > URL : https://patchwork.freedesktop.org/series/108880/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_12166_full ->

Re: [Intel-gfx] [core-for-CI][PATCH] iommu: Remove iova cpu hotplugging flushing

2022-09-22 Thread Janusz Krzysztofik
On Thursday, 22 September 2022 14:09:35 CEST Robin Murphy wrote: > On 22/09/2022 11:10 am, Janusz Krzysztofik wrote: > > From: Chris Wilson > > > > Manual revert of commit f598a497bc7d ("iova: Add CPU hotplug handler to > > flush rcaches"). It is trying

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for iommu: Remove iova cpu hotplugging flushing

2022-09-22 Thread Janusz Krzysztofik
On Thursday, 22 September 2022 12:50:05 CEST Patchwork wrote: > == Series Details == > > Series: iommu: Remove iova cpu hotplugging flushing > URL : https://patchwork.freedesktop.org/series/108880/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_12166 ->

[Intel-gfx] [core-for-CI][PATCH] iommu: Remove iova cpu hotplugging flushing

2022-09-22 Thread Janusz Krzysztofik
+0x3c1/0x900 <4>[6.961106] ? dev_set_name+0x4e/0x70 <4>[6.961109] platform_device_add+0x108/0x240 <4>[6.961112] coretemp_cpu_online+0xe1/0x15e [coretemp] <4>[6.961117] ? create_core_data+0x550/0x550 [coretemp] <4>[6.961120] cpuhp_invoke_callback+

Re: [Intel-gfx] [topic/core-for-CI] Revert "iommu/dma: Fix race condition during iova_domain initialization"

2022-09-21 Thread Janusz Krzysztofik
Hi Robin, On Wednesday, 14 September 2022 17:54:36 CEST Robin Murphy wrote: > On 2022-09-14 16:01, Lucas De Marchi wrote: > > On Wed, Sep 14, 2022 at 02:40:45PM +0200, Karolina Drobnik wrote: > >> This reverts commit ac9a5d522bb80be50ea84965699e1c8257d745ce. > >> > >> This change introduces a

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/gem: Really move i915_gem_context.link under ref protection (rev4)

2022-09-16 Thread Janusz Krzysztofik
On Friday, 16 September 2022 17:12:30 CEST Patchwork wrote: > == Series Details == > > Series: drm/i915/gem: Really move i915_gem_context.link under ref protection > (rev4) > URL : https://patchwork.freedesktop.org/series/105975/ > State : failure > > == Summary == > > CI Bug Log - changes

[Intel-gfx] [PATCH v3 2/2] drm/i915/gem: Really move i915_gem_context.link under ref protection

2022-09-16 Thread Janusz Krzysztofik
d9a9 ("drm/i915/gem: Drop free_work for GEM contexts") Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti Signed-off-by: Andi Shyti Signed-off-by: Janusz Krzysztofik Cc: Tvrtko Ursulin Cc: # v5.12+ --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 8 1 file changed, 4 insert

[Intel-gfx] [PATCH v3 1/2] drm/i915/gem: Flush contexts on driver release

2022-09-16 Thread Janusz Krzysztofik
per around it, replace last call to i915_gem_drain_freed_objects() with existing i915_gem_drain_workqueue() that performs both tasks. Fixes: 75eefd82581f ("drm/i915: Release i915_gem_context from a worker") Suggested-by: Chris Wilson Signed-off-by: Janusz Krzysztofik Reviewed-by: Andi S

[Intel-gfx] [PATCH v3 0/2] drm/i915/gem: Really move i915_gem_context.link under ref protection

2022-09-16 Thread Janusz Krzysztofik
. Unfortunately, it is not flushed on driver release. Fix it. Chris Wilson (1): drm/i915/gem: Really move i915_gem_context.link under ref protection Janusz Krzysztofik (1): drm/i915/gem: Flush contexts on driver release drivers/gpu/drm/i915/gem/i915_gem_context.c | 8 drivers/gpu/drm/

Re: [Intel-gfx] [PATCH v2 1/4] drm/i915/gt: Cleanup partial engine discovery failures

2022-09-16 Thread Janusz Krzysztofik
' and so will leak any of the > common objects allocated. > > v2: > - Drop the destroy_pinned_context() helper for now. It's not really >worth it with just a single callsite at the moment. (Janusz) > > Signed-off-by: Chris Wilson > Cc: Janusz Krzysztofik > Si

Re: [Intel-gfx] [PATCH v2 0/2] drm/i915/gem: Really move i915_gem_context.link under ref protection

2022-09-16 Thread Janusz Krzysztofik
Please ignore this series, it has issues. I'll update it and resubmit. Thanks, Janusz On Thursday, 15 September 2022 18:52:08 CEST Janusz Krzysztofik wrote: > i915_perf assumes that it can use the i915_gem_context reference to > protect its i915->gem.contexts.list iteration

[Intel-gfx] [PATCH v2 2/2] drm/i915/gem: Really move i915_gem_context.link under ref protection

2022-09-15 Thread Janusz Krzysztofik
gned-off-by: Chris Wilson Reviewed-by: Andi Shyti Signed-off-by: Andi Shyti Signed-off-by: Janusz Krzysztofik Cc: Tvrtko Ursulin Cc: # v5.12+ --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_ge

[Intel-gfx] [PATCH v2 1/2] drm/i915/gem: Flush contexts on driver release

2022-09-15 Thread Janusz Krzysztofik
per around it, replace last call to i915_gem_drain_freed_objects() with existing i915_gem_drain_workqueue() that performs both tasks. Fixes: 75eefd82581f ("drm/i915: Release i915_gem_context from a worker") Suggested-by: Chris Wilson Signed-off-by: Janusz Krzysztofik Reviewed-by: Andi S

[Intel-gfx] [PATCH v2 0/2] drm/i915/gem: Really move i915_gem_context.link under ref protection

2022-09-15 Thread Janusz Krzysztofik
. Unfortunately, it is not flushed on driver release. Fix it. Chris Wilson (1): drm/i915/gem: Really move i915_gem_context.link under ref protection Janusz Krzysztofik (1): drm/i915/gem: Flush contexts on driver release drivers/gpu/drm/i915/gem/i915_gem_context.c | 8 drivers/gpu/drm/

Re: [Intel-gfx] [PATCH 1/4] drm/i915/gt: Cleanup partial engine discovery failures

2022-09-15 Thread Janusz Krzysztofik
se == NULL' and so will leak any of the > common objects allocated. > > Signed-off-by: Chris Wilson > Cc: Janusz Krzysztofik > Signed-off-by: Matt Roper > --- > drivers/gpu/drm/i915/gt/intel_engine_cs.c | 16 +--- > 1 file changed, 13 insertions(+), 3 dele

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gem: Really move i915_gem_context.link under ref protection

2022-09-14 Thread Janusz Krzysztofik
Hi Tvrtko, Thanks for review. On Wednesday, 14 September 2022 17:37:19 CEST Tvrtko Ursulin wrote: > > On 13/09/2022 17:10, Janusz Krzysztofik wrote: > > From: Chris Wilson > > > > i915_perf assumes that it can use the i915_gem_context reference to > > prote

Re: [Intel-gfx] [PATCH 2/2] drm/i915/gem: Really move i915_gem_context.link under ref protection

2022-09-14 Thread Janusz Krzysztofik
On Wednesday, 14 September 2022 17:15:02 CEST Andi Shyti wrote: > Hi Krzysztofik, > > if you are going to resend it, I just have a little thing if you > don't mind, > > On Tue, Sep 13, 2022 at 06:10:39PM +0200, Janusz Krzysztofik wrote: > > From: Chris Wilson &g

[Intel-gfx] [PATCH 1/2] drm/i915/gem: Flush contexts on driver release

2022-09-13 Thread Janusz Krzysztofik
per around it, replace last call to i915_gem_drain_freed_objects() with existing i915_gem_drain_workqueue() that performs both tasks. Fixes: 75eefd82581f ("drm/i915: Release i915_gem_context from a worker") Suggested-by: Chris Wilson Signed-off-by: Janusz Krzysztofik Cc: sta...@kerne

[Intel-gfx] [PATCH 2/2] drm/i915/gem: Really move i915_gem_context.link under ref protection

2022-09-13 Thread Janusz Krzysztofik
15/gem: Drop free_work for GEM contexts") Signed-off-by: Chris Wilson Reviewed-by: Andi Shyti Signed-off-by: Andi Shyti Signed-off-by: Janusz Krzysztofik Cc: Tvrtko Ursulin Cc: # v5.12+ --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 14 +++--- drivers/gpu/d

[Intel-gfx] [PATCH 0/2] drm/i915/gem: Really move i915_gem_context.link under ref protection

2022-09-13 Thread Janusz Krzysztofik
. Unfortunately, it is not flushed on driver release. Fix it. Chris Wilson (1): drm/i915/gem: Really move i915_gem_context.link under ref protection Janusz Krzysztofik (1): drm/i915/gem: Flush contexts on driver release drivers/gpu/drm/i915/gem/i915_gem_context.c | 14 +++--- drive

[Intel-gfx] [PATCH i-g-t 4/4] tests/core_hotunplug: Select health checks for initially detected chipset

2022-09-13 Thread Janusz Krzysztofik
result in using different set of health checks should device filters not work as expected. Always use the stored chipset type instead of identifying it now and again. Signed-off-by: Janusz Krzysztofik --- tests/core_hotunplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests

<    1   2   3   4   5   6   7   8   9   >