Message ID | 20231114154824.3617255-1-Frank.Li@nxp.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:a59:b0:164:83eb:24d7 with SMTP id 25csp2014424rwb; Tue, 14 Nov 2023 07:49:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFQ9bTVvG4IHkVfoSkg3nX/p0Suz7AsHGHmpfdM+lCt/SALpVnjKMlTbH4WTkrAaR21pxHe X-Received: by 2002:a05:6a20:442a:b0:186:7842:ad46 with SMTP id ce42-20020a056a20442a00b001867842ad46mr6325522pzb.34.1699976946943; Tue, 14 Nov 2023 07:49:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699976946; cv=pass; d=google.com; s=arc-20160816; b=JAN4+pgooP2ll3nC9ypBWzNJKj3e3eYUkBPHgkSJ0p6rzvEA014+n2pgkIHRYkcRqh tB998R6T6z4sJNblcuGPkp23BkwF24dFWKCe9i/Tr1afbqWQMwp0NbcJuBWNz3PGixLd VtHQmVVtqGBTGpakZU5FGBQTgxUxrNa3pocSEbrPauwuYeCfY9ZePxqYfRJW3S/ukprx jwtNUjL0gbfYnzdb2lTjdkC6hJFeUyxOviurhKlij6WGwSUDGKreZdE4Xws9SWFc3TP4 uuFZ9wezKwoveH1VlHZEQumxo7OSHzDnPQBfwNAgyqOiuxtxvWOJSst5y/VnMsXsq+fz 3zpA== 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=YqET8rV15/obDWa2GfPNt6AO0br+ooALAgiMEnteOvA=; fh=CYuI5pm0UTsAUDOsRXlVHmjVosgw8JGhuswNHlX3ytw=; b=LFC0TMyRzEdLSDi/xRPuOLubE67fhb0+P0Itu3YrFXMkCQrbkGOQn3jRcy83cPjYqH 8II4E9dCRUWoQCP2OGEheJcV6C3Znz7giuptcKFkuSFdL+N69c9HzBJTfoaFjTXZUEIn j0wkG8mx9E2InSuIOSOZjP0CGP/8CGiSLefQIcvMzD2B5bOlPrcGUYQ59NkKPjboT6pK Tt0cXQG7pbHr+uptVgGoeOa1fiJ+N5Tyqw0wwlH+EwNIx8V3Zyrmcjyw/FlH5fUdXEG2 PpAoAZAHEbhZUGEfG+lOwXSBekhKA1OoweOrujMMoP5OyIyEygBh5ewjX8SgcuvICQt7 674w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="R9K0M/ms"; 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 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d75-20020a63364e000000b005be31178051si7852979pga.281.2023.11.14.07.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 07:49:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="R9K0M/ms"; 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 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id E5BF780BD506; Tue, 14 Nov 2023 07:49:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233607AbjKNPsw (ORCPT <rfc822;lhua1029@gmail.com> + 29 others); Tue, 14 Nov 2023 10:48:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbjKNPsu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Nov 2023 10:48:50 -0500 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2060.outbound.protection.outlook.com [40.107.105.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E65A0BB; Tue, 14 Nov 2023 07:48:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oCuPA0OEiUGgCmoec3/bnFR9V9LPG9wnsh7Vq1UM+C217q5OXNewYhxgAPX/wDMk+c4ixUal8nsJJXSRQbOppbz1SothnlNmFG0wytYIB+HshorzXDcqoN57ZeNFbF9CkNaN+FOz1yP1hTnHx7TISAWe/vEgJQRVPJlgOzjZxMh1gDm1KrwTCfF5TD4ahfIfPrJxhUe5NkUrF/fs/0lkrypGg/nKBedzf1h/seIbPhhLVBM8ThH3nF/KhDWI8fRcvrp4MjBrAS44elBYgxztp6TqeBH0N8+VYsnGvZ0hO8yhaHlFUFw8OD3F/dZ36Au/r8y35TcZF8aON2xHdQ3gbA== 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=YqET8rV15/obDWa2GfPNt6AO0br+ooALAgiMEnteOvA=; b=WeyW7QHH2+ND5LcvNyVa50PzixZ0Yb/D0vhoTkaFp6NusoVFJjmZl17vu7LJO1SMUfBdEqz00w4UYPFGi22QP+pwu0GYov4+gTYz5ybNDLCJ6Nnos2cKnVuzpTjwYzqh0UpeXBy205zKVeaqtqJ38pBclXmrmzCA+SAhsXv6DdIJiJTjUZUM25VCuFbaad5speduDnk3AA9cqYxLeUIsqIS/qTkR4Q51RHYPCSqcBxIcoDp8VjR/sljxCoHNiLUrUiSvSOW470ptVWVrGgZpIOpBY7qWZ8RYknwt/8hco5IEl51a/z07gcxzQjkTkytOS6GRNyQIV+vZwqej4xXh2A== 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=YqET8rV15/obDWa2GfPNt6AO0br+ooALAgiMEnteOvA=; b=R9K0M/ms3JBxZuQ4ZHuac1zpQq0gbbdV7YgWRFQvJ3wnEM8aYiMSF+XItNboNshFQuomAv3QGOki5/hpVtVfWsVi9usf/+jGMaXN6Ea62rYxYvBTJDbG1PBtFeX3Mp8tf3aWoP7oLhrAJJ/MhOx+mnu3CMoYArQzU9YiwuB5vAg= 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 AM9PR04MB8113.eurprd04.prod.outlook.com (2603:10a6:20b:3b5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.17; Tue, 14 Nov 2023 15:48:43 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::bc7:1dcd:684d:4494]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::bc7:1dcd:684d:4494%4]) with mapi id 15.20.7002.015; Tue, 14 Nov 2023 15:48:43 +0000 From: Frank Li <Frank.Li@nxp.com> To: krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, festevam@denx.de Cc: Frank.li@nxp.com, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, joy.zou@nxp.com, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, peng.fan@nxp.com, robh+dt@kernel.org, shenwei.wang@nxp.com, vkoul@kernel.org Subject: [PATCH 0/4] dmaengine: fsl-edma: fix eDMAv4 uart dma loop test failure Date: Tue, 14 Nov 2023 10:48:20 -0500 Message-Id: <20231114154824.3617255-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR13CA0010.namprd13.prod.outlook.com (2603:10b6:a03:180::23) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AM9PR04MB8113:EE_ X-MS-Office365-Filtering-Correlation-Id: 60b956bf-cef2-4bc7-36a7-08dbe5292e0a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oxgUYmuxM5cat7BVbCgc3UVUrhP9bEJYfPvoQ+cnA5bgq8XVxn583HqmwkYqp+n3VRk8vWYHQhz/Oef6vP/kLkYfA+XoKxmRiFD6JsNX+HNEYEOcBPbmKEaHs4lhdOJ8UiiLwfVBKBWcYKevjHqAt2ShqwkD/xmuXhMo9d4HWAqmPGciK6UCo3fBZuH76A0Q930Km+BWW/dcG5tf5aXWzGpJCDaO9b74b6SSnMqQCwB1k0DIenVkoLNdTyC35UN3wLn8kAF/8Tbrk/GSM0quZRqd3MTWB31onUoToOezZZr/uQQWrRou68w4rryWvMBZuFQ1Ag+w52XtoilIziPZEUCj5UvRAzE4/cXj6hC5VmCV2XPhS9tG1NUIjAAUEHjnQ/E+xw8aFDlnGZXv4Tz7n3WCOkeB9zgio1sePzV5V74JNofRQQmaVmu5twqmFvwPrNmZeGvlJul8EumfgpWESk0GcgdNKquKifpREWLtWLJj2MFBadLwHDbWJSou1wuyzwdD1BrD22p1J16jdxNRGtcd7VY5ZcqVf7pIkAaElou9BGrjLbuvlWc3iIy+8YJhyD/ZsAYUo7Ox7pWTa4dabIJEpXGF6YUMslSX8N7XuS5ZGW8eHrRUyVEwq/QYWlN5 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)(136003)(366004)(346002)(396003)(39860400002)(376002)(230922051799003)(1800799009)(451199024)(64100799003)(186009)(1076003)(2616005)(83380400001)(38350700005)(26005)(478600001)(52116002)(6666004)(6506007)(6512007)(6486002)(2906002)(38100700002)(8676002)(8936002)(4326008)(36756003)(41300700001)(5660300002)(86362001)(4744005)(7416002)(316002)(66556008)(66946007)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1lci6nMK/uO6z7cfiBvgs7SXir3dowY3nvSv+JtouoMydfkXfOof7N+Y/NF+Jt3MkJ0MHWip4jjpZFqYxHCPrTZ3cgOP290fdsola8s0Vrr4vlGZJ2Dszke/4xEBGuo3M71lPNIso6totFrhhiDvaZL3DtttgHc5bgZCNgU88KZfFjtuOir+hqqVXYHMnFxBoCENy7Quv6dFXTTPZ1njwUgRQvfBzVosHY+qqdX3lBlYixt6DABwvlwS3027Fs9b15KIIFBXgegoj2ISYecVb+SZBg5qeZ6ee7amzv2tZCSfrdR0PGWPCYL9aWyd5XIC5KlG8wvrtgn9l0eNCnWww0QoxRX5kqO0fOo7YXE0PabQyPvpRyI1UtxxJyyrBrjwILbjMzs7S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QV19a7nMmLPixqKN+HKoFD+7n7Sp4XqB+fzqlhEHcl8J3270+UBDnd6tiuvAJRMxWzchCKH/AQ6W2DfTKpfueeepM0z5rrNgML4YF18= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60b956bf-cef2-4bc7-36a7-08dbe5292e0a X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2023 15:48:43.4901 (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: cYDb71fvsSokhrK5x4BrdO4A2x6Q22FAyaq4FVwluU22rz02HbvReXWM6WuWbb1g1z5yn8twJAn7Nw5jV7QWlA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8113 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 14 Nov 2023 07:49:03 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782555027258446137 X-GMAIL-MSGID: 1782555027258446137 |
Series |
dmaengine: fsl-edma: fix eDMAv4 uart dma loop test failure
|
|
Message
Frank Li
Nov. 14, 2023, 3:48 p.m. UTC
The commit a725990557e7d ("arm64: dts: imx93: Fix the dmas entries order") trigger a hidden eDMAv4 hardware limitation. Some channel require stick to odd number, some require stick to even number. This fixes include 3 part. 1. add limitation at eDMA driver. 2. create dt-binding header file to share define between driver and dts 3. add ODD and EVEN requirement for uart driver at dts file. Frank Li (4): dmaengine: fsl-edma: fix eDMAv4 channel allocation issue dt-bindings: dma: fsl-edma: Add fsl-edma.h to prevent hardcoding in dts dmaengine: fsl-edma: utilize common dt-binding header file arm64: dts: imx93: Fix EDMA transfer failure arch/arm64/boot/dts/freescale/imx93.dtsi | 13 +++++++++---- drivers/dma/fsl-edma-main.c | 17 ++++++++++------- include/dt-bindings/dma/fsl-edma.h | 21 +++++++++++++++++++++ 3 files changed, 40 insertions(+), 11 deletions(-) create mode 100644 include/dt-bindings/dma/fsl-edma.h
Comments
On Tue, Nov 14, 2023 at 10:48:20AM -0500, Frank Li wrote: > The commit a725990557e7d ("arm64: dts: imx93: Fix the dmas entries order") > trigger a hidden eDMAv4 hardware limitation. > > Some channel require stick to odd number, some require stick to even > number. > > This fixes include 3 part. > 1. add limitation at eDMA driver. > 2. create dt-binding header file to share define between driver and dts > 3. add ODD and EVEN requirement for uart driver at dts file. @vkoul: Did you have chance to check this patch? Frank > > Frank Li (4): > dmaengine: fsl-edma: fix eDMAv4 channel allocation issue > dt-bindings: dma: fsl-edma: Add fsl-edma.h to prevent hardcoding in > dts > dmaengine: fsl-edma: utilize common dt-binding header file > arm64: dts: imx93: Fix EDMA transfer failure > > arch/arm64/boot/dts/freescale/imx93.dtsi | 13 +++++++++---- > drivers/dma/fsl-edma-main.c | 17 ++++++++++------- > include/dt-bindings/dma/fsl-edma.h | 21 +++++++++++++++++++++ > 3 files changed, 40 insertions(+), 11 deletions(-) > create mode 100644 include/dt-bindings/dma/fsl-edma.h > > -- > 2.34.1 >
On Tue, 14 Nov 2023 10:48:20 -0500, Frank Li wrote: > The commit a725990557e7d ("arm64: dts: imx93: Fix the dmas entries order") > trigger a hidden eDMAv4 hardware limitation. > > Some channel require stick to odd number, some require stick to even > number. > > This fixes include 3 part. > 1. add limitation at eDMA driver. > 2. create dt-binding header file to share define between driver and dts > 3. add ODD and EVEN requirement for uart driver at dts file. > > [...] Applied, thanks! [1/4] dmaengine: fsl-edma: fix eDMAv4 channel allocation issue commit: dc51b4442dd94ab12c146c1897bbdb40e16d5636 [2/4] dt-bindings: dma: fsl-edma: Add fsl-edma.h to prevent hardcoding in dts commit: 1e9b05258271b76ccc04a4b535009d2cb596506a [3/4] dmaengine: fsl-edma: utilize common dt-binding header file commit: d0e217b72f9f5c5ef35e3423d393ea8093ce98ec Best regards,