Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
Cc: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
	Adrian Larumbe <adrian.larumbe@collabora.com>,
	Simona Vetter <simona@ffwll.ch>,
	Andi Shyti <andi.shyti@linux.intel.com>,
	Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>,
	Krzysztof Karas <krzysztof.karas@intel.com>,
	Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Subject: Re: [PATCH v2 1/2] drm/i915: Change semantics of context isolation reporting to UM
Date: Tue, 14 Oct 2025 17:36:16 +0200	[thread overview]
Message-ID: <20251014153616.GB181869@pevik> (raw)
In-Reply-To: <20251008115632.16333-3-krzysztof.niemiec@intel.com>

Hi all,

> From: Adrian Larumbe <adrian.larumbe@collabora.com>

> I915_PARAM_HAS_CONTEXT_ISOLATION was already being used as a boolean by
> both Iris and Vulkan, and stood for the guarantee that, when creating a
> new context, it would not contain register state from preexisting ones.

> However, the actual param ioctl was returning a bitmask for the
> engines in which isolation is supported, and IGT gem_ctx_isolation was
> exploiting this wrong semantics when making decisions about which
> engines support it.

> This is a uAPI documentation change that precedes the actual change in
> the getparam ioctl.

> Signed-off-by: Adrian Larumbe <adrian.larumbe@collabora.com>
> Signed-off-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
> ---
>  include/uapi/drm/i915_drm.h | 4 ----
>  1 file changed, 4 deletions(-)

> diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h
> index 535cb68fdb5c..5aff550034fc 100644
> --- a/include/uapi/drm/i915_drm.h
> +++ b/include/uapi/drm/i915_drm.h
> @@ -724,10 +724,6 @@ typedef struct drm_i915_irq_wait {
>   * supports) that all state set by this context will not leak to any other
>   * context.
>   *
nit: could you please remove also this trailing line above which contains only
'*'?

Kind regards,
Petr

> - * As not every engine across every gen support contexts, the returned
> - * value reports the support of context isolation for individual engines by
> - * returning a bitmask of each engine class set to true if that class supports
> - * isolation.
>   */
>  #define I915_PARAM_HAS_CONTEXT_ISOLATION 50

  parent reply	other threads:[~2025-10-14 15:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-08 11:56 [PATCH v2 0/2] Context isolation uAPI fixes Krzysztof Niemiec
2025-10-08 11:56 ` [PATCH v2 1/2] drm/i915: Change semantics of context isolation reporting to UM Krzysztof Niemiec
2025-10-09 21:43   ` Chris Wilson
2025-10-14 15:36   ` Petr Vorel [this message]
2025-10-08 11:56 ` [PATCH v2 2/2] drm/i915: force getparam ioctl return bool for HAS_CONTEXT_ISOLATION Krzysztof Niemiec
2025-10-08 14:02   ` Jani Nikula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251014153616.GB181869@pevik \
    --to=pvorel@suse.cz \
    --cc=adrian.larumbe@collabora.com \
    --cc=andi.shyti@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=janusz.krzysztofik@linux.intel.com \
    --cc=krzysztof.karas@intel.com \
    --cc=krzysztof.niemiec@intel.com \
    --cc=sebastian.brzezinka@intel.com \
    --cc=simona@ffwll.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox