From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A609C13AA2F; Tue, 27 Feb 2024 13:44:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709041488; cv=none; b=W4FKA7XZI9mCu6g2Nn1z2XybD23PU/M6vhNGsFYiwNuXjekSNdxoUjwN4J/0Y6CDNIQ66PCie5Lr6FSy8qCggYCf/5TDwfE7EcNMuctpGIcaUtQacmcNw1RG/sDd7NQOAVeBb/URJfynJLCz/mHxI7JvAjPbPfYFnuWuubEgK7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709041488; c=relaxed/simple; bh=Tuj1paiD3cBGEMN3LS6I6Nijd8mOI8jrqK3SC7EnwfM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UdXJwH2KDZkMeBp7PhScr44oO2tvOA44BVoFenBfb8PKV8w4Ufs/CdSTGd98dXibtoSKRdIunXpAvwSe16BHnphT9/3XQU8v5+RKkiBw3ngkMZ6PkNTRCOJQIrhvo2TneTjbkz+TNwe53tyDWf7GWaJnOXVW7A8SZre4GoTFljI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UHccWNKc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UHccWNKc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D11C0C43390; Tue, 27 Feb 2024 13:44:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709041488; bh=Tuj1paiD3cBGEMN3LS6I6Nijd8mOI8jrqK3SC7EnwfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UHccWNKc1OooSZtCAT+14A/3fimbTnJReyhdlYDQHJnWylPsSJ6g5Cl1cYSXdC+bl w4diskz2dY9gIApeLi1tDgL8yJEwQ42dsKUn1Dqh5QI2Gwfu39cgTZ1vlwoqAH1Bru 0/x0SOLUA3ehO4/YRVnWP2dqubw+wKcJKUJwh2rc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Zhang Rui , Guenter Roeck , Sasha Levin Subject: [PATCH 4.19 22/52] hwmon: (coretemp) Enlarge per package core count limit Date: Tue, 27 Feb 2024 14:26:09 +0100 Message-ID: <20240227131549.260703856@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131548.514622258@linuxfoundation.org> References: <20240227131548.514622258@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Zhang Rui [ Upstream commit 34cf8c657cf0365791cdc658ddbca9cc907726ce ] Currently, coretemp driver supports only 128 cores per package. This loses some core temperature information on systems that have more than 128 cores per package. [ 58.685033] coretemp coretemp.0: Adding Core 128 failed [ 58.692009] coretemp coretemp.0: Adding Core 129 failed ... Enlarge the limitation to 512 because there are platforms with more than 256 cores per package. Signed-off-by: Zhang Rui Link: https://lore.kernel.org/r/20240202092144.71180-4-rui.zhang@intel.com Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin --- drivers/hwmon/coretemp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index d06e884775885..01c6518fe5654 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c @@ -53,7 +53,7 @@ MODULE_PARM_DESC(tjmax, "TjMax value in degrees Celsius"); #define PKG_SYSFS_ATTR_NO 1 /* Sysfs attribute for package temp */ #define BASE_SYSFS_ATTR_NO 2 /* Sysfs Base attr no for coretemp */ -#define NUM_REAL_CORES 128 /* Number of Real cores per cpu */ +#define NUM_REAL_CORES 512 /* Number of Real cores per cpu */ #define CORETEMP_NAME_LENGTH 28 /* String Length of attrs */ #define MAX_CORE_ATTRS 4 /* Maximum no of basic attrs */ #define TOTAL_ATTRS (MAX_CORE_ATTRS + 1) -- 2.43.0