Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2779951rdb; Mon, 12 Feb 2024 17:08:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUfBFP5BaAP4QW9zy0cSSpFUntyy4g+/vEiPmblX63Xtt7xC6v9/B4IBfNktg/v2YWOo7y2zWnUD6SCcrIjYrI3+aIuzT/8ZJ2M5dWUfA== X-Google-Smtp-Source: AGHT+IG0LoCDcglMP2qHc2E6BOeY1gjfZOc7EDMK7XuPbWiy4+SeqVsvwHlvqy9QG1PRwj0qWJPu X-Received: by 2002:a05:6359:2411:b0:178:b93f:f60c with SMTP id ls17-20020a056359241100b00178b93ff60cmr9599695rwb.32.1707786501691; Mon, 12 Feb 2024 17:08:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707786501; cv=pass; d=google.com; s=arc-20160816; b=X4f3njIXKmPSp8ZE96btphIvDazg2K44yx5NzygTmQ3s3gTPHm9wiGZ5rikxp4o9dT M5SdbwSHU4TG4hdkJFJ3nncrAgbgWlv95VTAQQyDerOX4mSF1HJP4aSzxrVfLEBIc1Jr DMO0FM+i7uSTp1vkhKCrBKO/Pcl7Kxu+YaY6YjCC56VxWO2WB9vE56TuStCsHHS8U54i 7jgOJf/qL5/osTPLZKevDUtTotQRUt11PbBDySL6uu8RLGS5NoObhBsajkQunHJVSoFL xv5HgFl0buEklhlQXJiDnM8yRGJbMVOm+RAA+GU2OhKsWCHeWEhtzIZBqg0C+HkH6Zo+ f3hw== 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=7P4yz5EljnPqK3VBN0GN6XxZWugfjB9N1hdGlS1f0Fg=; fh=2kH3UAxnHgnU3yCCvbsQTNY6G+lEjEsZyJj6mVyQgZA=; b=XuKMvNjh5Y9Y9QBPToPhku8MNPP3SXTJKGjVmMZ6eM7uISYaLB46xzIexBCTCzlPDn Sasd4LtTE0Mh/h6xWpaSW287J3QNct/vH97w+fP5tO49fLWqDGw4xqziEDtarPidyVgI M+ykfcMSuhVQ1tjZCLic/5fITavy6TWmwE65wLYZ8vE1F6DQEcPW7Aq0lq+hBK/nYRUS 7DmAtypd4QdGh135s6Du3BmfOF4uj5Fsrn9y+f7HoC0+54phaKWAbntHKpH/YKzXmBCb bunKb38xiGVyEbxJ9rSISYbyfsUKqHkMSVvIWsD2acI6mVqvSpbaQVski8yv9yDRH1hD n/hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rk+yzv7q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUDUiP8zapyFzEe7d0wRJU0ff7lCK7dMlqEKeUTaZFOHU9t21YBR3WhBFafOeCpQZMGVmVuG7GFFFwLQS7almuCX1VTYpRkXfmPiR0Wyg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a8-20020a056a000c8800b006e0f47e6491si816791pfv.0.2024.02.12.17.08.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 17:08:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rk+yzv7q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62701-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4E423B233FA for ; Tue, 13 Feb 2024 00:54:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C06C225A6; Tue, 13 Feb 2024 00:22:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rk+yzv7q" 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 9A6277CF27; Tue, 13 Feb 2024 00:22:58 +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=1707783778; cv=none; b=aZaYd629SJnSqbTzkJdyN+bNxSQeBUKgtlg9dQ6NkZwAcr06q6QyIrXRC3shNGpmJLgwfwaCSyhVqlZV3NpMQrJOychk2GDGM3bDv3TGFQTKfiLGs2/6//3CSysLcqj8flQxU7gq+c8KPZeBOcH/0trMbZ4YSDyRnuCTHvTnLCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707783778; c=relaxed/simple; bh=WqStDUa9x8lLHvEoGj4h2wLDGFuGHuVmnWtIUoll2w4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MOVQwsinrdcfO9w2o02K8+odNWUuMMqo9hKJvwYoU8+1nuCdTXP1+bZ18mfvmuP+xJQki7wwq7yQIgjWQvaJPo/4KhR2BAjrX3xvaM7es59ZVLwvIg3LxwZRoJYwXaHtj3oOKw2+HJ3PbbHu7Ikzm15FXOt+hcPJiMKjbVcrZkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rk+yzv7q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74628C433F1; Tue, 13 Feb 2024 00:22:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707783778; bh=WqStDUa9x8lLHvEoGj4h2wLDGFuGHuVmnWtIUoll2w4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rk+yzv7qb8EEgzWh55TVH77NP6iIwIiGkzOAG3LLIfriDoqb/08WP2nb3VRkj6XAw Mz8Wftxsg2zToanZyshHDni7FEurPWrmv0Yp7ZVMyHRG6hgQZoOJImzVD4hitCrjyJ +BZrZyAVPm6xCf0U6ymPhYfHDhyZgzBEHgqszHab8mIgWOghAp2ZMqKvSEKcMGgidy rowwEHjXcA5OMa/OXwDWYwuFwmEKR4IZiW6DSj00FXHPM9grw57CxjEp7+RLsIwyE8 DsuChTmD2n+etbxw9fQCNog4UxQv8M9fVfHvF7IEyWzCZaK55Cd/dXPHP0HTEXZPtG 8iF0BvsgluQBw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Zhang Rui , Guenter Roeck , Sasha Levin , fenghua.yu@intel.com, jdelvare@suse.com, linux-hwmon@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 17/28] hwmon: (coretemp) Enlarge per package core count limit Date: Mon, 12 Feb 2024 19:22:15 -0500 Message-ID: <20240213002235.671934-17-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213002235.671934-1-sashal@kernel.org> References: <20240213002235.671934-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.77 Content-Transfer-Encoding: 8bit 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 09aab5859fa7..f05e32581f90 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c @@ -40,7 +40,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