Message ID | 20170726021552.19880-2-fcooper@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 76FA760380 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 26 Jul 2017 02:17:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7393A28643 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 26 Jul 2017 02:17:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6879D28669; Wed, 26 Jul 2017 02:17:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D665628643 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 26 Jul 2017 02:17:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xlzf4Wd1mvBRK5ocGo0PixiFoiOgoW0miqvG7DOabrs=; b=EnS2UudXLEAtBP fyKOA7mqo7Kngp6SHxcKGqoobylOGj2JC9wrM/AFWk5Nk1pmezNQouehuqF1fwk3z9iA2iosNNoAg Aag9S2B5Qz0/8IMYMgKlx1kMsgcjHrgCNjAc9JCmk5HbvvXDjRDkPpnajX+1R/APT6nqVF6ntSRNN Tw8twrglyMeVRCax7S7U9aUiEjUj//I5LLeS8nY7NdjKSYrKVaweejbUxS/hmpbgox7wO5A26YgxB Mc6UkKwXHPxcaET869Wlc1ca64qcQmNnyAOkp68yiU2m33tdDUpgsAqtRdbk035ayh2wKYPbOQoxn LJqKM/m6WzJnHmhs6Wgw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1daBtL-00077v-VI; Wed, 26 Jul 2017 02:17:39 +0000 Received: from lelnx194.ext.ti.com ([198.47.27.80]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1daBsU-0006V2-EZ for linux-arm-kernel@lists.infradead.org; Wed, 26 Jul 2017 02:16:48 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6Q2GBRB014758; Tue, 25 Jul 2017 21:16:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501035371; bh=JQPR2KHvKxZHnVrNbG9kqVN84ory67BDKAWLvLUqKaQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=VXSrXI0QRQDlUg9COiGWVL8QNjvbAmvDi51ydxFVHGerWYociy4P69sC4EWuwyYxt Uom+sS52BtXMAgmmHXIka2ec+Qhkg1PJdYR2GEyjlPc6HgMdtDrQYaCDesUWQhmfbp 8npVoVVhJtOLSablfx9CMls8kC2fc2eRTVu2rnTw= Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6Q2GB5I004480; Tue, 25 Jul 2017 21:16:11 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Tue, 25 Jul 2017 21:16:10 -0500 Received: from dbdmail01.india.ti.com (dbdmail01.india.ti.com [172.24.162.206]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6Q2G9r5014842; Tue, 25 Jul 2017 21:16:10 -0500 Received: from udb0273011.dhcp.ti.com (udb0273011.dhcp.ti.com [128.247.59.33]) by dbdmail01.india.ti.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id v6Q2G2bT006171; Wed, 26 Jul 2017 07:46:06 +0530 From: Franklin S Cooper Jr <fcooper@ti.com> To: <bcousson@baylibre.com>, <tony@atomide.com>, <robh+dt@kernel.org>, <linux@armlinux.org.uk>, <linux-omap@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH 1/3] ARM: dts: am335x-evm: Enable NAND dma prefetch by default Date: Tue, 25 Jul 2017 21:15:50 -0500 Message-ID: <20170726021552.19880-2-fcooper@ti.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20170726021552.19880-1-fcooper@ti.com> References: <20170726021552.19880-1-fcooper@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170725_191646_586708_FF102FBB X-CRM114-Status: UNSURE ( 8.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Franklin S Cooper Jr <fcooper@ti.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 1c37a7c..ddd8975 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts @@ -531,6 +531,7 @@ interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ <1 IRQ_TYPE_NONE>; /* termcount */ rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */ + ti,nand-xfer-type = "prefetch-dma"; ti,nand-ecc-opt = "bch8"; ti,elm-id = <&elm>; nand-bus-width = <8>;
Currently the default method of prefetch polled shows the highest possible read and write speed when minimal non NAND background activity is being done. But it is also very CPU intensive to reach these high speeds (CPU load of 99% via mtd performance tests). While DMA prefetch only uses 50% of the CPU to achieve around 23% less in top read and write performance. However, as the non NAND CPU load increases the read and write performance takes a large hit when using polled prefetch. Therefore, prefetch dma mode ends up outperforming prefetch polled in general "system level" test. So switch to using dma prefetch by default since it is likely what most users would prefer. Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com> --- arch/arm/boot/dts/am335x-evm.dts | 1 + 1 file changed, 1 insertion(+)