Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: "Souza, Jose" <jose.souza@intel.com>,
	"Michał Winiarski" <michal.winiarski@intel.com>,
	"Michal Wajdeczko" <michal.wajdeczko@intel.com>,
	"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"K V P,  Satyanarayana" <satyanarayana.k.v.p@intel.com>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"Brost, Matthew" <matthew.brost@intel.com>,
	"thomas.hellstrom@linux.intel.com"
	<thomas.hellstrom@linux.intel.com>,
	"Piorkowski, Piotr" <piotr.piorkowski@intel.com>,
	"Dunajski, Bartosz" <bartosz.dunajski@intel.com>,
	"Wajdeczko, Michal" <Michal.Wajdeczko@intel.com>
Subject: Re: [RFC v5 1/1] drm/xe/pf: Restrict device query responses in admin-only PF mode
Date: Fri, 06 Mar 2026 13:30:41 -0800	[thread overview]
Message-ID: <87o6l0sl1a.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <aard4hmG_HOhWDji@intel.com>

On Fri, 06 Mar 2026 06:00:02 -0800, Rodrigo Vivi wrote:
>
> On Tue, Mar 03, 2026 at 08:39:56PM +0000, Souza, Jose wrote:
> > On Fri, 2026-02-27 at 12:07 +0000, Satyanarayana K V P wrote:
> > > When a PF is configured in admin-only mode, it is intended for
> > > management
> > > only and must not expose workload-facing capabilities to userspace.
> > >
> > > Limit the exposed ioctl set in admin-only PF mode to XE_DEVICE_QUERY,
> > > and
> > > suppress capability-bearing query payloads so userspace cannot
> > > discover
> > > execution-related device details in this mode.
> >
> > Mesa MR:
> > https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40206
>
> Looking to this patch I got myself wondering if query.size == 0 is
> long-term proof...   I mean, if we need to get some OA/RAS/telemetry
> kind of API that end up needing some kind of query information....
>
> Michals, thoughts on this?
>
> I know, I know, this solution is indeed much better than my
> proposal of no ioctl exposed. But I mean, since we are taking
> this path and allowing some ioctl. Shouldn't we prepare at least
> the query for that and then only limiting the number of engines
> and memory regions to zero?

I think UMD's should handle both these cases, either:

1. The returned query size is 0, so there is no further information, which
   can only mean nothing is supported (engine, memory region counts are
   all 0)
2. Or, returned query size is non-zero but engine or memory region counts
   returned are 0.

And then KMD can implement either (or switch between the two later) as
needed?

Also, there were some questions about supporting OA in the
admin-only-pf. Here are some high level points about this:

* OA/EUSTALL is not supported in VF's in current products, this might
  change in the future
* OA/EUSTALL in admin-only-pf can be used to profile global counts across
  VF's
* OA/EUSTALL themselves don't allow workload submission etc. They only
  allow reading profiling data from HW
* OA/EUSTALL in admin-only-pf will need the observation ioctl to be
  supported. Also, some other query ioctls such as hw configuration,
  topology, frequency will be needed to make sense of OA/EUSTALL data.

Thanks.
--
Ashutosh

  reply	other threads:[~2026-03-06 21:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-27 12:07 [RFC v5 0/1] Do not create drm device for PF only admin mode Satyanarayana K V P
2026-02-27 12:07 ` [RFC v5 1/1] drm/xe/pf: Restrict device query responses in admin-only PF mode Satyanarayana K V P
2026-03-03 20:39   ` Souza, Jose
2026-03-06 14:00     ` Rodrigo Vivi
2026-03-06 21:30       ` Dixit, Ashutosh [this message]
2026-03-11 18:19   ` Michal Wajdeczko
2026-02-27 12:19 ` ✓ CI.KUnit: success for Do not create drm device for PF only admin mode (rev4) Patchwork
2026-02-27 12:58 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-27 21:17 ` ✗ Xe.CI.FULL: failure " Patchwork

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=87o6l0sl1a.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=bartosz.dunajski@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=jose.souza@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=michal.wajdeczko@intel.com \
    --cc=michal.winiarski@intel.com \
    --cc=piotr.piorkowski@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=satyanarayana.k.v.p@intel.com \
    --cc=thomas.hellstrom@linux.intel.com \
    /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