Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp270290pxb; Thu, 31 Mar 2022 05:11:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3WaXcv5uWmIMJI+K6aSeQyBfEvSL08Ae2iqPKWLbs9NrU8/NDLPu3oHAbDXhEzQ3Aaiq7 X-Received: by 2002:a17:907:2d07:b0:6e0:13e2:841b with SMTP id gs7-20020a1709072d0700b006e013e2841bmr4810720ejc.502.1648728662217; Thu, 31 Mar 2022 05:11:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648728662; cv=pass; d=google.com; s=arc-20160816; b=M2uSeYRZ1ekALcKup4nmtbfQYosDtAJiGC2wWbvXr0hK903VqqzRLX7bKIxdUF1m8P sIk8MemUiRPuhmEDfWF+sG+LCk+Fh9kqpnNEZ/JNyx3cvJrN+eeeM1MSiM+QPKHgXCNq Q5p0kSFw/HpLRQtHGyN6gFgLGARF/t9yK6N+k4JcDpto9iU6R2zHoalM8SxMDQl8w+hN iM6YOBystoP2foJtc3xNoF22F1aIeKZiBAMCkRKjD+b2pp0WkhQ+ZEJ20+/bjl67EhqH ksDI+dFxRDkw5IOVrGHT7m7atv0DrCTOONPpmNiVHH7WtYQ+LZRHCUfETkNI0i9PhVCp 4M/w== 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=2jGjjxN6iyR0D9aECQFEf0+5N4VRIwyYCXpci6IEzSI=; b=BAgCc7QCtrAUlHJWVC5MwozgEiWRQ+c8f3z87id64slRjaJLDdavs9jiOfyk9NN2dB rEXoDSI4DMcT/qwVUkzKxK9HBZUItRgyOWkPZ2DA960TV6UsX6EtDpIqIzrm8PsrHR6q UkpSv9ET39uF5f5ZPCeKJaTH4NFDDd2ED9X8HiJ0atNRt/KlrxAstytxkn7PLLRrIMkw 32oaF6TZAsQxAjRMyGihLLWbZtlqMj+kEoIX7Noj2COZIifXYCZVepTQLoxpx2t1a9Tg 095kM2N9gMSNhFyeFLaf2SYHXrh2I2YYdrQS7aHtwUU+wB1Tx+P/JbcyzDYwwTWz8sEL uNng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=i1RUjKGO; 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:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020a50935a000000b00418c2b5bdd7si24866776eda.185.2022.03.31.05.10.35; Thu, 31 Mar 2022 05:11:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=i1RUjKGO; 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:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232216AbiCaIkQ (ORCPT + 99 others); Thu, 31 Mar 2022 04:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233146AbiCaIkJ (ORCPT ); Thu, 31 Mar 2022 04:40:09 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140055.outbound.protection.outlook.com [40.107.14.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EAE91F89F7; Thu, 31 Mar 2022 01:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yv7Qi8QpLVAvLP8CjitXTZkVpy019cq/B07me6FUO6fNYUD218QJ4YsrJ0cHYDQJNjk9p4Jk3GAhS7nr21REEEpkQWnwv8OU3AK85v03K19bu8NtIIAbmo4Mu6P4zDOalKmOsa4dUXIa4EQkHvmdu5SaB7hUMMzjX8C3qvbCde60cD603uqTA9rlM3SlbF1ZLyfpv5JaQG3d9WFNDnyzPLWwh649NL0r24tr4EO6RNgCFQALwiHW8075pn6knQBhvdNpFSqopii5a/rahEL++6SAa+LSQk51M81y06liVbZjJucC1D516DLwfD+h3SApn2hy3KvYrXlo9RoBt7os/Q== 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=2jGjjxN6iyR0D9aECQFEf0+5N4VRIwyYCXpci6IEzSI=; b=QjQEzGvUn5VR46zocsBihcZgFelDkr5iNlQvf86B2v9Zgz3xvM0oe9ax6XjKplMlcVRxfKxQ3YkPLecn2l2vv3U+39KwcUIJc6WcKP1epToAi3kMBk/WHgLnil8jPvVoefPVb/WyQzO3ucmaQQt0h1MBNu9l+XyFAyjM3JdXbG3odgbiCmziIc9La1chdIS/QnH8I/6KN2qWzhajELK9u8AjOu+9fYcum3DrAqAYv1ewwNUhkFU7pnKnaxA5R9f84O20fTs/wyOvKHMOCMqE7USlfitU3jMt8od46dlxGm9XL/5YNzr1ffg2BuDkjpgmSIPqSYrzFSB1E4bj/ZmY7A== 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=2jGjjxN6iyR0D9aECQFEf0+5N4VRIwyYCXpci6IEzSI=; b=i1RUjKGOhB/pOJFJFs3J6AfcJ44imRJKUT7FJUz9u1BJdrNz8p7QD8ptnoWjoHhc8nWKZKxKIv+qLLi1Sj+4p5QVwPEczbuGMGVVVNBfY0sbkV/rQUjzk8ucTbyK0ViK7x6iCNrS5Dw0Pq2uTvjzgXgWWC53cX8yChABR94DXaE= 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 HE1PR0402MB3611.eurprd04.prod.outlook.com (2603:10a6:7:87::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.19; Thu, 31 Mar 2022 08:38:17 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::389f:e6eb:a7a2:61b6%7]) with mapi id 15.20.5123.019; Thu, 31 Mar 2022 08:38:17 +0000 From: "Peng Fan (OSS)" To: bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Peng Fan Subject: [PATCH V3] remoteproc: imx_rproc: Ignore create mem entry for resource table Date: Thu, 31 Mar 2022 16:40:07 +0800 Message-Id: <20220331084007.2323377-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0194.apcprd06.prod.outlook.com (2603:1096:4:1::26) 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: f29a813b-e00e-4613-cdf6-08da12f1cd3e X-MS-TrafficTypeDiagnostic: HE1PR0402MB3611: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: B9mzf/shOt5WPKL4Jh56R4jhpLmZzaeqXTLMwzMkLfPCmQqNX8dTStideOG0+jYIdKnc1u22IudY0GaUm97CgihQAnnEQqDAg+5wDNW1KkP85I4B5UfYWMYKxanllnsXeBJfbgVhWLqOv6UsSANL/tLxBNYZVi0Va41y9WHYp3jJoevTl31BArQMGDZi2cJxLg1uGEhV4+IQqSn0Em4tb7PzwsYPAxav64xBfwqybON0LRvp1rVE3BcUMYDr+11VgqtblfxyZFx8YQQjm9EiHtQTS/+Wx1GfYaCFeILbJHhyc+Ne/QdcueoL5g/f2C/HWJWA5rgg6beRkX2uLa2VxRqRRBALZFcCU1VfOSmw+J31VMxYVsLp6+TLPUffbYLRPhMdAwjkPCR8lWvcqatuapm72KrPuFoArR9U7GPSqnkZ9wH1EMLWSFIojETEKnFCDh625g9O28PYch20HmBk2NooQdLVc/5nYOZoD6R73hbwbec2tO3iYxIitI9CSb4gHf2nWk4O4HkJP8099nTyzp3zPNqmu+zIStMfkscQXMPJj6Wg3cuf+jQcKVKjOnYV2O0sbggjQIN4OxEzi0iEbu2rpB4L0BV5eHfhnC/s3zElEmIieN5frx9Q2k64Q7ImN1h/lbz1eFANevVj+cQC8pCPy61nr26W2mPKn+f8j+i8sDtnXukgTUO8wdOpdXKmm6sKyeY3sbFqS8vZL8GTiVaLjCIiwMfocGWN6xhiXClSclX/iDCVWPjbJbVoTCTw4wEnZpByqVHYseVkxFk5leAgvzU1Nfi9faqgdzOyqEo= 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)(38100700002)(2616005)(8936002)(966005)(6512007)(52116002)(508600001)(38350700002)(6666004)(2906002)(6506007)(86362001)(6486002)(5660300002)(8676002)(26005)(1076003)(186003)(316002)(83380400001)(66946007)(66556008)(66476007)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ExQ1w9OtlXeFbLmKj87Tzd6opQp3JGaSGE6Ya+rKa2qdyztLID/3NDqp/f7k?= =?us-ascii?Q?bECpFoAJ83AqFM4yhPdppmfMj0VBIESMhazq4+gH0VtCmQ/UAcklturCiN/E?= =?us-ascii?Q?Vb+bbJNcuTL/1uDXcXzqNOtvPKnSBYS/FSVi37VXkakqBPvVs1gIqtPBtyLo?= =?us-ascii?Q?duxm/R5wbiyCurdmUZjTk/eXBDXIjDZ7AY60EBJXo8TU6y5h4Ux0+LJryn3f?= =?us-ascii?Q?MKtpNtIiIeLGfgdDoHgzuQFEsChPBfFtoGk16U7Mght/IgPK8n3yXfC8uuHd?= =?us-ascii?Q?0xhGP3F8N/CSX5a0BbmhkX+pqOnqJ8x9RtmzHUI0BYcaj8Fyeh8xN9IDc4tS?= =?us-ascii?Q?Ouo3TxyeLqTRI6AhXUELBokQnz5FFWhcoI8wAfhkKSwAMK67kkorYRL5R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c8nkItIR0AXYSP3IB3lR?= =?us-ascii?Q?wryQRyW1Di57/WRfhgtQcV6n+gPdrSrKP+KIvOZGZJSwNDXlzAok5xH/ouxx?= =?us-ascii?Q?pORVp1HzrDwLNyHX29D4V71BnctN646lP/uX7ha6FWbi40BERwOSPtZyIXbh?= =?us-ascii?Q?G7vlUcRkiEcAXBmVGv7HYdVKye10mSby+FM9GCEVQW3Fo2Q7xoYVttkKs6+p?= =?us-ascii?Q?wHFVoruDO/dXpgf6SeBRga14pjvkJXjeMbnvPXkScPFrRzkanJdap2Ks5Frm?= =?us-ascii?Q?4sEYC86tGfjF9jqiSOlEM/mj/ssWJvDZ6OeVdg2QQ9Vtg00K1uOlZx1FDq9k?= =?us-ascii?Q?VYkNPrb2g0MBwgviy/oEUlScmMGC5DFh8veUj2aBIKaSLqrcnxzPOGA9jIIn?= =?us-ascii?Q?ymidI7Ghd5oyEEKMO00v8XukGb7wWu598OdG1kjNg+W+hBP4Se4MI34ef8I6?= =?us-ascii?Q?v0uGB2kmeA=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f29a813b-e00e-4613-cdf6-08da12f1cd3e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2022 08:38:16.9972 (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: Y9KC1QoNp7/StAV8fN7moYypMMmM51JrQ/xB+fUU8/7iHph8g3yzQ7IYc54QqMdmApC0KjWMGgUWtax5P4utBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB3611 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 pubished 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 --- 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..f2bfc9077c19 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 (!strncmp(it.node->name, "rsc-table", strlen("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