From patchwork Thu Aug 5 03:32:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12420235 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 340AFC4338F for ; Thu, 5 Aug 2021 03:35:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F179C60EE4 for ; Thu, 5 Aug 2021 03:35:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org F179C60EE4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x/aXKpp3DkTh0KvRCUJ/x34AcvdcOFbUF+gRFJ0X870=; b=4Vsvg144JLmWkr Qe2g4w/hJ3pw5wnpEK3wATjXepiJv8UgqNrbRJ8l6yUa3IgfH5P5y4aHSHdSwXX3w5T+s5HPTipLh fbFvA1XYvNGAyIBOaEEs0CvbjlFPKLttzGLrCzO6OCa5MbbEI2noES1hM0laNI2ol/RiAPDjR7l0O YKdbz+DUpFhWeINLHtNjSLTXW//Dhn2A457Y2TxufxqsnSV0L6ppock9L2Qo29ZtpyO1i8OdtxsLA 54jKhqqf7tyTlee3l2qqMtxuV0b4maPvbTwSVHAjW7JXKPcjQ/Jx7fJx+Z//lJm99y3YhIIdzPm5d yGglIZiK7b9xsfzGEpKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBU8o-007yaD-AY; Thu, 05 Aug 2021 03:33:54 +0000 Received: from mail-eopbgr20066.outbound.protection.outlook.com ([40.107.2.66] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBU89-007yVH-HG for linux-arm-kernel@lists.infradead.org; Thu, 05 Aug 2021 03:33:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hHF/TCpP84qMtOAkITXdjbM8Zv1uXn/0SvkaUl620gHq4fuEkUuiXo3sKgnJ4Zc2cnKOq46b8L31JO/p9YtsFlnMgLM1TZJgQYmaOU6i5DNj+FAzRG73TBMzWqu1yUX4G2tTFK3isSMkbKWj1Ryg7L0Q1T8wxP236LzFuPzoh2w5kKK0lp5zwxf5eUIpEE3Ap2dU45chV+BvQWkt1EQInsXKiPFSwBsxl4mVW4eoUstzIzbmy+EZcTqq0bt0FJzFe4XAyCSzCAs901Smpfvz7+D6sqdhsOM0NZR3QuNKPKAgzJm0jDGTUWb/4lZKHLLwGf7o4bVxs1DWj+HaQ72zoQ== 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:X-MS-Exchange-SenderADCheck; bh=lhYZ+GHfcDIW1uI8dOyAGzRl6ub+6ExE49yh+oSEtG4=; b=HWja7CS/YnQuFpODSeZkncqaSE15aDjs+VSOdSqTbho+Yh2ksmQlLcXu7slDg03Vwl9FZpIODMdyD4UmTjmzA8ZZJsFOTjUOzzh8OOjE2F3ftGrJBZK4ScW+8t+JOnWXCF/P/tL2CAI62SC1JmkWI8p6+v8DC31dTdkXXZ6ulc8yYmgAm2W3RBotQI8Do1rdQ1NjIPa4E8n4Mp0Q9lW3jNwB7OrORmMN1DFhWI1PBBVxBxPUiYmGkrpJM6hUQ3QPD8D6RL1EtDSPh2o286hwhe8QtC/EjvVaGd5j95eKcjjJzMRw0PYWP/gGmxeLyExKpIoFot4T6dwl1jMklklxQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lhYZ+GHfcDIW1uI8dOyAGzRl6ub+6ExE49yh+oSEtG4=; b=UXoHLVj9leL0hoNqESy3I+hiY+kjSYuofoZvt90c4RCrj0wwr2CE+B1vo1XrJB6rddVN3MvLtcOzHYkkqjGYWqdGktJ7e1sTpqBaQhFyS/INZEj6f4qlZKz5Tcouo0sqJ1eB/HCFjsqAK1jjwVhIY0wkyo9WRpyKaIAswjl3Jhg= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) by DU2PR04MB8837.eurprd04.prod.outlook.com (2603:10a6:10:2e0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15; Thu, 5 Aug 2021 03:33:10 +0000 Received: from DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2]) by DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2%9]) with mapi id 15.20.4394.016; Thu, 5 Aug 2021 03:33:10 +0000 From: Dong Aisheng To: linux-remoteproc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, ohad@wizery.com, dongas86@gmail.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, cleger@kalray.eu, peng.fan@nxp.com, Dong Aisheng Subject: [PATCH v3 5/5] remoteproc: imx_rproc: change to ioremap_wc for dram Date: Thu, 5 Aug 2021 11:32:06 +0800 Message-Id: <20210805033206.1295269-5-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210805033206.1295269-1-aisheng.dong@nxp.com> References: <20210805033206.1295269-1-aisheng.dong@nxp.com> X-ClientProxiedBy: SG2PR06CA0085.apcprd06.prod.outlook.com (2603:1096:3:14::11) To DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR06CA0085.apcprd06.prod.outlook.com (2603:1096:3:14::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Thu, 5 Aug 2021 03:33:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 37c36038-00a3-4613-736f-08d957c1bf8f X-MS-TrafficTypeDiagnostic: DU2PR04MB8837: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: u2r53EPmBwCnz5Xm6CUnhR3aKr5l7OuIi8uA4/waM5oVjX7khUWtw36nQN0daleRS7MLtKeibMj14qvtwTDkI1u2nybxemvF9tCTixGDGJl7u+oKzgnJrwjEOWqkpCAXxcd8Q6JX8iXq7gBBxs5pQC+P/T0oHklDs2McaZE+EbKhdj4ImjnUoP/3IO5no9P8tDqEmk+f5BLjoKB4BeA7GWwHQoNR89etKIfQw0zKhZjGoi6rw1xd3EfV7YQuo0rhJEYBci+/SAO2Pg9mAhoKqilJrU13ytzsKkOGKTzT5kifF6wXaffWjfi1tju2obJz+GNM6WzwWOGLQG+1ERxqmOAh80/luP05v5CbFAtjRvOr1la5rhqDMcGXMSAcrrLn8l/Yjogjr7VJZ8YdOnmr7ZnCiB7kEq4TxXh7fdf8k5270F/YRimMBzQkCX07ie6i7eXrfFwsx9tU3l3JxvwPlzOLzTeXMhOvYiYLQUUmKxprxHHJbMBkr7H75/SmVgVbTZA1iR/R5GgZIPbPVwT+sLTSfv3a3z2Gf6m9KbqEhxTGD88vJze1PRknjKjyEdp5CWDExPie51cSgxd5bh1ihdXf5IjHB/eNKX9hxFwmBeglovqCqxVBTZt9dJcGSVqXLEZq8jGuP0ir1YZ2gKdhYsS2jHpOB+jHuwveWyYKT2m2yqtuw/w2uWI1IZIEvvy7GYhpWs82nmXEZQLGJTFKtA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8477.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(366004)(136003)(39860400002)(376002)(36756003)(83380400001)(8936002)(6512007)(316002)(1076003)(86362001)(6486002)(52116002)(2616005)(956004)(38350700002)(2906002)(38100700002)(6506007)(478600001)(26005)(5660300002)(66476007)(66946007)(186003)(4326008)(8676002)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ZZd8CrONjSQ9lpmywjM4BPDSM4OB+7VNzgcamTUNOzXgXr2t4Qygiv9PBAbu0lzX+lRMDqhxcpqKcqFwvWMr0DgvVhQ3tfr3YTRz+fZZA3IFTNK1nyOAn830qTyQCkfNexHZcEuJExvTguU6GNLq0Jvmw2x6BsFGP2QfmovuCjmlGbgvQwf5x8Sy8gi8S+go6Pl5mWeB5NNu7fXyMZIuZTrrAQKPXvMAtdDfArtjvrP69cQgc0IFbhfVWv3MBUT+m7SIbc6ll7MIzwKNR2+Rv4cESwDzphm7Thre4Nzn34WJIqd9fzXgfzSax0pvX+scH8833e2ZlGnjZmr8efrx4K2xQS X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37c36038-00a3-4613-736f-08d957c1bf8f X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 03:33:10.6338 (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: RBZPibbQ/NeX8NdrVcKWaXUIYPJNcQOo+6bc5HiK6/ZS2Q9Yyk3D4DQJzO5SpTJvPEgZASHa78Dn0TEX3NH1/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8837 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210804_203313_617064_409261DB X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Signed-off-by: Dong Aisheng Reviewed-by: Peng Fan --- v2->v3: * patch content unchanged. Only drop the wrong tag in v2 Tested on MX8MQ and MX8MP, MX7ULP. v1->v2: * new patch --- 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 ff620688fad9..4ae416ba5080 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;