Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1592577rwb; Thu, 19 Jan 2023 12:44:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXs17rrlapCIqsTwZto9qu6Dlzfm8MZB4wEBDhIvwj6ja9sp9/iMV4g2wmqSX34P0aDso2ha X-Received: by 2002:a17:903:200a:b0:188:640f:f41e with SMTP id s10-20020a170903200a00b00188640ff41emr10938434pla.4.1674161097884; Thu, 19 Jan 2023 12:44:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674161097; cv=none; d=google.com; s=arc-20160816; b=Xq7EsSDUTCIO+4Uxx1BaHDsSP2GDzKA/QyfdZmcxX5957ULxMgvVD8hRhz4A5BQCsG O9kRMpnft/0VHVSH1iJUhReg/mxfdTJ4DoPjejNUQy6H5WoTbKODhW7w113xZvg9OAfR 3z/Dr+/Z9jiHqpDfO1DCs+R6K5U/cEP6ED5sbmk8/lzDkNQLTffP70SwAqThtEykshzt AIlkcu8HYYek2cXSSP6/8bY7pzW1nRAiLlKNai/fuxWQOG/ZzfeAZ1fUJZk+cRFl8CXZ VbauTpjMtLUCJpPvVZ5vmAgvKM/nfdzElE6x7GBb1m7gwjUBsm+RlFJtbo2+fi4Ptdig ktOA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iyMw0PGst52iMg1BIHH/RZKps780eegZyU+224RDLxc=; b=CIeirSoZN44pZZbxoZqgCMMXNq98g4Dhvk6WCmFZCqhTkC++XthYUQGgKFexCTwgZI b5WP6eory7dkTOSA6y8qGhHb/eweOoFbA4jMa0G2Akr8Goa4YRDNoYmtoyQV0quZbQZd GS3JI/FJEpY+COeGovGsDYuOesriorIqOt/kY4S7qLyVMDNbn2DuMHFVVpTG/A1gcDiA N2LoLWr1vWONE1HJyrm8EPH95axo9R/22wuo8OryeVqlZMebwhG0KMQUhJafNTxvI0mk EvyTXOOK+XVnxLzmvU3n6v7+XSnAnE6bhIh2+SX/7JNjq2Mvl5Zle2P0mqUPB0ReADeb vD7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="SLbtv/pq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 199-20020a6300d0000000b0048c4f23869dsi38680004pga.796.2023.01.19.12.44.52; Thu, 19 Jan 2023 12:44:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="SLbtv/pq"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231375AbjASTMa (ORCPT + 46 others); Thu, 19 Jan 2023 14:12:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231299AbjASTLc (ORCPT ); Thu, 19 Jan 2023 14:11:32 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D134951A5 for ; Thu, 19 Jan 2023 11:10:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E43A61D64 for ; Thu, 19 Jan 2023 19:09:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A388DC4339C; Thu, 19 Jan 2023 19:09:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674155370; bh=8Cn0FcPGO99DRyV5BMetrgkrR1IPC83hOdnJBiluyg0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SLbtv/pq5LhkcUCCds/LdW93PejmIky0uIn7iFT8KGKrQTnvSm7lcwmRq9BKyKeMw pnlILg6L0szlOzXq4N+MHosNrWk1VX69aqdHzlKsQPVR1PI/QAmGsBidrwnOx7JyYY xZ25VbBZlTer9WiDhpNChODd38w9q4yojdsAVFlWyIWEkeGrXAQuyUmsJHSxEC5KAY ej8GLQy/4oaf9XAVjkoPRyZQxjEjQQYNhm+PQan6IVkZVoWOHQSMRniSno4aS9cMD6 XUehSXSbsP0ACyvA0lcgCYwlFSAcGM0r1ccjOphhtG7HnNKyFoXGSR8x46+j9H/ovk cMXJ/xXyeIzvw== From: Will Deacon To: mark.rutland@arm.com, Robin Murphy Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] perf/arm-cmn: Reset DTM_PMU_CONFIG at probe Date: Thu, 19 Jan 2023 19:08:43 +0000 Message-Id: <167415190277.3429004.658905197029681030.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 5 Dec 2022 19:46:13 +0000, Robin Murphy wrote: > Although we treat the DTM counters as free-running such that we're not > too concerned about the initial DTM state, it's possible for a previous > user to have left DTM counters enabled and paired with DTC counters. > Thus if the first events are scheduled using some, but not all, DTMs, > the as-yet-unused ones could end up adding spurious increments to the > event counts at the DTC. Make sure we sync our initial DTM_PMU_CONFIG > state to all the DTMs at probe time to avoid that possibility. > > [...] Applied to will (for-next/perf), thanks! [1/1] perf/arm-cmn: Reset DTM_PMU_CONFIG at probe https://git.kernel.org/will/c/bb21ef19a3d8 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev