Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15920606A322 for ; Wed, 2 Dec 2026 19:50:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=ILMrTU6y Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CC121112490; Wed, 2 Dec 2026 19:50:45 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 66B4E112490 for ; Wed, 2 Dec 2026 19:50:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796241040; x=1827777040; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2QeI+PthFNbXgfJRVvohBctyIKkERZ0gpnJM35KSqAM=; b=ILMrTU6yPzU24y9pGF93ks8xsJWk/hVWWeZzMFGgU5qbIPwP3PGWSfPw 2PWkw4idTMj8Daz8j6K4A1HA+Sd61rTyqMHDask1YDqhkO6J5PjzwzImQ qljPnoHBdoc0nYRjj50o78eeekcxhet5whsGmuOLUv6lDNNMNbNy+0Ar/ 7c2eKN6WOTndO+Grvm5W+KJk2tWCFJpgD+7xH3crbQsV0PiYcPl+b5Ktv nr5j3GQlbBLEoYNGGI4UaKojHDhIuVIppKVkIX8l0YhhH4WVMCwnuuLS/ op9wNFyiBLQAIOk0VFMmttc7S3/5lWArm8hYO04kfuCW2YfUQhJmynMDt g==; X-CSE-ConnectionGUID: 40LRLnjlSEORMsANJSOE/A== X-CSE-MsgGUID: VKVEnBvyQeaqTVV/+VUtnA== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5144864" X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="5144864" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 11:50:40 -0800 X-CSE-ConnectionGUID: uy7GpMlVQeieA+1kI0N9Fw== X-CSE-MsgGUID: WAXWEr1WS6GOW4HhD7ZCUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,247,1787036400"; d="scan'208";a="14181446" Received: from sinjan-super-server.iind.intel.com ([10.190.239.39]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 11:50:37 -0800 From: Karthik Poosa To: intel-xe@lists.freedesktop.org Cc: rodrigo.vivi@intel.com, anshuman.gupta@intel.com, badal.nilawar@intel.com, raag.jadav@intel.com, soham.purkait@intel.com, Karthik Poosa Subject: [PATCH v9 01/11] drm/xe/hwmon: Rename has_fan_control to has_fan Date: Thu, 3 Dec 2026 01:22:11 +0530 Message-Id: <20261202195221.1862825-2-karthik.poosa@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261202195221.1862825-1-karthik.poosa@intel.com> References: <20261202195221.1862825-1-karthik.poosa@intel.com> X-Archived-By: 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-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The existing has_fan_control flag currently indicates that the device has a fan and is used to expose the corresponding hwmon fanX_input attribute. It does not specifically indicate support for controlling the fan. Rename has_fan_control to has_fan to reflect its actual purpose and avoid conflating fan presence with fan control capability. The has_fan_control flag will be added in later patches where fan control support is introduced. No functional change. Signed-off-by: Karthik Poosa --- drivers/gpu/drm/xe/xe_device_types.h | 4 ++-- drivers/gpu/drm/xe/xe_hwmon.c | 2 +- drivers/gpu/drm/xe/xe_pci.c | 6 +++--- drivers/gpu/drm/xe/xe_pci_types.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h index e38bc28404ff..30ee2248f7fb 100644 --- a/drivers/gpu/drm/xe/xe_device_types.h +++ b/drivers/gpu/drm/xe/xe_device_types.h @@ -175,8 +175,8 @@ struct xe_device { u8 has_driver_cper:1; /** @info.has_drm_ras: Device supports drm_ras (Reliability, Availability, Serviceability) */ u8 has_drm_ras:1; - /** @info.has_fan_control: Device supports fan control */ - u8 has_fan_control:1; + /** @info.has_fan: Device supports fan */ + u8 has_fan:1; /** @info.has_fixed_vram_channels: Device has fixed VRAM temperature channels */ u8 has_fixed_vram_channels:1; /** @info.has_flat_ccs: Whether flat CCS metadata is used */ diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c index 717845b7e6a1..2ff294f43259 100644 --- a/drivers/gpu/drm/xe/xe_hwmon.c +++ b/drivers/gpu/drm/xe/xe_hwmon.c @@ -1634,7 +1634,7 @@ xe_hwmon_fan_is_visible(struct xe_hwmon *hwmon, u32 attr, int channel) { u32 uval = 0; - if (!hwmon->xe->info.has_fan_control) + if (!hwmon->xe->info.has_fan) return 0; switch (attr) { diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index abf0ef80fcb8..2c0ac48c8eeb 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -373,7 +373,7 @@ static const struct xe_device_desc dg2_desc = { DG2_FEATURES, .has_display = true, - .has_fan_control = true, + .has_fan = true, .has_mbx_power_limits = false, }; @@ -430,7 +430,7 @@ static const struct xe_device_desc bmg_desc = { PLATFORM(BATTLEMAGE), .dma_mask_size = 46, .has_display = true, - .has_fan_control = true, + .has_fan = true, .has_fixed_vram_channels = true, .has_flat_ccs = 1, .has_mbx_power_limits = true, @@ -825,7 +825,7 @@ static int xe_info_init_early(struct xe_device *xe, xe->info.has_device_uid = desc->has_device_uid; xe->info.has_driver_cper = desc->has_driver_cper; xe->info.has_drm_ras = desc->has_drm_ras; - xe->info.has_fan_control = desc->has_fan_control; + xe->info.has_fan = desc->has_fan; xe->info.has_fixed_vram_channels = desc->has_fixed_vram_channels; /* runtime fusing may force flat_ccs to disabled later */ xe->info.has_flat_ccs = desc->has_flat_ccs; diff --git a/drivers/gpu/drm/xe/xe_pci_types.h b/drivers/gpu/drm/xe/xe_pci_types.h index 177b963bfc5a..aab3812db1ae 100644 --- a/drivers/gpu/drm/xe/xe_pci_types.h +++ b/drivers/gpu/drm/xe/xe_pci_types.h @@ -44,7 +44,7 @@ struct xe_device_desc { u8 has_device_uid:1; u8 has_driver_cper:1; u8 has_drm_ras:1; - u8 has_fan_control:1; + u8 has_fan:1; u8 has_fixed_vram_channels:1; u8 has_flat_ccs:1; u8 has_gsc_nvm:1; -- 2.34.1