From patchwork Wed Dec 12 09:37:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 13493 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 816424C17AA for ; Wed, 12 Dec 2012 10:25:26 +0000 (UTC) Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by fiordland.canonical.com (Postfix) with ESMTP id 1C05AA191AC for ; Wed, 12 Dec 2012 10:25:26 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id 17so1499248iea.16 for ; Wed, 12 Dec 2012 02:25:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :resent-from:resent-date:resent-message-id:resent-to:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=G4rAtE63WpOK1kQhsSYMlH3teqIKOw/grUpI1SYlAKs=; b=ig4QPNusFnTxSN2ie4PkAKx/LRIoQBxIh4h6HYEaTZMHe34D9uZd8OWe91jtOhQUOz naQWECOyS58Dne0AYM1aytkY+cU+l9VBPs839+m4dLFvto0Cxl1DLVJAOujnOS8ZcaVd ZEfFEj0ftpUZoq15zFiijIporItmymTXPJDtGQuC4bzFZhS0VmhYVO09T4KuYQ3etVKU yzQJ/9UFjFt6a6d/ryd3EkCywmI2YSKs3Fm2Qc4gvRvBm197wATmVW2IOAvnz5ZE6Me2 AYkAf8iF2VaBVjPGY+zwsXHXmU1jcrQ+viJNPlywiiur47HdRCYiKJWbI+mX/sprX69s pUZA== Received: by 10.50.40.137 with SMTP id x9mr15893608igk.1.1355307925527; Wed, 12 Dec 2012 02:25:25 -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.50.67.148 with SMTP id n20csp190146igt; Wed, 12 Dec 2012 02:25:25 -0800 (PST) Received: by 10.14.178.196 with SMTP id f44mr1573460eem.14.1355307924539; Wed, 12 Dec 2012 02:25:24 -0800 (PST) Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by mx.google.com with ESMTPS id n5si62190952eeo.47.2012.12.12.02.25.24 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Dec 2012 02:25:24 -0800 (PST) Received-SPF: neutral (google.com: 74.125.83.45 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=74.125.83.45; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.83.45 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-ee0-f45.google.com with SMTP id d49so306862eek.4 for ; Wed, 12 Dec 2012 02:25:24 -0800 (PST) Received: by 10.14.218.69 with SMTP id j45mr1571554eep.35.1355307923942; Wed, 12 Dec 2012 02:25:23 -0800 (PST) Received: from localhost ([2a01:2003:1:1d66:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPS id d3sm55041868eeo.13.2012.12.12.02.25.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Dec 2012 02:25:23 -0800 (PST) Resent-From: Fabio Baltieri Resent-Date: Wed, 12 Dec 2012 11:25:15 +0100 Resent-Message-ID: <20121212102515.GC10536@balto.lan> Resent-To: patches@linaro.org Received: from localhost ([2a01:2003:1:1d66:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPS id r1sm54820626eeo.2.2012.12.12.01.38.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 12 Dec 2012 01:38:15 -0800 (PST) From: Fabio Baltieri To: Linus Walleij , Srinidhi Kasagar Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Per Forlin , Fabio Baltieri Subject: [PATCH 2/7] dmaengine: ste_dma40: use writel_relaxed for lcxa Date: Wed, 12 Dec 2012 10:37:16 +0100 Message-Id: <1355305041-2338-3-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1355305041-2338-1-git-send-email-fabio.baltieri@linaro.org> References: <1355305041-2338-1-git-send-email-fabio.baltieri@linaro.org> X-Gm-Message-State: ALoCoQkrSC2aUz2KQc9xCJSkCA81hIQzXa1Nzu+KtTuhd1/WZPhMYY1Co0r4hT15KwvApTqTtiJf 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 536e848..c0781ae 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,