Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1278287pxb; Fri, 10 Sep 2021 02:12:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhbGU/5lQeRaKuN+ai1NP91MuGdH76jn+pMSz10G8jTavRYSYJxda0bAYPlksGb+EaZYEV X-Received: by 2002:a17:906:308d:: with SMTP id 13mr8180374ejv.570.1631265173450; Fri, 10 Sep 2021 02:12:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1631265173; cv=pass; d=google.com; s=arc-20160816; b=VJNMp3cvexFQa7kwKoflNjR/wTotsCa4p/Y7lb348P1fHbfXoasf6dzzjFLHdFA4RL nUodpZUsPdNwUIxsGEtpm1b/IFkGZjiG09gkg5rtnfkUzUhB9udoNMR5UoqvKL2FjuUI TsVDVf+kVVos7oVc9bg92xgMr6/2kGQVLtN6/tgSKPwYwCkf3f2QS+MRetT0QGA28Az5 xFiFDrqTsktOrfaaEvxbcXPiDDdp3m6T7D6VNKgJBIvrdA2zk+QIiXWX2d9PJ3i9/pQH FrJjVapoPCzJIdDtd+w2UNnWu02BZeDn4Qz+pDPa2M3HAtcejrBz+tFE1CEp9rj4E4N4 vVww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Lkqrpm4CAJMqPeNNK9M2tInqOHLIAEqNlf3XWAJT4MM=; b=YcGKBi5Eh7VVwmLZCvxEupw+HSsxTw5+ZL/QXGXdbPlHIHmW9ikEH6T/kbXT44tGce VvSFmGL/jFnZMIFZ0Xpm039QRRCKFwFIg3Z9lxgxiM9sG7FXxxwzlSxyrSIEdvAeMZTl n18KbmkszMguDLC8B2yebFpVSK9ByHrSyY2GIx5ferNrtYwMclPpFYDcM9dkNrip/rdT 9NDdoDhvBlSzvZY9dw4AB6IfDogjBq/BsJ3+ts9hzn90ZY3G06kh2/nRTcOYFBU+AA3X QGIM6t94T3G06pUXpf01CQUlOIVTr5BAJEzPaqwwyLhTJfZGvZzb098RF/MNmA6XxWOm aYRg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=PQigPVdu; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn15si5015520ejc.252.2021.09.10.02.12.27; Fri, 10 Sep 2021 02:12:53 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=PQigPVdu; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232045AbhIJJJF (ORCPT + 99 others); Fri, 10 Sep 2021 05:09:05 -0400 Received: from mail-eopbgr70054.outbound.protection.outlook.com ([40.107.7.54]:22173 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231961AbhIJJJC (ORCPT ); Fri, 10 Sep 2021 05:09:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dbKFm1w/qwQ5EZ14juzM0G6rBiaAJ2m6SS906wDZAzYWOjTHGTzLEn+m965qRrjP1uNZjhhR15xvbiu/0Ms9XwESolnj0m6PH8QgeFBKbI2qfAuJfmDAnvpeLvgl10cf+bM/SNtKnzwA2YjW2CkDEpRT0Az9zXm3H/F4rUq0F/NzVsXlUA8zYOy0XCRF9GqGJlkce5Oo4w36oZ8uOoD6sr0t8j4Z7jZblVsM6BcSmFFjekGLiQilM/iebsYN0bFHFy01p34IDJd4iNo7/cbwK+Tb0/8d7jExsCBBKumxaMPfKm8gwFZ47C5F6aqZYMK3O9rb1j4beOjURZQcJ5RKfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Lkqrpm4CAJMqPeNNK9M2tInqOHLIAEqNlf3XWAJT4MM=; b=n78int3R/iUtsY+PqOBjar6vvMn8Nz7+bH6mpJIkeuIa1mmm/EeA/96ezLKMqmcPygdYGDu4AbHHYgYSDbpFaOrKSI8e2VX1F7b77hZ/Xje1xzYlWvoU0q0OBZcJnTjsOqC9d8fmka4QLnLUMKqc8QV0Ysh5UxyKMalG7bsRJ7KwyeRLwBDDBq6C4+mhLE34uU/oeTRk23TsIuMRlc/+cRnBkxdtpFNGiwS/zKPOjKQKC4FODOkssqaH5OFusk5q/V9O6YsyLCXF4PaY5MSbAD86VglYa0TrAwI5IueU8AdD8lKG/710zLOMwsUIIwWPcektU6pe9QpNGiOn92gEnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Lkqrpm4CAJMqPeNNK9M2tInqOHLIAEqNlf3XWAJT4MM=; b=PQigPVduA6Z+rLooyB2YBEJb+ZsYFSvNSzGpN6eqUZZClqv6O4c+JrdclV5eF5okVwOZNCHdlMy9mQcUjZ0MHahgZmZtY3vhUGYNk5YnyvkfxUgx3sFWzRsPNPjiZcIFkg6dUOL6TDaiov/j9+OL5+N/HwzF1LvjG9Lcq21JxoE= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4763.eurprd04.prod.outlook.com (2603:10a6:10:1c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 09:07:49 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::4868:6843:a39f:aa53]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::4868:6843:a39f:aa53%4]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 09:07:49 +0000 From: "Peng Fan (OSS)" To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de Cc: 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: [PATCH V4 6/6] remoteproc: imx_rproc: change to ioremap_wc for dram Date: Fri, 10 Sep 2021 17:06:21 +0800 Message-Id: <20210910090621.3073540-7-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210910090621.3073540-1-peng.fan@oss.nxp.com> References: <20210910090621.3073540-1-peng.fan@oss.nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG3P274CA0012.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::24) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG3P274CA0012.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Fri, 10 Sep 2021 09:07:44 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 00b902b4-0c93-47b2-d470-08d9743a75ec X-MS-TrafficTypeDiagnostic: DB7PR04MB4763: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1284; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yhJCQsheu9mCLh+Rmz1JHfGllTF+3klKkdcq+MDmlzvFBaIUs1YGTnxB5xDNE9hbxyfI9D6GSyASwDxN+3kE9WG5vNey0XdXyfrw0bdJCpYjAU+u1f9Xmyik4a7dMVs+fqDRydK0twAI4Hx/JxqivOxKmDCB7ayQh+THCVlDlXkRcsupLB38/xZE3pf9MdcQc7kqR0sN5UT37EO6TXd/RT5+fHlXxCY917PBxR1pYM3s04HFRLHH+NOdF+aqtIQvJT8dB9E2WGteiytGVGozzuJo3uEOTChYMy+t59BEsmVN/TNFWxZGz37WzibsTPG2ZqmOKCDJ92q8RF9eeTCztqmMavimSFdgmv21RHRHHElhmil+XJlP8afPyAvQ4DSH3P3q9iUg2FwUzUGRTmc5f8KY3uR27buWW3IxVODqwR4L+eExAmZZP1JFtu3FrJ5NsKCsrmmsgtOkbYAwF2lUmIdsbMyQhxqxksVK+6fqDwgPuMAE98Agc92nVmS8du9VPsfSNnuXldJghpEG7CwqNxYwo4RaOXQbh1cQ6mlZCk8FrRGBCktCEXj89X5iQd9ed0W9BD47KBpf8Cu630O4K6YkKQueabR2/9WJqOJvlWqfZbEtc7UmjeQV+WCg7R8sAMApAOKgE7g6K2ZO3Zua65/vRb27buj4+gEuGw+IDzRFpurHNmWhQld/32nI9/5FTSAIaAjKyqiBb5jjpaM22A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB6PR0402MB2760.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(346002)(366004)(136003)(376002)(396003)(6512007)(8936002)(66946007)(66556008)(66476007)(83380400001)(7416002)(6506007)(1076003)(6666004)(38350700002)(38100700002)(6486002)(8676002)(316002)(186003)(52116002)(86362001)(26005)(478600001)(2906002)(2616005)(5660300002)(956004)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?YATnlWXZEyM6V2CXuxswoJjV48nrruj0Y+ZKBukC6e/Z2f2vM83GxxT2m3jv?= =?us-ascii?Q?Oo8kBB7youEi8uMT8+MnFUrSGJKkaDtMf316CtVntIozuUby94tqpj2O3phf?= =?us-ascii?Q?YIUmwrFvZFdI7X9/A1/rkNLMBZBz16WyohlVKsx15jBzosF4KrEzin/fyEUT?= =?us-ascii?Q?6gXiG1mDgIRb9+BxTI8B+OHkGbyfiPOu4zG2gy3kWhnPcA3OYVww4IRUzlpY?= =?us-ascii?Q?kEIr+P9gIQhCqAspB6YG+H3GvLyXf1BrZp8IzXXpt4KVqwDqxcoJxXrj1Pk/?= =?us-ascii?Q?gwptqIaOnC/LVKAuA8Vqt4eYveXlzs0PQOAETnop3npQLQgS5iWyz90oXe1A?= =?us-ascii?Q?xbPPYZBKn+Gpemqe6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F?= =?us-ascii?Q?/GcH6qra6+QhkrmkHSRgcVgTMrBRfktTWmzvQHuFVJ+0108NwI7nYpxluj/J?= =?us-ascii?Q?7r+rK3L94vopvneuqM/xR0xz?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 00b902b4-0c93-47b2-d470-08d9743a75ec X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 09:07:48.9274 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jK7PBDKDRGRpeTq16i7jWFhO0g3qpW6Q1nV5//MS9lBjsB9aYFT/ayICi8ZaHLin2/RcBfxfQ6adknsGvY2BVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4763 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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