diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-03-29 06:35:23 +0200 |
---|---|---|
committer | Andy Gross <andy.gross@linaro.org> | 2016-04-20 04:55:06 +0200 |
commit | afd356dfb3a4127b61a3519802a4db9046703724 (patch) | |
tree | 876dd959217a796b41c3b234b2e916e6ca6acb3a /drivers/soc/qcom | |
parent | Merge tag 'qcom-soc-for-4.7' into soc-for-4.7-p2 (diff) | |
download | linux-afd356dfb3a4127b61a3519802a4db9046703724.tar.xz linux-afd356dfb3a4127b61a3519802a4db9046703724.zip |
soc: qcom: smem: Use write-combine remap for SMEM
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>
Reviewed-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'drivers/soc/qcom')
-rw-r--r-- | drivers/soc/qcom/smem.c | 3 |
1 files changed, 1 insertions, 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; |