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=1796143285; b=WZDg8I4kkNOWfYWQJGcMxIlqTe0LKeg7VUJ+sXl2Al3Dxu58innYmlphUYQ27xgG5hYk 8LL/YW7Bj12tVis/ejL7DWZ2L939u1yQol7kVEly0Q5tt2nvBhnjD2wiCazKA8ilhNPBf yAvY464Kmz8MGeAV+auOzJzUSqRVKfr9BjB4X/YFbLeBG3w6fUO4YVe7moKejyPJRmsfJ /f0XYvGnZhuI2dPftgXm5vjlgi4J38GthMgTv/Kp2okJO/zErJoILFaYscDjhJmb/g5aK ndv9matbv1jZ5L3tPdTBYRy0Gdh0NJvolgKCjTqS21qJ9ufMuKEv6h0zh+NpS+8Zy1A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796143285; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Y0zA+aCJALv8UvFTfvX7f9Ap7bl/0Fh2Vz5P7weyq7M=; b=A2OTssmVHZrdsEPOndUkOrDOeSBCl7Q/aeryoaG1/WbLGm6hwAr4YanyRFOt7Ko874WR ESktn0UbgMfesbYcmp2CdpdKa8UhtX7Y4+oC4V8+V04AOnCbIkOoP3DKxDS7vEdY0LMwq TZkKjIVCdyiRcXSVVa9e7sVnLJQR0RuiRo24prAkeKmXmY8d6YErnl2NuRowLrp8Jolze ZMU8AsdkTBWVTFBjwQ9a7X0Z/EsRh/3H15zalVuaE38I4H/Hn22guknxHitB3i8PyAxoo +5mSrqSI79gykqQ0KYxOCdkv+Aw1S0LEguGDJ7jufBlsTokcPwe1vaQXHEm2miR2Z6Q== 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=cVJ2sR1X; 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 22478606A31A for ; Tue, 1 Dec 2026 16:41:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cVJ2sR1X Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2FAF1F00897; Tue, 1 Dec 2026 16:41:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796143284; bh=Y0zA+aCJALv8UvFTfvX7f9Ap7bl/0Fh2Vz5P7weyq7M=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=cVJ2sR1XftzfgVJYd2V7EuxlwOGU2bizyDYQuLmrdbC1qQTsNb7/6Ahj8uKoaFSmW IzAWuYLNLO1wpc+Gya4oOtl8cAOQh2kBRsu5K5tAut3jeB9yjm/obKkm/jsush5jf8 YVkir2OPQ8QXiUnG9ltW1zbgw55+garqW4W9eO4BVANjm25gSAB30ADvLyhrNBO5t3 EZE4kGbO7/Dyp87ktoUtqoFy55kJ7ahqjoVtRaBBudmVHiIK6C2xDi8m6YU8MX4hBR sp+6fUrx9b/axoqkc8ABv7kM6EFQ6/EIaG6JmsxgyygXtAqV4kJ3ihRek/2wZau8/O y3RLIkd75nK9A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] perf/x86/amd/core: Handle overflows of counters stopped by a throttle Reply-To: sashiko-reviews@lists.linux.dev To: "Oancea Catalin" Cc: linux-perf-users@vger.kernel.org In-Reply-To: <20261201163432.44692-1-john3@mailbox.org> References: <20261201163432.44692-1-john3@mailbox.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 16:41:24 +0000 X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > amd_pmu_v2_handle_irq() reads PerfCntrGlobalStatus once, handles the > overflows of the counters which are set in cpuc->active_mask and warns > about every status bit which is left over: >=20 > New overflows for inactive PMCs: 2 > WARNING: arch/x86/events/amd/core.c:1031 at amd_pmu_v2_handle_irq+0x86e= /0x9a0 > Call Trace: > perf_event_nmi_handler > nmi_handle > default_do_nmi > exc_nmi >=20 > Throttling stops the whole event group, so perf_event_overflow() can > stop counters which the loop has not reached yet. When both events of a > group overflow in the same NMI and the first one is throttled: > [ ... ] > Code) was used in the analysis and in writing the reproducer and the > patch. >=20 > Fixes: 9734e25fbf5a ("perf: Fix the throttle logic for a group") > Signed-off-by: Oancea Catalin Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201163432.4469= 2-1-john3@mailbox.org?part=3D1