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 18D23606A32C for ; Thu, 3 Dec 2026 09:05:37 +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=Wsm+V61V Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D3F2810E4F9; Thu, 3 Dec 2026 09:05:31 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id CAEEA10E4F9 for ; Thu, 3 Dec 2026 09:05:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796288726; x=1827824726; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NSSlVaU4Hf3QxmLoDHwZJY5fl7/eTJUO9hBwd3xoFWI=; b=Wsm+V61V2qBhkEaX7j/IEDi+CchwW1LKM7owHfHai/zRUTXbbUpVDCUt +x2ISGvPjmJ0pXiZdG5DJxVXTrawuFEpKZ0I0xrUOPc2eip1sA+wNAfXs Nd0c4ww1vXen7XA/D5CXJybW+i0N8qTYwG4YR1MGWUYRwarl3PArHvIJz 7Vqj15iKniiVgdI97LXs2/zVJVSM99O8Jhnczbg5T87jqOtIHVQTxifde Z1AyLyXpt69d9ngxNpgXdFXLdE4JRBNYwNPcWbCbe8/mqx7Dubve33u54 ptZzUhTSNmswtwVq/cSxCPFQA/mnaykyEeZegdHwTDM/fryIzKNseucyQ g==; X-CSE-ConnectionGUID: S2H2dXHDREqlvjUACYoSQA== X-CSE-MsgGUID: ZwHn3MfJRmm+Q7OOTU4VFQ== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5254212" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5254212" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 01:05:26 -0800 X-CSE-ConnectionGUID: k3U4RRdtSFi5qPymJZkEfA== X-CSE-MsgGUID: CFTceTwjT6C5AP8E5mM5yA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="15730355" Received: from sinjan-super-server.iind.intel.com ([10.190.239.39]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 01:05:23 -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, riana.tauro@intel.com, Karthik Poosa Subject: [PATCH v11 01/11] drm/xe/hwmon: Rename has_fan_control to has_fan Date: Thu, 3 Dec 2026 14:36:55 +0530 Message-Id: <20261203090705.2500610-2-karthik.poosa@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261203090705.2500610-1-karthik.poosa@intel.com> References: <20261203090705.2500610-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 Reviewed-by: Rodrigo Vivi --- 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 e4e2fba44c8e..3df4b7e83566 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 fea2e47cbcaf..46eb3718ef04 100644 --- a/drivers/gpu/drm/xe/xe_hwmon.c +++ b/drivers/gpu/drm/xe/xe_hwmon.c @@ -1641,7 +1641,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 0c6bc82d917b..f439e7a71090 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, @@ -826,7 +826,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