Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161231AbbKFKNW (ORCPT ); Fri, 6 Nov 2015 05:13:22 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:38585 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161137AbbKFKNF (ORCPT ); Fri, 6 Nov 2015 05:13:05 -0500 Subject: Re: [PATCH 2/2] usb: host: ehci-msm: Use posted data writes on AHB To: Andy Gross , linux-usb@vger.kernel.org References: <1446789847-640-1-git-send-email-agross@codeaurora.org> <1446789847-640-3-git-send-email-agross@codeaurora.org> Cc: Greg KH , Peter Chen , Alan Stern , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org From: Georgi Djakov Message-ID: <563C7D2C.9080909@linaro.org> Date: Fri, 6 Nov 2015 12:13:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1446789847-640-3-git-send-email-agross@codeaurora.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1245 Lines: 37 On 11/06/2015 08:04 AM, Andy Gross wrote: > This patch sets the AHBMODE to allow for posted data writes. This > results in higher performance. > > Signed-off-by: Andy Gross With these patches I see significant improvement in throughput on my db410c board. Tested-by: Georgi Djakov > --- > drivers/usb/host/ehci-msm.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c > index c4f84c8..c23e285 100644 > --- a/drivers/usb/host/ehci-msm.c > +++ b/drivers/usb/host/ehci-msm.c > @@ -57,8 +57,8 @@ static int ehci_msm_reset(struct usb_hcd *hcd) > > /* bursts of unspecified length. */ > writel(0, USB_AHBBURST); > - /* Use the AHB transactor */ > - writel(0, USB_AHBMODE); > + /* Use the AHB transactor, allow posted data writes */ > + writel(0x8, USB_AHBMODE); > /* Disable streaming mode and select host mode */ > writel(0x13, USB_USBMODE); > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/