linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Andy Gross <andy.gross@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 2/5] soc: qcom: smem: Use write-combine remap for SMEM
Date: Mon, 28 Mar 2016 21:35:23 -0700	[thread overview]
Message-ID: <1459226126-16725-2-git-send-email-bjorn.andersson@linaro.org> (raw)
In-Reply-To: <1459226126-16725-1-git-send-email-bjorn.andersson@linaro.org>

Mapping the SMEM region as write combine makes the contiguous writes
in SMD perform better and also allows us to do unaligned read and writes
on ARM64.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 drivers/soc/qcom/smem.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/soc/qcom/smem.c b/drivers/soc/qcom/smem.c
index 19019aa092e8..2e1aa9f130f4 100644
--- a/drivers/soc/qcom/smem.c
+++ b/drivers/soc/qcom/smem.c
@@ -684,8 +684,7 @@ static int qcom_smem_map_memory(struct qcom_smem *smem, struct device *dev,
 
 	smem->regions[i].aux_base = (u32)r.start;
 	smem->regions[i].size = resource_size(&r);
-	smem->regions[i].virt_base = devm_ioremap_nocache(dev, r.start,
-							  resource_size(&r));
+	smem->regions[i].virt_base = devm_ioremap_wc(dev, r.start, resource_size(&r));
 	if (!smem->regions[i].virt_base)
 		return -ENOMEM;
 
-- 
2.5.0

  reply	other threads:[~2016-03-29  4:35 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29  4:35 [PATCH 1/5] soc: qcom: smd: Make callback pass channel reference Bjorn Andersson
2016-03-29  4:35 ` Bjorn Andersson [this message]
2016-03-31 18:28   ` [PATCH 2/5] soc: qcom: smem: Use write-combine remap for SMEM Andy Gross
2016-03-29  4:35 ` [PATCH 3/5] dt-binding: Add Qualcomm WCNSS control binding Bjorn Andersson
     [not found]   ` <1459226126-16725-3-git-send-email-bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2016-03-31 14:28     ` Rob Herring
2016-03-31 17:16       ` Bjorn Andersson
2016-03-31 17:38         ` Rob Herring
     [not found]           ` <CAL_JsqKbjUxOMbn00OOmwM1vvjRzC8RzX=4WA7WP+K2XYjOSMA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-31 18:24             ` Bjorn Andersson
2016-03-31 20:42               ` Rob Herring
2016-03-31 21:28                 ` Bjorn Andersson
2016-03-29  4:35 ` [PATCH 4/5] soc: qcom: wcnss_ctrl: Make wcnss_ctrl parent the other components Bjorn Andersson
2016-03-31 18:47   ` Andy Gross
2016-03-31 19:39     ` Bjorn Andersson
2016-03-29  4:35 ` [PATCH 5/5] ARM: dts: qcom: msm8974: Introduce pronto node Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1459226126-16725-2-git-send-email-bjorn.andersson@linaro.org \
    --to=bjorn.andersson@linaro.org \
    --cc=andy.gross@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-soc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).