Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3572975ybi; Fri, 5 Jul 2019 09:44:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZGMAPYW+lrSU9XPXXybSDaIVf15DqupIPpdRp4KmL2d9G1lqFrEskhX3akx5btlrV5V2C X-Received: by 2002:a17:902:112c:: with SMTP id d41mr6601341pla.33.1562345081744; Fri, 05 Jul 2019 09:44:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562345081; cv=none; d=google.com; s=arc-20160816; b=y+ElFDv4ORBIBygHL5r0hlGwwe6pnaNqTxLRbtV6gC2OGY1y9TJnz/DAFWtJOGMLqt ZR7kh608OzcBYXSC1d8TyWo2e5R7Zoz0clwGnrScgrtbaJGjQTE3oQkcUw7eG5PmP3wN qsVTMTipdfcZ3hkfFvi5kWlPM6pzkMTw/7SaZUxM5NXUNac7zaLm7TWDcw0qlMA9K3ih PL12Q9ahXaXfHE7W3r586IvFgfJvamS2dbriRQw6fQ6J7Y9hDWS9PTuNJZJBOMcOEfWj DU7jWiEr3HdRxxeAhNz+eJR9aIPI4FgWlLD6uQYRZ+1zyHt3OxIihuKsu2oEchfGM1SQ FNfw== 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:cc:to:subject:dkim-signature; bh=0I5KUts4VK47WZ4vJqCHUl93jM/IRvCySns2OuZKj5U=; b=yFYv7qqaEVO3DcJOgyHymUzp7JvFtPaTpZoKl/1D76Ex3TzjdoCJ+EqYmYE1cW9Nux YG2XBB/L0J9xkNG4yAgzunz5Ng6Wuuips8KBZ9RbuGxe5qJbYN44JhmOlYlk23V8kRtJ eazZmptS+Mj67EvMTUImP0IL+DxbUfC6SqOeRW16bcZXJij6E8zWdmlM48B5wll8NKA1 7gNqo/XT8yqC/j7w8dOMs6/BrLs5FWFGjGL4cjtkPqQQjysj92Ks7l8wXyBE5hxNSKYi r2CYYKWPC7n0o52dJdKbF3YY3ZeIl1tvwh55piDc3qxHm9O2U0lxAcPJNyKUshsnWEv8 a8jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=i9sFNsbb; 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 k32si8961775pjb.11.2019.07.05.09.44.26; Fri, 05 Jul 2019 09:44:41 -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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=i9sFNsbb; 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 S1728333AbfGEQRx (ORCPT + 99 others); Fri, 5 Jul 2019 12:17:53 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:40964 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727761AbfGEQRx (ORCPT ); Fri, 5 Jul 2019 12:17:53 -0400 Received: by mail-pl1-f195.google.com with SMTP id m9so1155497pls.8 for ; Fri, 05 Jul 2019 09:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0I5KUts4VK47WZ4vJqCHUl93jM/IRvCySns2OuZKj5U=; b=i9sFNsbbwhBUwn2kzFjOMQ+J1FA1ixrVIsSqUR9F2AMXvy/w7lOnNtn1pmqqoGOZeO SrI8U9d39OKR9lfF/YPcxiFPKsbro8D0ADO65DeQLBgTlFlfm6UTL1hFWKLfDTo82FUw TF7g56Vg+GhvFl4PXBkWrikkcteMF9BUbPPdkD7KxJs0NlPfsEJZFyBwN7AAl0XSMRns 3SCA6vdJG67WWpfjvkA5b6eE9t/anTl/9VcwavLMXODs9WUmCjKCmtZRRoHTckM12DE9 Lzre8a3OFvyS8KgEvyn4Pgf75nPTewY9xe+5hX72QvZNf/1BxuEx4XtGMmkfu4Pi1gXD zxiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0I5KUts4VK47WZ4vJqCHUl93jM/IRvCySns2OuZKj5U=; b=h3KBA6vDNIVJpMTJGlkG7NeisPohJ9qV7T/CYGLnjaQG9lXtyRipIK+nL+kE7QGCny Kz+2O6c3lSPLK6/3LqDj4HgVMsVCToYAstBcNCxpclytQtgXB5+xFiZAmzN+uLHGDwrU ePfNqugMIjs9yo5U7cAwSntvOuViU/NIwDfsXSBKf2QvnQi2iubZ/3vO0v408HuM0EdP kWMQ8kHSMxbBu/ijObWOnI4jsNnTnahfY7DOM8tCrYN5tE/cu5D0pJt7TfrSNaD5w1ze B4Xdca42YPdHWwjI1H7BtEpHwOEVgWnsiUVNDGGOj9Mdc7Q8NzV21MWWr3XjUJx96UFn KFHg== X-Gm-Message-State: APjAAAVimdNm/hX3zjxoocU3GG8Vk8Aa86oWSobg/Teiiklcn3JnmWzb KL8PyNonEXBbjc/wapsI/YEX5A== X-Received: by 2002:a17:902:8f93:: with SMTP id z19mr6355312plo.97.1562343472095; Fri, 05 Jul 2019 09:17:52 -0700 (PDT) Received: from [192.168.1.121] (66.29.164.166.static.utbb.net. [66.29.164.166]) by smtp.gmail.com with ESMTPSA id h6sm10118921pfb.20.2019.07.05.09.17.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jul 2019 09:17:50 -0700 (PDT) Subject: Re: [PATCH v3] drivers: ata: ahci_sunxi: Increased SATA/AHCI DMA TX/RX FIFOs To: Uenal Mutlu , Maxime Ripard , Chen-Yu Tsai , linux-ide@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki , Pablo Greco , Mark Rutland , Oliver Schinagl , Linus Walleij , Hans de Goede , FUKAUMI Naoki , Andre Przywara , Stefan Monnier References: <20190513142410.9299-1-um@mutluit.com> From: Jens Axboe Message-ID: <95b399ff-86ef-134b-7c55-d4205cbe9eed@kernel.dk> Date: Fri, 5 Jul 2019 10:17:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190513142410.9299-1-um@mutluit.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/13/19 8:24 AM, Uenal Mutlu wrote: > Increasing the SATA/AHCI DMA TX/RX FIFOs (P0DMACR.TXTS and .RXTS, ie. > TX_TRANSACTION_SIZE and RX_TRANSACTION_SIZE) from default 0x0 each > to 0x3 each, gives a write performance boost of 120 MiB/s to 132 MiB/s > from lame 36 MiB/s to 45 MiB/s previously. > Read performance is above 200 MiB/s. > [tested on SSD using dd bs=4K/8K/12K/16K/20K/24K/32K: peak-perf at 12K] > > Tested on the SBCs Banana Pi R1 (aka Lamobo R1) and Banana Pi M1 which > are based on the Allwinner A20 32bit-SoC (ARMv7-a / arm-linux-gnueabihf). > These devices are RaspberryPi-like small devices. > > This problem of slow SATA write-speed with these small devices lasts > for about 7 years now (beginning with the A10 SoC). Many commentators > throughout the years wrongly assumed the slow write speed was a > hardware limitation. This patch finally solves the problem, which > in fact was just a hard-to-find software problem due to lack of > SATA/AHCI documentation by the SoC-maker Allwinner Technology. > > Lists of the affected sunxi and other boards and SoCs with SATA using > the ahci_sunxi driver: > $ grep -i -e "^&ahci" arch/arm/boot/dts/sun*dts > and http://linux-sunxi.org/SATA#Devices_with_SATA_ports > See also http://linux-sunxi.org/Category:Devices_with_SATA_port Applied for 5.3, thanks. -- Jens Axboe