Skip to content

Commit 2d01d88

Browse files
nkumarggithubrodrigovivi
authored andcommitted
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 (cherry picked from commit 4e8f602) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent 93d08a1 commit 2d01d88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_gt_ccs_mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ int xe_gt_ccs_mode_sysfs_init(struct xe_gt *gt)
191191
struct xe_device *xe = gt_to_xe(gt);
192192
int err;
193193

194-
if (!xe_gt_ccs_mode_enabled(gt))
194+
if (!xe_gt_ccs_mode_enabled(gt) || IS_SRIOV_VF(xe))
195195
return 0;
196196

197197
err = sysfs_create_files(gt->sysfs, gt_ccs_mode_attrs);

0 commit comments

Comments
 (0)