From patchwork Tue Feb 14 10:38:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janne Grunau X-Patchwork-Id: 5388 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2892487wrn; Tue, 14 Feb 2023 02:43:11 -0800 (PST) X-Google-Smtp-Source: AK7set+M5B0LZP0/GB25exCAdUUV7QLsYCnqxFf+nudR/+DVxMi1CXvFAxzBzun2raHvrlQtGbBK X-Received: by 2002:a17:902:d506:b0:194:a531:4b39 with SMTP id b6-20020a170902d50600b00194a5314b39mr2767816plg.67.1676371390843; Tue, 14 Feb 2023 02:43:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676371390; cv=none; d=google.com; s=arc-20160816; b=UJdHZI6tQ981L66kWh2PqBjG+7SF2cwfbH9f5slUuGcXJitUKtMKiCfgRHx0YalDUI sE9ds410NmrJBNmw9eOHDTFWaCh86q/giuLAzNyercA4YxQ0LjJajYrohlhjrugPZNIt a/uLvc2ehT0d+ok9LaUM7TgC1C2bJcM80cVPtOAsPV+zE1S6xYgtRLJvGyB5aTDPAHDl ikhG5T1uXeD3/jlmavAxZ6vG56PPINmtx2jgbyQG8f0e+13zCpfZdr3ulYyJrFi6AnDb 5BKmJBCCJTTOz7L/qUzaqkeg40uGgUk85Q7caJDYM29b+KU2zP/ISHyMiZ+MiPO8ugHs fhmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from; bh=pQPfEN7wU/LU7k3KiMowi+SH7RMjchSYVkEJjFXEfzU=; b=NhPm7KhOSXGsJ9I8AtPtLFtmtKaiiR+xEAjbjfhXF5IfnS45L5iskWbVq3FOsyeZZ3 EN0fZCr/mvHoWOzuIve71wBJ7M21LpWtnkcxKooDbt7GGTnfXC31XlBc69a7/1wGk/Ym K/QSvbNpV5yL4Co8zss1+kEOfvmo2Z/f9GY3NYFk3zJnfENRHb9sNiMycc9b6wT7fyJ2 iim3x4c5MrqvBvodjtUFNrSRVwQe1MpSD3kUt3TqlDsiXGr/opS2z+Ega2+5yY9vWXJS LYzLEkDqiNyxyiVlWhYQRaKZZATyvGUF2n4lhwXCehkr0uc7Em9IYT24rdQAM7HBE/5+ j4fA== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a170903230500b00194afb5a3f9si15925954plh.164.2023.02.14.02.42.58; Tue, 14 Feb 2023 02:43:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232541AbjBNKiI (ORCPT + 99 others); Tue, 14 Feb 2023 05:38:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbjBNKiG (ORCPT ); Tue, 14 Feb 2023 05:38:06 -0500 Received: from soltyk.jannau.net (soltyk.jannau.net [144.76.91.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4261244B3; Tue, 14 Feb 2023 02:38:05 -0800 (PST) Received: from robin.home.jannau.net (p579ad32f.dip0.t-ipconnect.de [87.154.211.47]) by soltyk.jannau.net (Postfix) with ESMTPSA id 286EA26F78D; Tue, 14 Feb 2023 11:38:04 +0100 (CET) From: Janne Grunau Subject: [PATCH 0/2] Apple M2 PMU support Date: Tue, 14 Feb 2023 11:38:00 +0100 Message-Id: <20230214-apple_m2_pmu-v1-0-9c9213ab9b63@jannau.net> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAIhk62MC/x2NWwqDMBAAryL73S1mjQ30KkUkj21dqGlIaCiId zf2cxiG2aBwFi5w7zbIXKXIJzZQlw78YuOLUUJjoJ6GnpRGm9Kb55XmtH5RmdGZ0RsdNENLnC2 MLtvolzOqtyth4HqqlPkpv//pMe37AQ2MHm15AAAA To: Will Deacon , Mark Rutland , Rob Herring , Krzysztof Kozlowski Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=813; i=j@jannau.net; h=from:subject:message-id; bh=6ru8iQ5LCW/8mNAI4eO7Y6weTX2bPkbyoSgZJN5ox68=; b=owGbwMvMwCG2UNrmdq9+ahrjabUkhuTXKd2iV097P1cIfbH2uE72HpWup+x2KjtfuxZNXpEvs c3WcW52RykLgxgHg6yYIkuS9ssOhtU1ijG1D8Jg5rAygQxh4OIUgIlEizMy3DfYzBm9SqbTyUfW 4cKc+XMWMy1zilaTEgo+y5vo3On7iOF/xuHyvWWH92TtuRj4ZdHRtPP+GnJdf7Z8mPJmjnKNpgk HPwA= X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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?1757802807342530850?= X-GMAIL-MSGID: =?utf-8?q?1757802807342530850?= This small series adds support for the PMU in Apple M2 cores. The PMU itself appears to work in the same way as om M1. We still want to add CPU type specific compatible strings so that we can distinguish counters in the case they count (slightly) different things on different CPU uarchs. Signed-off-by: Janne Grunau Reviewed-by: Hector Martin --- Janne Grunau (2): dt-bindings: arm-pmu: Add PMU compatible strings for Apple M2 cores drivers/perf: apple_m1: Add Apple M2 support Documentation/devicetree/bindings/arm/pmu.yaml | 2 ++ drivers/perf/apple_m1_cpu_pmu.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+) --- base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2 change-id: 20230214-apple_m2_pmu-175b75c74d4e Best regards,