From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A97BAD116E2 for ; Fri, 28 Nov 2025 17:22:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 63F0510E847; Fri, 28 Nov 2025 17:22:39 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Dq3VPkoO"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7372610E847 for ; Fri, 28 Nov 2025 17:22:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1764350559; x=1795886559; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=H91/UoyTB8RJWQcrl/bdG6GSQPh4hZDz+4/49Drqxpg=; b=Dq3VPkoOp2xM7bSPjP/7eeLytqe877Ru1irdMkYM5qlEjJGo1KYFuCfC Uwt1BARXgZaELaLNdzNy97OitnIa+OlBl+3wfla2sx42qSAC/xfhPztMN H6KeFuLM9tCJiU9zJlQjmQK5waB4ADfsTISrFzSDYpL/ESFskO6u20wOC PAWcl6dxNqQuKnHQNxCHQqf92afABy4ylNWYaJWfX3okOVWj4f7H/FIm4 7Xt/1BwyRVP4zO7Yj0mj+YMUTPI3jFjWYmG7IpX//tx87NoPxS5/ljXw1 RL01QYISUsPFiA384c3nSj/TPcCFG56EnuSsviDuGcoq0GrLETzQPH+qr A==; X-CSE-ConnectionGUID: AWwx6Z4cSquZEJQzqSlyWg== X-CSE-MsgGUID: SoLmQYHNQJKbSeJc2y+Hsw== X-IronPort-AV: E=McAfee;i="6800,10657,11626"; a="66549990" X-IronPort-AV: E=Sophos;i="6.20,234,1758610800"; d="scan'208";a="66549990" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2025 09:22:39 -0800 X-CSE-ConnectionGUID: hM043s7UR1WNAM0t2IPVsg== X-CSE-MsgGUID: Rc7PcOcZRsGjnu5OUrORzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,234,1758610800"; d="scan'208";a="197693100" Received: from naresh-nuc8i7beh.iind.intel.com (HELO nkumarg-desk.iind.intel.com) ([10.190.216.171]) by orviesa003.jf.intel.com with ESMTP; 28 Nov 2025 09:22:37 -0800 From: Nareshkumar Gollakoti To: intel-xe@lists.freedesktop.org Cc: michal.wajdeczko@intel.com, Nareshkumar Gollakoti Subject: [PATCH v1 1/2] drm/xe: Fix Prevent VFs from exposing the CCS mode sysfs file Date: Fri, 28 Nov 2025 22:46:06 +0530 Message-ID: <20251128171604.2775318-5-naresh.kumar.g@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251128171604.2775318-4-naresh.kumar.g@intel.com> References: <20251128123843.2763356-2-naresh.kumar.g@intel.com> <20251128171604.2775318-4-naresh.kumar.g@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Skipping creation of sysfs file in VF Mode to ensure VFs do not expose CCS mode changes Fixes: f3bc5bb4d53d2 ("drm/xe: Allow userspace to configure CCS mode") Signed-off-by: Nareshkumar Gollakoti --- 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 50fffc9ebf62..e146e00b0ca2 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