Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1834141imu; Thu, 24 Jan 2019 02:46:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN4jvJ9QKUX2EJ1JjBL79hwR9w8woI3PxZjrpfcrKx2kfcc3NJ429uk9WpuCkw3yNx9FXrqK X-Received: by 2002:a62:fb07:: with SMTP id x7mr5922547pfm.71.1548326778850; Thu, 24 Jan 2019 02:46:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548326778; cv=none; d=google.com; s=arc-20160816; b=w5uEy7nFcjfHwKpCHekRvNPghPBz/2SukiEJVmX1WasG7ifGI5A5L2Us52ZqBT7v8U o265G1iPsuo4ucVN/8At9YFcAflCA/0UJVNjQaw3P3vW0lKBPEKNmUzPEI9gM0mM790M QMctHdbZeEWRazKW3uReg5vJ77i92Jg79zshPaINIPkGnO5Pv5KP3G1HmS2N7B0dDb3o UJtLvbNYNXfj0Rwqu5DUI+k7MNiLAbK9ycwkW6lpBEuKwsKWEzntGLoHn4w0LFSlNbSc f2KJfCEsmd792a9tK5q0NsK1i4xTYYhMlYzi10YwNW8fd5sGeB/neUdaKqw+7A4H0Pha Lg8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=6h0otG/I8JnlfPcbIwvj6V3TyqvVL8y5I3NFeXpofOw=; b=YD+cbd9GxkHwXKitL6l3lKeJbHLCOiahbsDktzIKNkj8DxEr+P2HHKige6wZTAl0Hw +E5xQzlP0WLfHY2bGph0Teo6zaH72JoqElnq5qPacTyXTvmfSGgyeiDlt/eFN6X9Mv8W H4NYBahmmmYiPe+iV2u3sW6nawGA8d/Dtv/MJxjSYaPreqMUa49vXZde1Q8urq+Z4RDD XFpm2ifv7LFnFXyLFr8XibbsPxSWgenUfltSo6fgwIi6lIyhK6UfZy898OTJfDGlxXGv mpF+3KFInIYC06zruZphT9VGIZYN01+nw3ZF3xoSbxaYlusQAWL+HYEJNLWTg9EUiARO A9rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si15866908pga.198.2019.01.24.02.46.04; Thu, 24 Jan 2019 02:46:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727720AbfAXKpw (ORCPT + 99 others); Thu, 24 Jan 2019 05:45:52 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:54354 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727126AbfAXKps (ORCPT ); Thu, 24 Jan 2019 05:45:48 -0500 X-UUID: 39a4808f1eec4181bfed2e9624fa4bd8-20190124 X-UUID: 39a4808f1eec4181bfed2e9624fa4bd8-20190124 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1321334590; Thu, 24 Jan 2019 18:45:35 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 24 Jan 2019 18:45:34 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 24 Jan 2019 18:45:34 +0800 From: To: Sean Wang , Vinod Koul , Rob Herring , Matthias Brugger , Dan Williams CC: , , , , , Subject: [PATCH] remove redundant queue structure for Mediatek Command-Queue DMA controller Date: Thu, 24 Jan 2019 18:44:38 +0800 Message-ID: <1548326680-16454-1-git-send-email-shun-chih.yu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 29A1CBC80D30C4C1786840970F8100F513FF59606270EDED170F51BB7A09873C2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset introduces support for MediaTek Command-Queue DMA controller in dt-bindings, and simplifies the controller by removing redundant structures. Main changes to the initial version: - remove redundant queue structure in mtk_cqdma_pchan - remove redundant completion management - remove redundant tasklet management - fix wrong residue assignment in mtk_cqdma_tx_status - fix typos The result of dmatest shown below: dmatest: dma0chan0-copy2: summary 5000 tests, 0 failures 3500 iops 28037 KB/s dmatest: dma0chan0-copy4: summary 5000 tests, 0 failures 3494 iops 27612 KB/s dmatest: dma0chan0-copy1: summary 5000 tests, 0 failures 3491 iops 27749 KB/s dmatest: dma0chan0-copy7: summary 5000 tests, 0 failures 3673 iops 29092 KB/s dmatest: dma0chan0-copy6: summary 5000 tests, 0 failures 3763 iops 30237 KB/s dmatest: dma0chan0-copy0: summary 5000 tests, 0 failures 3730 iops 30131 KB/s dmatest: dma0chan0-copy3: summary 5000 tests, 0 failures 3717 iops 29569 KB/s dmatest: dma0chan0-copy5: summary 5000 tests, 0 failures 3699 iops 29302 KB/s Shun-Chih Yu (2): dt-bindings: dmaengine: Add MediaTek Command-Queue DMA controller bindings dmaengine: mediatek-cqdma: remove redundant queue structure .../devicetree/bindings/dma/mtk-cqdma.txt | 31 ++ drivers/dma/mediatek/mtk-cqdma.c | 399 +++++--------------- 2 files changed, 129 insertions(+), 301 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/mtk-cqdma.txt