From patchwork Mon Nov 27 13:16:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Rui" X-Patchwork-Id: 17141 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3100633vqx; Mon, 27 Nov 2023 05:17:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5XqJ5e7j8dwDdEjEdGeRM9XVZjBQQuUwqtOOgGCtBawqsRaKy8UT8cHzT6P65gD1weJJN X-Received: by 2002:a17:902:f805:b0:1cf:ad71:6f64 with SMTP id ix5-20020a170902f80500b001cfad716f64mr6838024plb.59.1701091038118; Mon, 27 Nov 2023 05:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701091038; cv=none; d=google.com; s=arc-20160816; b=A4Z28uvpXIMoN8HxRhprQh1tD7sWMeIwM6LgiGx0M23ba+vVevXQiadHotpjqmlqOs QqK3oGXObLsYVrvX08/7I9OCAg3foEPR/5JBSzLwGyBbjtFCmtki4OUI4DpTL6rEVVa8 zQZn2PyWvhzJNWS4HuIi7TeYEpLDgwiApnffLKomOkQ1I8dfq3nu5W/qdvCMfMeqRL1w S1lKv4yvIWAC4+vtNTWneSDAiO1woO16Wtz3tn+h0aJRcMHFUhnC1K863pVoph/8tyJT WtM7Jj1aERDlgy8qaJrkjo1LOO9iG/NsRqBQ733ZpgFtsPW8iyNE8fK7oazTMpiF2c3O adCA== 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 Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id jo23-20020a170903055700b001cfa577f866si7078814plb.132.2023.11.27.05.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 05:17:18 -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 7980680942D7; Mon, 27 Nov 2023 05:17:13 -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 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:13 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783723236111876499 X-GMAIL-MSGID: 1783723236111876499 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(-)