]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/pf: Restrict device query responses in admin-only PF mode
authorSatyanarayana K V P <satyanarayana.k.v.p@intel.com>
Thu, 9 Apr 2026 15:44:25 +0000 (15:44 +0000)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 14 Apr 2026 10:38:14 +0000 (12:38 +0200)
commitd88c4bac8c2accbf84a6994a28ee43fee8157703
treeb07909559ed15f9d64119b97ac4f5ffeb6723a9a
parent6c84b493012aeb05dec29c709377bf0e17ac6815
drm/xe/pf: Restrict device query responses in admin-only PF mode

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>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20260409154423.2499340-5-satyanarayana.k.v.p@intel.com
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_device.h
drivers/gpu/drm/xe/xe_hw_engine.c
drivers/gpu/drm/xe/xe_query.c