Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2351386pxb; Mon, 20 Sep 2021 19:47:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW5pls+HhzuwC/O/xFLpTAsjq54XSIcZxmA3tARpPzSmmZCg8N5X1wD4DLa6qhLJuVc+oy X-Received: by 2002:a05:6e02:1beb:: with SMTP id y11mr19449761ilv.134.1632192444157; Mon, 20 Sep 2021 19:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632192444; cv=none; d=google.com; s=arc-20160816; b=B3xw4z9u3i25T0PmCK7Q2ijABrKV6nNnsciCzFox54DgotlrVcagiF1dyv8+/zbwuw +hQhDhGBG5KW3q4KDJue52kZN5dCe+Qaw6LnCpOKGdBiQavsEMHkSfILJWVCypE1ps6l NFKxIlAIU72RHn08+xbOpvLdqZS9gLW4rSgztFvg7rd1BrZyZhlO+VMcX8atR+7kisVK K+l2e2dgYs+ImzGB4F4u/tAaC1OVIr6TrL0eNOqysxNfXTX6I05E6UHF3IAhmyuPF5Fg I4XDa+x9Ibq6jDNrgju8xEXzm8rPF2n4/ijJyi/v7DEegcqtGzp9wUjlY4hdvcD6FH/Z 6exA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kdjk66ClBUEHOQPo5O8pA1o0FV9ziXIRLgjji0kwuh4=; b=EMQb72aRvWiX9svcm2h3Bkkh6kOZsxRgIsDIcfnn+Abf4eU2nOAN1tfqqtiIPH8f6X O3ozTWTs8q9c3dssj63G208/ReniqXIdEWm9YPKKHRobmCKFya0nrnIflUrYfcde4tYK T6ISaxVopYmvBXJ0LKDh5fShBzBAad07Jnpvy5jUjjXKGqJZXdxrKS/90yPjMCpDJ17j GibhMzRBErShawh3HAsQmSjIL1oPDMlo8Uejpty94QzxQScz0VEYQ7j6dn9JK1MROnw9 BcSfFCLitjhUagzI6BX5bZv0ONfoLvw34vI/tA/+MPqhto/ZCrLlAkBcCHT7QHjTBIjH anpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GXc/nby8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m23si147880jaa.14.2021.09.20.19.47.11; Mon, 20 Sep 2021 19:47:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GXc/nby8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348862AbhITSbf (ORCPT + 99 others); Mon, 20 Sep 2021 14:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378547AbhITSYx (ORCPT ); Mon, 20 Sep 2021 14:24:53 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8923C08ED82 for ; Mon, 20 Sep 2021 10:00:28 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id k23-20020a17090a591700b001976d2db364so431024pji.2 for ; Mon, 20 Sep 2021 10:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=kdjk66ClBUEHOQPo5O8pA1o0FV9ziXIRLgjji0kwuh4=; b=GXc/nby8oxLKc3PPElYjdztWj1YGfkAPflMMyus5Xe/wB3d+zdLugKfbLT7Pqwt5Ir XY4JI4IvuLuczzd2eZQJOugP9XQtnX7EGXplnW/Z6t5IhsPFwaMuE1AHbMa2Kdt3muBb LVbZC8o+dHSX0DXVnuPvmPwChzBxc7/hlvMbzuNfly/WJUdxckC8U2D/EwcBgXYTb5j4 m8GeUYEDK56MaWfgqr0KY8LVCb8Wmf3B7Dy+6n3nwFwyHIV451Q0qHN+SRPFbz4Qpj4x lMo76MufwJ7JA9tn2G4uiOpL1sM6kj19635m+SxzRxGok6OCDiz3aKwC+27X7AaMJ8Ny icHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kdjk66ClBUEHOQPo5O8pA1o0FV9ziXIRLgjji0kwuh4=; b=lT/eo8se3ggorqFqwuF+G/ZenJFESf4o5kb03cNOp/yLo5v4qo60R2w0DD8+e8XsPQ EAnOsCSz6cOcT3uoJ1JbI2Ewtf6b+2uSG8hxhPkECkFf+ppWtbJY9xiX01sitidsTzM+ 5eZVaN7f7tGW4uUxb3GHuzKhdZdbxGv9tpS8wc4WN9D6Qi7j05Jis/+7p5n5YhR9cyIP 7RhFkA9UdOJIiE1Uh7/QycF1QKCIZSHjx5kplsJVnCdbZKbi//sUtwQNeG5aoq+zR15c xagJglqLygQHNHjjwFWguxPGhKl6lSFe+CR8bao43KC5nOJrLPmXe4AT9xp1bCE1nlrg f8Ug== X-Gm-Message-State: AOAM531qcUU5zKvjUZmExjM2VUS/b3IJwXCtsRPXVy9JyONow6uN+qb+ Hhueh1yVmXU/gaoApEMCJL/pxA== X-Received: by 2002:a17:902:9b8b:b0:13c:aad1:8a9a with SMTP id y11-20020a1709029b8b00b0013caad18a9amr18836287plp.89.1632157228425; Mon, 20 Sep 2021 10:00:28 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id i5sm28994pjk.47.2021.09.20.10.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 10:00:27 -0700 (PDT) Date: Mon, 20 Sep 2021 11:00:24 -0600 From: Mathieu Poirier To: "Peng Fan (OSS)" Cc: ohad@wizery.com, bjorn.andersson@linaro.org, o.rempel@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, aisheng.dong@nxp.com, Peng Fan Subject: Re: [PATCH V4 6/6] remoteproc: imx_rproc: change to ioremap_wc for dram Message-ID: <20210920170024.GD2023964@p14s> References: <20210910090621.3073540-1-peng.fan@oss.nxp.com> <20210910090621.3073540-7-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210910090621.3073540-7-peng.fan@oss.nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 05:06:21PM +0800, Peng Fan (OSS) wrote: > From: Dong Aisheng > > DRAM is not io memory, so changed to ioremap_wc. This is also > aligned with core io accessories. e.g. memcpy/memset and cpu direct > access. > > Cc: Bjorn Andersson > Cc: Mathieu Poirier > Cc: Peng Fan > Reviewed-and-tested-by: Peng Fan > Signed-off-by: Dong Aisheng > Signed-off-by: Peng Fan > --- > drivers/remoteproc/imx_rproc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I have applied patches 4, 5 and 6 of this set. > > diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c > index ff620688fad94..4ae416ba50807 100644 > --- a/drivers/remoteproc/imx_rproc.c > +++ b/drivers/remoteproc/imx_rproc.c > @@ -597,7 +597,7 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, > break; > > /* Not use resource version, because we might share region */ > - priv->mem[b].cpu_addr = devm_ioremap(&pdev->dev, res.start, resource_size(&res)); > + priv->mem[b].cpu_addr = devm_ioremap_wc(&pdev->dev, res.start, resource_size(&res)); > if (!priv->mem[b].cpu_addr) { > dev_err(dev, "failed to remap %pr\n", &res); > return -ENOMEM; > -- > 2.25.1 >