From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796451575; b=RwKI6uCw4iaJN5tBFfjzKdXm7DMLDQJGRKGBwFx9xU6yObe6YWpKWD1zu7F3pzhPcZnY 8o7Yq981OYl5lgeLs5LWxmUsOzMrbzo0pYwWECraHLUQviEn53cf6EJ/qSuer1TZQlBoj 4wuVZNDIAWW364AV6CzioN9bAEr7qZxUGxw8NBZ+ZVElkFXKv7ygcvDnvDxykJYqunYTh n5T8gJXOoJ54ZlinSU6t+PnhLlkEgJ6RmzyWn2zX8aePP/ZOhZ1tRft3DW06uBy1PTBHX nIX3h2Jac5kyH5CSdj0tYsUs18U0id5hjj4Ecr7F0Z5UYoRvxnB7DWRY2rypjLnKcfQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796451575; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=YbCX2XZJOsn8Ydf8apYDfolMdZ92Qyztw6z1h8ivZlQ=; b=eNQ7SxvfXYoHeEIaL5lQguBm+Lo5T566gg7ijlmhgGF2vYggYqT/vimLWm0CCWWDKAFi GFS2VJpD6DofBGvBvFcdZ2jXX+68DfWCH4B1/+L7YlfrrVywwIELUb+mcs7XibCq09ZaU F7eyMSDBsF7WK3icP83qF84pYJhoIjzWAQA9jXtojb/K5Tl+iYkV0hIJunzH5gZ/ZtYfO qXTS0C+NFHpi6I3E+gVsYG9sxgVRA8tbX+E78YxArN20b5Evr3RW6N2wSziejVXyEP3oX if86/roFg8ToNjCrVBH9WPaiXketumBQMfW/4Z/CAETXtf9gzqp7YaoxKnyEpi0Il4Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FjP4gkvU; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49B1B606A322 for ; Sat, 5 Dec 2026 06:19:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=FjP4gkvU Received: by smtp.kernel.org (Postfix) with ESMTPSA id D022C1F0092B; Sat, 5 Dec 2026 06:19:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796451574; bh=YbCX2XZJOsn8Ydf8apYDfolMdZ92Qyztw6z1h8ivZlQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=FjP4gkvUywvBYDN2TtHN3IZPN86//woIJEU+5gc2pgwp/ACmYyNu1yajYlycKWx1N QYJ7pY8Jo7K42pJnrune4kFD9NVxY1+k12mMBEuKnQFIzA5VDdDuuSqlM2Hdt7VF74 vDBJjCbbOK2pica1h5h621oUISJUeda/6QlZaPsRVeT8mRU6nsYIOkd0GaEdXRZ6Dp T9qgYzbUjo2QYNa6bw30ElIqzE0rXif/2eICa725TMvqLDLJjnb0k2mGhnsaQHBxPh sh1LmzxyYnFl+cBrpU+5kK0Ei7maKz+do3ONMKG5Kurf5SJtAI7wF41qqOexjdqnMJ ynsOKB2ZKaZWA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] hwmon: (coretemp) Fix missing sensors with uneven core counts Reply-To: sashiko-reviews@lists.linux.dev To: "Aveline Noir" Cc: linux-hwmon@vger.kernel.org In-Reply-To: <20261205-coretemp-core-limit-v2-1-e10810df5a3a@gmail.com> References: <20261205-coretemp-core-limit-v2-1-e10810df5a3a@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 06:19:34 +0000 X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > topology_num_cores_per_package() returns the core count of the package > with the lowest APIC ID. If another package has more cores, e.g. because > the BIOS disabled cores on only one CPU, the extra cores get no > temperature sensors and "Adding Core N failed" is logged. >=20 > Use num_possible_cpus() as the limit instead, and allocate the array > with kvzalloc_objs() so large systems don't need a high-order > allocation. >=20 > Fixes: b89e1255c92b ("hwmon: (coretemp) replace hardcoded core count with= dynamic value") > Reported-by: Sashiko > Closes: https://lore.kernel.org/linux-hwmon/20260516121622.1E9DAC19425@sm= tp.kernel.org/ > Tested-by: Asaf Nuri Bertizlio=C4=9Flu > Reviewed-by: Asaf Nuri Bertizlio=C4=9Flu > Signed-off-by: Aveline Noir Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205-coretemp-c= ore-limit-v2-1-e10810df5a3a@gmail.com?part=3D1