Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1034661pxb; Fri, 15 Apr 2022 19:05:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvI8ViVV/kRfmjFO1pvhJQ14UZf6EHlIqUDuHkAJrjT0b4xZkPuh4ziS3Yk8WYOofWNcLW X-Received: by 2002:a17:902:e847:b0:158:4ee3:b9ee with SMTP id t7-20020a170902e84700b001584ee3b9eemr1615964plg.137.1650074728380; Fri, 15 Apr 2022 19:05:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1650074728; cv=pass; d=google.com; s=arc-20160816; b=LpRfNNggJjtKWZwGhW1dyYm5xmXssnKudByHj7SVAJSukH7q+gWGXwl42JkayGUoOl 9USAfLxq5o5xHCDoHJqCz8rmQbYGfWlZGrW8rjt9my7v9NATH9PwyH+WqqqX7SDk7UMG R7OP2NF9qvyUQwN6/in9HtLgjyc22bEIDdVJ1qlDtnEvp9jpOoLDFVzsMnLAb493oVHQ X3amedPsGzeQ40WdDfPWzoW17H+dDIHOWfQwPmyqjIHmWaE/IZRnsnxC135QyFfetN0C m5HkEGQJShMWUSMkENlnmow8FsWSGbs4rxX0Zg3R8ss16ObpNFXTlPPsud7RKxMBOuHa RQmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=nPyAaVg9yxKBVGBVgfUuTnvqfUEJukWEwsKxvsu9FEs=; b=zlm3IvusDvHs05crzFHOg25w+gtSOIHHWc7r4YFRXuXRRbSdbD8QYfFdzdR8T/24My YqaUJNOa1vP9Jp0mKa0ZMVmSwyBEypRFhbwo4Pye6lkeH3b/Tnp/JFebkNOKTIIwaeDd 8hYn0kRBuLdV5IRqxk3keKeVBiGfaTgfkO32PzQJ8YXPW7oS7jgBl10LYVob4wLmFMVj CK01jF9FohfasHWXBXFuO+g6uWre5bSACeBOfxOZqNoQqxKU6+A4a8y8GgMIHs+dzWJi 2ucuSoEU05VP42pv1uNNlZ7q0xfQmJ3WEbu33OSj24axjEt8TLT33Gx6SjmpZfOpxMkD azVg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=IZZ1vr8U; 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 linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id nu17-20020a17090b1b1100b001d242c15065si161276pjb.123.2022.04.15.19.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:05:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=IZZ1vr8U; 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 linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 695A4BE1; Fri, 15 Apr 2022 18:24:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348941AbiDOC62 (ORCPT + 99 others); Thu, 14 Apr 2022 22:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbiDOC60 (ORCPT ); Thu, 14 Apr 2022 22:58:26 -0400 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20089.outbound.protection.outlook.com [40.107.2.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D460ABF4D; Thu, 14 Apr 2022 19:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DVbkSQGDT5gq4XyTAX1X1DATuSbPJ2EJ+mmRzQiuEzqmuqXyt74G0GcluKfN1FZlFZnPfORJYens3q3zHYB0v/LvX8ahtVmZaMzXcdRze+ibsv3jXHf/OBX7+bzAN5e+BmWOIxEeBuTAVsd8KYcZuBmA16FWTKn3dSQGBSH3Yfb28vaUOXmcl8SsxzbNHhJ/hOcZzMiTPDFqbo1SduxWXLRlgZvNAIw09ViZQXe/3x5ZTaRP6en627KlSmq5mcGt3zYxZI1VywmTHYMxd5MW7NIWJ1GGJfAdQ0+zt1gVxOXWPLAHjl06kdCB/7bIuP/HmosPwjTdZU48kayd+nSQHA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nPyAaVg9yxKBVGBVgfUuTnvqfUEJukWEwsKxvsu9FEs=; b=ZE87wXzeSIDJHjaSCLIiYqnGnkLnRK4hKAI0DPWymlGTy34S+ZiXAHk64SZUHUyS39aHmMOmojesNL2DB2K0mkqqf8arOI9YK3MaDBTEc/DKoPK9D7XiDulSvly8uikA4X5k0mJTjobzAkWX8Pv8/81DInKFE1Ygun0UPBkhTxSu5+T6oesYbOAp3UojWFxuIbgbgr/oEl4QL2OcwQhO34OtO+TScPCJLFAFJU9AU0q93ti1FvmCVihyWtsGwoKA0Ls7TTsmLtG6OF+/RqMipwHKv0JGJrSqI/K7qLs0w4jqsC3Vzn7iADN2iPjtjJrSS2Io6DZOQncibfOVymCQ4g== 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=nPyAaVg9yxKBVGBVgfUuTnvqfUEJukWEwsKxvsu9FEs=; b=IZZ1vr8UzDIL8BeF0Lyz/tulYuI/ADgcG0Wuw08ny1FtppFbqx5nHaQCrbIANFIUEFJTj/dODeiRC257dlJzcO8bpip0kuVy2+d6lYkL1ouy5NFEsSoK2Py54ZaQgR/QcSLET3HpYGtJXR3p4qOD0Vh+kYLdI7XlV3m6KDuwsJA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM7PR04MB7109.eurprd04.prod.outlook.com (2603:10a6:20b:117::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Fri, 15 Apr 2022 02:55:55 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6%8]) with mapi id 15.20.5144.029; Fri, 15 Apr 2022 02:55:55 +0000 From: "Peng Fan (OSS)" To: bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, 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 Cc: Peng Fan Subject: [PATCH V4] remoteproc: imx_rproc: Ignore create mem entry for resource table Date: Fri, 15 Apr 2022 10:57:37 +0800 Message-Id: <20220415025737.1561976-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0247.apcprd06.prod.outlook.com (2603:1096:4:ac::31) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 11fd42ad-29cb-4bd6-7307-08da1e8b755b X-MS-TrafficTypeDiagnostic: AM7PR04MB7109:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2iVDSs3nwCoY28Eu6WzK/4bdk3jef4GXSyyuLZRNbOsIaEk1jP53vPKquikarO3jv94k8PqWtOB/56F4v3eJhBpiTn8HY5vCsbJRXKLJ76ZwrglYiwXHtgZrKVzZX0KwlbFVxKqbIWMkPZWFuNNH5SCWIyyhZhGJrbrjFS0C8o8b5tKXUG0MatDeZO6QzLRn0ItwzqiXBEb+Xc6jTjdw5K8kYuV4JPqzafrLeyspQTv6ZIDVe0NIy8EbS7BWvp3S9JChste1vHkY1w40Y8BN17MgoDbcXRhSR276RZ8xPcNwmtP+LOPqNJeKo5nf1W5+B/LlaRYraqUu+NlYLI/Bj9ue1pPmsvIITS8AHNMIwW5+oPNSZbsfhd7XTVY6bH8WDEZAoyNAMyC/6CHSsv2rAg/2DL6TzWD4N4kL95PhMM52yLPSU4CgkU9hjzG+uSrQPf0QH8mNCEVUoPgrrWC6xUsPf/Y2cCiJXDrCdBJzUmYXUwjnGJfO3rcgNJCTilXwOgT5nPoy6vc8PvSFQzmJcSOsfKrz+8HUiybMTYvm/pdNQTMDZfQeqa9ZevSgsZGJR8tGjPnpTWWuXP9Bq8CYUgi8XAAFTMFgoD9neKDQiwm7IgQmV33I7CSY+Fm6Mz+P5YLFt5a3pTwp9JZ0zQTJyBLLujDMKAHv3tECVa+/cZS+zX7c9H7MkmQ1WifizuyPy1x6cy3l5d/aoWjqV6TGXOPtaDW3ay2qJYZc88wR2IyusC6KnOmjuEp53ouSl/1XjP+e0AlUcqPK0XpkKFDpFw9BRu9Zti2IxqsXFkqW8AuwAjh6+qdTqB0u9Q/IUugd X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(5660300002)(38100700002)(186003)(26005)(66556008)(83380400001)(38350700002)(316002)(2906002)(6666004)(4326008)(508600001)(1076003)(8936002)(52116002)(86362001)(6506007)(66476007)(66946007)(2616005)(8676002)(6486002)(6512007)(921005)(966005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?VwDf3gD/jah/J2ls4ekhjC9CpDlvkSAkYRpOdkkeU2Zm3wiOpym1qn43hrzz?= =?us-ascii?Q?+7ngSMhveDNM2yHth7ExWLA/dYXvm2e15kCtwFmyVEGQ8Uxd9/9tIq1HSGpp?= =?us-ascii?Q?pdX87H8SpTw3tMsH9sNjDErBjZgyoDFz48nsbyRDKNCt89OCsMp77fXQi8PR?= =?us-ascii?Q?nV9mZDVH/orBvftkYKxIXnosHjHfSNDnHTX9Dk9/ZnN94xqFs2LsUinrN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PxFIAqNK4JPL8FUPWN0EeViRn+mLPRKM/?= =?us-ascii?Q?chfitTyBIbfC+dGr7vSFN2tmGgMqn/ThcjUBiRS98ZBm1xy5b5T1Z5nLYg93?= =?us-ascii?Q?tnub0LZ7Tnyc+gX2u5sWJG4vudAyo5966rp6hHqP8kbAWmX8LJIG9JEtyfT8?= =?us-ascii?Q?9y0+uCztsbvyJGIc77IpCjA0GeRT8RoYnowe+YK77QnFbuG/PveaH34OUpOm?= =?us-ascii?Q?Omgo7nAQSrLO34j9iAYlanWqku6etX/qbi7Hq8pj1kSxm5u7dB0XetGCsnEl?= =?us-ascii?Q?7XNQj5kSSrrxtKAjyVtBM2z8SZLk7VAvsPR7GYB4rBGw0s8ezurA3kLdN9h5?= =?us-ascii?Q?iVeM/waWAINteSh7fVaChhueGIy2/c/g++4KUYMMMPnR7KwED1eFEO+LRYon?= =?us-ascii?Q?PEHkMzZVO87LF85UVwYof7xsks+ugDC1h3oOV/FiQlwNlYaw96gXCnirjkox?= =?us-ascii?Q?PK+ptKeyTekkaaWVTWeCO72bOiktcd4prwKQ5CNQ1mLUlp8Sm9NW9umg6N62?= =?us-ascii?Q?pQ+7vIcAhASJc2SQXdkqXSm4kIY/Cogy2zOIQdasEAm8HCKUOuWLjU392wt7?= =?us-ascii?Q?X42w776jvaI4FeCC3yujc6cEx0e/1273jP95l1VR2CbkhMpTIXCCxJXpgdNe?= =?us-ascii?Q?rF9ypUPhyw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11fd42ad-29cb-4bd6-7307-08da1e8b755b X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2022 02:55:54.9873 (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: 2rJdfNgEgj1e/vjHcREpfL8wYGFhTgvwI1B5OGoVsvEbiY6QU/LvQATzwW+VGEmd9SuQ8L2Kwp0zSCnonaMkZA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB7109 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan Resource table is used by Linux to get information published by remote processor. It should be not be used for memory allocation, so not create rproc mem entry. Fixes: b29b4249f8f0 ("remoteproc: imx_rproc: add i.MX specific parse fw hook") Signed-off-by: Peng Fan --- V4: Typo fix use strcmp, not strncmp V3: Update commit log Update Fixes tag V2: Add Fixes tag Separate the patch from https://patchwork.kernel.org/project/linux-remoteproc/patch/20220111033333.403448-7-peng.fan@oss.nxp.com/ Address typo 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 7a096f1891e6..91eb037089ef 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -423,6 +423,9 @@ static int imx_rproc_prepare(struct rproc *rproc) if (!strcmp(it.node->name, "vdev0buffer")) continue; + if (!strcmp(it.node->name, "rsc-table")) + continue; + rmem = of_reserved_mem_lookup(it.node); if (!rmem) { dev_err(priv->dev, "unable to acquire memory-region\n"); -- 2.25.1