From patchwork Mon Feb 15 12:34:22 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: 12088177 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 7B91FC433DB for ; Mon, 15 Feb 2021 12:49:19 +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 2E10D64DC3 for ; Mon, 15 Feb 2021 12:49:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2E10D64DC3 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=VVkGXWdnekZMTtyPRnWG94YyGZre6aXZ+/hyosbmucc=; b=LW5H5lHR0LYoBaY+pZKo24w24 LgOGj5U1+mBg+J88o8YHDrG294wM3pipI0EMO712pBcp8bJnMbs14DV8BIsGdr8MXW56ytiKqxqIw A0mXV/itR36Ayk8Ksm6M71IVKduSKkMO3l/qQYXTyFCxrroYqsUQVRNyvp/odvgo3MT1N9I6Y36vj FNxf88McTBL/WfqnglQ8W41W8ZQ5D9s8KbSNCtgGdQtmwDof6iyZqgMSwsCjyUR5klyz03+RFq6Mt 6oVdEZCcoyfU6jTtVa8nO/Ugyxd+I1Fp6om+FDz7jqSxTQTzRqmnYZwVoOWf8xxT4vw/nfl/ynDMU WGnsBe48g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBdIA-00040z-Du; Mon, 15 Feb 2021 12:47:54 +0000 Received: from mail-eopbgr30057.outbound.protection.outlook.com ([40.107.3.57] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBdHa-0003lF-Eg for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2021 12:47:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZtHpkHCFPOw0gKHSkCFPQEuwiWnKKk/4xPBMpnqQf0CzYhE7DC18i2HtE6kQrlVEtwN8IBoJrii1dqE/uaqdUzHUSjcqu1e23qfg9rgUuWdjsLWH8JQiWPIk+GoA8xTA2vCCwwQVjD4u5ZWqR3VDdYq72CkAO9RcEs084crx42IB9DMl1+SlobAfz0FX1mnkbgyK++L3KUjO4kKYPoC7lQuvops8kur6hlx/2i27LRWmpqZCTncTN3VpssbGFNd+g0ajzbfEVJJz6w2n5HKwkxUuHf0oLCfsoyOZduZQVNSkN/I6ds+TGoT6+GArhLJWBrwpwo92vrm3x4QUEBHS6A== 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=ylGtRczgykA3LROiqvT5P1IRIRg5xXAemZjMRiCZwqI=; b=Q0fZZc2MpZQLJDbUPSCiKH5WQr8JfkwYqzwnSQIxys8LUzUAtu5F+muNJhArt/mtdpW20TUheqQPDhvSbomc7nGcQ4JisCDGkDwhzJ2/Eqkm8OJR4lBZWsAwhUiXXrUTJJcu9v6NnOa3C5paQpzS1cyKv6rPn2KlwEEcZXYIE4bUMD2XKfraDbYla+6ItqcXgSzoorH3QdZJBHxwTJMiVSVXfpkYcypj9T+4Np2+HkBNU7V2kAqJr6nezd3fMOjWCqi5cTCiEz5pktCxYC+UK8kbwbTsoy5o3xd232vlUfBazYwKx4c2eks2Vpfnuna9OSBEdTrjFwP4NljJTFhL5g== 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=ylGtRczgykA3LROiqvT5P1IRIRg5xXAemZjMRiCZwqI=; b=XkNXVhMo49blUbChTgWqup2GFmUxOT2KFyNr0GDT/dD/MORsuKP71oHTnA+JKlRceEAxxd6c0QjTET5jZkQZclWJMPUbb1abzjkRHrh4xb+M1DP9hGUz7teuzZ3pkf1/YLJhv5IHk5TPMLGL+nOAtN1iJEoKx9/geGpi7JQFC0w= 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:47:14 +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:47:14 +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 09/10] remoteproc: imx_rproc: ignore mapping vdev regions Date: Mon, 15 Feb 2021 20:34:22 +0800 Message-Id: <1613392463-9676-10-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:47:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 79cc3fd9-569e-4eec-b260-08d8d1afd14f 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:1247; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bVoM7i2asLfAAOZrze0WAyYR9SmTpFMcqcK37MBTv/maPkxbLixDoyT/4QHpInqW9kjoI9QuHJHA87umvZNS6lNpkYIEMRqf0rgbFQD+rupzzjtSZKEPzBAJavI9WD1H1CmxXnepREGyCg9apAQKE4J06dPxtvenoE2th2tozm8D/Tm6B+HRoF/6gneDmspPDRy9s+DhZbW4zZFE7rBfeb7psTGj2fuxuY5ljGbO7g8HUiEn3WBEgNDVa/tAq92MhWYHVSM2hgD7cz9J2u4sWBLc21zH19i7mnLX2LGySlmCNyp0djqe9NCHUo6Sk+xj0VLOwjNWuE+Ys0zPEIKwwvGP/BXAS2B0bsmfsYBoO4XE3eNcJiLsvFqdQUWg0i6hkE+r1C4dgniFygj+RtIkB9+arM37F2hLCiJw3v5dmzY9e8LliJZ/APZp6lHbUr8oSBKs/pnrMw6dLnPgdhC3nSehccnG/k/Rv0GT2BB5kymExlLje7pBhCdl7wg0Y1xrbK+AhRZLrDh4VlR3fLZc/v/Z4zWat/gJtENvUpKvz2u+tJAzj+LdsYpOlIpAyt3UIxvLfaa/HTnyR2l/+3emtw== 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: t4GlAx2XRCteQ2yk9PzGMBgut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MectdYM4+nEj3TjIdYqlAbPHLlWSnOfMs8LSiNEOWiVflPsJD0K3r16goqF7aFtLh/b+q9cH6imREia3XegIHYewMPLylZcPOYnXQHLr0ITrSKF3S9NYApuepn/ytCsY3n6HTSEMxpUsudRlVScWpRU9LM6AyCpmRs9l1Rgu1x10zsqHFioNauBNt09pzuxMumPVwVsphqVAIxqzbYE/g6tcGw1zZIz8LGQq8Acp X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79cc3fd9-569e-4eec-b260-08d8d1afd14f 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:47:14.1614 (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: VkCa6BSDST64d2lGDREoli7yWxxQViZoPKEdjc0TGSxsNjYn17he2b2wf4zJ3HO5W9+Y/9SGXZoRAcwx1ENwkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4091 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210215_074718_578930_79BBC2F0 X-CRM114-Status: GOOD ( 11.31 ) 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 vdev regions are vdev0vring0, vdev0vring1, vdevbuffer and similar. They are handled by remoteproc common code, no need to map in imx rproc driver. Signed-off-by: Peng Fan Reviewed-by: Mathieu Poirier --- drivers/remoteproc/imx_rproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 0124ebf69838..3685bbd135b0 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -417,6 +417,9 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, struct resource res; node = of_parse_phandle(np, "memory-region", a); + /* Not map vdev region */ + if (!strcmp(node->name, "vdev")) + continue; err = of_address_to_resource(node, 0, &res); if (err) { dev_err(dev, "unable to resolve memory region\n");