Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3036070rdh; Mon, 27 Nov 2023 05:17:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMFWH1HEIUGncKacq1+EEqXJL5GfYoYpI+X4dhx3axdr3vVAfxT2Sx1dxsV+eOyyH5tpnq X-Received: by 2002:a17:903:643:b0:1cc:4ff3:c837 with SMTP id kh3-20020a170903064300b001cc4ff3c837mr9478049plb.68.1701091052158; Mon, 27 Nov 2023 05:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701091052; cv=none; d=google.com; s=arc-20160816; b=ASyiCsbwA6DUzDV5VsVQHH3ZRUGX/ieTjNJxujcFChpbx+pTsM0qds0I+Mw4iCAkz5 6PWQf+DD1RAH9u/gXJ+B+fjD2DvqFbydjz/GZ/l+ACLAdFpJchkiq2Jly6+WnXpnpHda cRiAm7YbB96VqeYD090wPfB8CCHU/6JfXTZc7q7gJYkRHffn0+PVRUInrncunsY1ISQU PO7Y4b7SnTznP76dGDEQ4ZSLOZzrxmrOvzCfHyJTbcDVVF0irjrJuPTakjXS7vvY23gH v4SEbwfN1QD5O5XAs28FAdbVpF0H1MIKI1jzdZ1KgcDWm/KRnuBf6xbZRGYqyHwf3Pqq wybQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rxJT/+6g9weN83LNal2wcbtyVvKWUYKjgIb6RSzH4I0=; fh=Mbam0pR9JWUnI2UheCn8N0H+ykbrnMeiPzCxF+zJmn8=; b=THuugy9lEd2AxoZHPlqm4u1X317rPX5EQ/uJm+6vBiSWB/yZvJvJhndniE/uOLVAmS 5n54YTxgkInqNpg8WUs7yRYmnLOhcysg9tD0ejj7+TuPdP4IAuji+XKeXyxQxifRIlcP GHiTqWR+ePbSBE+eDVoq9wtsPMC8QDbr6RmN+undug192L8LU994Ilp7XQGaQp1H2mMV lfYYYShip3kipvQdvCdRbTw5aSoZGOdpIElNSWYEAEOKrxuTWSf5dpht1QLL/+MQozar irF2zFfTnS33mnna3hD6Kr0LjxkGPQEIZeQg4PAP2fDw+PjBZVeKw1BQH6hWeE6/UezX arrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="GDop1Sx/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id jj14-20020a170903048e00b001cc60ca8f43si9444025plb.358.2023.11.27.05.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:17:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="GDop1Sx/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2187B80942DE; Mon, 27 Nov 2023 05:17:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233360AbjK0NRC (ORCPT + 99 others); Mon, 27 Nov 2023 08:17:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233354AbjK0NRB (ORCPT ); Mon, 27 Nov 2023 08:17:01 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86A1CD4D; Mon, 27 Nov 2023 05:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701091027; x=1732627027; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2pAaMh0cJn8v4EHY52uAptTzkL/1qOHMD953Lt40J/E=; b=GDop1Sx/Lfg1WOHUj+V+FGP0+fKMXv/LBB/j17BzvIIoYPUGQ8fkqjAw IHoFqTB5Fph8dPe75HLH+6Lfq+uUKK3KyOAbUekOPTZJJa4h+PmbQCuyx TAPJmutJBwQx8TBvzqommLDs/3yEa+BCkd8nVd8wAfEevc/E24CWiKNCi /Rhzewgo2/GxMTOy/EPsAnLPBfl+n25a6l8VgpR1LpOn8wQhtDTOtsa/G gORQ3uSQA6KBttexbaCNS7AcHucWGiSnc28z6zPlLHJU00To9k3TOvbZm 1yn8r5C+MFh5gjVUxZMPK+quNUriUQwkwJAXCgOmMLAzttDMyXAKzNVc2 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="423833664" X-IronPort-AV: E=Sophos;i="6.04,230,1695711600"; d="scan'208";a="423833664" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 05:17:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="718031604" X-IronPort-AV: E=Sophos;i="6.04,230,1695711600"; d="scan'208";a="718031604" Received: from zhipengw-mobl1.ccr.corp.intel.com (HELO rzhang1-mobl7.ccr.corp.intel.com) ([10.255.29.237]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 05:17:04 -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 0/3] hwmon: (coretemp) Fix core count limitation Date: Mon, 27 Nov 2023 21:16:48 +0800 Message-Id: <20231127131651.476795-1-rui.zhang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 27 Nov 2023 05:17:22 -0800 (PST) Currently, coretemp driver only supports 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 To get rid of the fixed length pdata->core_data[] array, Patch 1/3 and 2/3 removes the dependency of array index in sysfs attribute callbacks. Patch 3/3 removes the pdata->core_data[] array and use a per package list to maintain the per core temperature infomation instead. -rui ---------------------------------------------------------------- Zhang Rui (3): hwmon: (coretemp) Introduce enum for attr index hwmon: (coretemp) Remove unnecessary dependency of array index hwmon: (coretemp) Fix core count limitation drivers/hwmon/coretemp.c | 137 +++++++++++++++++++++++------------------------ 1 file changed, 67 insertions(+), 70 deletions(-)