Message ID | 20240528160523.1695953-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 042FDC25B7E for <linux-arm-kernel@archiver.kernel.org>; Tue, 28 May 2024 07:58:20 +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=ggV7xIHU/hLC14uJrvZsCpUkrpKUhqBcHev2q7QPCtM=; b=2leufnnGExBeXD w2rFsnjF9sBnaB+7avkvK5byhgc0yd60Pn5/q5gR8HcLI1R5jOMApjXnpDwg1+XsvAcS3d008HriN O5Y06nrCe0vNHtjcsf/onwnuAxV8y5YFJwbDuog51RKKx+LzDPHOl9Gc35xl2QS1Hu5R/eIknlbJO 9jQmYqLV1OZsDuMhL4JY1D/hUAPi9tDzwtilTGvFn9qEoqLwiIVRQK9pqWF6vatoVpNq1uhHqv3k9 +CErrbQF5F5wyizrD/vM6lttiDVnT545G7CYL5MtAIP08e/3cgY6jppShTZ3mwJZWbQBKeVVHDupo m2AnxnqwKhweg0+7yocg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBrig-0000000HNfm-1gau; Tue, 28 May 2024 07:58:06 +0000 Received: from mail-db3eur04on060a.outbound.protection.outlook.com ([2a01:111:f400:fe0c::60a] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBric-0000000HNcB-1FJ6 for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 07:58:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n/GxL+RNlrbtgN9nZJSM9DlyZJUrYMOODVWK5ruaWoOzzDRB36lNdpSOPd9cFTAco8sUq5YmxJRgBmGs3MkBNquQh7xFs4NPKpCc+gasaAhb7uR54aeb6QfLuh656leqcrMaD6GLd8Gu+fdBu54xc2j9Bj8bntCLsMFVha5INzHmz2OndvNL5g5hrYzHVKKcj/9sjg8lPbjuo8cysNB2QsAWhn8zBubG+Gmcw6bAibwz4rjv7BzJTlWnFqjaJzId+8wKxBK5U5NsdUUVN4ZQvxPjXzd7QSZLCRdR0/p+XILicknXNluCoYaTXI4PmG1Hu1QCPTZjHeWC4fsGVWzAUw== 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=fxs2UV5b13xIL4BQtgD0ckXFolLoCO9Ne+Z+f4ShyOM=; b=WSz8b94ysoaPFRJ/MMI2GFFgDfuHUTr9RbJHWmNNj2caQEx9R2Cm+YWlCWLZrA57NiyXLWqdkwZj0LncCbi0M/kEzNyRQbVXKmpUXGXFXDaWX7u4ldfdz6waLvKMysiT3zacqATw0d5pExW9yprmuexh4rM22ygtPfa8BfEU7xr5CXwi1uyOvO6OexyTEYrEFTFhA5gSYrjYkrRL+zPG9E2GsdubhZ+Q/lRLmpwcWmNQbejmRVuTMO1nykfMOc62BmG8FZ5xc5yIYncW6k25Y5xbEMfqE7eVlad9FW15xg3mi5kv0VVIwDZC6LI8JnCuYCeCnXDWqkznWn464qYa/Q== 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=fxs2UV5b13xIL4BQtgD0ckXFolLoCO9Ne+Z+f4ShyOM=; b=DyePhYs0FHg4h1pOuQUeJvw59Vt9nJzszbITBIoKzHCvX1zXWP0NAW0nclk7q+ixcEOjMt7xiG89/bzp8jsoMra1F+nIjzIuyd+2fjJhRgfaGO2cyh/6bFAIOQbBLWb6nf9rNiTrproQe4N6JVWoT+dVffJoRBGdgKD1c/49j7k= 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 VE1PR04MB7229.eurprd04.prod.outlook.com (2603:10a6:800:1a3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.29; Tue, 28 May 2024 07:57:56 +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; Tue, 28 May 2024 07:57:56 +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 v11 5/8] perf: imx_perf: fix counter start and config sequence Date: Wed, 29 May 2024 00:05:20 +0800 Message-Id: <20240528160523.1695953-5-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240528160523.1695953-1-xu.yang_2@nxp.com> References: <20240528160523.1695953-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI1PR02CA0027.apcprd02.prod.outlook.com (2603:1096:4:1f4::18) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|VE1PR04MB7229:EE_ X-MS-Office365-Filtering-Correlation-Id: 9427b489-d43c-41e3-9558-08dc7eebe218 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|7416005|1800799015|52116005|376005|921011|38350700005; X-Microsoft-Antispam-Message-Info: SPVVWJT7WH6ogoFlH5nmzob1JuEwYx25SJfSireYC3ShRnXEpyNgTVLX8LpdYqIUr9QnCF/USyLQ8/k0ipca3E33E+dKc1yAKQLkE7CY1PYSDvZIeaPP9KYxZrJCFj6tJaydBDWrP3Zy4KaKTJNNR4WiOfNGxGChH4A5yGp8+Ue/PId/UIB5im/jMQ7N0PJ34oiLxcesuWDvTdHyXLB9mALncgbE+IXMS6AUGbwRo2gklx0crNBC5oAMlkGVc5PhS/A6v59ZJhdDonfP+gYCt2q21u2BGUBllEH4VXKtYRziefWtFeO6amNwmYSbENtqTDV5bVyOWZlv8V0rjrVfM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;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(7416005)(1800799015)(52116005)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lDRkQX5776YzdLJR1ilwkVzqVw9ES+HLDWvXu7edY9eii4rodv+7K40HPo5HBWjOzY8n2z/8SpO1wZWBQVQFD25WLVVTQBTXeOMG7JgZNXRnbhhSfhtZB3Bs4g/a7sBqXC3z23LsHrlvzmBIIxJEaluUFeWDwdDOmjXKY9JC8ek8zEsSWolpKUuA7eYVH4LUTv8LL7DEqH5Y2GlpfwZ0cXP8/+G1b7gUysXRBrj5jJtzl6L6n5oYRjXxEYtjQ5d4euDlu/DwLAW/qo95tKGnG1YIfVGcXSKR+HtHaXW+wiPXbRaSCaBq0ZdW4SY9tVZD177ZBrzPnAttJcCiBOwX7U8LJDqAqLMTqdCj1vhfB6Fy7nFgDIofqWfeV3XVW6jEHFZcuFDJrjh/hl/gM0W7eZzn7Xz84Iq9WYtJb6dKxt6rAfYzCEt6DdSToFkbHq+qpihGx4Rp0NO/uI7AfEHeTiX8NeJkzJP+3qU7sW1B/q2vnUgcov6AR2NP+HRIHR3qrU+q3ifMiCnH5/vHiHXCdLBLnuFYzQL7Y/mMgmMrRnHaT2T4fIyRqbGSDDDvcDIUQUo1DV74a7t0Ooym/9t1fvXFj3Cv+26gEdSwOpfFAPb8YnlLkVdlAsvaaQz0uU3poIFLwsCO6ul8U/fEmydxfBjGuXNtOVTpdl1LHEag4qklRQWAWN++xbzUIL7pvq1AAH6xFJXv6zLyWRQZLM9yD8WNBIjgLrD5GUMpNaZ5WPTAuriaajHUE8ADr8OjlWMyF8CNzaj7K3ak7XtOO3BtUOvzdbRReXJw/LJ0Q3d1G2mUsK5BWZLRFgtWvz2b5KePRtaw70QpUl4e75YrFpjyJDC4WIAMYpPQrn1EmVnFlnZxEn/9ryH4Tf1D4TirN0pfOd2k29mbfUtaxU8nFHQocJyTz8C+SB56UVLILaAA/geLWRbOSOLQN4lj2m4qaVjoCSLjePXboe/OMDCAxxCzhJWfXihXFkAtwgKueFLY/UfAL3QhXVRsZgmLAn0EYDPqMTSVpa2lg0oF1NPfHT5YQA1mBDVHNBRD+wWHFBDM8Jj6ZIdWtNJhgv1dETI90oaeA4iCXC/dvE1gVPWE8eKX/lRFjt72uChiRkHcn6OSPEXyJQHBNuaFIp3ZFyidS4v2oKSjiGdj1pTNuqmLwT1s3OOYkxbjDRwGnR2Z2rkLNME/uEVI+nA/2YB6grSxijjiDUkictG06xQPGLqWyMxkqNDWq/SQN+T6yRgeqlhAfTw8EmCzs2kvujC2EoEMTHbdTX1rBI9K89NY+HWUIn/T3HLgXclkyPqeqrXpuHCI3r3bY3QPbImYhA80rDMd9yo4U0hxZBmNyZVEXogOXpdZENDn0JamPEL7obQwrzvaC5Sf2bf61nBwW4ZLaqSPA4nz7ODF726g1inQCS7BdVndW84ewRF6BohxNBtCBVyxLNUHXkELlUQMRtbKVRiMsSZMBZJIjOs9J+Oz7kRw7HzR6HjTW2RobOr3QcifJEWJAfdwYnXK1a1T2MCXMCGoKw+EuXnREAxnSJV789CkcvVWIVkD2pgowv3AuWT1HNU/CeRMlhMTL8MHXGefYb2gzjFV X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9427b489-d43c-41e3-9558-08dc7eebe218 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 07:57:56.0095 (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: 0sNSxjMAdbHvEZT8TPH4QcclO4+LQ3TLGb4gER6KUy4WDHx/ZaFbibVTNPoCLZmEdrv+jimLpVHjqdNhkh6vKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7229 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_005802_491429_84A71B60 X-CRM114-Status: GOOD ( 13.93 ) 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 |
[v11,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 d1c5495d5e48..26144916dba7 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; }