From patchwork Thu Aug 5 03:32:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12420231 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=-17.4 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,URIBL_BLOCKED,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 EC55EC4320E for ; Thu, 5 Aug 2021 03:35:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 B923660F22 for ; Thu, 5 Aug 2021 03:35:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B923660F22 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=q4q3fqrKSpgL6dAHVJRgkPD+gjztj1h/ltR7ifwI0EM=; b=R2t9HjPTbfTN+1 tBIdse4yaq/uDWKArJj7mNS9UDi+KY3pqJyuXb2CZqAEs9un2lE2kSv4cK22MdKboALX7e90q+xDT iSP1RY05RGZcXXwlK//5lBXWAgShKLBVv5I8ZGqDgpVXJ78L5nB9Uqjjg/28A3q9zIKru36171Rmc t7BPjTRbZm+KHlH84LSPH4iafFgJnq6t0tvNyrpsKBeXX2YnuLpVml8x3xz4LU/e78AmwBiHOV6L3 P07ZQEckNp50hm3LIbrT7Rwt4F4Xnn+F891Ngn0I06cwB9bqhpCNz1NKjNfVa7JNOrVoAiXWsaYb9 J5yzcbx4QmpDwGLmcaLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBU8Q-007yW8-MN; Thu, 05 Aug 2021 03:33:30 +0000 Received: from mail-eopbgr130054.outbound.protection.outlook.com ([40.107.13.54] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBU83-007yTx-GV for linux-arm-kernel@lists.infradead.org; Thu, 05 Aug 2021 03:33:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BGowfnb1GgCCnMdJzryKPqTuMhOP/yRqHVhIVGy8RVxCtdrjlPDHYV7ldHNEYxWo7L6W3X8sTOu84jchJd8xsQUGOqJmX4NkRQjJUQAxJfl9NHImyoTMF5VNu2aNBs4gxaNxl78ciKkXVSMxjC5yM76JuA3FJIzW9bQ1a0Kxp6PTUt8hasLi2mHoM8ylhMRl3UGPP8drzzYzUgsnuD3I461+A+DfjRDhCeGtnjhQccXfu/dBTP8rZNPM81AqI7e8KQEbsCOyOi/hMKNZcBNMpzk0LhImr5MIgItik+Li5Jnz3gn4K2hXxR01IqrNkiVSDEI6Y/dq2DOjPPCR6IfPwA== 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=Nkgk131VuD+uhNQpJ3YGKTY2ONIZQ4oZ0IgMay9vy/4=; b=WXtojKVQo9c9NTdk784d3XIo1sVOm+Rfqeon9NKBasba5cftEtWYjFGG6MiNvYVGvQo1Gf0/pUYSXSja/P5SJlaGzww+sZ0YzS4CuUfa6V879P+eyqSFrtTf4ARmeyp1j71LaeYBETzvFINL6e4OddQxybNormUCM1SCCy0JC1VjhvevtfxuY1XmkjQrSWendRJKnhiHpt+9wb3ECth73njcI+IP1NhdqyWIBk1cp3qxl1p3rsnMnZOP2iVFOZ3yRuHc9hfKh5656Xudd4/bACcXYmG47bamlSZt79agJaK8LWCS2nJceh9Rmqkv9foHj4CJ+QWipa4Y0/0ye4y0vw== 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=Nkgk131VuD+uhNQpJ3YGKTY2ONIZQ4oZ0IgMay9vy/4=; b=Ueu/8UrEuPiXWQsciXuetWwQyilrCg8nAIAPSwKpRUUBEHjFDhVMuuouC8ULDXKLs/Qm6OgYmwWBM+3jg575KpLa/xgOo79wjKcrTovOCgq0OVEnsiyF8E3MOLTRZ5hlTseIbRa+SPw0rMOpO9j4mnqAk2kz9il3hoFs/vdxUWM= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) by DB9PR04MB8448.eurprd04.prod.outlook.com (2603:10a6:10:2bf::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Thu, 5 Aug 2021 03:33:04 +0000 Received: from DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2]) by DB9PR04MB8477.eurprd04.prod.outlook.com ([fe80::9daa:ab21:f749:36d2%9]) with mapi id 15.20.4394.016; Thu, 5 Aug 2021 03:33:04 +0000 From: Dong Aisheng To: linux-remoteproc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, ohad@wizery.com, dongas86@gmail.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, cleger@kalray.eu, peng.fan@nxp.com, Dong Aisheng Subject: [PATCH v3 3/5] remoteproc: imx_rproc: fix ignoring mapping vdev regions Date: Thu, 5 Aug 2021 11:32:04 +0800 Message-Id: <20210805033206.1295269-3-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210805033206.1295269-1-aisheng.dong@nxp.com> References: <20210805033206.1295269-1-aisheng.dong@nxp.com> X-ClientProxiedBy: SG2PR06CA0085.apcprd06.prod.outlook.com (2603:1096:3:14::11) To DB9PR04MB8477.eurprd04.prod.outlook.com (2603:10a6:10:2c3::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2PR06CA0085.apcprd06.prod.outlook.com (2603:1096:3:14::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Thu, 5 Aug 2021 03:33:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 342a8145-466d-43b5-b7a9-08d957c1bbbb X-MS-TrafficTypeDiagnostic: DB9PR04MB8448: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:398; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: T0DewMlTFGXhPBBPjkiB4xYpzFviSgz7A/oJH1kk0hJvp7hAPhj6DTp/N2svLC59PnxxiPspQnRKKEITh4CxEjdRE5F+pSlvObllhJkVGvqs/UEKHAkxDVhmNLngvfGp2EEZNXgQJ5cnxqCDTkCI+tu1yTlXkBVgrmTu2ar3AZbbCi6+QSEZYjBIui7EQ4VEmJI6Een9e0DBAjGRfAxVYuxTK5dZ8dvLmUJAZEGv1reGhSbft085oiFC2mCL3lBSORMqV7tXpikTveX4Fxen3PUG1WC+1sXiIC/xgHzZ2GUy41V2cDvmESOJbXzuwwt6NsE4RafYsJW0zR6I7G54ZwX933QWsnBxTGTSiB8N1jvCWMe3Zwr4qJbxWF1cwpaodIPnqvaZKDn+bvtmcsNZTCw4q4jkVkih7du7CODmswehnAaRjh3Lzncmmrp8OupuYvxGMu8hIFQ3pGgTXj0pYteJgXlOGW3XVroKF3a2p5rbCnP/JWpmxqyyepYK1OG1O4EV3RczbqHe9+OqbqSvn+orQO2YhDqs8T7m4jsGz5wbOPLG7TSMig9Z7dZxwtoQSj7LjraF7EZBT6hYploaKnwpRY3m4jcvyfFRBAyCXEljFJq3wrLk46DsfPDPXuH0yhEC12NAW6+zdtBB4bfALZ1cb+qvPC9M7IKh971DktUJ61KRh6nnMuOeLPFi4wb3e/9XVxpSBuBaiMdkJDtykw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9PR04MB8477.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39860400002)(376002)(346002)(136003)(366004)(6916009)(6486002)(66946007)(8676002)(1076003)(6512007)(38350700002)(38100700002)(66476007)(66556008)(8936002)(2906002)(6506007)(4744005)(186003)(2616005)(36756003)(86362001)(52116002)(478600001)(956004)(316002)(83380400001)(4326008)(5660300002)(26005); DIR:OUT; SFP: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P7npQljmopIy6abvkgTUEfhMe5hh7K/ZsjmHnoP+czyl6+VvyPUs0ba4svkgrSIQAFBQsKderIXWQdhFfwFvVto8LD5PYxmz27AbEUzZvVrGbqLqPnV50oe3IVmEfD5yLCv88MfYEREkI8b1Kd9M5LaXMZseDpdToTzdCbAqWpbqjxuLyD+5Bj2neh56fTGjevpY0t8pvWDchbXljO1UBYmTJimFhbaqdvQ7dclOhkPAcY5eY9OxLtV4lPzjjKXUATuPRbGSD/fI2mcFkN4stVw1oQ26DXqXe4WYh4TIB5IQU0CGgT46n6WNrB5UFVAVug5egbtlfE2+EZAJHE X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 342a8145-466d-43b5-b7a9-08d957c1bbbb X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 03:33:04.2748 (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: 3Q8o1zVgJF7Pjv4aEQ8zCI9du4oF24G9NLjiOCv57VcwSBT3Y3xhU036jQZ3yteSByLyuYm5RYOi6cS7q5pVXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8448 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210804_203307_574488_334A7A20 X-CRM114-Status: GOOD ( 10.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org vdev regions are typically named vdev0buffer, vdev0ring0, vdev0ring1 and etc. Change to strncmp to cover them all. Fixes: 8f2d8961640f ("remoteproc: imx_rproc: ignore mapping vdev regions") Reviewed-by: Peng Fan Signed-off-by: Dong Aisheng Tested-by: Peng Fan --- v1->v3: * no changes --- drivers/remoteproc/imx_rproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 71dcc6dd32e4..abfeac0b1738 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -582,8 +582,8 @@ 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")) + /* Not map vdevbuffer, vdevring region */ + if (!strncmp(node->name, "vdev", strlen("vdev"))) continue; err = of_address_to_resource(node, 0, &res); if (err) {