[Intel-gfx] [RESUBMIT][PATCH 1/2] drm/i915/gem: Avoid taking runtime-pm under the shrinker

2022-07-29 Thread Janusz Krzysztofik
CPU1 <4> [437.542719] <4> [437.542721] lock(fs_reclaim); <4> [437.542725] lock(acpi_device_lock); <4> [437.542728]lock(fs_reclaim); <4> [437.542732] lock(a

[Intel-gfx] [RESUBMIT][PATCH 2/2] drm/i915/gem: Perform active shrinking from a background thread

2022-07-29 Thread Janusz Krzysztofik
://gitlab.freedesktop.org/drm/intel/-/issues/6449 Fixes: 178a30c90ac7 ("drm/i915: Unbind objects in shrinker only if device is runtime active") Signed-off-by: Chris Wilson Cc: Thomas Hellström Cc: Matthew Auld Cc: Tvrtko Ursulin Cc: sta...@vger.kernel.org # v4.8+ Signed-off-by: Janusz Krzysztofik --

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gem: Avoid taking runtime-pm under the shrinker

2022-07-29 Thread Janusz Krzysztofik
Hi Matthew, Thanks for review. On Tuesday, 26 July 2022 20:14:05 CEST Matthew Auld wrote: > On 20/07/2022 11:16, Janusz Krzysztofik wrote: > > From: Chris Wilson > > > > Inside the shrinker, we cannot wake the device as that may cause > > recursion into fs-reclaim

Re: [Intel-gfx] [PATCH i-g-t 1/3] tests/gem_exec_fence: Fix wrong engine checked for store_dword capability

2022-08-18 Thread Janusz Krzysztofik
Hi Mauro, Thanks for reviewing this series, I've just pushed it. On Wednesday, 17 August 2022 14:53:48 CEST Mauro Carvalho Chehab wrote: > Hi Janusz, > > On Fri, 12 Aug 2022 11:53:44 +0200 > Janusz Krzysztofik wrote: > > It seems that there is a numeration issue on this seri

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 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-

[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

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] [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

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] ✗ 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

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

[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/

[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 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] [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] [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 ->

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 i-g-t 3/4] tests/core_hotunplug: Don't apply i915 workarounds on other platforms

2022-09-13 Thread Janusz Krzysztofik
e the same. Since we care for other platforms using this test and contributing to it, not developing their own, keep i915 workarounds limited to i915 devices. Signed-off-by: Janusz Krzysztofik --- tests/core_hotunplug.c | 58 +++--- 1 file changed, 32 inserti

[Intel-gfx] [PATCH i-g-t 1/4] tests/core_hotunplug: Free mem allocated by igt_audio_driver_unload

2022-09-13 Thread Janusz Krzysztofik
Since we pass NULL to igt_audio_driver_unload(), realloc() it calls allocates new memory for us. Free it each time we no longer need it, before dropping a pointer to it, to avoid memory leaking. Signed-off-by: Janusz Krzysztofik --- tests/core_hotunplug.c | 1 + 1 file changed, 1 insertion

[Intel-gfx] [PATCH i-g-t 2/4] tests/core_hotunplug: Also unload audio before device unplug

2022-09-13 Thread Janusz Krzysztofik
uffer from issues related to an audio driver using i915 hardware. Fix it by adding a copy of the workaround in its current shape also to device_unplug() / bus_rescan() pair of functions. Signed-off-by: Janusz Krzysztofik --- tests/core_hotunplug.c | 22 ++ 1 file changed, 22

[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

[Intel-gfx] [PATCH i-g-t 0/4] tests/core_hotunplug: A couple of fixes and enhancements

2022-09-13 Thread Janusz Krzysztofik
Janusz Krzysztofik (4): tests/core_hotunplug: Free mem allocated by igt_audio_driver_unload tests/core_hotunplug: Also unload audio before device unplug tests/core_hotunplug: Don't apply i915 workarounds on other platforms tests/core_hotunplug: Select health checks for initially detected

[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 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 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

[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 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 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

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] ✗ 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] 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

[Intel-gfx] [PATCH i-g-t 3/3] tests/gem_exec_fence: Restore pre-hang checks in *await-hang scenarios

2022-08-05 Thread Janusz Krzysztofik
t in place, the test is able to check synchronously if execution of dependent test batches is still blocked on the not yet signaled fence of the not yet completed spin batch, as it does in counterpart non-hanging scenarios. Signed-off-by: Janusz Krzysztofik --- tests/i915/gem_exec_fe

[Intel-gfx] [PATCH i-g-t 2/3] tests/gem_exec_fence: Exclude 0 from use in store batches

2022-08-05 Thread Janusz Krzysztofik
When i == 0, condition out[i] == i will be true even if a batch supposed to store i in out[i] fails. Don't use 0. Signed-off-by: Janusz Krzysztofik --- tests/i915/gem_exec_fence.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/i915/gem_exec_fence.c b

[Intel-gfx] [PATCH i-g-t 1/3] tests/gem_exec_fence: Fix wrong engine checked for store_dword capability

2022-08-05 Thread Janusz Krzysztofik
it. Signed-off-by: Janusz Krzysztofik --- tests/i915/gem_exec_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/i915/gem_exec_fence.c b/tests/i915/gem_exec_fence.c index 7ff7614dad..048870053a 100644 --- a/tests/i915/gem_exec_fence.c +++ b/tests/i915/gem_exec_f

[Intel-gfx] [PATCH i-g-t v2 3/3] tests/gem_exec_fence: Restore pre-hang checks in *await-hang scenarios

2022-08-05 Thread Janusz Krzysztofik
t in place, the test is able to check synchronously if execution of dependent test batches is still blocked on the not yet signaled fence of the not yet completed spin batch, as it does in counterpart non-hanging scenarios. v2: preserve checking the pipeline runs ahead of the hang (Chris) Signed-off-

[Intel-gfx] [PATCH i-g-t v2 2/3] tests/gem_exec_fence: Exclude 0 from use in store batches

2022-08-05 Thread Janusz Krzysztofik
When i = 0, condition out[i] == i will be true even if a batch supposed to store i in out[i] fails. Don't use i = 0 in batches that store values in out[i]. v2: still check for out[0] == 0 (Chris) Signed-off-by: Janusz Krzysztofik --- tests/i915/gem_exec_fence.c | 13 - 1 file

[Intel-gfx] [PATCH i-g-t 1/3] tests/gem_exec_fence: Fix wrong engine checked for store_dword capability

2022-08-05 Thread Janusz Krzysztofik
it. Signed-off-by: Janusz Krzysztofik --- tests/i915/gem_exec_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/i915/gem_exec_fence.c b/tests/i915/gem_exec_fence.c index 7ff7614dad..048870053a 100644 --- a/tests/i915/gem_exec_fence.c +++ b/tests/i915/gem_exec_f

[Intel-gfx] [PATCH i-g-t v3 3/3] tests/gem_exec_fence: Restore pre-hang checks in *await-hang scenarios

2022-08-12 Thread Janusz Krzysztofik
runs ahead of the hang (Chris) v3: use a more simple 'best effort' approach suggested by Chris Signed-off-by: Janusz Krzysztofik Cc: Chris Wilson Cc: Mauro Carvalho Chehab --- tests/i915/gem_exec_fence.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/

[Intel-gfx] [PATCH i-g-t 1/3] tests/gem_exec_fence: Fix wrong engine checked for store_dword capability

2022-08-12 Thread Janusz Krzysztofik
it. Signed-off-by: Janusz Krzysztofik Cc: Mauro Carvalho Chehab --- tests/i915/gem_exec_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/i915/gem_exec_fence.c b/tests/i915/gem_exec_fence.c index 7ff7614dad..048870053a 100644 --- a/tests/i915/gem_exec_fence.c

[Intel-gfx] [PATCH i-g-t v2 2/3] tests/gem_exec_fence: Exclude 0 from use in store batches

2022-08-12 Thread Janusz Krzysztofik
When i = 0, condition out[i] == i will be true even if a batch supposed to store i in out[i] fails. Don't use i = 0 in batches that store values in out[i]. v2: still check for out[0] == 0 (Chris) Signed-off-by: Janusz Krzysztofik Cc: Chris Wilson Cc: Mauro Carvalho Chehab --- tests/i915

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 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 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 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 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

[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 +

[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 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(-)

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 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 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 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 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 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 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

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

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 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-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: > >>

[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

[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 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

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 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 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 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

[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] 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 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

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 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] [PATCH] drm/i915/active: Fix missing debug object activation

2023-03-10 Thread Janusz Krzysztofik
Hi Nirmoy, On Friday, 10 March 2023 15:11:38 CET Nirmoy Das wrote: > debug_active_activate() expected ref->count to be zero > which is not true anymore as __i915_active_activate() calls > debug_active_activate() after incrementing the count. > > Fixes: 04240e30ed06 ("drm/i915: Skip taking

Re: [Intel-gfx] [PATCH v2] drm/i915/active: Fix missing debug object activation

2023-03-13 Thread Janusz Krzysztofik
r "ref->count == 1" as __i915_active_activate() > already make sure of that. > > Fixes: 04240e30ed06 ("drm/i915: Skip taking acquire mutex for no ref->active > callback") > Cc: Chris Wilson > Cc: Tvrtko Ursulin > Cc: Thomas Hellström > Cc: Andi Shyti > Cc: i

Re: [Intel-gfx] [PATCH] drm/i915/active: Fix missing debug object activation

2023-03-13 Thread Janusz Krzysztofik
On Friday, 10 March 2023 17:48:10 CET Das, Nirmoy wrote: > Hi Janusz, > > On 3/10/2023 4:19 PM, Janusz Krzysztofik wrote: > > Hi Nirmoy, > > > > On Friday, 10 March 2023 15:11:38 CET Nirmoy Das wrote: > >> debug_active_activate() expected ref->count to

[Intel-gfx] [PATCH 1/3] drm/i915/active: Serialize preallocation of idle barriers

2023-03-13 Thread Janusz Krzysztofik
it with collected proto-barriers (assuming we need that check). Fixes: 9ff33bbcda25 ("drm/i915: Reduce locking around i915_active_acquire_preallocate_barrier()") Cc: Chris Wilson Cc: sta...@vger.kernel.org # v5.10+ Signed-off-by: Janusz Krzysztofik --- drivers/gpu/drm/i915/i915_act

[Intel-gfx] [PATCH 2/3] drm/i915/active: Serialize use of barriers as fence trackers

2023-03-13 Thread Janusz Krzysztofik
lf") Cc: Chris Wilson Cc: sta...@vger.kernel.org # v5.6+ Signed-off-by: Janusz Krzysztofik --- drivers/gpu/drm/i915/i915_active.c | 65 -- 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_active.c b/drivers/gpu/drm/i915/i91

[Intel-gfx] [PATCH 3/3] drm/i915/active: Simplify llist search-and-delete

2023-03-13 Thread Janusz Krzysztofik
a link between list nodes that precede and follow the deleted node. Signed-off-by: Janusz Krzysztofik --- drivers/gpu/drm/i915/i915_active.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_active.c b/drivers/gpu/drm/i915/i915_active.c index

[Intel-gfx] [PATCH 0/3] drm/i915/active: Fix other potential list corruption root causes

2023-03-13 Thread Janusz Krzysztofik
starting from v5.10. The third patch, while not fixing any real bug, is believed to make the code more predictable and easy to understand, then more easy to debug should other barrier related issue still exist. Janusz Krzysztofik (3): drm/i915/active: Serialize preallocation of idle barriers drm

[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

[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

[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

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

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 >

[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] [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

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] [RFC PATCH] x86/mm: Fix PAT bit missing from page protection modify mask

2023-04-24 Thread Janusz Krzysztofik
PAGE_CHG_MASK symbol, primarly used by pte_modify(), is likely intentionally defined with that bit not set, keep that symbol unchanged. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/7648 Fixes: 281d4078bec3 ("x86: Make page cache mode a real type") Signed-off-b

[Intel-gfx] [PATCH i-g-t] tests/gem_reset_stats: Don't allow request watchdog to interfere

2023-04-13 Thread Janusz Krzysztofik
interfers with engine heartbeat and request preemption used by the test for exercising reset statistics. Disable request watchdog during the test execution. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8310 Signed-off-by: Janusz Krzysztofik --- tests/i915/gem_reset_stats.c | 7 +++ 1

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] [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

[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

<    2   3   4   5   6   7   8   9   >