From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>,
<intel-xe@lists.freedesktop.org>
Cc: "Rodrigo Vivi" <rodrigo.vivi@intel.com>,
"Piotr Piórkowski" <piotr.piorkowski@intel.com>,
"Matthew Brost" <matthew.brost@intel.com>,
"Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
"Michał Winiarski" <michal.winiarski@intel.com>,
"Dunajski Bartosz" <bartosz.dunajski@intel.com>,
"Ashutosh Dixit" <ashutosh.dixit@intel.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v11 1/2] drm/xe/pf: Restrict device query responses in admin-only PF mode
Date: Mon, 13 Apr 2026 10:57:38 +0200 [thread overview]
Message-ID: <a7455f4f-ba66-40b6-9de7-9ad95a99c941@intel.com> (raw)
In-Reply-To: <20260409154423.2499340-5-satyanarayana.k.v.p@intel.com>
On 4/9/2026 5:44 PM, 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
> XE_OBSERVATION, and suppress capability-bearing query payloads so that
> the userspace cannot discover execution-related device details in this
> mode.
>
> Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
> Cc: Matthew Brost <matthew.brost@intel.com>
> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
> Cc: Michał Winiarski <michal.winiarski@intel.com>
> Cc: Dunajski Bartosz <bartosz.dunajski@intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
> Cc: dri-devel@lists.freedesktop.org
> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Acked-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
>
> ---
> V10 -> V11:
> - Moved xe_device_is_admin_only() definition for !CONFIG_PCI_IOV option
> as per review comments (Michal).
> - Fixed some more generic review comments (Michal).
>
> V9 -> V10:
> - Moved some parts of admin_only_pf mode under CONFIG_PCI_IOV config
> option (Michal).
> - Updated commit message.
>
> V8 -> V9:
> - Memory regions are skipped in case of admin_only_pf mode (Michal)
> - removed .dumb_create, .dumb_map_offset and .show_fdinfo device specific
> operations in admin-only mode (Michal).
>
> V7 -> V8:
> - Fixed issues reported by CI.Hooks
> - Updated commit message (Ashutosh)
> - Removed gem_prime_import from admin_only_driver structure (Michal)
>
> V6 -> V7:
> - Allowed xe_observation_ioctl as well with admin-only PF (Ashutosh,
> Michal).
> - Updated commit message with steps to enable admin-only mode (Rodrigo).
>
> V5 -> V6:
> - Updated commit message.
> - Return number of engines and memory regions as zero instead of
> returning query size as zero (Michal Wajdeczko).
> - Allow all other query IOCTLs excepts query_engines and
> query_mem_regions (Michal Wajdeczko).
>
> V4 -> V5:
> - Updated commit message (Matt B).
> - Introduced new driver_admin_only_pf structure (Michal Wajdeczko).
> - Updated all query configs (Michal Wajdeczko).
> - Renamed xe_device_is_admin_only() to xe_device_is_admin_only_pf()
> - Fixed other review comments (Michal Wajdeczko).
>
> V3 -> V4:
> - Suppressed device capabilities in admin-only PF mode. (Wajdeczko)
>
> V2 -> V3:
> - Introduced new helper function xe_debugfs_create_files() to create
> debugfs entries based on admin_only_pf mode or normal mode.
>
> V1 -> V2:
> - Rebased to latest drm-tip.
> - Update update_minor_dev() to debugfs_minor_dev().
> ---
> drivers/gpu/drm/xe/xe_device.c | 57 ++++++++++++++++++++++++++++---
> drivers/gpu/drm/xe/xe_device.h | 9 +++++
> drivers/gpu/drm/xe/xe_hw_engine.c | 3 ++
> drivers/gpu/drm/xe/xe_query.c | 7 ++++
> 4 files changed, 72 insertions(+), 4 deletions(-)
>
next prev parent reply other threads:[~2026-04-13 8:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-09 15:44 [PATCH v11 0/2] Do not create drm device for PF only admin mode Satyanarayana K V P
2026-04-09 15:44 ` [PATCH v11 1/2] drm/xe/pf: Restrict device query responses in admin-only PF mode Satyanarayana K V P
2026-04-13 8:57 ` Michal Wajdeczko [this message]
2026-04-09 15:44 ` [PATCH v11 2/2] drm/xe/pf: Derive admin-only PF mode from xe_device state Satyanarayana K V P
2026-04-13 9:06 ` Michal Wajdeczko
2026-04-13 9:56 ` [PATCH v12] " Satyanarayana K V P
2026-04-09 15:51 ` ✗ CI.KUnit: failure for Do not create drm device for PF only admin mode (rev10) Patchwork
2026-04-10 4:34 ` ✓ CI.KUnit: success for Do not create drm device for PF only admin mode (rev11) Patchwork
2026-04-10 5:29 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-10 12:14 ` ✓ Xe.CI.FULL: " Patchwork
2026-04-13 13:01 ` ✓ CI.KUnit: success for Do not create drm device for PF only admin mode (rev12) Patchwork
2026-04-13 14:26 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-13 15:34 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-04-14 6:25 ` K V P, Satyanarayana
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=a7455f4f-ba66-40b6-9de7-9ad95a99c941@intel.com \
--to=michal.wajdeczko@intel.com \
--cc=ashutosh.dixit@intel.com \
--cc=bartosz.dunajski@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@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