Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe: Prevent VFs from exposing the CCS mode sysfs file

Skip creating CCS sysfs files in VF mode to ensure VFs do not
try to change CCS mode, as it is predefined and immutable in
the SR-IOV mode.

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Nareshkumar Gollakoti <naresh.kumar.g@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patch.msgid.link/20260202170810.1393147-5-naresh.kumar.g@intel.com

authored by

Nareshkumar Gollakoti and committed by
Michal Wajdeczko
4e8f602a f59cde8a

+1 -1
+1 -1
drivers/gpu/drm/xe/xe_gt_ccs_mode.c
··· 191 191 struct xe_device *xe = gt_to_xe(gt); 192 192 int err; 193 193 194 - if (!xe_gt_ccs_mode_enabled(gt)) 194 + if (!xe_gt_ccs_mode_enabled(gt) || IS_SRIOV_VF(xe)) 195 195 return 0; 196 196 197 197 err = sysfs_create_files(gt->sysfs, gt_ccs_mode_attrs);