soc: qcom: smem: Use write-combine remap for SMEM
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 29 Mar 2016 04:35:23 +0000 (21:35 -0700)
committerAndy Gross <andy.gross@linaro.org>
Wed, 20 Apr 2016 02:55:06 +0000 (21:55 -0500)
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>
drivers/soc/qcom/smem.c

index 19019aa092e86d76ad5a24b80f34616b9e38e320..2e1aa9f130f4d860ea7c57994ba3f1302c2e7072 100644 (file)
@@ -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;