* [PATCH 3/4] drm/i915/gem: Allow EXEC_CAPTURE on recoverable contexts on DG1
[not found] <20250401163752.6412-1-ville.syrjala@linux.intel.com>
@ 2025-04-01 16:37 ` Ville Syrjala
2025-04-01 17:34 ` Andi Shyti
0 siblings, 1 reply; 4+ messages in thread
From: Ville Syrjala @ 2025-04-01 16:37 UTC (permalink / raw)
To: intel-gfx; +Cc: stable, Matthew Auld, Thomas Hellström
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
The intel-media-driver is currently broken on DG1 because
it uses EXEC_CAPTURE with recovarable contexts. Relax the
check to allow that.
I've also submitted a fix for the intel-media-driver:
https://github.com/intel/media-driver/pull/1920
Cc: stable@vger.kernel.org
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Fixes: 71b1669ea9bd ("drm/i915/uapi: tweak error capture on recoverable contexts")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
index ca7e9216934a..ea9d5063ce78 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
@@ -2013,7 +2013,7 @@ static int eb_capture_stage(struct i915_execbuffer *eb)
continue;
if (i915_gem_context_is_recoverable(eb->gem_context) &&
- (IS_DGFX(eb->i915) || GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 0)))
+ GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 10))
return -EINVAL;
for_each_batch_create_order(eb, j) {
--
2.45.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 3/4] drm/i915/gem: Allow EXEC_CAPTURE on recoverable contexts on DG1
2025-04-01 16:37 ` [PATCH 3/4] drm/i915/gem: Allow EXEC_CAPTURE on recoverable contexts on DG1 Ville Syrjala
@ 2025-04-01 17:34 ` Andi Shyti
2025-04-01 17:50 ` Ville Syrjälä
2025-04-01 23:13 ` Andi Shyti
0 siblings, 2 replies; 4+ messages in thread
From: Andi Shyti @ 2025-04-01 17:34 UTC (permalink / raw)
To: Ville Syrjala; +Cc: intel-gfx, stable, Matthew Auld, Thomas Hellström
Hi Ville,
On Tue, Apr 01, 2025 at 07:37:51PM +0300, Ville Syrjala wrote:
> The intel-media-driver is currently broken on DG1 because
> it uses EXEC_CAPTURE with recovarable contexts. Relax the
> check to allow that.
>
> I've also submitted a fix for the intel-media-driver:
> https://github.com/intel/media-driver/pull/1920
...
> if (i915_gem_context_is_recoverable(eb->gem_context) &&
> - (IS_DGFX(eb->i915) || GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 0)))
> + GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 10))
How is this is more relaxed than the old version?
Andi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 3/4] drm/i915/gem: Allow EXEC_CAPTURE on recoverable contexts on DG1
2025-04-01 17:34 ` Andi Shyti
@ 2025-04-01 17:50 ` Ville Syrjälä
2025-04-01 23:13 ` Andi Shyti
1 sibling, 0 replies; 4+ messages in thread
From: Ville Syrjälä @ 2025-04-01 17:50 UTC (permalink / raw)
To: Andi Shyti; +Cc: intel-gfx, stable, Matthew Auld, Thomas Hellström
On Tue, Apr 01, 2025 at 07:34:11PM +0200, Andi Shyti wrote:
> Hi Ville,
>
> On Tue, Apr 01, 2025 at 07:37:51PM +0300, Ville Syrjala wrote:
> > The intel-media-driver is currently broken on DG1 because
> > it uses EXEC_CAPTURE with recovarable contexts. Relax the
> > check to allow that.
> >
> > I've also submitted a fix for the intel-media-driver:
> > https://github.com/intel/media-driver/pull/1920
>
> ...
>
> > if (i915_gem_context_is_recoverable(eb->gem_context) &&
> > - (IS_DGFX(eb->i915) || GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 0)))
> > + GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 10))
>
> How is this is more relaxed than the old version?
It doesn't trip on DG1 (ip ver == 12.10)
--
Ville Syrjälä
Intel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 3/4] drm/i915/gem: Allow EXEC_CAPTURE on recoverable contexts on DG1
2025-04-01 17:34 ` Andi Shyti
2025-04-01 17:50 ` Ville Syrjälä
@ 2025-04-01 23:13 ` Andi Shyti
1 sibling, 0 replies; 4+ messages in thread
From: Andi Shyti @ 2025-04-01 23:13 UTC (permalink / raw)
To: Andi Shyti
Cc: Ville Syrjala, intel-gfx, stable, Matthew Auld,
Thomas Hellström
Hi Ville,
> > if (i915_gem_context_is_recoverable(eb->gem_context) &&
> > - (IS_DGFX(eb->i915) || GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 0)))
> > + GRAPHICS_VER_FULL(eb->i915) > IP_VER(12, 10))
>
> How is this is more relaxed than the old version?
nevermind...
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Thanks,
Andi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-04-01 23:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250401163752.6412-1-ville.syrjala@linux.intel.com>
2025-04-01 16:37 ` [PATCH 3/4] drm/i915/gem: Allow EXEC_CAPTURE on recoverable contexts on DG1 Ville Syrjala
2025-04-01 17:34 ` Andi Shyti
2025-04-01 17:50 ` Ville Syrjälä
2025-04-01 23:13 ` Andi Shyti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox