From patchwork Thu Feb 18 01:24:53 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: 384353 Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp3281378jao; Wed, 17 Feb 2021 17:39:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMpcMqyUW0OFb11UUu44HWjY9AZXvKCjz6BQeA1QDaAZu/CYukaGxw8roxpCee07jOK7da X-Received: by 2002:a17:906:d84:: with SMTP id m4mr1620055eji.437.1613612351772; Wed, 17 Feb 2021 17:39:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613612351; cv=pass; d=google.com; s=arc-20160816; b=xP/j9dP3OO/QHP4JgkTAKMXYlL/ucwOt1N1gr+MZhlJeE95ytAeVMUtKqwVbjAlp3+ JnaQzX/aUWBwNvOL5c8Q0HEbLF7rqJolb6pN7bk/EeDUeLMLCduYzV2rc1gqkylQBZkI 16stsEq3pEdb69VRpAj7tbzqnUdzVsDnLaodVgsmzTpFbqZbzLxh1mh7ueFqQKimAuT/ RQziLn7JOwG+1I2CscJpSYoP/RAxXpnBN/da2+iHJEH3ZsOO9u12vyhzQgCCjYw8XlTq znSooQ/OWOKFA/aDCr48eH6kRXbt6hngmhbyeGpGCMT+Z311m4vv2aIQse91Sv0jqL/7 j5lA== 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=uju/xQpsIrTt3iN5DUZpcp30V3pOIq19AqqxDMEWzJ6BX5sr6hv5g+bpUeHe2R06Ox XnOF+lEN7uR3Qzg72tvXGFuZbvEktFKMPdtF6OFdgoDhO00s/2Jy+/hZlQ6dcGASdCDQ xSuqyCBHw6DbfcRcE8RAMKJGuqTTmibe7y4IeCdVHQSoLz4x2VnLTvwmXSU2Y01LSVeP JiVRtjS4vBDwdXna+ifpjd5fJpK1BN0vKfMnZrS4bQxIy/fcI8FfGSlYnuviCfjWr1Iy I6udn1AY8GHewaImBddeRPQaVq2bfaUSEkC0y7K+y9QYwozBrGdyxPARZJr+YPDoKUlw EeVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=gM8mZ210; 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 e1si2551315eja.255.2021.02.17.17.39.11; Wed, 17 Feb 2021 17:39:11 -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=gM8mZ210; 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 S229876AbhBRBii (ORCPT + 6 others); Wed, 17 Feb 2021 20:38:38 -0500 Received: from mail-eopbgr80089.outbound.protection.outlook.com ([40.107.8.89]:51809 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230125AbhBRBig (ORCPT ); Wed, 17 Feb 2021 20:38:36 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N55XwZf88B6pcvYAvK9WusF81hl4bgjqjv63tsCu7vs81gadSWljwOfevnPmFq/yTemBgYoo9/fLLII5Fe3xchOpJ4aAcbKdK8K1Q2GL8UFq0SHsCEprWzJGRTdHITQQxoVlsPZ2JwRAI2lf8wWfylvs5Odo1K1iQ4pTpi1B4epTckgJUE7YTCX4BxbdCN/PJKeRMLWdNtqQZBF/Zt0vBrhxVOL8z/k7vxXrO03kyRNWK10fXS+gG7W2xLx4XTtxzRwJSXs1W+9ovClZF1xVuqb7GvDohBPyDPsBRD71whK2vS2ryVnL6QD+ku+Tom9nms5LGGAfv74iFH8DZd/ODQ== 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=nmlnF8pYZmwL78bV6fAFmwzN4wvva9EVRI1gDOhvnXYqUuM90OVw/+mVtUj+zl0K0C86Sabqb6CltgqSWAPqOy4V2yc6TUf6AX7wZ7BGlXqF+xXxTIU6XEgA1e8aiodhIMD9Mk2CF22516cU06pAgwCLyXvD4uNyS/yyOQcgVtDAnFqJOuS5mMnUwHHIGIC/lafrIJDhZIjB6elgIDMo/Vh7ogooExjBfD068ZiPAc7w6/1HdorJ/zw9ZRLE0LYtOLOIsWf+VtPMZc0ISehwOBpNtJkUxg7+YtFjhI2W1RsmbjfRE3Cx1Q94Xgv3MwmtZvNxCSxoHjnpYh/lZlovkA== 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=gM8mZ210rxpf77LwMQgzhAFUMlcMUj/phWnc0AdnmDGqqHOIc4wGAM8tQdQjvJsTV+v2Zc/FI1c9h0rdimWtYDa5gBxh9kfTZoIVGImNviijtq9khK5OJvPl0K5ZGxYd+11WAA3RqMbyGU1P6psXIhiozUMe+D7+46p/XaabPDE= 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 DBAPR04MB7285.eurprd04.prod.outlook.com (2603:10a6:10:1ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.28; Thu, 18 Feb 2021 01:37:12 +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.3846.043; Thu, 18 Feb 2021 01:37:12 +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-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 V12 03/10] remoteproc: introduce is_iomem to rproc_mem_entry Date: Thu, 18 Feb 2021 09:24:53 +0800 Message-Id: <1613611500-12414-4-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613611500-12414-1-git-send-email-peng.fan@oss.nxp.com> References: <1613611500-12414-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR0401CA0005.apcprd04.prod.outlook.com (2603:1096:3:1::15) 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 SG2PR0401CA0005.apcprd04.prod.outlook.com (2603:1096:3:1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3868.27 via Frontend Transport; Thu, 18 Feb 2021 01:37:07 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c9fe755f-6497-4744-b12f-08d8d3adb66b X-MS-TrafficTypeDiagnostic: DBAPR04MB7285: 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: LjmTsw07ad2Ogl58c6r6qE8scnhFfir2VefMcdU4YM1GlNjkcVMjXkNN51Y/1whr2lGe0xN8A+3QMXDAd2sKjJvVVJCjwGqpU0/G71X/WQ99/QIkAAJiDMymuGifafPbScr1GMZXHIx8ojnEQTHyH6MQL2hZa4jcz23ouPmy20R+ZxsSnAsJj/sX6ZZT/+atzlVqJgzBQujw/p6hKl6N8ipzGeO1FNJxzGnxBf7cexKw9buTVeIZaZZHw/OnEbpVC7mBtkIW7Q/QOeD4R7TtUH19GUtWL4GPp/UieME92kyUnlz23bAh/DkPqxFz4m1/OH1J/mKqTYipm+av/0+707q8w68f6naBJz53zEsEV1gDbbBx4QmXm1QTY6Ndt5M3rnuVkdrhjUG3LRsno02BdDStrFznP9p+qwrqHu1ibk9wP5ZCCV1y834RP70yQf0JY6R1D1hCR9DYXaQ+93mxIRQNnXrDOHDKYBNmIMpnWz8ORV5CFP+g9ZB1TZ4ymAgvffj3JvVBVmtTD9zgUDDKViFg4O/ZLlzCkCh1RaURwGAFrNSGWp1Dr+pRdbqEUKwLVIkmpe2Ua3z5b7hA+WC++A== 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)(136003)(376002)(366004)(396003)(39860400002)(346002)(6512007)(9686003)(16526019)(186003)(26005)(5660300002)(6506007)(69590400012)(66946007)(66556008)(2906002)(52116002)(7416002)(4744005)(316002)(66476007)(8676002)(2616005)(956004)(6486002)(6666004)(86362001)(478600001)(4326008)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 8AA0kEmW2FcX7rTf0qeBBCMJT6m20Z8FozsQemuB+fuhvWKMg7fNyEqBGqVq1Ak7dCdPz0xGI3/N8xGPhMwKC9H6d23Vm9Hj8C88JN72IIFbQRn4wBaQCx2QlFGFe5t5KpFQXUpNoSuJvIiGm8gb8rtsWPRkiw3NrcuQXhtICK2Ke8UHshshlDfNjFhWkcoNQVV0vIVQqVybLgIMsJU3OmDQ/q6W8dRNkVnO+Un9PHNKEjIvYaWybj3geX+cAOYqsKYiwQFub2xx2nDyE4qU76glLkU6yeqEMTCRzaxGSA/AKl08Suc5JxFjxze9OPZgrHq/thwfrIaxjqHGf4NpGR+5QuHlh/i1Jcuuc4K/wOmSI83GbH8Gy4sSeRh6hEFbjzUKYlBf5vUpOXgcfRsCOdbKZj6obxt17T47yK1ZiNvZ+7Ir6i5VUWk+9sc6OeEKeBVPDsrRosOOPgDfyJLnsR15RcoF3TYmvaalvHUyC6ZhIQ/7Rp8PuT8sP7+L5zmuCYTeoJtqHhnvHdSZxucOZOUttMRV4vM3YWihZkHcWwa7pZ8zmZ4dAOQBqtx4pBuAvHO91I7G/IYeuEyETYjlDGmsWp8/0p/PO1A46h0rrQYKWk1m7L7b+e4hP7kSxza54tuo/cUSwlOxztFAh2dBAcDC0MqSj29XxNMbDX2pXxwbuDqkySE3q0FSls/uZ7eP94lW90SsNzZq96fkP+keT4aN4ghcO+GVxSzE+q7G0/LTB9Xj+kbIqx4lY4KmWcAqLSlN2Nl4JLY5HHARIuuGS7gavJCwOHO2Z2jnOUQIX9GaSJto8vOp47atQZiMXIRHLEtASaMu+6vsgxTR7iNMA17nyiqJ7ldVxWg8d3M1GHxCRQ2S0HJFs6/FTd/DgirhxgicxJ+Dzu7P4CzTduT1JVjzPg0teIbDdulfYea+N8vP8YaI+CL9xaoMeOlpYJHIvLdf8Dz6c52NEM0q0q/MQCEjbgHTRyo1Q1YzWONUUiCgu6kSDYFCPuLodcA3xrA84C9hcjuh6Ti6/mm20ogZmOyz5qC1R6h4qsuMdTmKCVPvdc481di6zHOA57f+zzTKoasVLRAU4PNvgMEE4QfS/DP05664dEn3P+1nu85Z0diEKuXqwqc4LoruynQjHylxXoEfRlwmb91Hzcfr5iTil4MMRG9ZKkTxsmEltZDhbOrxoIWhTqE+Gx/5dTDCkiwTLDyImS+sj6w7R3BdaQT7teOfzoKCa2H0mpaMHVQ2JLk+XL1j0JjvlQLiljus6m8vs/PgTzL8rXq5THGaquq3mXEMRvsZwMciC8oLoOpUaT9fDGFB/va7hRQgdoS9xFQk X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9fe755f-6497-4744-b12f-08d8d3adb66b X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2021 01:37:11.9807 (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: ik+W29rwxT1iX2F/pZJdWLwhAJZVx3KvJiOKfF1AT7xwZ0tT6Pl4pDXGp/S6Cw/KusgUGUQIVqbtdGkEppwhbg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7285 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;