From patchwork Mon Feb 15 12:34:16 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: 12088165 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.8 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 7ADD9C433E0 for ; Mon, 15 Feb 2021 12:48:07 +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 3389E64DC3 for ; Mon, 15 Feb 2021 12:48:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3389E64DC3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.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=MasD/tWRt8lxQqcei8KJRx/TFvFLSQVdijO7SE0LmLA=; b=tzCNVpWcqEuTuJnY/soNPLagR 92FmG9SIHxs08AaWBbiQubSNMbkMsTk+sUDhKnJ1p7yJPYqB0SvsxRZdlw8L1YhJM8Q/0c0yaHmvY l6zB2H22XGzLMRrikdfjUXGl+EyhAttA2qOyalJ1evT/BWG0zuzWbBTAIV8HC6xlE1H1vXs5CePMU g32c3OlmnGtV+8Wlx69qa+JzJ8pGq814vQp5mqTIKq+jD8DICx+tw7rEti1JAcRiOolGjp/4LwknP vDfKh9IX9SGRlLw4B4pR+ld9femhvYB0Wq0lvTymkoDZlZpCuSpaYrMgQiSqrXDTy+3FonTaoFXPK jVEuURJ7g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBdH7-0003aE-Qq; Mon, 15 Feb 2021 12:46:49 +0000 Received: from mail-eopbgr30063.outbound.protection.outlook.com ([40.107.3.63] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBdH0-0003Xr-Pl for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2021 12:46:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a56AWsNY1UaWLf6MAR44OP6V0mQKFBFyXGOJMiyow5lC/pu4KzhO6bvhygdQmzEy8cDmn9BTAHyg6DgPpr+908P+Auh2NxxV0XKi8AzL0fcx0pHiqgEmKoWb+exyITlqPK3tRjNhyAfbFQtJfx2YsLcSMr1O8JwFf5T04wJT4FAjvnT+2inznXD5S8BT6rm48/dcZB1GhMoFM115UyaqPvWAZ3R4AkteB2NuOSP1FfvbrGeN+uknMZ8RCrNp+XgxI4Fchw4WKlENLQAgWqVatq29kbppSCgQs3suApbQeTZN23P0sUIJznQz4qdJA0h+gXAAxLqa5rPTOqEFR3nPfQ== 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=gVXvPdVPGHWtrT5Juzsk0XpLqBfRFLAM3rFaVWJnJflUU1PC2kJcfQR6FxBI5UuNmK3+Crmnm+JDbFW2MeMPIucESwOYGZwjhjat5e/05mze71ajwfePN7958jxo5tcQM9zseIXDtpK9HCq/c6xKcKrJJ5ffKV8K1kOG9/ucZHADapU7ggOqjep6+Kr1TXz2oxpaakALhp98uiVO33NZLyGt7Ri8vSDwdvbXM2727RMsl3a+G8N/1sxurg7syK7GFjYstXFRg7qcGo2B+PwjoscVejwDpPB6FRRDzb1Nik12P/tahrvw3IjwTKiS/pK5R/W3XK/kk4aSUIWBAqsyWA== 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=jU8Wi+6dVOME2WUH6HGLAR1MFIip+dL7gez96+YzPA4131rzL3o9HzoHy9YOxE4Tn0pc3KdsFzjJfLBkAsaEJs8KPIFlklVWt99LnoKly0XZ4aXWgy6gmGydOMCm2gOrGLmkH23p8jWByyqOO6fD6DTxk913WxMJCRCItreHdCQ= 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 DB7PR04MB4091.eurprd04.prod.outlook.com (2603:10a6:5:1e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27; Mon, 15 Feb 2021 12:46:38 +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.027; Mon, 15 Feb 2021 12:46:38 +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 Subject: [PATCH V10 03/10] remoteproc: introduce is_iomem to rproc_mem_entry Date: Mon, 15 Feb 2021 20:34:16 +0800 Message-Id: <1613392463-9676-4-git-send-email-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1613392463-9676-1-git-send-email-peng.fan@oss.nxp.com> References: <1613392463-9676-1-git-send-email-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: SG2PR0302CA0019.apcprd03.prod.outlook.com (2603:1096:3:2::29) 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 SG2PR0302CA0019.apcprd03.prod.outlook.com (2603:1096:3:2::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3868.12 via Frontend Transport; Mon, 15 Feb 2021 12:46:32 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a702995b-ef96-4bd2-cef7-08d8d1afbc0f X-MS-TrafficTypeDiagnostic: DB7PR04MB4091: 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: hDrcA0Cxt6619pj54VI7XahowygU0bpacIrbUJldhb2dDV+aAJSleLBjMXA17+CTLJEff1X7kgK3xJ2yBWIHYlSEHTSay+WEEYQirTwhRBQBR6B/xgUDfr6GtKCSjWuke4IvOJ1am+Rdj8Qfct0G9DMBt1/o8hT1Dn+zLLZCapB0OuqK+C3XN2mO5fS2o2JGAGYRUSoayZqtcMsjI65p8PjGw2NQ3WVVmcHkLNU+sMMR2sdsUt/uxrdNOZItVZchfEkFpQtEnY8s0Mchf1Qx+T/OKiiqgqU5yGOFE2O5Iw1iXoFGoFgnSaa5YKVKij6w/ogxip24mME56m5sihmLWQ4BS6GyCebKmwJwaEtWa2CtJQ8/Pj0atTqfv4CYv39YHnsXAfnHQnrVEoEZd49h3HrJT+BfdBLn+vLfRaKgAw2U4v4YkNNigRYihNU/f7pzR0hR99D8iskth/I1h3v29igONhETy1zq7+qIPmT0DzsfZI8gQMHd7OIxPqhSPNlHd+of+v4/MFckte4CgfpFQlcDDmtLUYzthkVWeI3WnhWOba/JxQq+HBfjixWXy/WNqHE/ZsZDndXBigDkdUl93A== 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)(376002)(346002)(39860400002)(396003)(366004)(136003)(26005)(6486002)(9686003)(478600001)(316002)(186003)(52116002)(6512007)(2906002)(16526019)(4326008)(6506007)(8936002)(2616005)(956004)(7416002)(86362001)(66476007)(66946007)(66556008)(69590400012)(5660300002)(6666004)(8676002)(4744005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: EVTmGrFw2C5K1cfyYZKypnRVrNMgPJ9Kxd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nHDjLGFyufp72+jDoLEgsmE1jTPx6UZn7eFVV2I20EUjW9xSZaSbCt73LYVJeJNfLyfGt8kWIK3UIyY0AgFdSGozImd4WPTgk0KQ568zh4+TFJoTjL79LQtBNJH9J+QMLmtI0B7m+sKC54SxTjJeV1H4dezOLC5fTakZW7sSQsQXu6LEqZRpIyHI1AFiJk5Ifbt2kUkRcseHxYOnS+uKoEtsuCG9UJBL/sr1H2 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a702995b-ef96-4bd2-cef7-08d8d1afbc0f X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2021 12:46:38.1058 (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: bCpEHq0AIvikTtXNE7TU/+W2UY8DEihpwEUZTl8A+5hcXBtAEO5D064R//Ds26ubeqj0KGcYf6EiDk5EcEK43A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4091 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210215_074642_929435_A5C78F9C X-CRM114-Status: GOOD ( 10.60 ) 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;