Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3141825ybi; Fri, 5 Jul 2019 02:37:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzszkcLzvct2DY3mjGtONHkx39ED7mOiRc9OTJ51zP/KmaiXLXRkZMqdDNJCOyC2Ihi6xkp X-Received: by 2002:a63:5107:: with SMTP id f7mr4257683pgb.266.1562319454959; Fri, 05 Jul 2019 02:37:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562319454; cv=none; d=google.com; s=arc-20160816; b=hMr+eMf2j4z6qaNGfAThD2Jc/yEJcTR5t7NOwXDkwmyRXqQLaGKbMaO8DJ+oD2TbO2 DSayn87qr71Wu1jQegvj+q2DktlTbupPNjjy34fVEYKB9r6wbDqUY6UcODrfGRuqIiAM P+rdSNUVv1dyESG4iGmbHOu6E2+qAXzyNM6o5ehnyiy+AwjZZ+g9iDSOEGFnsxjPvWbs 52vFy6nmk20tV8qPh03uQ5BkzwYagcZwGJiF4N4zvCgoZ+c9gcaeVq76glz2dyQRt07C bUtGeu+E8SQRv3kRQR1M4tikE+hv5fwoHPKOyfNZwaNg71WD/SyBDYauT1q+l4MRiLel 3XFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=DrtkCOU3d35z8J32aN8s3zZgpzBWbHJuGIW4lFwRsYw=; b=BgnWBZzOpDcMc43K0ZDJq9DEJIUL7r0HVCpSDX7K3+dAwVx/0tKl56w3UzyqAMs+Tx ZqdswPaijZE/LEby828becNO5yuzTUm0rqKCy1COR0OE9zw2XqrKrIjjexLIikBwb1kJ UFFByIyBXnsmRlL6MiFz+v3vdgOLv53+NH1b9UxInYhOg2TB3zLSdFVCvZA0ghM3ArgC JJQXO2UWRnvTBVMrTRu+Q9w4SzVAWnLYsfnsUwujvjgqt2YfWtA8y7O/8jUTfJVDnavN PznuRYIBs+5lZr9+o3oJGIVjaGzQB0gYDalQCCV5HN39Fc6L2mnJeDl51uSHp39Cthxx 2/Ew== 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 g18si8558754plq.190.2019.07.05.02.37.19; Fri, 05 Jul 2019 02:37:34 -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 S1727737AbfGEIs7 (ORCPT + 99 others); Fri, 5 Jul 2019 04:48:59 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:41281 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727010AbfGEIs7 (ORCPT ); Fri, 5 Jul 2019 04:48:59 -0400 Received: by mail-ed1-f65.google.com with SMTP id p15so7539922eds.8; Fri, 05 Jul 2019 01:48:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DrtkCOU3d35z8J32aN8s3zZgpzBWbHJuGIW4lFwRsYw=; b=XrtSRwSHZloS2G5Heluef/b7vZruYDB/jfr5+ZMhwOsj1gnjx56ZJhW5HQ7OrrWzMx 4cfKp3M2DF2i9gBvDefGKhK5Vub75xsel3BWI3MiqjXCRQAZSeuT0UPSg19ziVaxMWOG F+FMt9PcsbdxgG/lBhIu93ehH4hYMSdB/CSQg790jbIz0bGwW83FFegsM7DucUNxeDYP Imuwn0GxCvXYKPHS7E0f4BE/RduVDseOPEa0nvS63Tu+8bkFkMEDuB51+CUkI1zT4VnX Ca+SBNBEBrEK2ieUkT60fOB6SaSviGaDPAv7f0Egm+6pwVS/8almxhxfJXvdOKqVWcE9 BX+w== X-Gm-Message-State: APjAAAUmjJEDFX34nsWb8c3H4cOgiL3kNEJ/GmEUCqnL4uSTl0CNc4hm r4iBh4eKEQ3uNjikeSDjZiNs9nn3JsE= X-Received: by 2002:a50:a485:: with SMTP id w5mr3138570edb.277.1562316536934; Fri, 05 Jul 2019 01:48:56 -0700 (PDT) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com. [209.85.221.44]) by smtp.gmail.com with ESMTPSA id d4sm2456460edb.4.2019.07.05.01.48.55 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jul 2019 01:48:55 -0700 (PDT) Received: by mail-wr1-f44.google.com with SMTP id n4so9088509wrs.3; Fri, 05 Jul 2019 01:48:55 -0700 (PDT) X-Received: by 2002:a5d:568e:: with SMTP id f14mr2777076wrv.167.1562316534957; Fri, 05 Jul 2019 01:48:54 -0700 (PDT) MIME-Version: 1.0 References: <20190513142410.9299-1-um@mutluit.com> In-Reply-To: <20190513142410.9299-1-um@mutluit.com> From: Chen-Yu Tsai Date: Fri, 5 Jul 2019 16:48:44 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linux-sunxi] [PATCH v3] drivers: ata: ahci_sunxi: Increased SATA/AHCI DMA TX/RX FIFOs To: Jens Axboe , Hans de Goede Cc: Maxime Ripard , linux-ide@vger.kernel.org, linux-arm-kernel , linux-kernel , Uenal Mutlu , linux-sunxi , linux-amarula , Jagan Teki , Pablo Greco , Mark Rutland , Oliver Schinagl , Linus Walleij , FUKAUMI Naoki , Andre Przywara , Stefan Monnier Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 10:24 PM 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 > > Acked-by: Maxime Ripard > Reviewed-by: Hans de Goede > Signed-off-by: Uenal Mutlu Tested-by: Chen-Yu Tsai on a Lamabo R1 as well. Maybe we could merge this soon so it makes the next merge window? Thanks.