From nobody Sun Feb 8 20:35:07 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A048F25CC63; Tue, 22 Apr 2025 21:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357688; cv=none; b=VRKJvVAdsd311OPmefJjKxVFU+6Ud1tLbYPlRKUC2xk0YMEvK2GNl1y0bHNV7JTGo805/f90iMefZINUkRCaAL9+J7XjMnYfJ2aHFne2M/8n3fYZzPKu8CMBalfRvHZBAfcNumy8HYoDQJLvW1u0QB9T+q/AbyftFOlTq1tVr+4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357688; c=relaxed/simple; bh=Pg+GrVU7RrtOfTq8aLDzw9S71vfa8KzAZINqBxNrsF8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sPSiWQtJPzEXB8dCyslCrf9DsoinfRFXv52qbslr1SfxaLGHI7qZK76hk/QxetzEvMDXlHGhLlthdreErpqPYVvNbKM7ndX2xuPtFhfBnNoqWQzYMVPjGD7uPl8EgTRA0nCXuhmTVRIgvQWp44kBBmF6DwMYZDgmrJ9qJXy82Lw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VgTRM8KW; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VgTRM8KW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745357686; x=1776893686; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Pg+GrVU7RrtOfTq8aLDzw9S71vfa8KzAZINqBxNrsF8=; b=VgTRM8KWg/UtSBQJEMz83JAhgDQWYrPrj7tLqbh3fZk7YIq3Zge9fA1P OyAj951ud5prWgxF5T4sF63nLqk71nXExtZT/MHGOGzxmaZnodGUC5272 5nLa1MKLrdFvlO02mmJ21+LwK/GuGuAINzsJHhF1+BBnbg1EoDuXQ3mzU W3Gy1KLxkiOy7QDGsMNdv3gw9/XeOBf7UdcEG+ZTGBY+4Q2tjNmktDzV8 /u0BO89iy+gni5qAFevFY7OK24/qeuvdenDz3CWSTKOCAQNeyLDdrYA3d u0O3vuTMLefKa22gb3ebbPjnE7Pv1d0b0W8OIPJhb4UGHVbSKBiaIopwz A==; X-CSE-ConnectionGUID: TYXNQueDTt+swzrQt4C7Rw== X-CSE-MsgGUID: xKYs0Gc/Q0aWznwtPd36ng== X-IronPort-AV: E=McAfee;i="6700,10204,11411"; a="46053986" X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="46053986" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2025 14:34:43 -0700 X-CSE-ConnectionGUID: m2VDb1v9TtWzszCLct3rXQ== X-CSE-MsgGUID: 90fDSoQHTJKOqvJqwSeUvg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="133070683" Received: from spandruv-desk.jf.intel.com ([10.54.75.16]) by orviesa008.jf.intel.com with ESMTP; 22 Apr 2025 14:34:43 -0700 From: Srinivas Pandruvada To: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH 1/5] platform/x86/intel-uncore-freq: Add attributes to show agent types Date: Tue, 22 Apr 2025 14:34:23 -0700 Message-ID: <20250422213427.1943328-2-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> References: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Currently, users need detailed hardware information to understand the scope of controls within each uncore domain. Uncore frequency controls manage subsystems such as core, cache, memory, and I/O. The UFS TPMI provides this information, which can be used to present the scope more clearly. Each uncore domain consists of one or more agent types, with each agent type controlling one or more uncore hardware subsystems. For example, a single agent might control both the core and cache. Introduce a new attribute called "agent_types." This attribute displays a list of agents, separated by space character. The string representations for agent types are as follows: For core agent: core For cache agent: cache For memory agent: memory For I/O agent: io These agent types are read during probe time for each cluster and stored as part of the struct uncore_data. Signed-off-by: Srinivas Pandruvada --- .../uncore-frequency-common.c | 24 ++++++++++++++++ .../uncore-frequency-common.h | 17 ++++++++++- .../uncore-frequency/uncore-frequency-tpmi.c | 28 +++++++++++++++++++ 3 files changed, 68 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-c= ommon.c b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-comm= on.c index 4e2c6a2d7e6e..cfa3039a0e39 100644 --- a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c +++ b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c @@ -43,6 +43,28 @@ static ssize_t show_package_id(struct kobject *kobj, str= uct kobj_attribute *attr return sprintf(buf, "%u\n", data->package_id); } =20 +static ssize_t show_agent_types(struct kobject *kobj, struct kobj_attribut= e *attr, char *buf) +{ + struct uncore_data *data =3D container_of(attr, struct uncore_data, agent= _types_kobj_attr); + int length =3D 0; + + if (data->agent_type_mask & AGENT_TYPE_CORE) + length +=3D sysfs_emit_at(buf, length, "core "); + + if (data->agent_type_mask & AGENT_TYPE_CACHE) + length +=3D sysfs_emit_at(buf, length, "cache "); + + if (data->agent_type_mask & AGENT_TYPE_MEMORY) + length +=3D sysfs_emit_at(buf, length, "memory "); + + if (data->agent_type_mask & AGENT_TYPE_IO) + length +=3D sysfs_emit_at(buf, length, "io "); + + length +=3D sysfs_emit_at(buf, length, "\n"); + + return length; +} + static ssize_t show_attr(struct uncore_data *data, char *buf, enum uncore_= index index) { unsigned int value; @@ -179,6 +201,8 @@ static int create_attr_group(struct uncore_data *data, = char *name) data->uncore_attrs[index++] =3D &data->fabric_cluster_id_kobj_attr.attr; init_attribute_root_ro(package_id); data->uncore_attrs[index++] =3D &data->package_id_kobj_attr.attr; + init_attribute_ro(agent_types); + data->uncore_attrs[index++] =3D &data->agent_types_kobj_attr.attr; } =20 data->uncore_attrs[index++] =3D &data->max_freq_khz_kobj_attr.attr; diff --git a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-c= ommon.h b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-comm= on.h index 26c854cd5d97..197ca2ad327f 100644 --- a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.h +++ b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.h @@ -11,6 +11,17 @@ =20 #include =20 +/* + * Define uncore agents, which are under uncore frequency control. + * It is possible that there are common uncore frequency control to more t= han + * one agents. So these defines are used as a bit mask. + */ +#define AGENT_TYPE_NONE 0 +#define AGENT_TYPE_CORE 0x01 +#define AGENT_TYPE_CACHE 0x02 +#define AGENT_TYPE_MEMORY 0x04 +#define AGENT_TYPE_IO 0x08 + /** * struct uncore_data - Encapsulate all uncore data * @stored_uncore_data: Last user changed MSR 620 value, which will be res= tored @@ -25,6 +36,7 @@ * @cluster_id: cluster id in a domain * @instance_id: Unique instance id to append to directory name * @name: Sysfs entry name for this instance + * @agent_type_mask: Bit mask of all hardware agents for this domain * @uncore_attr_group: Attribute group storage * @max_freq_khz_kobj_attr: Storage for kobject attribute max_freq_khz * @mix_freq_khz_kobj_attr: Storage for kobject attribute min_freq_khz @@ -41,6 +53,7 @@ * @elc_high_threshold_enable_kobj_attr: Storage for kobject attribute elc_high_threshold_enable * @elc_floor_freq_khz_kobj_attr: Storage for kobject attribute elc_floor_= freq_khz + * @agent_types_kobj_attr: Storage for kobject attribute agent_type * @uncore_attrs: Attribute storage for group creation * * This structure is used to encapsulate all data related to uncore sysfs @@ -58,6 +71,7 @@ struct uncore_data { int cluster_id; int instance_id; char name[32]; + u16 agent_type_mask; =20 struct attribute_group uncore_attr_group; struct kobj_attribute max_freq_khz_kobj_attr; @@ -72,7 +86,8 @@ struct uncore_data { struct kobj_attribute elc_high_threshold_percent_kobj_attr; struct kobj_attribute elc_high_threshold_enable_kobj_attr; struct kobj_attribute elc_floor_freq_khz_kobj_attr; - struct attribute *uncore_attrs[13]; + struct kobj_attribute agent_types_kobj_attr; + struct attribute *uncore_attrs[14]; }; =20 #define UNCORE_DOMAIN_ID_INVALID -1 diff --git a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-t= pmi.c b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c index 4aa6c227ec82..70415d80773c 100644 --- a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c +++ b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c @@ -74,6 +74,12 @@ struct tpmi_uncore_struct { /* Bit definitions for STATUS register */ #define UNCORE_CURRENT_RATIO_MASK GENMASK_ULL(6, 0) =20 +/* Uncore agent type bits */ +#define UNCORE_CORE_PRESENT BIT(23) +#define UNCORE_CACHE_PRESENT BIT(24) +#define UNCORE_MEMORY_PRESENT BIT(25) +#define UNCORE_IO_PRESENT BIT(26) + /* Bit definitions for CONTROL register */ #define UNCORE_MAX_RATIO_MASK GENMASK_ULL(14, 8) #define UNCORE_MIN_RATIO_MASK GENMASK_ULL(21, 15) @@ -347,6 +353,26 @@ static int uncore_read_freq(struct uncore_data *data, = unsigned int *freq) return 0; } =20 +/* Helper function to read agent type over MMIO and set the agent type */ +static void uncore_set_agent_type(struct tpmi_uncore_cluster_info *cluster= _info) +{ + u64 status; + + status =3D readq((u8 __iomem *)cluster_info->cluster_base + UNCORE_STATUS= _INDEX); + + if (status & UNCORE_CORE_PRESENT) + cluster_info->uncore_data.agent_type_mask |=3D AGENT_TYPE_CORE; + + if (status & UNCORE_CACHE_PRESENT) + cluster_info->uncore_data.agent_type_mask |=3D AGENT_TYPE_CACHE; + + if (status & UNCORE_MEMORY_PRESENT) + cluster_info->uncore_data.agent_type_mask |=3D AGENT_TYPE_MEMORY; + + if (status & UNCORE_IO_PRESENT) + cluster_info->uncore_data.agent_type_mask |=3D AGENT_TYPE_IO; +} + /* Callback for sysfs read for TPMI uncore values. Called under mutex lock= s. */ static int uncore_read(struct uncore_data *data, unsigned int *value, enum= uncore_index index) { @@ -552,6 +578,8 @@ static int uncore_probe(struct auxiliary_device *auxdev= , const struct auxiliary_ =20 cluster_info->cluster_base =3D pd_info->uncore_base + mask; =20 + uncore_set_agent_type(cluster_info); + cluster_info->uncore_data.package_id =3D pkg; /* There are no dies like Cascade Lake */ cluster_info->uncore_data.die_id =3D 0; --=20 2.48.1 From nobody Sun Feb 8 20:35:07 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AA8625CC6F; Tue, 22 Apr 2025 21:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357690; cv=none; b=MPswodLjk2cln8zXC+FpC8TgcyWDGn7i9zMjSPGTvPf+cGxNBzS7/Qg5nmcNPZ1WJwz8Mwraj4wqyVp8aZX1ww5hlStcKlJKwQyhgmi1ns4MsJHTAzBkRVO8Q1MNflNpCrfEcsN0sA7vfHFVLWlpfybJt25u9nMLzGCuZws2/XA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357690; c=relaxed/simple; bh=AnkJrFBkkfn9XNqrAtm49YgyvIfq2PfUAJSZ0+GDhz8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jlB6RfzkTS9r3UBkdVfoFl9EBQl+h7z/0+viptD0iMHIkzSBRp1Nua+Ks1cTLuHhVfUL6oBzSyB3XEWa2u3HheUhI9OuqnUt+5/7BhgrmclwgayTvQpB73+iQ4jdjAKq/OrvO1Wv1SHWbYfiOrzEoAkxtT2SaIl2rp2P3F1LDTs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=OrVBUXJx; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OrVBUXJx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745357689; x=1776893689; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AnkJrFBkkfn9XNqrAtm49YgyvIfq2PfUAJSZ0+GDhz8=; b=OrVBUXJxzamhAqQCbJkL2e/MB8PNtnlsoR4v0472B1fVBYAnWfWyTjR3 qhQpCi9jMF6L1Kh4rAr0N4l8iGtTRHvHK2s1vsbsPnlx/X5updkI/gfPo zeE9j2M+vuUAGQcTqPKRx1vg0ElYXAkm6q+yScGkupsku0p4DX86W2XAD cFO2f5z/KpNDU0jsLUWTle73EE7wNmnpyCGAYuNk0YblaFEeBEtBxNB2e 2mUqcINE49tiZ18/Dxx43U4US1RIRJb6/EviMmFm9cGPuLNQe7wwExFvj TiajhvdEdA+OpNuJaU1L/df1XoPB4IcdBKhOX6x1lVB6hJahzZbvxknlz Q==; X-CSE-ConnectionGUID: RxoS5UWbQ/S78PYxFO1Q0Q== X-CSE-MsgGUID: NxUn6MLOSRqMfGyVh/VyOA== X-IronPort-AV: E=McAfee;i="6700,10204,11411"; a="46053988" X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="46053988" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2025 14:34:44 -0700 X-CSE-ConnectionGUID: Gc/RJ4qAQuGtjgbGHuXTCw== X-CSE-MsgGUID: 1bokvClbSseNVe0Mtk/iGw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="133070684" Received: from spandruv-desk.jf.intel.com ([10.54.75.16]) by orviesa008.jf.intel.com with ESMTP; 22 Apr 2025 14:34:43 -0700 From: Srinivas Pandruvada To: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH 2/5] Documentation: admin-guide: pm: Add documentation for agent_types Date: Tue, 22 Apr 2025 14:34:24 -0700 Message-ID: <20250422213427.1943328-3-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> References: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add documentation to describe agent_types attribute. Signed-off-by: Srinivas Pandruvada --- .../admin-guide/pm/intel_uncore_frequency_scaling.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rs= t b/Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst index 5151ec312dc0..84608dad84bd 100644 --- a/Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst +++ b/Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst @@ -97,6 +97,11 @@ Attributes in each directory: ``package_id`` This attribute is used to get the package id of this instance. =20 +``agent_types`` + This attribute displays all the hardware agents present within the + domain. Each agent has the capability to control one or more hardware + subsystems, which include: core, cache, memory, and I/O. + The other attributes are same as presented at package_*_die_* level. =20 In most of current use cases, the "max_freq_khz" and "min_freq_khz" --=20 2.48.1 From nobody Sun Feb 8 20:35:07 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01B5C25CC59; Tue, 22 Apr 2025 21:34:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357692; cv=none; b=q1pFRPw3kKXdxp7vEwYle9sgMDPeKve5k8BkkSv/PWSA77qGfmnnpM6rKFPM499eSMCmyvUfcqT1QnCKCF7NFiCRUyp5o4aNweg56WD6GxK5ZOVpV3gUrz7BzEc+4MABNgnOdB67v8PWYi3upkJ8VYpiC8lcQIXPPcSs5vt/uIY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357692; c=relaxed/simple; bh=Lsz0SmSLHBuNAOhBY+Z7GEFPJPrtXYFlVmulYacxyns=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GvpHmnaEQst2lWd9zpZi+a1jgDAzY+SnfsohTwl3gzqr4u/QfJuj75HH/LYewbxus1q3/l07DsUIQ2rL8NSblSDjN3CD34Bxlo/kNd4qI0sg9zkrS3iZ5TNv72LSHYT4BNJO553v7V5or7UgGefBAQrKxBr6AMd/CymnTO50QB4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=RpJd7j2w; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RpJd7j2w" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745357689; x=1776893689; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Lsz0SmSLHBuNAOhBY+Z7GEFPJPrtXYFlVmulYacxyns=; b=RpJd7j2wfpmDHFy09wSh6MIYglgEaHlSPgNuFyW+BiSx4ZdYHnO8oFLa 8LtsjwP3zd2nPicu4QF9FvuRx+lsflGp25Ud8dWfGuVzZnOByvNwySFkN +xSy135c1XRiPXbUrde1xAcs4QFwVe/vvfpv82RQ3zownutkDW558dLOX +/pjqP4FsSp+DtKQuYU7hRQgMScN4UwV2kRe+bweUeS4LKIf/7Hmnp9mb mN/oYllL1jFeV97sffzNUWdzmEZL3JSaFfuHkW/fVHkN3fiAIh/zE0lDD VlMaW7HI2urRyMukac0KeYHCHYC5OkMG9GUzet8Vmly7E/O7V9JnkuLIw A==; X-CSE-ConnectionGUID: PdHx6LhUSD6cLEXir8jCzg== X-CSE-MsgGUID: II1W1QLqTyyPOjFFf8dgUQ== X-IronPort-AV: E=McAfee;i="6700,10204,11411"; a="46053990" X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="46053990" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2025 14:34:44 -0700 X-CSE-ConnectionGUID: ZZ/6caK2SeyVT2FnRkQcMg== X-CSE-MsgGUID: LEtV1NOXToucSih3/zmnhQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="133070685" Received: from spandruv-desk.jf.intel.com ([10.54.75.16]) by orviesa008.jf.intel.com with ESMTP; 22 Apr 2025 14:34:43 -0700 From: Srinivas Pandruvada To: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH 3/5] platform/x86/intel: power-domains: Add interface to get Linux die ID Date: Tue, 22 Apr 2025 14:34:25 -0700 Message-ID: <20250422213427.1943328-4-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> References: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The die ID in the Linux topology sysfs is a logical identifier that differs from the one presented in CPUID leaf 0x1F or via MSR 0x54. Introduce an interface that returns the Linux CPU die ID based on a given package ID and power domain ID. This mapping is stored during the CPU online callback in an array. Signed-off-by: Srinivas Pandruvada --- .../platform/x86/intel/tpmi_power_domains.c | 34 ++++++++++++++++--- .../platform/x86/intel/tpmi_power_domains.h | 1 + 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/intel/tpmi_power_domains.c b/drivers/plat= form/x86/intel/tpmi_power_domains.c index 2f01cd22a6ee..9aaebd74a2af 100644 --- a/drivers/platform/x86/intel/tpmi_power_domains.c +++ b/drivers/platform/x86/intel/tpmi_power_domains.c @@ -74,6 +74,8 @@ static enum cpuhp_state tpmi_hp_state __read_mostly; =20 static cpumask_t *tpmi_power_domain_mask; =20 +static u16 *domain_die_map; + /* Lock to protect tpmi_power_domain_mask and tpmi_cpu_hash */ static DEFINE_MUTEX(tpmi_lock); =20 @@ -152,6 +154,15 @@ cpumask_t *tpmi_get_power_domain_mask(int cpu_no) } EXPORT_SYMBOL_NS_GPL(tpmi_get_power_domain_mask, "INTEL_TPMI_POWER_DOMAIN"= ); =20 +int tpmi_get_linux_die_id(int pkg_id, int domain_id) +{ + if (pkg_id >=3D topology_max_packages() || domain_id >=3D MAX_POWER_DOMAI= NS) + return -EINVAL; + + return domain_die_map[pkg_id * MAX_POWER_DOMAINS + domain_id]; +} +EXPORT_SYMBOL_NS_GPL(tpmi_get_linux_die_id, "INTEL_TPMI_POWER_DOMAIN"); + static int tpmi_get_logical_id(unsigned int cpu, struct tpmi_cpu_info *inf= o) { u64 data; @@ -189,6 +200,9 @@ static int tpmi_cpu_online(unsigned int cpu) cpumask_set_cpu(cpu, &tpmi_power_domain_mask[index]); hash_add(tpmi_cpu_hash, &info->hnode, info->punit_core_id); =20 + domain_die_map[info->pkg_id * MAX_POWER_DOMAINS + info->punit_domain_id] = =3D + topology_die_id(cpu); + return 0; } =20 @@ -212,17 +226,28 @@ static int __init tpmi_init(void) if (!tpmi_power_domain_mask) return -ENOMEM; =20 + domain_die_map =3D kcalloc(size_mul(topology_max_packages(), MAX_POWER_DO= MAINS), + sizeof(*domain_die_map), GFP_KERNEL); + if (!domain_die_map) + goto free_domain_mask; + ret =3D cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "platform/x86/tpmi_power_domains:online", tpmi_cpu_online, NULL); - if (ret < 0) { - kfree(tpmi_power_domain_mask); - return ret; - } + if (ret < 0) + goto free_domain_map; =20 tpmi_hp_state =3D ret; =20 return 0; + +free_domain_map: + kfree(domain_die_map); + +free_domain_mask: + kfree(tpmi_power_domain_mask); + + return ret; } module_init(tpmi_init) =20 @@ -230,6 +255,7 @@ static void __exit tpmi_exit(void) { cpuhp_remove_state(tpmi_hp_state); kfree(tpmi_power_domain_mask); + kfree(domain_die_map); } module_exit(tpmi_exit) =20 diff --git a/drivers/platform/x86/intel/tpmi_power_domains.h b/drivers/plat= form/x86/intel/tpmi_power_domains.h index e35750dd9273..2fd0dd7afbd2 100644 --- a/drivers/platform/x86/intel/tpmi_power_domains.h +++ b/drivers/platform/x86/intel/tpmi_power_domains.h @@ -14,5 +14,6 @@ int tpmi_get_linux_cpu_number(int package_id, int die_id,= int punit_core_id); int tpmi_get_punit_core_number(int cpu_no); int tpmi_get_power_domain_id(int cpu_no); cpumask_t *tpmi_get_power_domain_mask(int cpu_no); +int tpmi_get_linux_die_id(int pkg_id, int domain_id); =20 #endif --=20 2.48.1 From nobody Sun Feb 8 20:35:07 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 974642367DD; Tue, 22 Apr 2025 21:34:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357691; cv=none; b=tHeXZCOD4oR/gXYEsS5tWAMnREV3u2+19CmamaUWzMOwc3S9B+iHrl5tqTmPHdVv4zfLnvMBod25npjm7FmDKW5b5M0eePPWBel3HtmmQFMYBg5PhTXin7uugvipb3wnmpZO7ucGC0JvQ+Xp/GFdQYrgUF+Rzx8cYIzubO4a7f8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357691; c=relaxed/simple; bh=9GMeuB9mJ/lPm2uKvwnURLZmlBjEMNOi4xuyEYZbGaE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uv+Pk/DXryxOOcc+9mMqSqlp6t2oQxvEH7qn96tdNc603je4CDE0Px2Cf6j9zAT5nTl420i40DbrN1oD+fECuiFEp5GWpjNqdHpbFdGcrHLfh3zvU65rzAO2XKrhiAUeDX0QPOs673CRO8I7gRrtmb++TDo4orpAzbnMiRLXIJc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=m65mttTY; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="m65mttTY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745357689; x=1776893689; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9GMeuB9mJ/lPm2uKvwnURLZmlBjEMNOi4xuyEYZbGaE=; b=m65mttTYZRC1Dbfx4qQdBA4tPksfgygLd4WMIAm3jPJTYnt8209RAtnO ITPVd/LkBN+oWF2EJW6ceM/DKPEatK1dqRHKGI6c6JVt7p818jieW/rqr SBVJ8JYekMNxJr/VkZq6r2IeftTIsVdnt8DxIovrdDKqQmLNMiBnKfD11 UIpkRU6kiZfnQsulaZ9buXPXSV1cYsFb3OltABKcKj4bOq84AbR7VaGJi bzqgpyScr8lHV7plEiPajqy1v66W6pe0ODqgtr7bLdIzYtdpHsF2LHW8k B6pVWNjNraU5LuCyVItFU34cbsWcwlbSR/iVBikbpAZGsk4umIPSBxpzL A==; X-CSE-ConnectionGUID: hc81iJehTPa8cuhaBp0sbA== X-CSE-MsgGUID: +Oz6jsaMTYadUwcnKRzz2w== X-IronPort-AV: E=McAfee;i="6700,10204,11411"; a="46053992" X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="46053992" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2025 14:34:44 -0700 X-CSE-ConnectionGUID: 2BfDzHwyQsWlvRCFTucZmQ== X-CSE-MsgGUID: jbaBDCRkTwCHC9TeVJ16mw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="133070686" Received: from spandruv-desk.jf.intel.com ([10.54.75.16]) by orviesa008.jf.intel.com with ESMTP; 22 Apr 2025 14:34:43 -0700 From: Srinivas Pandruvada To: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH 4/5] platform/x86/intel-uncore-freq: Add attributes to show die_id Date: Tue, 22 Apr 2025 14:34:26 -0700 Message-ID: <20250422213427.1943328-5-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> References: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" For domains with agents to control cores (compute dies) show matching Linux CPU die ID. Linux CPU ID is a logical die ID, so this may not match physical die ID or domain_id. So, a mapping is required to get Linux CPU die ID. This attribute is only presented when CPUID enumerates die ids. This attribute can be used by orchestration software like Kubernetes to target specific dies for uncore frequency control. Signed-off-by: Srinivas Pandruvada --- .../uncore-frequency-common.c | 7 +++++ .../uncore-frequency-common.h | 4 ++- .../uncore-frequency/uncore-frequency-tpmi.c | 28 +++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-c= ommon.c b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-comm= on.c index cfa3039a0e39..3411d33e5f13 100644 --- a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c +++ b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.c @@ -142,6 +142,8 @@ show_uncore_attr(elc_high_threshold_enable, UNCORE_INDEX_EFF_LAT_CTRL_HIGH_THRESHOLD_ENABLE); show_uncore_attr(elc_floor_freq_khz, UNCORE_INDEX_EFF_LAT_CTRL_FREQ); =20 +show_uncore_attr(die_id, UNCORE_INDEX_DIE_ID); + #define show_uncore_data(member_name) \ static ssize_t show_##member_name(struct kobject *kobj, \ struct kobj_attribute *attr, char *buf)\ @@ -203,6 +205,11 @@ static int create_attr_group(struct uncore_data *data,= char *name) data->uncore_attrs[index++] =3D &data->package_id_kobj_attr.attr; init_attribute_ro(agent_types); data->uncore_attrs[index++] =3D &data->agent_types_kobj_attr.attr; + if (topology_max_dies_per_package() > 1 && + data->agent_type_mask & AGENT_TYPE_CORE) { + init_attribute_ro(die_id); + data->uncore_attrs[index++] =3D &data->die_id_kobj_attr.attr; + } } =20 data->uncore_attrs[index++] =3D &data->max_freq_khz_kobj_attr.attr; diff --git a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-c= ommon.h b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-comm= on.h index 197ca2ad327f..9e4d7f44a41f 100644 --- a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.h +++ b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-common.h @@ -87,7 +87,8 @@ struct uncore_data { struct kobj_attribute elc_high_threshold_enable_kobj_attr; struct kobj_attribute elc_floor_freq_khz_kobj_attr; struct kobj_attribute agent_types_kobj_attr; - struct attribute *uncore_attrs[14]; + struct kobj_attribute die_id_kobj_attr; + struct attribute *uncore_attrs[15]; }; =20 #define UNCORE_DOMAIN_ID_INVALID -1 @@ -100,6 +101,7 @@ enum uncore_index { UNCORE_INDEX_EFF_LAT_CTRL_HIGH_THRESHOLD, UNCORE_INDEX_EFF_LAT_CTRL_HIGH_THRESHOLD_ENABLE, UNCORE_INDEX_EFF_LAT_CTRL_FREQ, + UNCORE_INDEX_DIE_ID, }; =20 int uncore_freq_common_init(int (*read)(struct uncore_data *data, unsigned= int *value, diff --git a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-t= pmi.c b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c index 70415d80773c..adcf992e4ff0 100644 --- a/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c +++ b/drivers/platform/x86/intel/uncore-frequency/uncore-frequency-tpmi.c @@ -26,6 +26,7 @@ #include #include =20 +#include "../tpmi_power_domains.h" #include "uncore-frequency-common.h" =20 #define UNCORE_MAJOR_VERSION 0 @@ -49,6 +50,7 @@ struct tpmi_uncore_cluster_info { bool root_domain; bool elc_supported; u8 __iomem *cluster_base; + u16 cdie_id; struct uncore_data uncore_data; struct tpmi_uncore_struct *uncore_root; }; @@ -376,6 +378,9 @@ static void uncore_set_agent_type(struct tpmi_uncore_cl= uster_info *cluster_info) /* Callback for sysfs read for TPMI uncore values. Called under mutex lock= s. */ static int uncore_read(struct uncore_data *data, unsigned int *value, enum= uncore_index index) { + struct tpmi_uncore_cluster_info *cluster_info; + int ret; + switch (index) { case UNCORE_INDEX_MIN_FREQ: case UNCORE_INDEX_MAX_FREQ: @@ -390,6 +395,16 @@ static int uncore_read(struct uncore_data *data, unsig= ned int *value, enum uncor case UNCORE_INDEX_EFF_LAT_CTRL_FREQ: return read_eff_lat_ctrl(data, value, index); =20 + case UNCORE_INDEX_DIE_ID: + cluster_info =3D container_of(data, struct tpmi_uncore_cluster_info, unc= ore_data); + ret =3D tpmi_get_linux_die_id(cluster_info->uncore_data.package_id, + cluster_info->cdie_id); + if (ret < 0) + return ret; + + *value =3D ret; + return 0; + default: break; } @@ -439,6 +454,16 @@ static void remove_cluster_entries(struct tpmi_uncore_= struct *tpmi_uncore) } } =20 +static void set_cdie_id(int domain_id, struct tpmi_uncore_cluster_info *cl= uster_info, + struct intel_tpmi_plat_info *plat_info) +{ + + cluster_info->cdie_id =3D domain_id; + + if (plat_info->cdie_mask && cluster_info->uncore_data.agent_type_mask & A= GENT_TYPE_CORE) + cluster_info->cdie_id =3D domain_id + ffs(plat_info->cdie_mask) - 1; +} + #define UNCORE_VERSION_MASK GENMASK_ULL(7, 0) #define UNCORE_LOCAL_FABRIC_CLUSTER_ID_MASK GENMASK_ULL(15, 8) #define UNCORE_CLUSTER_OFF_MASK GENMASK_ULL(7, 0) @@ -586,6 +611,8 @@ static int uncore_probe(struct auxiliary_device *auxdev= , const struct auxiliary_ cluster_info->uncore_data.domain_id =3D i; cluster_info->uncore_data.cluster_id =3D j; =20 + set_cdie_id(i, cluster_info, plat_info); + cluster_info->uncore_root =3D tpmi_uncore; =20 if (TPMI_MINOR_VERSION(pd_info->ufs_header_ver) >=3D UNCORE_ELC_SUPPORT= ED_VERSION) @@ -659,5 +686,6 @@ module_auxiliary_driver(intel_uncore_aux_driver); =20 MODULE_IMPORT_NS("INTEL_TPMI"); MODULE_IMPORT_NS("INTEL_UNCORE_FREQUENCY"); +MODULE_IMPORT_NS("INTEL_TPMI_POWER_DOMAIN"); MODULE_DESCRIPTION("Intel TPMI UFS Driver"); MODULE_LICENSE("GPL"); --=20 2.48.1 From nobody Sun Feb 8 20:35:07 2026 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A43FE2D0270; Tue, 22 Apr 2025 21:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357692; cv=none; b=RJgLRZfzeT2j9kF3TJJYnD3vKUMh42caVyaLyPPGGwyBgS4SG/id7Cl6mKzYU4h8OklHbzuOi/lhaQKr7xl5S3Krk+QSsnigGS4p7JDcMFTYvC883oQgU/j7LjUPJgngWe3grZyVKBH7FBXRDq+NMWTWiNkvqgz5HNlXik/pCJc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745357692; c=relaxed/simple; bh=R6FrB2qp+1Ei30aaidxlel0iYIgtEEa1jY/++eIlYFU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kBsWh5o3v0SRQa2OGfWMDWW+knlFPis656DqgK69m9jRNJDoCzABv6bjgWwSmLy5CnnUUR7l87yGdCrzeTzrfYsb4yIpvRkFZmMVxjOJbEWf4HY0i7kDWorLwPt2/rqjfTqDq43aOpFuK3u6qotCoVVBy9lO10LPTJCFP4oJXWI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=JCSGszV5; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JCSGszV5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745357690; x=1776893690; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=R6FrB2qp+1Ei30aaidxlel0iYIgtEEa1jY/++eIlYFU=; b=JCSGszV5GRHBCj4g0wbKYt41S7NPOJp5Lkqzn1VmjuOQr4VaMWJekqwz BORnHVMObFcjTXTy17Vyb6+K+QqvMbbf7j60dQ8YWg1AUaWGxlTD7z9// RqXOmcfr8v3/fun9nxQB6X8Lb8HHk1s25cESROmcvehQxQkjhruO+U2Zb 0OW+Pgg/gvsmQCWp55Lebn62frlr6oIb8HdmxYqjQDcIYjGYjpuGCqkyi 53jqwFbeCfTGq5dxfqHA4m5oFvXTaz0ZE0sdmDU8SHaOdWKHx+SNKKgrQ f7K+K/B6IscsPCdLheN4t34M+jnIvRCN27QdfRka3hdi0/hP0mr19TPbO Q==; X-CSE-ConnectionGUID: ZYFAP8CaTF+jihCeI1RXLQ== X-CSE-MsgGUID: 7eTpE/NrRF6X+zvkFqK/tQ== X-IronPort-AV: E=McAfee;i="6700,10204,11411"; a="46053993" X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="46053993" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2025 14:34:44 -0700 X-CSE-ConnectionGUID: x9tepe3xQ06Dm5U13/zE9g== X-CSE-MsgGUID: ELCZjOfFShGFxyA9z+7Hhw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,232,1739865600"; d="scan'208";a="133070687" Received: from spandruv-desk.jf.intel.com ([10.54.75.16]) by orviesa008.jf.intel.com with ESMTP; 22 Apr 2025 14:34:43 -0700 From: Srinivas Pandruvada To: hdegoede@redhat.com, ilpo.jarvinen@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada Subject: [PATCH 5/5] Documentation: admin-guide: pm: Add documentation for die_id Date: Tue, 22 Apr 2025 14:34:27 -0700 Message-ID: <20250422213427.1943328-6-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> References: <20250422213427.1943328-1-srinivas.pandruvada@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add documentation to describe die_id attribute. Signed-off-by: Srinivas Pandruvada --- .../admin-guide/pm/intel_uncore_frequency_scaling.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rs= t b/Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst index 84608dad84bd..689aca8bf9e1 100644 --- a/Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst +++ b/Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst @@ -91,6 +91,11 @@ Attributes in each directory: ``domain_id`` This attribute is used to get the power domain id of this instance. =20 +``die_id`` + This attribute is used to get the Linux die id of this instance. + This attributes is only present for domains with core agents and + when the CPUID leaf 0x1f presents die ID. + ``fabric_cluster_id`` This attribute is used to get the fabric cluster id of this instance. =20 --=20 2.48.1