Message ID | 20240529080358.703784-5-xu.yang_2@nxp.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 EFBADC25B75 for <linux-arm-kernel@archiver.kernel.org>; Wed, 29 May 2024 08:05:36 +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=RGr24wy8JiAaHxntmPmXVWXj/Sp6Q6oktHE9FMKcsPo=; b=lLcgzIPNo2f6sY o0ywwuEk/GNpzQ4AxelO6ExItjqHNsoaaPGpVaRdvDqM87Gii2l1kHiPxDpciux+3QIdubZ6GrI43 k3e6uzB1+6R74Z9u+dvjk3j8pg3vTj4pY4ywypZmC9Q3rR4Jq+jQhsk/65BbweGS5iinl230n07xX 8/tz7tWiWuHbE3+S9Xc7Ohp1PredgOFb3VUWwXIuNKJSsgr1M5vS4v7ZWfrERMM/IdGKfi630+W0y 1gqZfa8vT8evmy78KUFBAsMXeagU4qBgZ8VTFStx0ttJcgB7Fl7eTN3PaLiyjoF8wfH/ONeJ+c2bO M9HsAdC3QXyWfIYyKpRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCEJF-00000003GoN-1A14; Wed, 29 May 2024 08:05:21 +0000 Received: from mail-db3eur04on0600.outbound.protection.outlook.com ([2a01:111:f400:fe0c::600] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCEJ5-00000003GhW-2QWl for linux-arm-kernel@lists.infradead.org; Wed, 29 May 2024 08:05:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ak4Ot0gi67jgYjvwhRiSd4LzfMdmOhuxjTZGdWnXGBR3hx/LoWA2iK7yI0UWxs5Tm1lI1Zu3j3jK4N2jVUmLByL/p95Lw522BSMsyAkmBDukk2jxT562eFrkQY0BwDe5vsQHSfx3w2RcbzPW4gipakF12prlbmJEEV3sqxmmEq38cOxMqR18N9NFBubEAxbhgUzCs3eMB8uVZznvbEDHTUgHXdtFSXHfp83F3MMa3P2Db+cjBfBWKGOxTMru2qi64ZMDvWGrWZtT+KlX8O4N52G68wUu1Lhd2FbWR6keBVAEZH+u1BF9EJIWWXxRvtikG2TxGSi9IBe/R2aEuT6PZA== 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=z8xW4gHqzM6JxKa4WjuUK5nNtGxgGV6ViWbKIY4RoX8=; b=mJHUT8ensTByAyqG9lYhKwyN05Sxpr4Jghw+HGtobFtvW53JJrTGcc6AwsSPj6h8mQc/H5xRCXDZgVqx57ONHrjLhk5Z8vlNHaXGMS2Uy4P4PxgiYCBIn7ZqE7/4nMn2p52UmVZbroOvFRZSvOelYgkhvr9BbJhj1lq8Q39OU+tgJPtChlJ5jl1FW8wCSQSBYabfJjc7Xdv0Ij/x1y3uSNMQwcwzom652MhUQG/uBHJoogiRBOY+A+q5mseMpbOxgZjGj9lcSMD+YytwWjR2nMuDKb7keh+fMGTv/FrrVXQXe5Sqw7A6v2qrK5NZ/m6WJiFe9DsHlRH63dXBJ6C7SA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z8xW4gHqzM6JxKa4WjuUK5nNtGxgGV6ViWbKIY4RoX8=; b=kwUAgYpiNq1oo5ggUyfaPaJoPC1zJey0S4qM7U3hb7DKSMiIjCX1rBLB3ezxU3dneAPbjJ7TFd9QVaB3gHoMTiRazLoXwGSLjvQevfdKkr3TXxmCvvII64qphPhY4KfS8130cG7WOGkvqKQrlQjsJxwbg8Ib0YGcpGtrxS3wRqE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by AS1PR04MB9384.eurprd04.prod.outlook.com (2603:10a6:20b:4d8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.19; Wed, 29 May 2024 08:05:03 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.7611.025; Wed, 29 May 2024 08:05:03 +0000 From: Xu Yang <xu.yang_2@nxp.com> To: frank.li@nxp.com, will@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, john.g.garry@oracle.com, jolsa@kernel.org, namhyung@kernel.org, irogers@google.com Cc: mike.leach@linaro.org, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, adrian.hunter@intel.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH v12 5/8] perf: imx_perf: fix counter start and config sequence Date: Wed, 29 May 2024 16:03:55 +0800 Message-Id: <20240529080358.703784-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240529080358.703784-1-xu.yang_2@nxp.com> References: <20240529080358.703784-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR01CA0016.apcprd01.prod.exchangelabs.com (2603:1096:4:191::20) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|AS1PR04MB9384:EE_ X-MS-Office365-Filtering-Correlation-Id: 56a61e94-9ada-420f-fc99-08dc7fb60b74 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|1800799015|52116005|376005|7416005|38350700005|921011; X-Microsoft-Antispam-Message-Info: y+01n+xo27SREiOPiWIY65Y5VUCj6QP+sHdomi8QB8MSiE5Tam44A0j7idD9EBXZFHLEnKjf07Pa7V2HI6NygzklG8vNrrc2mEynPmH6vWimp84i+Ab1d1/TfFlUSR/yLpdKXTIb1XKqPxoOY/qdZepLbydZvPM1Vcdrr4AlZ/jjVyZBy1D7mbIHQKCIynYva7f+XS8+rpproosG1HPSqr3EG3BHLHWr9v/be8bf21gt/ZqQz4+dyz3EWzoo1MJv0XrbUgNswVqBTKc32+NOrrNaesSKoQ0OFGRf52OaLFndwWkb36my1TA/7/Rtb61u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255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(52116005)(376005)(7416005)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RfsEQLoBqNSKhUNCRGEEQb7JZdtEds95M/R7xIMhzlOtcF7lwE9bKKrTk6YHflnf81xLw05VmFWF3zlpQLJFpyuPlvYbd5nZLIp7pc2DqBcPQdqhSvo8EhMysx/yrip3QiyP+OKdWpwG8art3DX4+vJVx+ozEjLWP3PMQCSG8PnhapTMHbtMJnAEkzylVjPsN2eSnWF8njmSDFQhOURaQYubXQ7/GLv8a09kLgw1dsPQcygUmYz62wkeEFITdeBXkPRf75xYWXx/UOIHttRAid+box8LT+Gp8gcqXiH5VI51jeMpttWMulTgaGHsDeOp1vRTRs49iFKSL3MVGB2kWfWG+taz15WlLlGlLddCDNsi/EAwEdNUO9vesRGjUVAmCuFlrH7kh3k5zpnvs9le5OtRczpzAnRHcVP4yk0xMhxEiZ5KKEmLz7ZJH0duMR++BMnuF6/vMxd/blh0EJZVO2k2JS1M32gVlkdUs+olDz66RxUQuVHItr5U83WWFyrnw9V4LElN4Hnsj7351KydiXAwmXTGYJuonnkfohgAVfl5hd8XE5T5I6vCtOo4vdo2G2I11Xcc4BixwgSPaYQTTEDzOCO6wd5yu13bCe5M8IpzTDDlKOwKcbR7bZeg7WWoGHyNgCOsXIgaor5rmkvbclwq1atlLbPcpgZl87kd4mUh6fLNgc3c+SfyCPQFUv7f9XoAiGJh50LpRuM2MJNbY6RigaYhyD1X79Gq3kaqKvb3td02oP1hLqRDp1HMgDG42kLG42GEmIV7p90PrWGCYUqgHz5OseWljC6aebwl5HPdxNqS4nMeg5DmDfVyb/2IFSHVRJq8e3pte/tQRJL/yp9Yo9JSM+D4dcDVfTTKS/haLnWWHkbD5uZ9CtNxtFROS1oDA+bS31gVKhb/tEkXHcqd7X3Wte0I9MdS8LM4y3PRKBHOuW5sb6iZiZTsObMzuzPd6tlfoe8jIWzXI34MDyB7Ic2f5xVHH74fEhQmstQAaKT+9lZrWqVgxxIDY/t+e98gw3u0k6qR6G3g7AOe8PSp+WdeKKVIfFqR7NIsOtILWAXCSpFkvNryzH3ECmwrkRWpEn/adwFXkZQwn0drjhY9nYAtv5m0JNs16sEHJ1lZtDUFTKDV0SwIMOFpZPjKQst+vOg3dPbqviNlka4WeUDqpJkXyF5XZk4bEZEQkTATxKGmOu5gJYfHZ3+5UJQYb3kov/0SfTtvGgIIfpxcLSBqkuSqKexEqb/WCQON8OGhhGL7AXLoApyxxehZELldUCJ+eBExiVPtucJ+p+eazTdMQn0nYyi6qwjUkIMVNdpcLcdGflnKcYduzUk0ZUdwr61L2ANQSHIl8VtY7RGl4wb60vb0YagQrJlaQT6FYTjZmSnsjPu6efEKXqajkODhiH8YRnmTtBM5KWT1dYgXQRev5qhCkuqvbYA4V3rogxHBlJkETg6iSOcnAnz1QviaHiDRUKkp5Lb98lwjFfKRx0Vx6dVSzexhJmMWiWEr6x87a6LiTlsZC/bKwntbyodnee7Jvycbbkim4rX3HjvIwAWVy34/SxWa8m49IWbs5h/TsVU3Yf1kxcS4uIlDQzH7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56a61e94-9ada-420f-fc99-08dc7fb60b74 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 08:05:03.4249 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JV0NXT4DtcmZTtjEsqLJqbxpPGdQYv6pU1pwG+S7X4EhClU4ThF06oThhG7Zw+7vD9C3rnSd4FjD9s34goO9Ng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9384 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_010511_729875_CF9785F2 X-CRM114-Status: GOOD ( 14.03 ) 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 |
[v12,1/8] dt-bindings: perf: fsl-imx-ddr: Add i.MX95 compatible
|
expand
|
diff --git a/drivers/perf/fsl_imx9_ddr_perf.c b/drivers/perf/fsl_imx9_ddr_perf.c index 5433c52a9872..7b43b54920da 100644 --- a/drivers/perf/fsl_imx9_ddr_perf.c +++ b/drivers/perf/fsl_imx9_ddr_perf.c @@ -541,12 +541,12 @@ static int ddr_perf_event_add(struct perf_event *event, int flags) hwc->idx = counter; hwc->state |= PERF_HES_STOPPED; - if (flags & PERF_EF_START) - ddr_perf_event_start(event, flags); - /* read trans, write trans, read beat */ imx93_ddr_perf_monitor_config(pmu, event_id, counter, cfg1, cfg2); + if (flags & PERF_EF_START) + ddr_perf_event_start(event, flags); + return 0; }