From patchwork Mon Apr 26 10:39:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 12224157 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84B97C433B4 for ; Mon, 26 Apr 2021 10:42:29 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DA63E6052B for ; Mon, 26 Apr 2021 10:42:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA63E6052B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=SeLHGy4pQmAGMdXl7oWAMQmPPDGWwespcsTqRYHQz1U=; b=SJKNQ8Z6pSqeTsmBrhyE/eSlpI e4uwHmSlEYrH4Nb47R0IpuXW4HspoTt03CP2OMKW8gaQ2XMETZHyC99GpmYI5HPfaa4jvfzfwhyWC ImiGTbOkaC+nr7IBBUmH+/FBGZTUOhD50rSi0HW8qnbwnSmgXyho3eBp4SaEld9ex2g1po8+8Cc9s 022Y0T9vlvmh4oz+9kmKqEX6hdhBM3/JXXX/Kp6uiMXRP+DdTGtC7Y7k3dZZ6AMh37lQqnxMNw5AW d+x+QXTc2B7HldxEoOVdBDfwTmkXv+/ZPLA/77l3/Xg3FdYEtmkx2TfDCyIhL5TlXjh3rkwVJkRNS c432sMmQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1layfY-007QgA-2d; Mon, 26 Apr 2021 10:40:48 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1layfV-007Qev-Rr for linux-arm-kernel@desiato.infradead.org; Mon, 26 Apr 2021 10:40:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=LuAAV+vjbVeIX0jQ7jUT9/6qq5AEdw86+P+dHuRWAoo=; b=KS6pnEmKZLPOO27MRTgxNp3HqL k+JA3Ik8ExFTPc8PpoHERqhI/2CHeGivnChyecdzgsEq+GqROJRuBZc2lDQVD8SiIXQMQ/Ous46VG +5TeEq8gIfta7OX+ULWKzT06yt+rt4amQHqLLdydithAdgb1NlaFs8hWCiORkuiMwg9bPOlpjn0ij YsAz4/VHXqsGeF7FdIkKBpuOxq0slyQLiYnIzvDUNe5Hd9JvEYlZDJHPdJ2pMwSFfG72bM8oiXrmc W0p8knV1SULGvChCNwBW5rQ8mJE0JvJHZAavWPDHGfsN0a0WYP02HYHiNXeJnamBawiP+8cnF9Ua1 Cv1HX7vA==; Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1layfS-00FtyN-K9 for linux-arm-kernel@lists.infradead.org; Mon, 26 Apr 2021 10:40:44 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13QAaO1A016416; Mon, 26 Apr 2021 12:40:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=selector1; bh=LuAAV+vjbVeIX0jQ7jUT9/6qq5AEdw86+P+dHuRWAoo=; b=Vv7l4zgb+uiXjRegQs+5B5SVFa55bmdS6x9ygVSokM4UB7MTxBBFdPhtASq/mNybIXSC GGY+5kjt5Tx+ftEdouRtaZ4bmvmUMAyJotNs5LmKKXRHZzbpWf1qUz7sMavjDIc+bat1 lgpY+At+n4HDZQ0ANSRTQxMnlO2WgP4o4Zf5i3lSxxiZ8wjYZISp0IUWhZmhnmsV4g46 6UtDsrWQ9BoOo22bUTnEw9GmGosu0XTRWKiPnK2T8AeiNbpMZgJfOK7zDDJDBUlJ2VM3 J8Obllg7bG23Dw/mVzLHkfSTRNi7V0/5doCsfH+mZgPQQAf5DmCVP+qL2hrLrVwcE4Su hg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 385gb2b78j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Apr 2021 12:40:27 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CD7CD10002A; Mon, 26 Apr 2021 12:40:24 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 99B5E20B11F; Mon, 26 Apr 2021 12:40:24 +0200 (CEST) Received: from localhost (10.75.127.51) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 26 Apr 2021 12:40:24 +0200 From: To: , , CC: , , , , , , Patrice Chotard , Christophe Kerello Subject: [1/1] ARM: dts: stm32: Configure qspi's mdma transfer to block for stm32mp151 Date: Mon, 26 Apr 2021 12:39:56 +0200 Message-ID: <20210426103956.29007-1-patrice.chotard@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.51] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-26_03:2021-04-26, 2021-04-26 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210426_034043_044495_F7952D67 X-CRM114-Status: GOOD ( 13.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Patrice Chotard Configure qspi's mdma from buffer transfer (max 128 bytes) to block transfer (max 64K bytes). mtd_speedtest shows that write throughtput increases : - from 734 to 782 KiB/s (~6.5%) with s25fl512s SPI-NOR. - from 4848 to 5319 KiB/s (~9.72%) with Micron SPI-NAND. Signed-off-by: Christophe Kerello Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32mp151.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi index 4b8031782555..cb326c1e12bc 100644 --- a/arch/arm/boot/dts/stm32mp151.dtsi +++ b/arch/arm/boot/dts/stm32mp151.dtsi @@ -1358,8 +1358,8 @@ reg = <0x58003000 0x1000>, <0x70000000 0x10000000>; reg-names = "qspi", "qspi_mm"; interrupts = ; - dmas = <&mdma1 22 0x2 0x100002 0x0 0x0>, - <&mdma1 22 0x2 0x100008 0x0 0x0>; + dmas = <&mdma1 22 0x2 0x10100002 0x0 0x0>, + <&mdma1 22 0x2 0x10100008 0x0 0x0>; dma-names = "tx", "rx"; clocks = <&rcc QSPI_K>; resets = <&rcc QSPI_R>;