From patchwork Mon Feb 8 08:56:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 378543 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4517522jah; Mon, 8 Feb 2021 01:11:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJypyzMV5eNBSOkopJ3jqeI4Y6IeOEt2JeMUtS8ncic88TOcuvwwlJnmqGwKPrixe78Ovxjm X-Received: by 2002:a17:906:2747:: with SMTP id a7mr16537660ejd.250.1612775508862; Mon, 08 Feb 2021 01:11:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612775508; cv=pass; d=google.com; s=arc-20160816; b=Ud8NaLD0PPu7yZT7cNSZlmymsQAV5s6x3gjFWnpxns9Mcx6EZSPvH7O05wZpGZIyVU U7k1I4gEVMmT5w/R93NhXeE1B2gBOqBJV2VH4Y9XLFPn1+17z8aT1PB0D9CRCVkOvLAg 19vqoipoowqdt2BPEulzaQcGDjRyBU/inYWQt92k9C6E7PtzIvL0hwSE0Xc4rWjaBDXT UIjOVL6v42Pa2kl50ZRW3dtqR9OeNeX81uGNz2TmYg+c4XNrMveC9g3vtJxAJihIIOvN Y1+tGrPRrCn/4Xoa+pYGTZ+V8//kmbtGCri5RuXSKZNXion5sO9+BqAbXrP+wGWRnRUl QtHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rSh0Klx+zNLSyY9W2gwUiOZPVVqrU82ogdPg4tjElUs=; b=OEJJ0FAGRD87LJcvi5zw9PapPXFGWB4JE0Hrh+ADKNxLOXaCH/InnNXdzZhwseo35G 5t19A1sL5aRLHCU7Nfres+XB/h5eqN8gTb8mpuYgylwv04OmzIrR2uBDNJ/ggospruJU G271m0PL0AlJaJemXs82OMTVSRJN3xXeBhIMqVUetu7UZcx5i1V6DJgWh0wYkZf4erAM 33ezieaOW+mWeSBs600hQ2kL7Di1r48KydFh0Nq4oWgXkh/cpdrE935Wy2KwEQi1ms+S XZndFWuxShPLoKyZhHcc0/NLuRqw5uwdafK+oRjhYNUSH5l/sp3RaTG0u68+FIbi8Le5 R+kQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b="hCi/NF3i"; 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 n14si7081278ejr.267.2021.02.08.01.11.48; Mon, 08 Feb 2021 01:11:48 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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="hCi/NF3i"; 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S231428AbhBHJLd (ORCPT + 6 others); Mon, 8 Feb 2021 04:11:33 -0500 Received: from mail-am6eur05on2086.outbound.protection.outlook.com ([40.107.22.86]:49473 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230475AbhBHJJn (ORCPT ); Mon, 8 Feb 2021 04:09:43 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wo7IBa28Rt2oHkLkC5mDE5f74fslm51rnsPIO4b4GyyHyS/buVv+L/pN15NFEnEsO8bGQXgYMuHdUOpBfQZwPpHpR7DW5ubHtszQdOkU1OoT4VvnmMNbpmgtoegy+Y6+Om5/1Wf+9WPO7biH8pT2WfoZut+MwL2tRBg/n0aDHPZyRuirr7eLi9Mem/kyhwEISxP+sJ+yJ8dMgzS1NVIe6g576+9fjLO5/lMfFkF9wV4DMUaASCzO0gEENKMf6fvu+SmyPuUWxHdPVnETENBmzMXnWetcy2WZTaGFB13qDRc7n8EK2SPTNEO95Cpq16v6noVlIRmR5UYjffN8j9CdyQ== 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=rSh0Klx+zNLSyY9W2gwUiOZPVVqrU82ogdPg4tjElUs=; b=d1xQ50ppjBVLcgnSdXeo2qPF2ehlLhpginecoT5imMIyNwO9HTpFOSRKihnOBeKr10P93o+HpzwE7iu9kW3dq2koOPFg7qxDhNdHRzP7UhLpc2/8elFyp9T3LkuXXMLk0ib+u1nSFGDz4ivCS00edxMV/i5Zeav6SH3fLbrkwJqaDIU3byTc8GbYXwI0zOUj73kUwvRkMH/8jIDRLqGsZz7sYI+frDS8a1Rf8qLXo+/MDaD6ckydQi54ROHBiBn+A6vDuO/6p8fCCUbskNyT1YdL95N1If8Gvh/k+c6J7Bw6nCRAZW4OgfMCWw+EMZArFoxOoEly6EG+JqzDG4Vcrw== 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=rSh0Klx+zNLSyY9W2gwUiOZPVVqrU82ogdPg4tjElUs=; b=hCi/NF3i9rcj6XfZ19QjqlFshHWojY1P/XMzoTmq2+WdRyj+HShostNOqm0vVSfK4qL6dhw6DHkXXT7H+0+HPgivXSIwwQuqSXVxdHdihtbEbLt/z/aKqIIqGLomSVHDbR1BEP4KY16xhc7KygS7GdI2Mp1lVOlcI0QDQvpvx2M= 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 DB6PR0402MB2933.eurprd04.prod.outlook.com (2603:10a6:4:9c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.20; Mon, 8 Feb 2021 09:07:55 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3825.030; Mon, 8 Feb 2021 09:07:55 +0000 From: peng.fan@oss.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 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, paul@crapouillou.net, matthias.bgg@gmail.com, agross@kernel.org, patrice.chotard@st.com, Peng Fan Subject: [PATCH V10 03/10] remoteproc: introduce is_iomem to rproc_mem_entry Date: Mon, 8 Feb 2021 16:56:04 +0800 Message-Id: <1612774571-6134-4-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1612774571-6134-1-git-send-email-peng.fan@oss.nxp.com> References: <1612774571-6134-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR01CA0102.apcprd01.prod.exchangelabs.com (2603:1096:3:15::28) 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 SG2PR01CA0102.apcprd01.prod.exchangelabs.com (2603:1096:3:15::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3825.19 via Frontend Transport; Mon, 8 Feb 2021 09:07:49 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5be43924-fed9-40c4-6c98-08d8cc110545 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2933: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True 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: Hb8M5wN0Umw4pGILZvVBAAyubnNWC/Tz60LrPdSf+2WBjq+Q2sFgouGwm/y5Wu6rGVQaJBb4y/1feaLwd9jAmZqCdl6Lol+l2biNTnI3RENvLfk/VCJLX98ozHYPJPQZulscuKAHyiBDKh+H1zd0Ds0epm5I/8KaJemsUXqk9+fz2cM69+1WBXqCUVijCjdNTWDN1YSaJIFAq73K35D1PkI+jFrGAFBbxvOVX8g7E+eblOuepjyjX3In/nmCyAVjOZyytMVTujKaQ6xho1f5TIAXUDghWBewrKLdtNoRD/cFQ5RiFab4qNOggPZwDgxHJnePS7/OrOqWknR+VUhe/SY0L6sBltlQrtqr22gCbrBjHUwAI2ehbzoR4y0vxhohNWHZn0yzZ/A2dZMoPs09kmNRJ6ZTIKk6vpplRJC1l4m9lEMl3tr7dGF9d8x+bpzT2saaxq37oAM6LX6hsXs5v6wvlCeQnxpKY5kPENjVynvMb1/eSaM3FOs0hDxSUcKdtVSyQ4VWQu7r8htGoHcI0jtH0q1UhMfWu4qOg3YpIjKWhyyTgv2/rJOo5vBpYV2fMMDBBOBnUXTDUPOpP8ZRLw== 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)(396003)(366004)(376002)(346002)(39860400002)(136003)(7416002)(52116002)(6666004)(316002)(4326008)(8936002)(186003)(69590400011)(86362001)(66946007)(6486002)(8676002)(6512007)(478600001)(6506007)(4744005)(26005)(956004)(2616005)(5660300002)(16526019)(66476007)(66556008)(2906002)(9686003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ZED2jS//f0jyqm2JxH5rnm5ORs4mlCfuw54UWnHR/nBScn6/Kv6WVHBqfTY+VPM1phtSFMVEVQ+GN1s2NLhB+M7totBCx6SNRLQthxip91kQSABZ1NzrsqcvN4bqxGeLlvuK23SsDwU77z55tisQ38kYn+czORktlSAQeOiTOd5iJaBe9ocC4qlXzBLZfa8bzPkm1nAtTgDwAm1SUqqWV1FYi2xGwtTOo+Nr5ioOP1+Bhd6km7j53ciUTMH1Gh9LXiL3L0Lei/HOfxB7/JOG8blJEUeScpuICe1dZEADqLhJsUmZ70ype1tmquth+2ZP6jPehNN6Q5HSooEQ6PmbWyktI5DfrnDyplmM5nxl0FjJyhqBBzdy0Fj3Vw43wPD/nyUfP862A80YVAkvN6GfyXmUu37EpQyiA6J42u1IHu7UpKT1aIPzEIMxdaXps2Ki7GiY+AYbV+gZkq8HqJzjU3XQGtWTmCU10xucmBbMULFofLp8roUrMB5+QqlU1zTsIIOCB8ie9uIWPnl1oJ/7LpuxfS5e6WrIDusQRbg9e7qVR/hH6F25k11Pcmx6wlFCjVp/IoiJulphnP2Q4GT7hJ+ZbS+6kfGFXS1S3ESeDR+l1q8grBJY5dBxJjbANzRTA0uBaW4P2ST1BUdrbCvlJrVfQGt/nPNPmswS5ASfVfBSdIDCndEyY2SJZBfnX32tBWQ+3+EV2l5COLW6N9qFFRm64Fud0N1dOWcz1+9gteI1w+wzHODwgJhvrFUeNCfA7bbiDBqI/usjMzNRKx4vydmKffc+iFC99/RtggQYgVhGc8aHuSYYKyyzRrw2aBzQBlm1Hxg9Plat1WX9ZYaZ+LhBvRWIMIlkb436hiiOc5PI3MjIg94303U/jnWornQMuP35GoaskX/C7ns/RDtdnzQBN1x9VbB5WlvFyESYduqqI0omVsuvbfdxvyaVxUvDw8eiNeMhv4tqitZdOJz69+AS3h8bXwlpeZEcCBx9kZyv3eUp+wQYlh60UM/Vgm54HJHAWdKxxyfwAB6Il+Mr+UXgJALwxj4B3vMW0mIiFym9BGOjaTKvKaCUav0aI71ZO0c+9thO4IyYFkXNIpLR5Jt4Ogu+SMUjNlyLS6YRxz8EcXK4dGS+T1UE8XB0oA3wIbl5i8qXIKLoguGSNBBdJY7YUaihaFx/BIIesPrLZHnQLEM+4aoRCkldrRSXKPOJjMRunuPHB81wHJqmx0kvJ9PqjDFgXyRTUYywExvjqs0R85Q4VttlTdYTfZPbzWpIPZZ7OcLRA8XEaAWvm+8rwgRHMHS2+kKEFtQeLMwtgy5CO32d73YGjfHpvu0qMec/ X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5be43924-fed9-40c4-6c98-08d8cc110545 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2021 09:07:55.2149 (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: DwNk0serdpjFhNUZh9HfSbtybUKL7C3mn3Nlfk48R2EY7TX6zWVBxW3OjlYgrsqg72luWZwNVXwE8WM05+osCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2933 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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(+) -- 2.30.0 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;