Message ID | 20231002183750.552759-1-Frank.Li@nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1736255vqb; Mon, 2 Oct 2023 15:55:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtczAPf4KmY30CAmNm6ayGoWOQLeNJASnu8etgV+qvYiTX5XntR9J3r0zDi+0WdT6WFKZV X-Received: by 2002:a17:902:720a:b0:1c5:f4c7:b4e4 with SMTP id ba10-20020a170902720a00b001c5f4c7b4e4mr11494394plb.39.1696287318114; Mon, 02 Oct 2023 15:55:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696287318; cv=pass; d=google.com; s=arc-20160816; b=AGQCsJmzf7Gw45JQI/uf6GlWAjd6FSShiQNtC7+w88fWsJd63YlbVKS95n1AYA/W77 y1PCkn8H4jQJxRrhMbfK6fACxSEMNOF5gcNGZ89xOB84Bh1nkIfEifw7m/31RzNmwzU1 zxRP77O/GZbfqGXI6ZYcruTM6X6brFH4jJe6NtqkAlqSR87nun3BSrSkdRnA7QFJ/AmV +kgZqDCeSfhnS8g6U2BYDagjFYFlEwyaHckreebNFwPFoXXUIOj9E7lQ3k93T1WkYbPv xVqb5WS/OtMEjSYQzXuX+AD+1nHWNUEbYF692f+2hRYv3WHwbU+lcdz34lgpsjq/gqvN zvZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=tC2mgcIv6b4hQoVagsC+0nuvLjFRe3f/kYiGg9YYNcs=; fh=bG/2O/1M+OyclUY+peu5KfRAtH/+EQ5Fv+4+X5okWZ8=; b=K0WypMch55CToqSmkhFCjs8yu3xUVtqAMNryJAG5zv2M8BTh7AWnA2TyhWMy67q2LR gIhNC2aX9BcGm4zdlfux3IqOeP9Qgs1kMIzLN0eb+HiX4toXXp6fJW+0DNZH3zxMfduF kC2MulGTsdfFM8i0KK3AJD3d2in8EtxocRMmhczArHIAf0edzPqqoErQ8p/DKjSO1ODS nC/fDVFmvVn29tdEanonMNKRMFrEkFeyHNhoUaIMQ9Onv0fegwhj8CkxB4ye9yVuMsGW t+uuANlv50Ybx2apSMSsWA+BnSlHYhJuvuUwByLqec3/WTCCvwE0f2zFQPZeBJPoGw22 AkWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=oskeTVPu; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h4-20020a170902f54400b001c6240dec44si20200862plf.389.2023.10.02.15.55.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 15:55:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=oskeTVPu; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 22CCC809E22B; Mon, 2 Oct 2023 11:38:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229827AbjJBSiU (ORCPT <rfc822;pusanteemu@gmail.com> + 18 others); Mon, 2 Oct 2023 14:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbjJBSiS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 2 Oct 2023 14:38:18 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2045.outbound.protection.outlook.com [40.107.22.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 510FDAB; Mon, 2 Oct 2023 11:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FeraK/+wyEjVKTQWo4DroImmWN5lD4syhKBG2GSDf+bCFqmT2PkkLkIFGLRRGl29XQPFo6mIInDwduUZdWsjbs5VR/qVrrtJlZmgjzqBy1JtUH3QboUeLJSOculLqh/+N0Ij5gx42GXc73M0v51CEq+WFypk3GPAVCWtcX9obEWrjVnyBdE+uT3ZvVhkPGGycCmopdTuD1KDFNjrm7hCnIPU4XtbeAIWzkDLro14Oi6n7y8xN+4a3tWyXlhWfBQMEc8IBIcwXo2/Wq/TMVZ1iraIIGVPLyTyaTuZlc7VE2BPHMY+H3y/xfMlsL7wnbhn+ZRkXQtuqs03xeuYS6azuA== 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=tC2mgcIv6b4hQoVagsC+0nuvLjFRe3f/kYiGg9YYNcs=; b=iXnZFk+UMBgOUjkPy8bhxF9cKz/lYDSuZk9i9xxsva7+wJFArvur8gVcM+GHdlTn6eMu7V8NBUP+rys+bUZ1/lRNG/jFq5FpZfAMooKNGIHcjl9SGAobRQXkj631oK0kQrli4cp/TXFiA0ZYNdE4xnVVZeAFQw24o8DWOGpJFU8FOiRQslUK5KPIKpZdXgADL+Umj/NkNrgtPgcrqBLsSxK7mzSBW6wGoNKVx+FuYGhhhWzXUVl4i9vsINsmsZPIuf0J/CkVR6POyjyw5cRAqB+w4SZN5XKWk1XKcdmILbW8hsKm1IwljqZXnP8y8ScHihKpOkR6q3LZjq57W4M1dw== 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=tC2mgcIv6b4hQoVagsC+0nuvLjFRe3f/kYiGg9YYNcs=; b=oskeTVPumJU+Lk3Iu6uqRd746BJKayAXNKwSpPSqMmLHX7oZaZQ67POILX4OOy3Lp1GYG1C4q4hVDDsGVwqD2XzpTUuqVnwJM50VtWgf629Kf+WM3rLMQzQk6va2VatW2bc9rpvLTjejeJPugNxGZ1YeF2htvK9c2M5LuT8HsV0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by DBAPR04MB7285.eurprd04.prod.outlook.com (2603:10a6:10:1ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Mon, 2 Oct 2023 18:38:12 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::1774:e25f:f99:aca2%4]) with mapi id 15.20.6813.027; Mon, 2 Oct 2023 18:38:12 +0000 From: Frank Li <Frank.Li@nxp.com> To: arnd@arndb.de, vkoul@kernel.org Cc: Frank.Li@nxp.com, bhe@redhat.com, dmaengine@vger.kernel.org, gregkh@linuxfoundation.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, lkp@intel.com, oe-kbuild-all@lists.linux.dev, rafael@kernel.org Subject: [PATCH v5 0/3] dmaengine: fsl_edma: add trace and debugfs support Date: Mon, 2 Oct 2023 14:37:47 -0400 Message-Id: <20231002183750.552759-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BYAPR07CA0016.namprd07.prod.outlook.com (2603:10b6:a02:bc::29) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|DBAPR04MB7285:EE_ X-MS-Office365-Filtering-Correlation-Id: 8d62ea1a-b2b6-4b1c-124d-08dbc376bbb2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ah7FOQ5NFudowORALoAsIn91qrMvtri3xH/yVxsSYyKU15vb9BU96OrozGwp5CwAi/3y+zYZfz6dRikbb1yMl5PraGi8khqOxCH3sc9cytgVtgixORBhGckpik3DCtsTcfXbIkIe6/9gsMRpB1GBOdz9csZAW//gO0eCubW73qL218WjxRbUvf6CNxrjbBQ6D9PdfC+Qb2Uh33i9HOLYZzyumVEkgagfiHU/xN3ER6w7OKb9wT6uemA4nqsGBpil/ZAm5OEIaMF2+/vVoYUdfrV6S3X2xJXa9Yeu2H5E/zlIEvsykb8pb60sBlsqAHg5QAcdk8/k+vNyKlvUcElWh2Si/wUjK8GshxU+ILK74qmKb/8wDN5Y6sQ+SE9B+eP4O6rGu/v1NOqrOLVBuLIKl3gPxqZLLKBpm4Rm4bbTicQwX2n+1F109dSHBE5RAkI0Icm3Sa/bpykjQ/mUgezn61XwADzEQXzX2SBrJ8pSr0GqYFjpELfKRoJCKfTG2/UT2nDocxrwAbzGQMYcRS9EVY3w01YgZjxcCEVA8LOKhWn56+pPD/ym4aa/oNV2WX+NePtbfL3PM4Ggq3Ig2WHYU59qA0jHrwYcA0Ns56XiAbA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(346002)(366004)(39860400002)(136003)(376002)(230922051799003)(1800799009)(186009)(64100799003)(451199024)(66556008)(6512007)(2906002)(66476007)(316002)(66946007)(7416002)(41300700001)(8676002)(4326008)(8936002)(478600001)(6666004)(6506007)(52116002)(5660300002)(38100700002)(26005)(1076003)(36756003)(38350700002)(966005)(6486002)(86362001)(83380400001)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6QFIG0J5v2VfiW1X2NGBPod6vCjCCbZu4ULBq/2lwjKth7naHwvToaDMKRlrEH/1Hx9ZXhEEyvlpU+U4aiSlioSpnsHhauLgjEHBLoaRo19PNnUeBSKFMmUWwOAe+oEfH2bbFDRD9exK6OCuSSNeF/FnX/Ro4CLTh3Qhgz+YraSBwlN0F+btF7suDXKrf/U6cbObZHf+wskDM0UiFVXgWmvViVhym/SNtg1wr86iAuDb9ByiSPHcxrxTn7E005eX3fOock72eW9UGfKKMra9M39GPHqPXI78IEki1uVhw0ySUvx4EC3rUBXYUOhXs6PAJJQWZ5IDhdHzzTi2E7FcxL/+gL+E2fXJVmChHp62gfVMum7jUGdmM9wyquEHGs8Srb3+N+jFK2dLXI79HS4s+Qn9lg60CU+ff1xyP2qbGgKQhjQ9Tp1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fyv1FQ3Zdo+7FMhSzG7qKTgOpWNtgN4DiHTmXs9e4FJUcOtGtSJBzR9ebW7CLpO0FV8X/qYdlz X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d62ea1a-b2b6-4b1c-124d-08dbc376bbb2 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2023 18:38:12.6928 (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: JfE7y7avZ7t5myvjcFQS3MduOTW8kjIDXMgOfgI/AL34rN38Vot5vYAWWLCY8Kv5JAszIuDJZSBZKlnux2fwLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7285 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:38:56 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778686170788880038 X-GMAIL-MSGID: 1778686170788880038 |
Series |
dmaengine: fsl_edma: add trace and debugfs support
|
|
Message
Frank Li
Oct. 2, 2023, 6:37 p.m. UTC
Change from v3 to v5 - There are still some discussion about 64bit register access. Drop 64 register support and use sperate patch to enable 64bit register support in future. Change from v3 to v4 - Fix build warning If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202309210500.owiirl4c-lkp@intel.com/ Change from v2 to v3 - Fixed sparse build warning - improve debugfs_create_regset32 and use debugfs_create_regset() to dump all registers Change from v1 to v2 - Fixed tcd trace issue, data need be saved firstly. === Trace === echo 1 >/sys/kernel/debug/tracing/tracing_on echo 1 >/sys/kernel/debug/tracing/events/fsl_edma/enable Run any dma test ... cat /sys/kernel/debug/tracing/trace uart_testapp_11-448 [000] d..1. 69.185019: edma_fill_tcd: ==== TCD ===== saddr: 0x831ee020 soff: 0x8000 attr: 0xffff nbytes: 0xfba40000 slast: 0x00000000 daddr: 0x8aaa4800 doff: 0x0001 citer: 0x0800 dlast: 0xfba40020 csr: 0x0052 biter: 0x0800 uart_testapp_11-448 [000] d..2. 69.185022: edma_writew: offset 0001803c: value 00000000 uart_testapp_11-448 [000] d..2. 69.185023: edma_writel: offset 00018020: value 4259001c uart_testapp_11-448 [000] d..2. 69.185024: edma_writel: offset 00018030: value 8aaa4000 === DebugFS === cat /sys/kernel/debug/dmaengine/42000000.dma-controller/42000000.dma-controller-CH00/ch_sbr 0x00208003 Frank Li (3): debugfs_create_regset32() support 8/16 bit width registers dmaengine: fsl-emda: add debugfs support dmaengine: fsl-edma: add trace event support drivers/dma/Makefile | 7 +- drivers/dma/fsl-edma-common.c | 2 + drivers/dma/fsl-edma-common.h | 37 +++++- drivers/dma/fsl-edma-debugfs.c | 200 +++++++++++++++++++++++++++++++++ drivers/dma/fsl-edma-main.c | 2 + drivers/dma/fsl-edma-trace.c | 4 + drivers/dma/fsl-edma-trace.h | 134 ++++++++++++++++++++++ fs/debugfs/file.c | 53 ++++++--- include/linux/debugfs.h | 17 ++- 9 files changed, 428 insertions(+), 28 deletions(-) create mode 100644 drivers/dma/fsl-edma-debugfs.c create mode 100644 drivers/dma/fsl-edma-trace.c create mode 100644 drivers/dma/fsl-edma-trace.h