From patchwork Mon Jan 7 11:21:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 13865 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id DC0A823EC8 for ; Mon, 7 Jan 2013 11:23:27 +0000 (UTC) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by fiordland.canonical.com (Postfix) with ESMTP id 7C6BEA1936F for ; Mon, 7 Jan 2013 11:23:27 +0000 (UTC) Received: by mail-vb0-f48.google.com with SMTP id fc21so19063945vbb.35 for ; Mon, 07 Jan 2013 03:23:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=oqg+wlRIKmDjlGdL/0XYFDwlPBFd0wF1lqPkmRxjFhI=; b=Dpsroy2YyAUzF/DRWLkUFRgfn1AiwZCGnZo70k6KNoRUXAoQ3KE6r3gv3jYNv0BruY yazjYd/j1aIhcz3+mGS2fC+zZJAGoCM+MpOjAN2Qx+w+vbPKJUg/HTKRwu59AVp7eKW2 W0N09nXl1YyPZ3FSqBKFk8itN7P/hKY/GHlMZiCGWnhcnLE116OO/80StEFkFDCjJ8gc oGGGu9Xj+ouJJzHRS/BLT3TyloOSivogqZFxhK/lu5shgYoIjwNipXej+65C1VbeF+Ab 61gPJSDS1SebQn0gbSqPKJySBhykxunyWHt59dxmJCExigJ74PiCwz1BwTwjughWTHKR TKnA== X-Received: by 10.52.176.6 with SMTP id ce6mr71864045vdc.57.1357557807014; Mon, 07 Jan 2013 03:23:27 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp56211veb; Mon, 7 Jan 2013 03:23:26 -0800 (PST) X-Received: by 10.194.9.197 with SMTP id c5mr95257432wjb.20.1357557805862; Mon, 07 Jan 2013 03:23:25 -0800 (PST) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id lm4si87358767wjb.11.2013.01.07.03.23.25 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 03:23:25 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) smtp.mail=fabio.baltieri@linaro.org Received: by mail-we0-f178.google.com with SMTP id x43so10342743wey.9 for ; Mon, 07 Jan 2013 03:23:25 -0800 (PST) X-Received: by 10.195.13.67 with SMTP id ew3mr7701614wjd.59.1357557805484; Mon, 07 Jan 2013 03:23:25 -0800 (PST) Received: from localhost ([2a01:2029:1:11e3:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPS id eo10sm13046864wib.9.2013.01.07.03.23.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 03:23:24 -0800 (PST) From: Fabio Baltieri To: Vinod Koul Cc: Dan Williams , Linus Walleij , Srinidhi Kasagar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Per Forlin , Fabio Baltieri Subject: [PATCH 02/16] dmaengine: ste_dma40: use writel_relaxed for lcxa Date: Mon, 7 Jan 2013 12:21:44 +0100 Message-Id: <1357557718-15676-3-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1357557718-15676-1-git-send-email-fabio.baltieri@linaro.org> References: <1357557718-15676-1-git-send-email-fabio.baltieri@linaro.org> X-Gm-Message-State: ALoCoQlJTi8p7/wC6JAGwSV3u4yPDBKtAJB/88/pZ6CJvsTXwgfGX1Qe4Hw+YAivkrdsupm07Xeh From: Per Forlin lcpa and lcla are written often and the cache_sync() overhead in writel is costly, especially for wlan where every single network packet (in RX mode) corresponds to a separate DMA transfer. Signed-off-by: Per Forlin Reviewed-by: Narayanan Gopalakrishnan Reviewed-by: Rabin Vincent Acked-by: Linus Walleij Signed-off-by: Fabio Baltieri --- drivers/dma/ste_dma40_ll.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/dma/ste_dma40_ll.c b/drivers/dma/ste_dma40_ll.c index d64b72a..1cfe7ab 100644 --- a/drivers/dma/ste_dma40_ll.c +++ b/drivers/dma/ste_dma40_ll.c @@ -332,10 +332,10 @@ void d40_log_lli_lcpa_write(struct d40_log_lli_full *lcpa, { d40_log_lli_link(lli_dst, lli_src, next, flags); - writel(lli_src->lcsp02, &lcpa[0].lcsp0); - writel(lli_src->lcsp13, &lcpa[0].lcsp1); - writel(lli_dst->lcsp02, &lcpa[0].lcsp2); - writel(lli_dst->lcsp13, &lcpa[0].lcsp3); + writel_relaxed(lli_src->lcsp02, &lcpa[0].lcsp0); + writel_relaxed(lli_src->lcsp13, &lcpa[0].lcsp1); + writel_relaxed(lli_dst->lcsp02, &lcpa[0].lcsp2); + writel_relaxed(lli_dst->lcsp13, &lcpa[0].lcsp3); } void d40_log_lli_lcla_write(struct d40_log_lli *lcla, @@ -345,10 +345,10 @@ void d40_log_lli_lcla_write(struct d40_log_lli *lcla, { d40_log_lli_link(lli_dst, lli_src, next, flags); - writel(lli_src->lcsp02, &lcla[0].lcsp02); - writel(lli_src->lcsp13, &lcla[0].lcsp13); - writel(lli_dst->lcsp02, &lcla[1].lcsp02); - writel(lli_dst->lcsp13, &lcla[1].lcsp13); + writel_relaxed(lli_src->lcsp02, &lcla[0].lcsp02); + writel_relaxed(lli_src->lcsp13, &lcla[0].lcsp13); + writel_relaxed(lli_dst->lcsp02, &lcla[1].lcsp02); + writel_relaxed(lli_dst->lcsp13, &lcla[1].lcsp13); } static void d40_log_fill_lli(struct d40_log_lli *lli,