From patchwork Tue Oct 8 23:18:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilkka Koskinen X-Patchwork-Id: 13827201 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 DEADDCF042A for ; Tue, 8 Oct 2024 23:21:46 +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:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EYRRst4GwbC/nb9seL+HXRaN6b47U5rIhN8+jCBdi5A=; b=Ta2Sp7QEX6Xqev7JMK4NUYMDr5 08GlWN5IzYvl5/K+KPFPEHv9opQsIHvD7WOT/tZl0J95wIu7795NscMsimjj8rG0pbaRy+1LlwglI 9iDoIf15/bm3o/ZHzzE+D80mBAsTPTRUmgeHyRGpvNBx8IFYiQB118KOjUiUNVnIyrgrUlDdmo1d+ JZV1+mxfqsCqJXvzUXYRC/7u9ofp+ziPCHjwdjCL00BkYce5LVUMKKjLSXl4EccocNseZLGLXGiky IwOvEdW4oWUIquzVi5dGw7akhebBZWdJtmfvEpBkGrou2BFPE8kkH3DrGi7mmJkxibDr5eoIYsoLo OKpxWN5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syJWM-00000007Pzu-2Nun; Tue, 08 Oct 2024 23:21:38 +0000 Received: from mail-westcentralusazlp170130007.outbound.protection.outlook.com ([2a01:111:f403:c112::7] helo=CY3PR05CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syJTk-00000007PPz-2gmE for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 23:18:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Pa648CGO4sRqiNOcJIG96cLcWRiE5lgV1mLqadG4CLsLIr+vD9z0i+A3DAFoefygjEvTJnARsiOiRdZE+L8KZlbrl0+8T5zuBgHDLXdN3KXp6WjIh7pMfyeCJMm/gQf6legawR0kvb3ay5fKxivJI07sKtIOGisvggF3ozuSUhpHQQKjU+VFsrzEET+vkN4shyfzAzA5oTUmwH4X92EHUzWCbj6B25kEHOZX+rUG6nDIafimEpk1jw0Dl9S5OeqtKXye0rI/3UNKndMygA/OZNgNyf6oiIqwGjmNSlgJ+0ZE+wH7UXCj7as5/26tP3zyE/Eva4K9+tHXdZ+WaOiFwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EYRRst4GwbC/nb9seL+HXRaN6b47U5rIhN8+jCBdi5A=; b=K1wInTJ3Hgb2ibItY0Hw9vgK5nzVw40cSF6740EJ9ClQiQCKCTzu0x6yuyMptAJxKAoGannmL/K3oNdj4xS5FPb6/z6DyDEF8LVSORtiSzcHocAVJkNrAH7DR/JzROhyYrsQzgPR0maLqf0gfqc1eYA2KC209qmdo4WcgkBp0Cphfr56zn7GDYRrw7nyk/K8QdFFrK+kmRNxLwQVbn9Hvs3nyp4LItPghu+tsjTFfZyO0WiVoGq+wZ+ES6735xub8DE3B/mVmPVnzEput1iR6mRfDttC+KpAzdMZk/OnaOItNGhUTsqmMbZah+gnYLN+A5TUeyLdfFQqM2kONeiqeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EYRRst4GwbC/nb9seL+HXRaN6b47U5rIhN8+jCBdi5A=; b=Usi2Bio6rCjsrw2vqwjI6h0JW0PomlqF+jPaFBQvgbBOvw7/7ZvA69MHCFhJ5i+Cm6kFfpKrRe/jbgVynj8ks8/aGlC8tFQ0DhRMc0tjDHJOvmhoLlf+OwuDc9OaRFyXQ9xL3rRibWTWEjQaK3bNsEeQLd7ImLpl263wXDJUOlA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from MW4PR01MB6228.prod.exchangelabs.com (2603:10b6:303:76::7) by LV3PR01MB8463.prod.exchangelabs.com (2603:10b6:408:1a2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.29; Tue, 8 Oct 2024 23:18:46 +0000 Received: from MW4PR01MB6228.prod.exchangelabs.com ([fe80::13ba:df5b:8558:8bba]) by MW4PR01MB6228.prod.exchangelabs.com ([fe80::13ba:df5b:8558:8bba%7]) with mapi id 15.20.7982.033; Tue, 8 Oct 2024 23:18:45 +0000 From: Ilkka Koskinen To: Shuai Xue , Jing Zhang , Will Deacon Cc: Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ilkka Koskinen Subject: [PATCH 1/3] perf/dwc_pcie: Add support for Ampere SoCs Date: Tue, 8 Oct 2024 23:18:22 +0000 Message-ID: <20241008231824.5102-2-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241008231824.5102-1-ilkka@os.amperecomputing.com> References: <20241008231824.5102-1-ilkka@os.amperecomputing.com> X-ClientProxiedBy: CYZPR19CA0023.namprd19.prod.outlook.com (2603:10b6:930:8e::29) To MW4PR01MB6228.prod.exchangelabs.com (2603:10b6:303:76::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR01MB6228:EE_|LV3PR01MB8463:EE_ X-MS-Office365-Filtering-Correlation-Id: 070828ba-be32-4463-ecdf-08dce7ef8ebf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: fNIcU4E5S075DMoGXxeXXLoLZoysZ8S/T9zVKqvRqFrpYh7suVo7KjQWzczu7px/jXeZnlqNZBz5YW1ZU69IbS79TLJAZexIAiTLnfTDraXAgCc/FNZlYgSe+CQagW+SeHDKQCqJOmaVuvb9OKmCBxMk3obio59nc2sFz6048ahJD1BJ8vxAZbszQ2vYfSs+JEjx+90yw8JBU8Ndu4/DAMAC/2U2417921vNTU+7agIfqEfrxezfisnMFRCjH0YxL+YGT69qhBrXuHyjfc5Cmn7cfxSdfMjbW7yV45qtVErELmAmaz7W5wIlM94NnOFS8pMb6BBCfs3++B7TD0x1uevC5mg++UHgwi8zcx7UOttrMMLhgBDmU5JFihjhLwxd3c8unMW75t6L5o36sxgraKbj8nQ0a553EJQbwiSUbtOiJShxM9WUxL9htdrJehy0gHthHeZsbD8GfBvlG8k/afIRpAVo+CUBQvHzVPi7/BVoUDYR9ib4Z+mRNVVU1ns6gUM7BBaCUEPWp25qUcWYAKYmpTlhmbiW4m2d9ckB6vi0QigdcSfMVV0faBs9V48LTGrKt9LShnZJERSJnv1ARsfBifvhYrrPwfvn36M4nhFNQBYqkI5oUPWgU4owVWjfiJzbIq2emeBC4uDZuLHq/5YZsTigMlmwXdT0esdTKzUbGC9yTQY04ZSH7KnCHyZ2UWkJgKdvW4h7G/en/W6dtVV3bh5ySymS4HlvgmA4dftIEEjTnGxoldtiXd27fP9NVjjAMHDCRSYeCfHJsJfpl5RNy+rjQfZV59gkJsKaqZj4I07Czrm/FL47jMZ6hPzRu0sESomk1FI/JM3Yj6MncO9HqReDOxcRSf9uET31HoQ332JHLZM8dFEuYGJmNgX7DNuLhZ0r6NrbtsbQuMUjURICuh2Nd8yh57YdFOWVpCNUUcLC4J1+d8kZ9K8a/CNduJaevLlCAzBhrfKpGoPUa+4OhbPJW/PhyTtRL+WuW93wZpPmd7xchGA5GuXZRmghQ9JlLbMBnOuaOqFYo98FNnxRGXHxLHgWhB87pUa35To2+f4VIlyiiOXazicYWAFXoIOPr9KRhJmDP8W+9JE1PUJodNE29Gt3jVVIV65j3LoqtshejDchziRhkyPC+tf3H9VNJhSkD32+GtE1/CJPDxeGUSikokz4pL8b1YrhKhjLJJT38GU94VHIVJnmc57jIVQ0W/2vYsUY1KLyDyFr49/m28HW7E9AWZe2BYHMimdEoxJrLrMr8TSZ8EOEgrfQrOCAgZmey5pDQD1gpgYR0zBe9egOmIr4hvCHjZ0vvUs7Y4TnJuDEYb8YbgIDsOZ1Ku+YQdEwXsQpQ5dhosvJog== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR01MB6228.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +jX4gngFMCqOsRmswqVSmNaPnZsk2FeqYOXWah/KkvSdTUPsG5L86l1QuIUW4tUCEoLMpnUZhet2sxoCnL3r7Wj7t/sYUMSVIaR2ru4aU1sS4+ZWV7aZG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W7dYhLTYSXTNRnC6m51ycxb3jp1wiNOGnLnUxBKy7KH3LC/xcBy+o/Mc1Xcjqzlplk8a2yM60WeEvcJdW01s5dNeK0r5jD6vmOejaBdeiNY3udHqwLQTMzATxjfWK4Zf1YI2lfUSMExRXfzO4GB/CCjf24OYS6XvD8kqrRJehwaeVHbS2AOtN6PG2aYki6EZQfXjroY2vKk41XDVozwC+mV04enfNpKa0REz1bO2zG6va0GQSqSwh6f1nHiklqfJKnoxf/37EMTmHtsVkuwY2AsZ1JikqUom+N4MCpHoVgg9UMWslJRRc7uQaKH8QdUAoPvL2uXjSkzZDqznfmgznegx9j8nU7il4RjmNltYKupQwrWQBvl7Cs+IVx3OyXo+02Lwj1N9mF/uD72NFLsyOg3SRo1O4qs6543s4Cubzjggvzqqfgr6OQFwlhnD7N5cg= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 070828ba-be32-4463-ecdf-08dce7ef8ebf X-MS-Exchange-CrossTenant-AuthSource: MW4PR01MB6228.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2024 23:18:45.9196 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0nQbFDr/gX7h4sWuWyxrqRjudGuQNFsQooBKId1+rgFInld/8LGudypr68D+OYpt8ikzwa0GQwD4cZrVvKS/Z/1Z/MwFo81+WoWVgsXNifbYfqj7YawDXVkKf1cqrUgz X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR01MB8463 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241008_161856_704566_AA27F98E X-CRM114-Status: GOOD ( 10.17 ) 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 Add support for Ampere SoCs by adding Ampere's vendor ID to the vendor list. Signed-off-by: Ilkka Koskinen --- drivers/perf/dwc_pcie_pmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/dwc_pcie_pmu.c b/drivers/perf/dwc_pcie_pmu.c index 4ca50f9b6dfe..3581d916d851 100644 --- a/drivers/perf/dwc_pcie_pmu.c +++ b/drivers/perf/dwc_pcie_pmu.c @@ -107,6 +107,7 @@ struct dwc_pcie_vendor_id { static const struct dwc_pcie_vendor_id dwc_pcie_vendor_ids[] = { {.vendor_id = PCI_VENDOR_ID_ALIBABA }, + {.vendor_id = PCI_VENDOR_ID_AMPERE }, {.vendor_id = PCI_VENDOR_ID_QCOM }, {} /* terminator */ };