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 5173DC2BD09 for ; Thu, 27 Jun 2024 10:55:05 +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=ym4ZsY15ilRVHjV8Po9Z/slVVdPP0Z0LANhBz8opW+s=; b=bSZyfIq1d6RUktafkxErVn3afR zRae4pQVhSD6Nqtjx8OZs21AON3ETlUg4voj3ajUXTiaodrNW9ER+y9d9JZ+Kcusp7SWT3pkdLljY foSnxaHPMz1yduuwC7uv3EQOXAdwnaNdWsU/SW7QNiyH9ukFE7PU5HGt1qRqwnyM5IasNV5guZ7yO LV1KnPqv1pnnpEMy+UmeQ546ISuSGGzi2XaDEoOv6qqMT0akD3AI/6QSEaXV5QoK9MzuSEYwnj60V 2UrqWBPP/1LoRIYOjmFz12vAtYxRC/mcN5gnt3j3IhdrvbFIzsc+2Tns7kVPkHNsp8tQR3rbE4qdY g1qpzM6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMmmE-0000000A3Oc-13gU; Thu, 27 Jun 2024 10:54:54 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMmli-0000000A3Jj-3Gc7 for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 10:54:46 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 04CC461E1C; Thu, 27 Jun 2024 10:54:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 992B7C2BBFC; Thu, 27 Jun 2024 10:54:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719485661; bh=+VUe2Wa8SKE7wFSRDeywu7uI2jNt/A1olYtxZ+S+j7k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QIwDX/NWLGHl6ChidC2hBQ6FY7nFCM1ZWVZUP4PWuWckgVsjIpnmCv7nAheI6HE0F rgrPdV+fqVQmGVkqL8exY4V7vuk+8aRj+CeRlew1fIrFS76w7xQ3NY5DSdijz0f93m 2Jb/bo9YFrgaRXtapsYhY/uNBFG4vCaMmJDmhnrp/+72fLp9uqenmi2W2GyZUW/gbQ YDCJoRtFcTImef3P71EbG2iFwYfFD5qi9JJfdU5mcWVo5Xq0AgZm/zxK8wBFphb/fC R97l0vNtyUhY4nDTqUeFv5FXiPBUbnDtwzBCX7/JIAFC27lseefxcZUtIOnrKx3nNk HGH2gBvyf8jyg== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.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 1sMmlf-007lyJ-Fx; Thu, 27 Jun 2024 11:54:19 +0100 Date: Thu, 27 Jun 2024 11:54:18 +0100 Message-ID: <86jziairl1.wl-maz@kernel.org> From: Marc Zyngier To: "Rob Herring (Arm)" Cc: Russell King , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Will Deacon , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , James Clark , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvmarm@lists.linux.dev Subject: Re: [PATCH v2 11/12] KVM: arm64: Refine PMU defines for number of counters In-Reply-To: <20240626-arm-pmu-3-9-icntr-v2-11-c9784b4f4065@kernel.org> References: <20240626-arm-pmu-3-9-icntr-v2-0-c9784b4f4065@kernel.org> <20240626-arm-pmu-3-9-icntr-v2-11-c9784b4f4065@kernel.org> 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.2 (aarch64-unknown-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: robh@kernel.org, linux@armlinux.org.uk, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, will@kernel.org, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, james.clark@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvmarm@lists.linux.dev 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-20240627_035434_039921_69359A2A X-CRM114-Status: GOOD ( 16.75 ) 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 Wed, 26 Jun 2024 23:32:35 +0100, "Rob Herring (Arm)" wrote: > > There are 2 defines for the number of PMU counters: > ARMV8_PMU_MAX_COUNTERS and ARMPMU_MAX_HWEVENTS. Both are the same > currently, but Armv9.4/8.9 increases the number of possible counters > from 32 to 33. With this change, the maximum number of counters will > differ for KVM's PMU emulation which is PMUv3.4. Give KVM PMU emulation > its own define to decouple it from the rest of the kernel's number PMU > counters. > > The VHE PMU code needs to match the PMU driver, so switch it to use > ARMPMU_MAX_HWEVENTS instead. > > Acked-by: Mark Rutland > Signed-off-by: Rob Herring (Arm) Reviewed-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.