Message ID | 20230913233941.9814-2-ilkka@os.amperecomputing.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 DB764EE0211 for <linux-arm-kernel@archiver.kernel.org>; Wed, 13 Sep 2023 23:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=/gjbPDER5Bm7xKzyOIJ9Vcmcm9o+WUphJZJlPCUo5C4=; b=VJFt8PWYOM0FhN CJd5qe2IzN59ZYhnqayU3Vclfjmr004fDoxMuBwDE1Zukz72tL+JKOushrN/MSEaCGovPClY3ckv/ VFcT7G2K0FBnndH7wUtYf9OA6HR+g3eTbsdGp6mNWIuN1fzpr8m7KCFpUfAv2R6qd2uLuYrCmYqKX hA6fj96uTC6O8wSkDl06d1tWB1Ck1Z1bCRWk0bQLGEwuJhVj40yZOtH2S/VIm6QUmLfJrszy8zCdV usvOYMhSrnvn1qL37dVx46yHGMcGCZNWVfjc6UYyelKG6C7wg7rTMTGeGmY/MwtdbUVoOQYxTbC5z JsRMLkdReXm2vYGZCsfg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgZTt-006u8o-0V; Wed, 13 Sep 2023 23:41:13 +0000 Received: from mail-co1nam11on2070a.outbound.protection.outlook.com ([2a01:111:f400:7eab::70a] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgZTl-006u7K-2I for linux-arm-kernel@lists.infradead.org; Wed, 13 Sep 2023 23:41:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P3y6RXxUNrkttE46Nuc8gqyYV9rEoCduPyOe1FJniHheP6iiLrhMag3tpnlbNfAAsTqnYiUVnhcsl4s+WmQVz3ORRkXarGEDXTXYztyT7LBaR1ML422A9WQ/FKPADST5ecvCQHS4mLqmJPJc/HXiOiVQeY8ovqlffSbpVe29YQC3/+Yy7t5pA6OpO/wFIeVbM6UwxiSMBbnUhYnZbMoQHbFq6ZVRW1U4BOGrtW+7oycCG5Sl3q/Nzm1e9FKitWk3kG68dQYGyY0jvZGFurH20/dScXis4eWQtDuApQnI7v6yvAI3Br/H3lUvtPbfM5fT2CPQJccxG0IkAt0AQFQfyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=09JiRRwv/0acnwS02oV3bCOft3kocAIAHJSLyFi38zw=; b=H9Uz7fvJJuf7jxKc5H8okiDu0p/qh2yRLwKohrPr0COr6U2gXxLDmcV53poabXHKoSiRRYcOakrBIoiuCi3whJzrXsvI2yvEmfRnKR/DoCMonFK7rUmMzQMIGWw2t4uB+RM+1A6/9pMGynEj7nhgvc5fbzTvE1jCTmNJ1LzJv9qa1BhlvjvqhDImkmHTy+iKZeG9QfjcCGOnoETWw3yZKETWDxxtYBnrIf2723o3F/K7266p2ZtD0ClsWWpdJGPm0RGbiQhQJr7HcyngHHWG7266Hr296AuOS3I7B0o/FJSLfGtNUIUqMKSHrIas9Xz8Bxh1eZb39FgKDtcHpAQQlg== 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=09JiRRwv/0acnwS02oV3bCOft3kocAIAHJSLyFi38zw=; b=k2SGIIFPu0APJLsC2yDN7oaIhB5PQtgzmKSOMw+iva4aQmPhCEWicGOU6Nwi54SrI+QPB01pOsCIqb9drhbmdUDx442TdKMolDSIQgBvFky76K0pG344HNrA/OVtxmVmF02vXgJoMsofzFdG97IY5uAba0UL/nUPR9StCBqHsHM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) by DS7PR01MB7591.prod.exchangelabs.com (2603:10b6:8:73::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6768.37; Wed, 13 Sep 2023 23:40:59 +0000 Received: from DM5PR0102MB3590.prod.exchangelabs.com ([fe80::bfa4:8250:f526:5015]) by DM5PR0102MB3590.prod.exchangelabs.com ([fe80::bfa4:8250:f526:5015%6]) with mapi id 15.20.6792.019; Wed, 13 Sep 2023 23:40:59 +0000 From: Ilkka Koskinen <ilkka@os.amperecomputing.com> To: Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Besar Wicaksono <bwicaksono@nvidia.com>, Robin Murphy <robin.murphy@arm.com>, Jonathan Cameron <Jonathan.Cameron@huawei.com>, Jonathan Corbet <corbet@lwn.net>, Ilkka Koskinen <ilkka@os.amperecomputing.com> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v7 1/4] perf: arm_cspmu: Split 64-bit write to 32-bit writes Date: Wed, 13 Sep 2023 16:39:38 -0700 Message-Id: <20230913233941.9814-2-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230913233941.9814-1-ilkka@os.amperecomputing.com> References: <20230913233941.9814-1-ilkka@os.amperecomputing.com> X-ClientProxiedBy: CH2PR18CA0040.namprd18.prod.outlook.com (2603:10b6:610:55::20) To DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR0102MB3590:EE_|DS7PR01MB7591:EE_ X-MS-Office365-Filtering-Correlation-Id: 71f90142-997a-403a-02ee-08dbb4b2e23e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CJG47hUNDHGX2XT6VaHkRVByogM42a6OP0lY2+93rwwqJNGiJg/J2qjiWW4R9D1UbjR62ZeuD+cveiV9u+iboqFtmiB84i3K7ELwtk3jSLBt1HuHZ2UzQ0ZpMr8LpniVY/kZzaxjp79HjOEX9O5PLA/KSDD4P6a2aQ3CgIKLrLkv+5J3fHuEUE+TwXjMmxOHKX4/5r96ihorzwcarXqQYUxo7ymRX7fLVP2I3KunJ8lzmhaaflKeRzU+2XqHWczYiBBqt9mViB+9HLMFMwayaFq1shDdZmXCX7pumGYlNbl3h9T2XhCboM7m0lwdxevASF06L25fThPJBYBmTQV7cVWOMfefrf2J+ifa1UYJv1gnB3I5TV0gLbS6Ug6k7WjOUYhPS2hTPAiHQTkgBe7qj61Ks8AUnA4C3v9T2jDl3Tx0iaJPQUEeVy9IBM0pOoNZvs2hn9W7hnqICfg8vTw6KrPH0Te2itXyJH/6POrRuUNPpNiMCC2gCMJrf/XRq2R3EhKn54RSyHHj0yvbTp4A9FNqIfjUfehr0FWvES1vlSUazI6WKlSLEWzXNj3e9CEEV5iojmtl6e1C3A23DurjdITgyXMtA15bcIRLUiSnfsTvDcjWIDGBtqS34ZVhrwMe X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR0102MB3590.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(136003)(39850400004)(376002)(346002)(396003)(186009)(1800799009)(451199024)(6486002)(52116002)(6506007)(6512007)(7049001)(6666004)(83380400001)(38350700002)(86362001)(38100700002)(2616005)(1076003)(4744005)(26005)(66946007)(110136005)(66476007)(316002)(7416002)(66556008)(41300700001)(2906002)(5660300002)(8676002)(4326008)(8936002)(478600001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2OGTHQ/XYc3oHW0hTii3j9yaJGH0NaG/5bw+9Oy9DCHs2fY8LDkCnYcPrCtNaaXKbPARTofjKahvbEnmBLO4EPkCgjitN/vdLYPyURKD3q/mZc2Er2ksheOebUNkLNrpJz4RzH8OKwxh71eacwbGx6Kne+NHTg6swyHWRfqTQIaShDWZNF6lAaHcKIBWzWslQKJIyUQqr+J44AZ6Ha+i+k0i5wrcPHYta09JD1MVAX541cUggpGUPAKuhhYCxj+qVGFIZGwIgjfqZbdJRjm15brtcPmBQ9C/GCqfER7zUeFkNG//eeBo+0DNy7TNnFqThJ7QlexcGhCUSigUI22h2/rRd7aNB2vow+uS/eaAtIvo8P5biGLD05TBr5TRRrliMdDj+uxoPBjo1UbdTm0iKY1QjVWztBkBiygawBuG8cgmWL9nPDBLtWp+YDCcatRGxGdkAo+Os9EeE12ilMvH3THUcS7ZJafTNFVpbs3pMgIMCFjdcLN9Eoqd8Ngq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A9Hwbom89IhjoqbyPengxIAMWxp2O275RouV34+cz7bNdDGANwlEk= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 71f90142-997a-403a-02ee-08dbb4b2e23e X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3590.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2023 23:40:59.7130 (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: kKR9ml0z/BR8dDtIDcloj+9bQcG5fVc1SizkndnbNLVDD8MC+KFnaX9XCNuQe1UNnvUT2Bhgot7akF9yS8292JpOTFHKn8WpBHOol3wItc30STqqXkJjZAJXNoEFKf++ X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR01MB7591 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230913_164105_753065_F98A3DB2 X-CRM114-Status: GOOD ( 12.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
perf: arm_cspmu: ampere: Add support for Ampere SoC PMUs
|
expand
|
diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c index c59f1e5a35a3..5f4f04135a22 100644 --- a/drivers/perf/arm_cspmu/arm_cspmu.c +++ b/drivers/perf/arm_cspmu/arm_cspmu.c @@ -719,7 +719,10 @@ static void arm_cspmu_write_counter(struct perf_event *event, u64 val) if (use_64b_counter_reg(cspmu)) { offset = counter_offset(sizeof(u64), event->hw.idx); - writeq(val, cspmu->base1 + offset); + if (cspmu->has_atomic_dword) + writeq(val, cspmu->base1 + offset); + else + lo_hi_writeq(val, cspmu->base1 + offset); } else { offset = counter_offset(sizeof(u32), event->hw.idx);