From patchwork Tue Jan 19 07:35:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 12029387 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=-16.9 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,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 D2879C433DB for ; Tue, 19 Jan 2021 07:47:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 71D4323133 for ; Tue, 19 Jan 2021 07:47:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 71D4323133 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TeL63D8bCGgMSAwkzCKJfmrj4OUtLgqGVncUE9rZ6H8=; b=DtfmdBdPj1M0MIaETdvpQj9GG 0twSR65g6wub8GyyZa0OicVXD0wgM12XujgYj58km2uS4smqSS1CtEY46kA2VOpMb31KE2QLCWS5b ppgcFOkwGRPMdcWyjJEVPq6v/Q2uZOoG1FgA9U0UL88dkG7B5/WykIXnJnz1ZUDEjV8ir8CHcrb3k HaH4cSFtYO4STs1IKU9tLWSnMoScbZ38QATRcgN6wtAS6CIuXMIpmkxCB2IEwOS2Ts7zLUjbCrPne Iyx0pORL1MDJFVFVhWD4q9xlv0E98v4/45Zx4/cCWmIwLp6vfv9qgw8BCfmBfI2thA1iJoabWku7G X06Ey7czA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1liA-0005KS-Vx; Tue, 19 Jan 2021 07:45:59 +0000 Received: from mail-eopbgr40083.outbound.protection.outlook.com ([40.107.4.83] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1li7-0005Ii-W6 for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 07:45:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PaC6vI3hsDnbrAxTgm1JjMrRptUMbrs95PBuIp5B4La6PZDgc4mtUo0O+9BKFfHMO/DvL/8ZsLzAPsQNvYkumSfqWIi4PELv7C8gFS6HKg+pHXImAMfW4DKhEVcTibxoRAqF42oYra1o6VpPPt/OXXrNiLek1KhDV3iTeS+zmH+sOkXxyqHD9ews0++OiZZS3GblfUJmWCAmlg03WfacXLQaAYibxmeRSn1H+Xcl5gqSGOvb5ImyLldnxUtM1Dc3qRtzzkiLozEz87B7FhoV8zKmRL2+2cXHU+xN16wCctFxNwhZKGRcnxk7iQpm9qZfe5YaFpLs+E1Qn90A3DdIXQ== 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=yOyXY+Wu7yjAZykW6d3WzVozTOhNuNfY+00aYS59St4=; b=CHtNs5usDgA6VijRtgGTPwqwffDqdEeXxO0K5xCmFy9B1wFj4LE4EYBt0J4UnZgjUlhMCIjpnej6WrnYVI41OZ8MK8N3uX3be2u6mIqixSgUPBQqJ8VHFb/UQ+PizELB60P0uRUbRXOtyeWsgELcf3oi11657ee7PFD9vUiTIwuYbw7jZTBw6VTDjOqyqaYQ0+sEMoXzyDNyYT3DqM0uv3AwXIERIjIbsiMY0AfwnamnMv5sGYyqkkCsbEgHrX8pGrSYWFisVgARdyXPT9l/+deNVC4Nn7efwFysCAOTtl8QPgDZA3LSWprLd/YXGE3twnd8D8a1+8T+xnV6J3wHeA== 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=yOyXY+Wu7yjAZykW6d3WzVozTOhNuNfY+00aYS59St4=; b=UGPY58lONgM4T4r4BSsFVMgCmyLkPJ0Lt+H5YrpAUrkIe10GrDUdhKKzf00rMf54yNhgBF/17rCNHgdPjpF98gjYOxDvYxps+bl4d1jAK06BabhT68HnBp2UmqLVlj/S+R/61/00/glByWTbomP0x/UUn8xXYnupQnMwddT5sC4= Authentication-Results: wizery.com; dkim=none (message not signed) header.d=none;wizery.com; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB7PR04MB4492.eurprd04.prod.outlook.com (2603:10a6:5:39::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.10; Tue, 19 Jan 2021 07:45:52 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c964:9:850a:fc5%10]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 07:45:52 +0000 From: peng.fan@nxp.com To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, o.rempel@pengutronix.de, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH V8 03/10] remoteproc: introduce is_iomem to rproc_mem_entry Date: Tue, 19 Jan 2021 15:35:04 +0800 Message-Id: <1611041711-15902-4-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1611041711-15902-1-git-send-email-peng.fan@nxp.com> References: <1611041711-15902-1-git-send-email-peng.fan@nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR04CA0161.apcprd04.prod.outlook.com (2603:1096:4::23) 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 SG2PR04CA0161.apcprd04.prod.outlook.com (2603:1096:4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3763.9 via Frontend Transport; Tue, 19 Jan 2021 07:45:46 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 21214fa6-f2d0-4df2-7b65-08d8bc4e3e9d X-MS-TrafficTypeDiagnostic: DB7PR04MB4492: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1091; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tdju8JC4NWyYpQbBcCj7PxI+i057rRDjAMEAf/0xo3Sz1VWUxJ3PMzVwU9JHccnqBE9wGfgy7DSzZq114zbT4vNSl1Weog2m63p4DO7i4vF0DRBV/GhHwXADM0Mev+N0zL49HqRTSoYhl6AAIsNOrF2romMYqEDDhrhmQHBYNrmdex+1uwC3PXOk0UdfW1QCeW+g9src4QBmliHJxLW8TqcXeB8klCL2iciP/INd6rd3s+UAWV/sb411kmDqCYt3RUzlzzXQFHJVI8Ke3ptKOy/7VFym72znkF0oaKD9lXSIahPZv6BmQOJt85qx1mvmd/6M9MswJlJ5um1CeZhWqfzvUX//5k/GMLKH/tBoHKvTsItrpteFjiEQJIg+Tq8TvG7qS7mrA3tde6N13Nf1lkIiPPgX4204Uu4LTfM3xTgaKHvyDEptZvjdsEPzZydE/CRg3x9Yot+YbuqnbgvmVA== 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)(366004)(4744005)(5660300002)(2906002)(66476007)(26005)(69590400011)(4326008)(6666004)(66946007)(186003)(6486002)(6512007)(2616005)(86362001)(36756003)(52116002)(8676002)(6506007)(498600001)(7416002)(9686003)(16526019)(8936002)(66556008)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: Fo1ZOjo9i06GzTxN2V7PTfdZ0+y+yrx0UZn+zEHir45JPH6t+Qs3FqyKAUmt83xz+iHtN4P3A5+VKO8K2+XQk5mMooGZsqP6f0mW9FH7vTSC5lgeFCVIaZy+seutgAUs9p75Y7tqwLFVPkQaNHC11Wr5U7+lZzkZ7xNaBO4RsNMuoIKtfl06CHqc4of9HoS20Hg2WZEwxyxVqZOGeYfbO9kxq9aea+pOGfJ4oy7DiLv3Xiv0gIIlguaUzzQKN12mCYT1YCDrJP8z0NAYisjgLusfMOj8cForjCUoBkSEJuNJNQ1xUK7NGDUMHNRUIacPQsLWex4dj8eMXSj5rQ+Py9GizxVfdQpE1DQ1IO/l+xSodHmYX5j1tuH4H8YsY8JxomQgT1iQ/2sWetD8NYqsC9Mhush96rhknxnWI2nw0mURFnZ26vejaDzV6Q+DJ8AEplo18mX/FZfFAXiJF+Puc2oSAfdd63Hh35Cek2BUu7Fk5MVebXwSpMEbaJk3HHyWZvdIrX1ziy9KWu3CpRtMhPfLUwbBWfYKLhY0kFgVT38ZrgvNItt/7AAMBtfZcLuqUyd5TIX5uzS0DezvrD8HVteUF0CW8AJ9y4JsIpQsAYyNFnnfcwBeBaO9Lrz5u7071i5d04TLNZ73a9ZRJBY0Y7yw8F3x8bJ54wYuVpsYWmh8yNNoFNnbZKETRRQ2v3uHhnOYaUsmRQmQrp6sOIUnkErPbcwOVFpqDNt7OKIIaShFHOhjmim8FG257zDnREVdLDGKi/iNDOJAUvD+MbSZeVByt0NLUFMUDWAqXt5ioORfB4ApyMp6fLAqFyuSa/8+FnODh+hXfU560hKgRlDudClo9AaasFHSRREThYDh0T34mAx5auQ3ZKhZUcaHHILg0Zzh3lJuGfjfLh5DjESNegjG0T7BAuNv3S6Fk7dA7zWfsnFWsPxsCu7mfez0vGu8oNwfy/AeZFyiSkajRt3bQcVh1Wy8tXP4aYz6UoxlHKmudKUpKkMLH3eA/lgw1ezW X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 21214fa6-f2d0-4df2-7b65-08d8bc4e3e9d X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 07:45:52.0072 (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: L9CFu3Zl1WDEmS3kZlh7ja0Qb1obo0JiDTuh/oLTLgZejqf6G6a5+fr1KTneqM9t0v43gJent5kGNWOBDO8Klg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4492 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210119_024556_214338_A2EF2E95 X-CRM114-Status: GOOD ( 11.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Fan , shawnguo@kernel.org, s.hauer@pengutronix.de, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, patrice.chotard@st.com, paul@crapouillou.net, agross@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, matthias.bgg@gmail.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Peng Fan Introduce is_iomem to indicate this piece memory is iomem or not. Reviewed-by: Bjorn Andersson Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- include/linux/remoteproc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index f28ee75d1005..a5f6d2d9cde2 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -315,6 +315,7 @@ struct rproc; /** * struct rproc_mem_entry - memory entry descriptor * @va: virtual address + * @is_iomem: io memory * @dma: dma address * @len: length, in bytes * @da: device address @@ -329,6 +330,7 @@ struct rproc; */ struct rproc_mem_entry { void *va; + bool is_iomem; dma_addr_t dma; size_t len; u32 da;