From nobody Sun Feb 8 09:32:16 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 5ACE2281363; Tue, 6 May 2025 16:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746549339; cv=none; b=ki5JACqIFLFwGnP6SXwB45vt3Y8prLmU/rZHWk0e3gJPpgS8hib+9jcBVeXsCBJeEg8DmYqSKwN1xHtHup2H+RAnpSuPhcNM0bzIgdwkzwAtIN7zczz93bXdMdMIrBzZwPiF2OeRkZQF2LtX7Ng+mGniASfao7XAyHBxoABUYus= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746549339; c=relaxed/simple; bh=44Kzf9WsQdp8YAamcIfTxe4YrEPSD5seY1piCpwhivk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uVhklhmkfUzbcs8NoGtrujqpOM0kXiImhjYYRkuxsfWH/TkbKAbgEUXg6GAwKhuz/gt17wfB+gG/cuOOmtECOJjYupCRduHfsnvO0N4joBxSQNkSgo2luhCGG9D+cooXTeYWtr3Fg7EovLmhyYWOAo6P1jhJlK4rpKZFOgU0tYQ= 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=YITMBSs7; arc=none smtp.client-ip=198.175.65.9 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="YITMBSs7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1746549337; x=1778085337; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=44Kzf9WsQdp8YAamcIfTxe4YrEPSD5seY1piCpwhivk=; b=YITMBSs7f9S1JD/o//YIvFizmMBwnbgRdZHit50vz2rrPnRztl3x0/4q KufrYCs4vATIZhQKdOR3KhQEkOJetFBof7V1ce1Uoh2SCT4irRCOXlOBe OlezRjinwriCKEy1OIETbxKYSaOIE9Cb5iauXdAH5YO618EqmG3GMYOuh ZxpD2mZrJmttF1d71ZpzkLl88oZUFsUQMv7RzWrcSGsIrCpwG7iYsss7k i/drTsJoFaclSTct///YGM/y/3HVnXfG4b4hCtkeju996nqMRRzS1pRFn Br5aYk4sFN42BhgMB1xvIsjurfTN3tQZKllEL6kaCo0F3BaqYBkR9nPI6 g==; X-CSE-ConnectionGUID: Be+rBDAJR62mbUHQrL/aOg== X-CSE-MsgGUID: F534pe18SIChEAjeGzNWhw== X-IronPort-AV: E=McAfee;i="6700,10204,11425"; a="70736091" X-IronPort-AV: E=Sophos;i="6.15,266,1739865600"; d="scan'208";a="70736091" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2025 09:35:35 -0700 X-CSE-ConnectionGUID: MNjl9KsxTjuyNaisJigJRQ== X-CSE-MsgGUID: gL7lLV9QRVa+3cB1QYDvWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,266,1739865600"; d="scan'208";a="136636281" Received: from spandruv-desk.jf.intel.com ([10.54.75.16]) by orviesa008.jf.intel.com with ESMTP; 06 May 2025 09:35:35 -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 v2 1/3] platform/x86: ISST: Support SST-TF revision 2 Date: Tue, 6 May 2025 09:35:29 -0700 Message-ID: <20250506163531.1061185-2-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250506163531.1061185-1-srinivas.pandruvada@linux.intel.com> References: <20250506163531.1061185-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" SST-TF revision 2 supports a higher number of cores per bucket, as the current limit of 256 cores may be insufficient. To accommodate this, a new offset, "SST_TF_INFO-8," is introduced, allowing for a higher core count. Utilize this offset instead of the current "SST_TF_INFO-1" offset, based on SST-TF revision 2 or higher, and if there is a non-zero core count in any bucket. Signed-off-by: Srinivas Pandruvada --- v2: - Change variable "valid" to "has_tf_info_8" .../intel/speed_select_if/isst_tpmi_core.c | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c b/= drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c index 9978cdd19851..a52fc2f5ea89 100644 --- a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +++ b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c @@ -1328,9 +1328,14 @@ static int isst_if_get_tpmi_instance_count(void __us= er *argp) #define SST_TF_INFO_0_OFFSET 0 #define SST_TF_INFO_1_OFFSET 8 #define SST_TF_INFO_2_OFFSET 16 +#define SST_TF_INFO_8_OFFSET 64 +#define SST_TF_INFO_8_BUCKETS 3 =20 #define SST_TF_MAX_LP_CLIP_RATIOS TRL_MAX_LEVELS =20 +#define SST_TF_FEATURE_REV_START 4 +#define SST_TF_FEATURE_REV_WIDTH 8 + #define SST_TF_LP_CLIP_RATIO_0_START 16 #define SST_TF_LP_CLIP_RATIO_0_WIDTH 8 =20 @@ -1340,10 +1345,14 @@ static int isst_if_get_tpmi_instance_count(void __u= ser *argp) #define SST_TF_NUM_CORE_0_START 0 #define SST_TF_NUM_CORE_0_WIDTH 8 =20 +#define SST_TF_NUM_MOD_0_START 0 +#define SST_TF_NUM_MOD_0_WIDTH 16 + static int isst_if_get_turbo_freq_info(void __user *argp) { static struct isst_turbo_freq_info turbo_freq; struct tpmi_per_power_domain_info *power_domain_info; + u8 feature_rev; int i, j; =20 if (copy_from_user(&turbo_freq, argp, sizeof(turbo_freq))) @@ -1360,6 +1369,10 @@ static int isst_if_get_turbo_freq_info(void __user *= argp) turbo_freq.max_trl_levels =3D TRL_MAX_LEVELS; turbo_freq.max_clip_freqs =3D SST_TF_MAX_LP_CLIP_RATIOS; =20 + _read_tf_level_info("feature_rev", feature_rev, turbo_freq.level, + SST_TF_INFO_0_OFFSET, SST_TF_FEATURE_REV_START, + SST_TF_FEATURE_REV_WIDTH, SST_MUL_FACTOR_NONE); + for (i =3D 0; i < turbo_freq.max_clip_freqs; ++i) _read_tf_level_info("lp_clip*", turbo_freq.lp_clip_freq_mhz[i], turbo_freq.level, SST_TF_INFO_0_OFFSET, @@ -1376,12 +1389,32 @@ static int isst_if_get_turbo_freq_info(void __user = *argp) SST_MUL_FACTOR_FREQ) } =20 + if (feature_rev >=3D 2) { + bool has_tf_info_8 =3D false; + + for (i =3D 0; i < SST_TF_INFO_8_BUCKETS; ++i) { + _read_tf_level_info("bucket_*_mod_count", turbo_freq.bucket_core_counts= [i], + turbo_freq.level, SST_TF_INFO_8_OFFSET, + SST_TF_NUM_MOD_0_WIDTH * i, SST_TF_NUM_MOD_0_WIDTH, + SST_MUL_FACTOR_NONE) + + if (turbo_freq.bucket_core_counts[i]) + has_tf_info_8 =3D true; + } + + if (has_tf_info_8) + goto done_core_count; + } + for (i =3D 0; i < TRL_MAX_BUCKETS; ++i) _read_tf_level_info("bucket_*_core_count", turbo_freq.bucket_core_counts= [i], turbo_freq.level, SST_TF_INFO_1_OFFSET, SST_TF_NUM_CORE_0_WIDTH * i, SST_TF_NUM_CORE_0_WIDTH, SST_MUL_FACTOR_NONE) =20 + +done_core_count: + if (copy_to_user(argp, &turbo_freq, sizeof(turbo_freq))) return -EFAULT; =20 --=20 2.49.0 From nobody Sun Feb 8 09:32:16 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 D463F283CBE; Tue, 6 May 2025 16:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746549340; cv=none; b=COSY1s4kT0igpQlllAzviN3PoOPclUHOHrmq6lmR+ihdkhHuGIPua70oepeJggqfus7Sr5VZkDF2yRZdW0Db4RIFO9tv+JzcLldHzMDISPbk+xwoQA3Zu3czTTAly0/8Xt4pw78aiFP+zFO28TwCy0kLkdyCM9yF6gA2lIRDYyo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746549340; c=relaxed/simple; bh=uQ3J85liHmh/uiy98ssXT8SKO89/wTyHtgqYzNyKZio=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QT9f+aS4dB+bGgR8ml2bYmyLboM5C50D3KhQA5S9we3Of7BotxxvBsWDNAgayYscgV0kaPeGmDUizuGwA5s7+V/keAY0l293SuogQI4aV5Gh10LVegSIRGRfvtHyx0WGFL2hlC8Mxqun0sqv1e9CaQbfL7L8XaJMOUdEmTCng5c= 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=Y8d/s8NG; arc=none smtp.client-ip=198.175.65.9 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="Y8d/s8NG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1746549338; x=1778085338; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uQ3J85liHmh/uiy98ssXT8SKO89/wTyHtgqYzNyKZio=; b=Y8d/s8NGaLnrkbdHSRo83NFn2ZnrCoBdS9+/2XfLcnZLO+2OPrd32itU G8wkw9OZi9WcioJEMBTcfM+o4EiqOu64bC85hdib4U7SL8oZPSYjro6R0 perckud99Pg8Y/5Re7BtWXSPpi4dpi+HvBMqeT3MA51WdSl+L6381QrhC cudrzuB3A+/xGNalMiZpXW5k0pITsNXf89cjA/kq/1aBQFYNroOv9d2ni 98+YeM4qcmhEoI76ThMsBqF5xq2xw4CQjapYd7t4cfzMzbvQfy+jspJPa ZrRsMKKgMjWRoskQa4h90QMoeprmK03oiIvqtolUbymIEV1+MVgSP3yU0 A==; X-CSE-ConnectionGUID: jrjayTgkTY+b0qitiiIgZA== X-CSE-MsgGUID: nAO944jMS+WEfTqdyEwL3g== X-IronPort-AV: E=McAfee;i="6700,10204,11425"; a="70736093" X-IronPort-AV: E=Sophos;i="6.15,266,1739865600"; d="scan'208";a="70736093" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2025 09:35:36 -0700 X-CSE-ConnectionGUID: 4RiFN45nR6e21rx06Ad1ow== X-CSE-MsgGUID: I+3a7n14RSiQZLLondivsQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,266,1739865600"; d="scan'208";a="136636283" Received: from spandruv-desk.jf.intel.com ([10.54.75.16]) by orviesa008.jf.intel.com with ESMTP; 06 May 2025 09:35:35 -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 v2 2/3] platform/x86: ISST: Support SST-PP revision 2 Date: Tue, 6 May 2025 09:35:30 -0700 Message-ID: <20250506163531.1061185-3-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250506163531.1061185-1-srinivas.pandruvada@linux.intel.com> References: <20250506163531.1061185-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" SST PP revision 2 added fabric 1 P0, P1 and Pm frequencies. Export them by using a new IOCTL ISST_IF_GET_PERF_LEVEL_FABRIC_INFO. This IOCTL requires platforms with SST PP revision 2 or higher. To accommodate potential future increases in fabric count and avoid ABI changes, support is extended for up to 8 fabrics. Signed-off-by: Srinivas Pandruvada --- v2: - Change start =3D 0 to a define SST_PP_CORE_RATIO_P0_FABRIC_1_START .../intel/speed_select_if/isst_tpmi_core.c | 66 +++++++++++++++++++ include/uapi/linux/isst_if.h | 26 ++++++++ 2 files changed, 92 insertions(+) diff --git a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c b/= drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c index a52fc2f5ea89..f56bb63f7947 100644 --- a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +++ b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c @@ -1016,6 +1016,7 @@ static int isst_if_set_perf_feature(void __user *argp) =20 #define SST_PP_INFO_10_OFFSET 80 #define SST_PP_INFO_11_OFFSET 88 +#define SST_PP_INFO_12_OFFSET 96 =20 #define SST_PP_P1_SSE_START 0 #define SST_PP_P1_SSE_WIDTH 8 @@ -1068,6 +1069,15 @@ static int isst_if_set_perf_feature(void __user *arg= p) #define SST_PP_CORE_RATIO_PM_FABRIC_START 48 #define SST_PP_CORE_RATIO_PM_FABRIC_WIDTH 8 =20 +#define SST_PP_CORE_RATIO_P0_FABRIC_1_START 0 +#define SST_PP_CORE_RATIO_P0_FABRIC_1_WIDTH 8 + +#define SST_PP_CORE_RATIO_P1_FABRIC_1_START 8 +#define SST_PP_CORE_RATIO_P1_FABRIC_1_WIDTH 8 + +#define SST_PP_CORE_RATIO_PM_FABRIC_1_START 16 +#define SST_PP_CORE_RATIO_PM_FABRIC_1_WIDTH 8 + static int isst_if_get_perf_level_info(void __user *argp) { struct isst_perf_level_data_info perf_level; @@ -1167,6 +1177,59 @@ static int isst_if_get_perf_level_info(void __user *= argp) return 0; } =20 +static int isst_if_get_perf_level_fabric_info(void __user *argp) +{ + struct isst_perf_level_fabric_info perf_level_fabric; + struct tpmi_per_power_domain_info *power_domain_info; + int start =3D SST_PP_CORE_RATIO_P0_FABRIC_START; + int width =3D SST_PP_CORE_RATIO_P0_FABRIC_WIDTH; + int offset =3D SST_PP_INFO_11_OFFSET; + int i; + + if (copy_from_user(&perf_level_fabric, argp, sizeof(perf_level_fabric))) + return -EFAULT; + + power_domain_info =3D get_instance(perf_level_fabric.socket_id, + perf_level_fabric.power_domain_id); + if (!power_domain_info) + return -EINVAL; + + if (perf_level_fabric.level > power_domain_info->max_level) + return -EINVAL; + + if (power_domain_info->pp_header.feature_rev < 2) + return -EINVAL; + + if (!(power_domain_info->pp_header.level_en_mask & BIT(perf_level_fabric.= level))) + return -EINVAL; + + /* For revision 2, maximum number of fabrics is 2 */ + perf_level_fabric.max_fabrics =3D 2; + + for (i =3D 0; i < perf_level_fabric.max_fabrics; i++) { + _read_pp_level_info("p0_fabric_freq_mhz", perf_level_fabric.p0_fabric_fr= eq_mhz[i], + perf_level_fabric.level, offset, start, width, + SST_MUL_FACTOR_FREQ) + start +=3D width; + + _read_pp_level_info("p1_fabric_freq_mhz", perf_level_fabric.p1_fabric_fr= eq_mhz[i], + perf_level_fabric.level, offset, start, width, + SST_MUL_FACTOR_FREQ) + start +=3D width; + + _read_pp_level_info("pm_fabric_freq_mhz", perf_level_fabric.pm_fabric_fr= eq_mhz[i], + perf_level_fabric.level, offset, start, width, + SST_MUL_FACTOR_FREQ) + offset =3D SST_PP_INFO_12_OFFSET; + start =3D SST_PP_CORE_RATIO_P0_FABRIC_1_START; + } + + if (copy_to_user(argp, &perf_level_fabric, sizeof(perf_level_fabric))) + return -EFAULT; + + return 0; +} + #define SST_PP_FUSED_CORE_COUNT_START 0 #define SST_PP_FUSED_CORE_COUNT_WIDTH 8 =20 @@ -1453,6 +1516,9 @@ static long isst_if_def_ioctl(struct file *file, unsi= gned int cmd, case ISST_IF_GET_PERF_LEVEL_INFO: ret =3D isst_if_get_perf_level_info(argp); break; + case ISST_IF_GET_PERF_LEVEL_FABRIC_INFO: + ret =3D isst_if_get_perf_level_fabric_info(argp); + break; case ISST_IF_GET_PERF_LEVEL_CPU_MASK: ret =3D isst_if_get_perf_level_mask(argp); break; diff --git a/include/uapi/linux/isst_if.h b/include/uapi/linux/isst_if.h index 0df1a1c3caf4..8197a4800604 100644 --- a/include/uapi/linux/isst_if.h +++ b/include/uapi/linux/isst_if.h @@ -375,6 +375,30 @@ struct isst_perf_level_data_info { __u16 trl_freq_mhz[TRL_MAX_LEVELS][TRL_MAX_BUCKETS]; }; =20 +#define MAX_FABRIC_COUNT 8 + +/** + * struct isst_perf_level_fabric_info - Structure to get SST-PP fabric det= ails + * @socket_id: Socket/package id + * @power_domain_id: Power Domain id + * @level: SST-PP level for which caller wants to get information + * @max_fabrics: Count of fabrics in resonse + * @p0_fabric_freq_mhz: Fabric (Uncore) maximum frequency + * @p1_fabric_freq_mhz: Fabric (Uncore) TDP frequency + * @pm_fabric_freq_mhz: Fabric (Uncore) minimum frequency + * + * Structure used to get information on frequencies for fabrics. + */ +struct isst_perf_level_fabric_info { + __u8 socket_id; + __u8 power_domain_id; + __u16 level; + __u16 max_fabrics; + __u16 p0_fabric_freq_mhz[MAX_FABRIC_COUNT]; + __u16 p1_fabric_freq_mhz[MAX_FABRIC_COUNT]; + __u16 pm_fabric_freq_mhz[MAX_FABRIC_COUNT]; +}; + /** * struct isst_perf_level_cpu_mask - Structure to get SST-PP level CPU mask * @socket_id: Socket/package id @@ -471,5 +495,7 @@ struct isst_turbo_freq_info { #define ISST_IF_GET_BASE_FREQ_INFO _IOR(ISST_IF_MAGIC, 14, struct isst_bas= e_freq_info *) #define ISST_IF_GET_BASE_FREQ_CPU_MASK _IOR(ISST_IF_MAGIC, 15, struct isst= _perf_level_cpu_mask *) #define ISST_IF_GET_TURBO_FREQ_INFO _IOR(ISST_IF_MAGIC, 16, struct isst_tu= rbo_freq_info *) +#define ISST_IF_GET_PERF_LEVEL_FABRIC_INFO _IOR(ISST_IF_MAGIC, 17,\ + struct isst_perf_level_fabric_info *) =20 #endif --=20 2.49.0 From nobody Sun Feb 8 09:32:16 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 205E428468D; Tue, 6 May 2025 16:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746549340; cv=none; b=NpcrUJFo6njXPGzTS/of2vIarY0ciZcoVS5g3S4RRrodojvsv1fGLcVSUh5aCmi9eQyTo068WFf4tnN4oaFZDDCLOW/KXRL27hP++Szd4kvKvN8gR1xv7r5jWpk5/zAZvoevmHk+un1rPz1I0hU9WGU4CBXCtmQ/ShugQz+uRYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746549340; c=relaxed/simple; bh=xEyDh7R3iimg8qhthUTNDtfy2HRx25zYMJ0fSuF7Gik=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M4HqySK1zXSsy8RFO+f+uOSfsAhUaDIU3G5LAcB/28fI2ZOnHUuUBEvrVU4AoYKx4cq7zHVdVCpC0sfto5iPYz34ZJ9RdaISk0wL+GrjUFVmNJNxjwIYkibMVipWphkkO1zv3ETXoKRIcPYz+/xcHcYYZpaw7mdTOi0m2YiY+QE= 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=AjHm8GHG; arc=none smtp.client-ip=198.175.65.9 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="AjHm8GHG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1746549339; x=1778085339; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xEyDh7R3iimg8qhthUTNDtfy2HRx25zYMJ0fSuF7Gik=; b=AjHm8GHGsfP6wWZyyX4CTUvlgRUl5ZHTUjqk+WuxAoSq5k9oGw6B4IFC 24WfF/Nzo9y/1Hw90S+5abGJenM2HO5EePIZFRgVNDp0t891YcGMOQfPN snKM8XQBSJm/dJxi4/SbtAacFuSdVIAhAQ0k00qiei73mQF/i4YvTi8ld 8YOcfydwnYzX28qrfKa6aN7jMVavQBuQ5d7FLlNn/4vKEWx4FWUfC5x8f i8RFVhFNL25h3BzOtgaxcqxOPprALyUtmsA73lO8DukAmp7CkWaN+rAzY KWTYBUVh46s2dugieWO/sH8LKmQcWPGJdCirDRR9qgfXkNBOmiGZ1AQG9 A==; X-CSE-ConnectionGUID: Zh4si/zKQmyJ92EPYVQYkA== X-CSE-MsgGUID: CGPzo5OFThe9XKV7i3Xjtw== X-IronPort-AV: E=McAfee;i="6700,10204,11425"; a="70736095" X-IronPort-AV: E=Sophos;i="6.15,266,1739865600"; d="scan'208";a="70736095" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2025 09:35:36 -0700 X-CSE-ConnectionGUID: WNtvefjmQfO9T+rsuqFH/g== X-CSE-MsgGUID: M+9K9x6STu+PYVCkFBLRxw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,266,1739865600"; d="scan'208";a="136636284" Received: from spandruv-desk.jf.intel.com ([10.54.75.16]) by orviesa008.jf.intel.com with ESMTP; 06 May 2025 09:35:35 -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 v2 3/3] platform/x86: ISST: Update minor version Date: Tue, 6 May 2025 09:35:31 -0700 Message-ID: <20250506163531.1061185-4-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250506163531.1061185-1-srinivas.pandruvada@linux.intel.com> References: <20250506163531.1061185-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" Update SST minor version after supporting SST-PP and SST-TF version 2. Signed-off-by: Srinivas Pandruvada --- New patch in this series. drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c b/= drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c index f56bb63f7947..f08d78536839 100644 --- a/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c +++ b/drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c @@ -34,7 +34,7 @@ =20 /* Supported SST hardware version by this driver */ #define ISST_MAJOR_VERSION 0 -#define ISST_MINOR_VERSION 1 +#define ISST_MINOR_VERSION 2 =20 /* * Used to indicate if value read from MMIO needs to get multiplied @@ -380,7 +380,7 @@ static int sst_main(struct auxiliary_device *auxdev, st= ruct tpmi_per_power_domai return -ENODEV; } =20 - if (TPMI_MINOR_VERSION(pd_info->sst_header.interface_version) !=3D ISST_M= INOR_VERSION) + if (TPMI_MINOR_VERSION(pd_info->sst_header.interface_version) > ISST_MINO= R_VERSION) dev_info(dev, "SST: Ignore: Unsupported minor version:%lx\n", TPMI_MINOR_VERSION(pd_info->sst_header.interface_version)); =20 --=20 2.49.0