public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v11 0/2] Do not create drm device for PF only admin mode
@ 2026-04-09 15:44 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
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Satyanarayana K V P @ 2026-04-09 15:44 UTC (permalink / raw)
  To: intel-xe; +Cc: Satyanarayana K V P

When the PF is configured for admin‑only mode, it is restricted to
management functions and should not allow users to run workloads.
Suppress device capabilities to userspace in admin-only PF mode.

---
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).
- Cleandup pf_set_admin_mode() as per review comments (Michal).

V9 -> V10:
- Moved some parts of admin_only_pf mode under CONFIG_PCI_IOV config
option (Michal).

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).
- Added new commits to derive admin-only PF mode from xe_device state and
corresponding changes in test cases.

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 Wajdeczko).
- Updated commit message with steps to enable admin-only mode (Rodrigo).

V5 -> V6:
- Updated commit message.
- Make content of query_engines and query_mem_regions as empty in
admin-only PF mode instead of query size as zero.
- 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().

Satyanarayana K V P (2):
  drm/xe/pf: Restrict device query responses in admin-only PF mode
  drm/xe/pf: Derive admin-only PF mode from xe_device state

 .../xe/tests/xe_gt_sriov_pf_config_kunit.c    | 21 ++++++-
 drivers/gpu/drm/xe/xe_device.c                | 59 +++++++++++++++++--
 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 +++
 drivers/gpu/drm/xe/xe_sriov_pf.c              |  6 --
 drivers/gpu/drm/xe/xe_sriov_pf_helpers.h      |  3 +-
 drivers/gpu/drm/xe/xe_sriov_pf_types.h        |  3 -
 8 files changed, 95 insertions(+), 16 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-04-14  6:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox