Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nareshkumar Gollakoti <naresh.kumar.g@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: naresh.kumar.g@intel.com, Michal.Wajdeczko@intel.com,
	Michal Wajdeczko <michal.wajdeczko@intel.com>
Subject: [PATCH v3 1/2] drm/xe: Fix Prevent VFs from exposing the CCS mode sysfs file
Date: Mon,  2 Feb 2026 22:38:12 +0530	[thread overview]
Message-ID: <20260202170810.1393147-5-naresh.kumar.g@intel.com> (raw)
In-Reply-To: <20260202170810.1393147-4-naresh.kumar.g@intel.com>

Skipping creation of sysfs file in VF Mode to ensure VFs do not expose
CCS mode changes

Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Nareshkumar Gollakoti <naresh.kumar.g@intel.com>

---
v2: Removed Fixup tag and reference from commit message as modfication
    not really fixing anything instead not allowing VF user to have sysfs entry.
---
 drivers/gpu/drm/xe/xe_gt_ccs_mode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.43.0


  reply	other threads:[~2026-02-02 17:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-02 17:08 [PATCH v3 0/2] drm/xe:Mutual exclusivity between CCS-mode and PF Nareshkumar Gollakoti
2026-02-02 17:08 ` Nareshkumar Gollakoti [this message]
2026-02-02 17:08 ` [PATCH v3 2/2] drm/xe: Mutual " Nareshkumar Gollakoti
2026-02-03  3:51 ` ✓ CI.KUnit: success for drm/xe:Mutual exclusivity between CCS-mode and PF (rev3) Patchwork
2026-02-03  4:30 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-03 16:25 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-05 21:10 ` [PATCH v3 0/2] drm/xe:Mutual exclusivity between CCS-mode and PF Michal Wajdeczko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260202170810.1393147-5-naresh.kumar.g@intel.com \
    --to=naresh.kumar.g@intel.com \
    --cc=Michal.Wajdeczko@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox