Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp830063imm; Fri, 28 Sep 2018 07:32:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV611Gy7xxJDWSra5t7KY8x3Uf3Q80u1JaaOk7SOxvBqslgCTWvxL7zneoPcEtTxjfo7QhCm5 X-Received: by 2002:a63:80c6:: with SMTP id j189-v6mr15592728pgd.40.1538145127489; Fri, 28 Sep 2018 07:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538145127; cv=none; d=google.com; s=arc-20160816; b=H6mouJq8A9QabFmhCvmh6lzo9cEi8ONLUzCBi4tx+uorLXDcf+O8M/a15KtiLKQqS+ W1I474V1iYg7f4VGPfRr6+HNTZQLf6jlZWzyt2SDB6zizVjdJu6GByRmtw98YbJ6XGuo H89JISNXbG3KbBTG+MkkjDY7hfHpl7zrCFGq+5F18263ONqTl4O2bWUQEvKyVQWeOLw2 Bq9xGf1W7p9NMkPT7Wq5fnqwV/4Vs/DSEww97rNSwJmOlv7Go5U2g2fN6IY/7cIqKf2n anUGiNzn/7zY5iM5Vk9BX/blOgKs/3njiz8VElctmVktBYB+yfZ8Sg2oFXhLaH8C8EtF yJOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=MCbEehTdA9y5h8abJnV2NxF0wsrlvw8jCFqcssdxvKI=; b=q4fbQRXfwcZHdOD6WSYTqbzUL/pi7y7+W5Pe+3Lc+XPJjYrsejA951b+qeclKTX1CE xVPN4665nAjD2OJvw+NJlolri0SXLHzlZEUwxGFqLhSdR0E/KtMDArV6VI1aQA0A6mCd UJW9UuluovFe4bwh3ClZepE02tarEAOovIyztlVnlEF6XZaNFvc5LB2ZtCdVfi2jYCVq 22T+25WDtWK5do/PwL7O3yQnQ49AUdAWzCsiekB5dxU++qxrO5Y2Jbe/+fMt04V5yhXF uqAEkC/HUMPOBMhFGf67O5bY68/FB11chaZn8BvlQfwXVKVe3kXpC9QEyMUa00w7fgwf PiWA== 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 37-v6si4963944ple.491.2018.09.28.07.31.52; Fri, 28 Sep 2018 07:32:07 -0700 (PDT) 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 S1729253AbeI1Uz3 (ORCPT + 99 others); Fri, 28 Sep 2018 16:55:29 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:10446 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbeI1Uz3 (ORCPT ); Fri, 28 Sep 2018 16:55:29 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w8SET7bB025957; Fri, 28 Sep 2018 16:30:58 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2mnb6y2dc3-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 28 Sep 2018 16:30:58 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id AD42C38; Fri, 28 Sep 2018 14:30:57 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node2.st.com [10.75.127.14]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5059250E0; Fri, 28 Sep 2018 14:30:57 +0000 (GMT) Received: from [10.129.6.39] (10.75.127.46) by SFHDAG5NODE2.st.com (10.75.127.14) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 28 Sep 2018 16:30:55 +0200 Subject: Re: [PATCH v2 0/7] Add-DMA-MDMA-chaining-support To: Vinod Koul , Rob Herring , Mark Rutland , Alexandre Torgue , Maxime Coquelin , Dan Williams , , , , References: <1538123794-17085-1-git-send-email-pierre-yves.mordret@st.com> From: Pierre Yves MORDRET Message-ID: <6bc2e022-1a36-f36c-b23b-e2ba7b16f2fc@st.com> Date: Fri, 28 Sep 2018 16:30:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1538123794-17085-1-git-send-email-pierre-yves.mordret@st.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) To SFHDAG5NODE2.st.com (10.75.127.14) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-28_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello all, I've submitted a V3 following a KBuild warning. You can thus drop this V2. Thanks and sorry for the spamming. Have a nice weekend. Regards On 09/28/2018 10:36 AM, Pierre-Yves MORDRET wrote: > This serie adds support for M2M transfer triggered by STM32 DMA in order to > transfer data from/to SRAM to/from DDR. > > Normally, this mode should not be needed as transferring data from/to DDR > is supported by the STM32 DMA. > However, the STM32 DMA don't have the ability to generate burst transfer > on the DDR as it only embeds only a 4-word FIFO although the minimal burst > length on the DDR is 8 words. > Due to this constraint, the STM32 DMA transfers data from/to DDR in a > single way and could lead to pollute the DDR. > To avoid this, we have to use SRAM for all transfers where STM32 DMA is > involved. > > An Hw design has been specially put in place to allow this chaining where DMA > interrupt is connected on GIC and MDMA request line as well. This grants the > possibility to trigger an MDMA transfer from the completion of DMA. > At the same time MDMA has the ability to acknowlege DMA. The aim is to have an > self refreching mechanism to transfer from/to device to/from DDR with minimal > sw support. > For instance the DMA is set in cyclic double buffering to feed SRAM and MDMA > transfer to DDR thanks to LLI. > > M'boumba Cedric Madianga (7): > dt-bindings: stm32-dma: Add DMA/MDMA chaining support bindings > dt-bindings: stm32-dmamux: Add one cell to support DMA/MDMA chain > dt-bindings: stm32-mdma: Add DMA/MDMA chaining support bindings > dmaengine: stm32-dma: Add DMA/MDMA chaining support > dmaengine: stm32-mdma: Add DMA/MDMA chaining support > dmaengine: stm32-dma: enable descriptor_reuse > dmaengine: stm32-mdma: enable descriptor_reuse > > .../devicetree/bindings/dma/stm32-dma.txt | 27 +- > .../devicetree/bindings/dma/stm32-dmamux.txt | 6 +- > .../devicetree/bindings/dma/stm32-mdma.txt | 12 +- > drivers/dma/stm32-dma.c | 903 ++++++++++++++++++--- > drivers/dma/stm32-mdma.c | 133 ++- > 5 files changed, 949 insertions(+), 132 deletions(-) >