From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 900A3E74ADD for ; Tue, 3 Dec 2024 21:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=X1bk8j7x8XJU8usRH827LKY8Y1PUbbe6m5Oge9HJXwc=; b=arOc209AC8L8IRd0AOWQ3D3xxD /x0iGhQgHnYfzl2V7QMisN6zs/9FyTHIYVifC2HC/7rdAk+jbY6Hw7NNqTZr82nWVq1BOOZSjFnyi T2BmH244Vv0vdAdUGyL+u1391eQD6wB5xCzAhqzP1uZ7tKL6UbXhSekGCPR+mXxFAdmTO7nxg50e5 Mv+YuUrLXqPcnSosdCblaCN0AyaGUP4xrgKHYYgkhhZkuTJQTjUAfYunxYF8VrDPPrtTt1l5aqbwp YIEzUDxPo4Ktd0JyRRLKI7k+hNbzn9FPsDgG3n/NxMiwcOL5NBFOZGc/hkhLmnw3WG5/KkSj44c6b amq2XH0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tIaWG-0000000AnmK-38pf; Tue, 03 Dec 2024 21:33:20 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tIaVF-0000000Ancs-05cq for linux-arm-kernel@lists.infradead.org; Tue, 03 Dec 2024 21:32:19 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 6C178A40CA0; Tue, 3 Dec 2024 21:30:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 498E7C4CED8; Tue, 3 Dec 2024 21:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733261533; bh=BOg48Ob9/NVzqkpxLrxQQVqMKoA0kVXfOH8VOSVCmp0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BQChVgggT/bBeKHZ8u8dvoyJoHoBlz9+KD0dYqf7fyD45vOJGfMo0S7WkoUP8Vl8W ziJNnSxLXVJr/YwOo9BOglDutV4ejT1qz/qCrjysPT8FVGB0njHXQhhtUYqqeQV97a YX11HDV2c3KepOLCh5LoNsW7yCk/TZ15gxW/5oSZA/ZhSlhz/Va04JD2xEP1vYZHWI +3hv13473VvVtkKiuBdK8C8Afo167/LLjFPjfgfoGeD297Jc7mNlOn+H6btyGm4D9j 9JSxRiQPjgv92f7BZlzDKxyYk3QGZtYgrxJ7kGToFqQKaJVH9zGTsPrcmBXt7WJ0rU emXujeUxfEE5Q== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tIaV8-000EuJ-Rd; Tue, 03 Dec 2024 21:32:10 +0000 Date: Tue, 03 Dec 2024 21:32:10 +0000 Message-ID: <87ldwwsbad.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: kvmarm@lists.linux.dev, Joey Gouly , Suzuki K Poulose , Zenghui Yu , Mingwei Zhang , Colton Lewis , Raghavendra Rao Ananta , Catalin Marinas , Will Deacon , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 05/14] KVM: arm64: Always allow fixed cycle counter In-Reply-To: <20241203193220.1070811-6-oliver.upton@linux.dev> References: <20241203193220.1070811-1-oliver.upton@linux.dev> <20241203193220.1070811-6-oliver.upton@linux.dev> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: oliver.upton@linux.dev, kvmarm@lists.linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, mizhang@google.com, coltonlewis@google.com, rananta@google.com, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241203_133217_393260_8FD2526C X-CRM114-Status: GOOD ( 14.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 03 Dec 2024 19:32:11 +0000, Oliver Upton wrote: > > The fixed CPU cycle counter is mandatory for PMUv3, so it doesn't make a > lot of sense allowing userspace to filter it. Only apply the PMU event > filter to *programmed* event counters. But that's a change in ABI, isn't it? We explicitly say in the documentation that the cycle counter can be filtered by specifying event 0x11. More importantly, the current filtering works in terms of events, and not in terms of counters. Instead of changing the ABI, how about simply not supporting filtering on such non-compliant HW? Surely that would simplify a few things. Thanks, M. -- Without deviation from the norm, progress is not possible.