From patchwork Tue Mar 29 04:35:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 64562 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1794398lbc; Mon, 28 Mar 2016 21:35:34 -0700 (PDT) X-Received: by 10.66.219.3 with SMTP id pk3mr260467pac.106.1459226133833; Mon, 28 Mar 2016 21:35:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q82si30025325pfi.220.2016.03.28.21.35.33; Mon, 28 Mar 2016 21:35:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbcC2Efc (ORCPT + 8 others); Tue, 29 Mar 2016 00:35:32 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:35915 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbcC2Efa (ORCPT ); Tue, 29 Mar 2016 00:35:30 -0400 Received: by mail-pf0-f182.google.com with SMTP id u190so4833630pfb.3 for ; Mon, 28 Mar 2016 21:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JbvLxzzN+tMo2So2f2G+R8zXYtGjuN+L7wBuxy3cC5U=; b=WKAxYZPt270S0C6YSrqCIQLNE/Qa2/yYru4IKVBeJtP/e6pdFEqXYuBPOhl3gfh+pO UQiRhjDHJK+nIXaKJkkJTTh5z9iB9MSaZviaXCreymuwLiWGf0HXR3M0fCMHcUSmOsDe Coqd+MK5+wT/kjnEi29RgUxFxnOhPgNMNmCDY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JbvLxzzN+tMo2So2f2G+R8zXYtGjuN+L7wBuxy3cC5U=; b=Ef8IxkFtXDM2XoILeM5hwWawDyyEMrCK3FLHVapPYgG0r6nXRfw0N6Pqn1G7cbr5TO iAyz8R7LkCHG8aWnULARFCOz+3uyBqlAW8so2wg/6PbClKTD9L3e9SOoZTSJ4gCwn7rD Y6WMtkRuV8kSOZbq+qJ9133HHzRv8/9KXDRi1QZy5jRJq+sa2j4RrYeJWpfk2ILHNakV cMclwnTTcUCfPcYyQeZlZImX/fSgZyQRu8zhYf82y1lsP4CxwE1DSwy6NM6THHVDckzh DlID5VFOR/67jD6rM9hGAceDEl1pGsCBY+sFdJp73S3Gs245Keoz5gCoHSdgJ11OyKTg G/+Q== X-Gm-Message-State: AD7BkJKimWjlnmyv5mAGQYXGbSjSI8LrvNEa57+r2UMPFOtijHlsEuHdjfaiNialpZE7bG9j X-Received: by 10.98.15.23 with SMTP id x23mr278737pfi.60.1459226129932; Mon, 28 Mar 2016 21:35:29 -0700 (PDT) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id o69sm39133068pfi.14.2016.03.28.21.35.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Mar 2016 21:35:29 -0700 (PDT) From: Bjorn Andersson To: Andy Gross 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 Message-Id: <1459226126-16725-2-git-send-email-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1459226126-16725-1-git-send-email-bjorn.andersson@linaro.org> References: <1459226126-16725-1-git-send-email-bjorn.andersson@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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 --- drivers/soc/qcom/smem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Andy Gross 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;