Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp713538rdb; Fri, 2 Feb 2024 01:23:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqC6tIWPZiOOyxckDHTja1h0uqnZTxtDlTMh4v7DGz1pQVBUySVSMrf/snJ7bUAtkELR1p X-Received: by 2002:aa7:d615:0:b0:55f:cec9:3a7e with SMTP id c21-20020aa7d615000000b0055fcec93a7emr815699edr.0.1706865804208; Fri, 02 Feb 2024 01:23:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706865804; cv=pass; d=google.com; s=arc-20160816; b=mv5EUUZ5MHEIII4TokYDP5Ihf2SH6apHamPl6LKpD9XY38MtGiAds4a5DnbWAhd6mC 3YmHLoPBp38voHzP5WhOESQ+P5fXC+zcezI1dRMN8m6WJgi1DkDnbZ/XaexuLBukyeRD NSGS+4nKZJkrFyw7SkRm5432Q7ZDDDJangPJOE3nsqeCeGAfLMPFpjibuZ3+qu/HDvSU Qw1vJYmdaAZMmQ4VM1AWdXDtr+giwYglUcqoJj/3+Qi2qFiAtC0YK8ctPHrsz4q4P1Qo DviGtt8+b1MLJ5bHLsej33LhCajjskzXHWczkTgpP+7RNQTLg27oIghEZMjPa9q31qW+ 14IQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xzz1D6aycc3/F5lhIVELQCna2gpoqM2hz8dC2nkYuQs=; fh=RbCzqqoZ0NK/QZp5ci+cNUwhqg3tD8plLilueBZAKk4=; b=YPa5/NtL+Ny7Zmhi5fuv3iAn1yMYR460TmW3dXzfty7Li9NiSI/UqFGjd/iPuTzgzg gHUsGZ+9cdJr9/lTaQQxJ/loRQCXXRdRp/4+X2J/BOmvOjlLyGaxBPh+gqINXA8vTA9g eI86EtsNXMxWOBC7uCEEXvz/gGnvetTBeSo5wqPjRCohbuF2wa+1voWCbmMKYBbmgPx2 hbvJ22dagXnOkSisCVi0PNZDU7SBFc+f7k0DTx6+3Kcv9eFgrqIOh4Sxn+D5YvMS443c vAOfH81zBsfVYbnVJsUIQEmEG7Xvr0KDZMW2LQBVhrmCl/zRqHU638RdhYnlvhm/jLPM u0DQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lm4tYbmZ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-49556-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49556-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCWAbfXy8lk9YbwcAE4K9lqSDGibQIPGlAfC5q+GpqFvYkxxCKIVzeMkE5lSPkEL60Y4MC9/D3uQ2r+qft17UBw4PDee9ZkcyoY4VdYrPQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g23-20020a50d5d7000000b0055fc1ffcee1si653025edj.594.2024.02.02.01.23.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:23:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49556-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lm4tYbmZ; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-49556-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49556-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EA30F1F214B6 for ; Fri, 2 Feb 2024 09:23:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BB1A7A728; Fri, 2 Feb 2024 09:22:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lm4tYbmZ" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 BF2187A70C; Fri, 2 Feb 2024 09:22:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706865725; cv=none; b=jrl7xo1BscrLBuSK97PYlLfFS7fvAmfrxnIGGjNNAdEOguo3of0yykUHyVyGMtlpoCaP9iLwDxF39w6/OyGGB/dB4WaJPL6bND27I0SzVWGjhi8hyR0++J7LSzI5+zYN/TdD0Ne27o/IoeWnD0s2JMUa6wdfHfRN5GEBAGC3Q6o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706865725; c=relaxed/simple; bh=M30zJ8jiKBRt9vcEZBXNCa9ddRJLNILlVAiBhO8gJps=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hZD9a+dIgIRfwoBOXNxTslZHRH66YZtR5PViGq9k2M3QlXy6jC8rOBfef5ad7+FlfTWFnHLq1yqjDLVCmQ9ORMW2VL5buR6yCyTJVRyVEKpoT1LQC82s1OIOC8vvY5N7Hft9jh2J4uJT9KSXSYULC8RdMYvTBBtBtqFkJngYrzI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lm4tYbmZ; arc=none smtp.client-ip=198.175.65.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706865724; x=1738401724; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=M30zJ8jiKBRt9vcEZBXNCa9ddRJLNILlVAiBhO8gJps=; b=lm4tYbmZn+CmQ+z5JJ55txXOqZl070JcoR6tHWGKpiluY8NuUEv9GmCC DTZZ/snkFlD/iN7mUchJhdw5DF/D+SMNg0q5r1E2b4S1E85hXTnEjVYiu B/HZNb07Sxvm01dtcTo/w4dsJume52T0ml9iJz7WHOJHcVFaQ458EpKDz br54ADKq5dBywiY9VcDVfrlhIFQdAYqHbiGDaW3P/IL6uSY3zs0lwykma SSBF0cn62Nn+xcba6Va9egf1dX04uJlM042mGTAnHBANKgOvtSjwg65qA GdySmDdA643DQaGJqhucjafbVaFjyvXJ7LgHjjVpjHHSWM/NlTpfIraJ3 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="11483053" X-IronPort-AV: E=Sophos;i="6.05,237,1701158400"; d="scan'208";a="11483053" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 01:22:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,237,1701158400"; d="scan'208";a="4639703" Received: from wangnin3-mobl.ccr.corp.intel.com (HELO rzhang1-mobl7.ccr.corp.intel.com) ([10.254.214.177]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 01:22:01 -0800 From: Zhang Rui To: linux@roeck-us.net, jdelvare@suse.com Cc: fenghua.yu@intel.com, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 03/11] hwmon: (coretemp) Enlarge per package core count limit Date: Fri, 2 Feb 2024 17:21:36 +0800 Message-Id: <20240202092144.71180-4-rui.zhang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240202092144.71180-1-rui.zhang@intel.com> References: <20240202092144.71180-1-rui.zhang@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: 8bit 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 --- 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 95f4c0b00b2d..b8fc8d1ef20d 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c @@ -41,7 +41,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.34.1