From patchwork Sat Feb 18 11:11:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 58910 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp324984wrn; Sat, 18 Feb 2023 03:13:23 -0800 (PST) X-Google-Smtp-Source: AK7set8idgXrUvY0JN4xEJrSWSFgQ6Zwqz80C96uIIdsqSRZMqzI1khsEBOY9oo3088uatQSgdty X-Received: by 2002:aa7:c051:0:b0:4aa:a76b:1ac7 with SMTP id k17-20020aa7c051000000b004aaa76b1ac7mr3140542edo.25.1676718803707; Sat, 18 Feb 2023 03:13:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676718803; cv=none; d=google.com; s=arc-20160816; b=OnZo1zP6WHXLeRco0GSyhMzSby5kWauWKoStbUYIsY5hhifrjM0PHa1MZmY1LW73Z2 35gzzJTKgxdvHskO2n5+bQUzeyhluYrNBvZq+q9h/5FI/X2MNy2WXlivaZrJaeap89Bb BsrphpEMOSSnxMEyhnc5oyQnrIHw3f3cgR8kgM2MonCbB2s3k28ltaAmr/5i/GACThDr q662bOnzzlXq9gNgMvCidJFgcL/FenhSe24OWYxaLg3stNO2GNYBhNGBJWEin8K2ALCE 5rwZ5BeFAhjGb+ruW30bLeF39NLPHEwLMpTM/rJlBYeG3Kci8ajQuWcYSDBaX7HNJ6lQ Yruw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=tt5t4DHSebbyb/eGU3hluUg4OC4qZzJISErkdc9/LA0=; b=VH3p+/W8pBsuSVQ2QFfYH4GhCOwYOBaCwoVV5E6zrQnhq74ifcSm9FDBOf8Oa7g+9I CTgqxs8R5hGNF2rR+nYTPn7B2jdAJDkczM7dZD5/MBGfyUIJ45q3pCQIw9NVXvkvh1P6 UNL7XUszvOYesKwfwjPPAR3I9t4UnYszH9YAjIutriVE2cY5/yC2lDBtme6b4/jbIOjU 27rUPHwGywXjWSHHWlKHUZAupAsnydJQtiq4Ad1byMDoxPh37hbKFGRUEczxSKXC2jlX 6ZiRKfPG5H2QBEiNl3T8sY/7yAPo8yvdtgEW0WV0oZvXYWkL1l8Znn+tpXuaV28nSzNj qx5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AuO8JsA1; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c24-20020aa7c758000000b004a05aed2d1fsi8392772eds.197.2023.02.18.03.13.00; Sat, 18 Feb 2023 03:13:23 -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=AuO8JsA1; 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 S229506AbjBRLL3 (ORCPT + 99 others); Sat, 18 Feb 2023 06:11:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjBRLL2 (ORCPT ); Sat, 18 Feb 2023 06:11:28 -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 C93A7193C4 for ; Sat, 18 Feb 2023 03:11:27 -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 6705D60B5C for ; Sat, 18 Feb 2023 11:11:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6E83C433EF; Sat, 18 Feb 2023 11:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676718686; bh=TYpBl7Pv8a8OgRVX8tmlNgi4Jw3ee7WV6w+cG8t3Tk0=; h=Date:From:To:Cc:Subject:From; b=AuO8JsA1EY1vEUAClCXt7jBmtw+zvrpTmXOIzLWQ+deJZKGQbJyHM9qpjNby+66kD PKzesJ32v1pbKFABOwwjlaZ/b5V/w3yqMClAyW6z81dRx1koeFlEEEqDLjnhKbdhu2 9rt2L3csQ1rlNoPyFStWjhX/UNGRsp3jOmYg19VW3fHC8s8KloEYOkebmvRye0PgQs bDWJD8bNzxmH3QhlJPCj5eMLvmTPD6RhswemLSjybAJm/RrSa9jyIIPQAM0YPC9Tye NsfvkmJHapnWGfroB3oNbVsk4ASs4RzKLiFZnRSSlVSsb/1NL+okNQQ7pTmae5QGPz CAZDdRncIujkw== Date: Sat, 18 Feb 2023 11:11:22 +0000 From: Will Deacon To: torvalds@linux-foundation.org Cc: catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@android.com Subject: [GIT PULL] arm64 perf/PMU regression fixes for 6.2 Message-ID: <20230218111100.GA23413@willie-the-truck> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758167096501755648?= X-GMAIL-MSGID: =?utf-8?q?1758167096501755648?= Hi Linus, Apologies for the _extremely_ late pull request here, but we had a 'perf' (i.e. CPU PMU) regression on the Apple M1 reported on Wednesday [1] which was introduced by bd2756811766 ("perf: Rewrite core context handling") during the merge window. Mark and I looked into this and noticed an additional problem caused by the same patch, where the 'CHAIN' event (used to combine two adjacent 32-bit counters into a single 64-bit counter) was not being filtered correctly. Mark posted a series on Thursday [2] which addresses both of these regressions and I queued it the same day. Unfortunately, the timing has meant that these two patches are yet to land in linux-next. We narrowly missed the 20230217 release and now we're into the weekend. The changes are small, self-contained and have been confirmed to fix the original regression, so I'd really appreciate it if you could please pull them in for 6.2 despite the caveat above. Thanks, and sorry again for the unfortunate timing. Will [1] https://lore.kernel.org/asahi/20230215-arm_pmu_m1_regression-v1-1-f5a266577c8d@jannau.net/ [2] https://lore.kernel.org/linux-arm-kernel/20230216141240.3833272-1-mark.rutland@arm.com/ --->8 The following changes since commit a428eb4b99ab80454f06ad256b25e930fe8a4954: Partially revert "perf/arm-cmn: Optimise DTC counter accesses" (2023-01-26 13:55:38 +0000) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git tags/arm64-fixes for you to fetch changes up to 853e2dac25c15f7431dfe59805de1bada34c96e9: arm64: perf: reject CHAIN events at creation time (2023-02-16 21:23:52 +0000) ---------------------------------------------------------------- arm64 regression fix for 6.2 - Fix 'perf' regression for non-standard CPU PMU hardware (i.e. Apple M1) ---------------------------------------------------------------- Mark Rutland (2): arm_pmu: fix event CPU filtering arm64: perf: reject CHAIN events at creation time arch/arm64/kernel/perf_event.c | 15 ++++++++------- drivers/perf/arm_pmu.c | 8 +------- include/linux/perf/arm_pmu.h | 1 - 3 files changed, 9 insertions(+), 15 deletions(-)