Skip to content

Commit 130910b

Browse files
ksatya-devThomas Hellström
authored andcommitted
drm/xe/pf: Disable display in admin only PF mode
Admin-only PF mode does not expose media or 3D execution capabilities to userspace, so display pipelines cannot receive rendered content. Fixes: d88c4ba ("drm/xe/pf: Restrict device query responses in admin-only PF mode") Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Piotr Piórkowski <piotr.piorkowski@intel.com> Cc: Michał Winiarski <michal.winiarski@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com> Link: https://patch.msgid.link/20260714053259.504308-2-satyanarayana.k.v.p@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> (cherry picked from commit 7ef55ae) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
1 parent 9b7e601 commit 130910b

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/gpu/drm/xe/xe_device.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ static const struct drm_ioctl_desc xe_ioctls_admin_only[] = {
426426

427427
static const struct drm_driver admin_only_driver = {
428428
.driver_features =
429-
XE_DISPLAY_DRIVER_FEATURES |
430429
DRIVER_GEM | DRIVER_RENDER | DRIVER_GEM_GPUVA,
431430
.open = xe_file_open,
432431
.postclose = xe_file_close,
@@ -438,7 +437,6 @@ static const struct drm_driver admin_only_driver = {
438437
.major = DRIVER_MAJOR,
439438
.minor = DRIVER_MINOR,
440439
.patchlevel = DRIVER_PATCHLEVEL,
441-
XE_DISPLAY_DRIVER_OPS,
442440
};
443441

444442
/**

drivers/gpu/drm/xe/xe_pci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,8 @@ static int xe_info_init_early(struct xe_device *xe,
788788

789789
xe->info.probe_display = IS_ENABLED(CONFIG_DRM_XE_DISPLAY) &&
790790
xe_modparam.probe_display &&
791-
desc->has_display;
791+
desc->has_display &&
792+
!xe_device_is_admin_only(xe);
792793
xe->info.force_execlist = xe_modparam.force_execlist;
793794

794795
xe_assert(xe, desc->max_gt_per_tile > 0);

0 commit comments

Comments
 (0)