summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNareshkumar Gollakoti <naresh.kumar.g@intel.com>2026-02-02 20:08:12 +0300
committerMichal Wajdeczko <michal.wajdeczko@intel.com>2026-02-05 23:51:58 +0300
commit4e8f602ac3574cf1ebc7acfb6624d06e04b30c91 (patch)
tree9ddae38a072f0bcf1566732d4335678907014bbc
parentf59cde8a2452b392115d2af8f1143a94725f4827 (diff)
downloadlinux-4e8f602ac3574cf1ebc7acfb6624d06e04b30c91.tar.xz
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
-rw-r--r--drivers/gpu/drm/xe/xe_gt_ccs_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
index 91ac22ef5703..fe944687728c 100644
--- a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
+++ b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
@@ -191,7 +191,7 @@ int xe_gt_ccs_mode_sysfs_init(struct xe_gt *gt)
struct xe_device *xe = gt_to_xe(gt);
int err;
- if (!xe_gt_ccs_mode_enabled(gt))
+ if (!xe_gt_ccs_mode_enabled(gt) || IS_SRIOV_VF(xe))
return 0;
err = sysfs_create_files(gt->sysfs, gt_ccs_mode_attrs);