From patchwork Tue Jul 6 14:23:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12360617 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=-18.2 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 54EF8C07E96 for ; Tue, 6 Jul 2021 14:27:15 +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 1E3CD610A6 for ; Tue, 6 Jul 2021 14:27:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E3CD610A6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=+j2mpaQ1tuPgb93BZeofd3g8LmeYWDArt1UQHdUWFmk=; b=MRAPw6caeLOjXC U6chSrWWf3Dr+4K+CgqeIWLHqe+YXMSP2KSFDCOsLArLerV7Kkh2lwJHfFFEtwVSnvKmH0YCGvCll 4YE3OSm81Ga4afAQEtmSY/BVyMwUAxaqrhI4G4jmkKQbqsnEEEiilh7V+4GxiUGenQpHFXym/4qYc bOpq/yb42FLH3w+1O5JMRGb/IR3DCbRVoBiwfRU02rqMlgu/rr8PAemNCi28x+Mt9mCKnqi/nEs3h EQXGZEcaaPhHQQnmUwP30FPnM2x82bMiallgw6pBM5k1Zabb2WssGKDqTbp+7VNMJprzy0ZvZGn/P 6ox/RloPDKR6M8KheFlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0m0B-00BzVR-0s; Tue, 06 Jul 2021 14:24:43 +0000 Received: from mail-eopbgr60084.outbound.protection.outlook.com ([40.107.6.84] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0m07-00BzU5-Ro for linux-arm-kernel@lists.infradead.org; Tue, 06 Jul 2021 14:24:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i0Kh6cvEv1HxKsKAc1Xg9qBxTAyR+zeXSyDuJa3McgbhPsxv2mRjTwUn1yYLUmVv4jgQAgbe28xg7pCvT6tl2a3Qipx0HlHRpqK2g5x8PpkNCdf+KlYYIw5SAP9oqWyQI2AQvuLDLTp4QEAmKzSgJxvXcUJX5utoFJb0d4vw4G9zZhOlhoXx0kdXaxMWOUG+qxmbKPVVM6OjKYloW5NTotxJSP4aSWef8U85897mmmA2dardtrWvkzv08EfPlFVRzOxo2pDznLY82+7gAbREAFrKkFUzRFrEXm+5fdygevzL0WdytLdGj89N6e/k9sf7zW3+jcnE0J3C9uNsMTnOTQ== 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=qgKF7hOBZ8nD/BsEySD+8q18OMir5THC/kRwMxImVcc=; b=fMZhSgu9akGMdxpVeTFuJw1HpusjuGfxODqLkXOceWajYqN62NrksEyiHGFFPTTshWQBnd/wjt3qjT5Ie10Mw0IlxcQp1tyPpNB4sBFsHdoi6zqigsBPQKz/CkUYubnVu2REkwSb+yYyLjvk9aYtTx3rXeu57QHFrY5fubVPnVu+l2m1gYHyMlB1ibSvXh57u37r8EVsQDThWnE0WjHU6pVFt6JZS7oLa0Aq2o7YJpk6r1ISbOyrf2wCZ5VsRT5z2TDNVl1QLle2dtZW46MUDn5CmQptLklu03S1udNbUbVH42t0moeiBZlMQ0xH0/MBELRG1sYVaFH34IgwutUqbA== 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=qgKF7hOBZ8nD/BsEySD+8q18OMir5THC/kRwMxImVcc=; b=QuS2xdynE8Wugl9RuHqJnliAvRbXMzNXjYxzaKLBEJUSAZxLSu0XdBZWP3B5Jr5fAKwxiKSIbPCW2WtNP5xDdf0QO8A87hqHAPZAQfIQ4rhCBGeRqIBe53HMYeosmoLkKY9Xifvi49NN3rTCrcLQWO6bq/jTIn/8tjB6ruYetSQ= 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 DU2PR04MB8853.eurprd04.prod.outlook.com (2603:10a6:10:2e0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.26; Tue, 6 Jul 2021 14:24:37 +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.4287.033; Tue, 6 Jul 2021 14:24:37 +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, Dong Aisheng , Peng Fan Subject: [PATCH 1/4] remoteproc: fix the wrong default value of is_iomem Date: Tue, 6 Jul 2021 22:23:32 +0800 Message-Id: <20210706142335.952858-1-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SG2PR01CA0145.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::25) 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 SG2PR01CA0145.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Tue, 6 Jul 2021 14:24:34 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 072f2f9e-9c8e-4241-5340-08d94089c890 X-MS-TrafficTypeDiagnostic: DU2PR04MB8853: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RcVcjSx8/UMw5H8sIceCqfeHOlls9Q/svrrNhY1EIugsHuQ96Fxm7bkLU0RX68MLshkBtenVxJnYtIOeRlRH2CCKG1f2kQMuMF0h0v89GVdD4eJOcNTwx5JgPaj85uGHyCLFv2hJYmk5pSNspOF4S5ODK1vj9mGruQzFpLDnsmh96tI/qLr38PK+tKBtjws745NRmt+05ZbmhgufNTnwg8XBvUlNxANBzmfM0oGXBYsKLZWRJeBtpOJpFqMEOx7ajoap71SFtYSSb/CC31d0YPPn1fDwfrLtPjQcyoUwasod/UhkVaQ8AStJAszKZx7/PBO5UpshUWqpI4NfqAQCsbCydoguoLfIaDMFbNtXVCN8PMsoIS4v2I0h1Q4mbWj3yZTY6bYYVPrZ2EzVnMWwg5I9j7cmc+WkV0unGRuzFcb9bmC1Mc6C5HbAMWXvhXh/nWcp8iUluGPgX4F5mOGdqQU1LDVpKlEYr1vFoGys+EBIOXQp7ryoGwTGwovwSr3B5joJqgSrTkOddqzIRy0HOJhiGQKnE6qsBMPvVmizy5iOYKVCO9Oz8EHEDig45qG/IPUBQuXO8LJK19UJsRQy3hqvOAqxHNMs2Qm139TYddjyMakUvtCVuSKW5mmLq50DD1TxR6YKHWzOYsG0KfmEVI5oYuZWb2Selyj9aOq+S/OXOficY3W1sb9KZ0WQ9EA6fmTxhWT5hFdKjQex5CssUQ== 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)(376002)(346002)(396003)(39860400002)(136003)(366004)(66556008)(66946007)(8676002)(66476007)(1076003)(316002)(83380400001)(26005)(6916009)(2906002)(38350700002)(54906003)(36756003)(52116002)(956004)(6486002)(8936002)(478600001)(38100700002)(6506007)(2616005)(5660300002)(86362001)(186003)(6512007)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 13982ug16LE6CLxjaiWNfSkeTrOQ8rhb2asw3XOTozlL3/U8eOSKzazXBMFs/JSvxqMdopZ7rPNDlRIsCl0pdLLcIrf8Vj5wAozIUJOIB4/jO023XeVTlu0PVNDUn23QDAzi3D/eVceMZ/LHvDCjN7GS2u+XPd54CwQdcI8ABhxdLo6N+dz9WyBqPNgNzO0gNrmPLNPpuo46gHNNVkibzuGeYxOeQYBvenj06ILtgqCs6SoIeTe1pT+2bZzCdCaOrJNQuMb3pj3RDtpWhnkPZw/0pNpO9Dpfd3wOQDJthXW4rkA+J3kvk62OikOCiawu/aDn3h/H1KSt0q/1ex/ZARpnEJ/x4U/3GZM8PwRl6Sb6ahfOuaKINo1fbUTw8IeEolqsf625oWTBYKpglJonCRDVVrHdRgQJql1xERglkFg1l1xeM6fTyg2aMERzleL+uyUlHaHR9LN8+TA2e8erHrg30o4YqqJqUCwlERwPVlq8wzWxRXX0IhEgiyoVT024T1RHsdvpOMMV+rADpasZra0V4qGeTPoSqpzRmPm/bPwxBwz1agfTNbenGfA9KghU+29q9JfdC56B6Bem08xAXSE+1DkZI4tV7o0I/5/qzO0o7USExUhLwo/nT4LiR8mq/1II3s3D/G65aVGwPi/iZ0CIENlR6xloQS7XFLMyRljqOMclgMde6ll0VtbBW5kfNen4op0Fa8+gTcDK+dJ9BZ+0XQwCRwGt9y9Fh4zJHQKWvteEVis8iHyTr7HK+EFgLl6m0dsGe3xvEBbf5ycmE86ZUrGhbzXY00n1k83oAcPcWAz1tPBthdXbbA788GyOWW7tLOPjly9qrJjl6RugSdB+VhOOTywXeE2ZNfH3Dn2LdkPEk0FlfTb5oCv3P1bubML9N9AJDMVqQv64b8g+eJ0sz0pn6OInVWRcOj5R75lWZf9fh/EfnYk0EWWPVvT/GermlW8bqXnBByxJfeNQFi+jOeMra3zaLUT3WF8ulSUdHoSY9EdoXIB0ZC8uDm18HbPk7Ijbfnjp5148mCWIz28iPCubZrHknBjf9QOGdCF7l+2jGLWOYmk7Vqr9qqR3wuRxiLJCNVaF1LdQt8tC6iMh5lIn7b0P16S7fCC2HdG9ZkrgxG3Gf+xXCROWArTinSmg0Ug7TiFilWyxtMqnTzjQ4G2y+FH/Mwr2luKoa1CV+Tr7LUOG4q9IyyJvYtyZ4Zbu0Z1n3C8v9xNP9n8idF+X2EYkWU+jPSWbXb0rwisQGQdOt2+JbVTgYTitEvPVQEgUA9HOu7CyJWDf4DsymOkXnV+oA4D86pe8uacncrR9hXLyBkig/ZOy4EOqcm88 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 072f2f9e-9c8e-4241-5340-08d94089c890 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2021 14:24:37.2151 (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: DW8xrhJN00n24BXbPlWjC9Vjay7X3GgTUy4tumox5eHv9RozbI8Mk7kpdO4yRxthEoXF6APIGy3ljQHP/jwdUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8853 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210706_072439_947335_131C6F39 X-CRM114-Status: GOOD ( 10.50 ) 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 Currently the is_iomem is a random value in the stack which may be default to true even on those platforms that not use iomem to store firmware. Cc: Bjorn Andersson Cc: Mathieu Poirier Cc: Peng Fan Fixes: 40df0a91b2a5 ("remoteproc: add is_iomem to da_to_va") Signed-off-by: Dong Aisheng --- drivers/remoteproc/remoteproc_elf_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/remoteproc_elf_loader.c b/drivers/remoteproc/remoteproc_elf_loader.c index 469c52e62faf..2bee4d5a0995 100644 --- a/drivers/remoteproc/remoteproc_elf_loader.c +++ b/drivers/remoteproc/remoteproc_elf_loader.c @@ -178,8 +178,8 @@ int rproc_elf_load_segments(struct rproc *rproc, const struct firmware *fw) u64 filesz = elf_phdr_get_p_filesz(class, phdr); u64 offset = elf_phdr_get_p_offset(class, phdr); u32 type = elf_phdr_get_p_type(class, phdr); + bool is_iomem = false; void *ptr; - bool is_iomem; if (type != PT_LOAD) continue; From patchwork Tue Jul 6 14:23:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12360619 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=-18.2 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 05239C07E96 for ; Tue, 6 Jul 2021 14:27: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 C9324610A6 for ; Tue, 6 Jul 2021 14:27:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C9324610A6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=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=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=LRlV6fhB3sd8xSWqqmzADxq9cHAOV4cXu13DfpvnSf4=; b=NB4S8ICKdf7Wps mrFK05qtVqEvL4YR6cGWWWzJl/aJgW8Wih8mL/AkwmHuzl5WjYhX7vZLYAOoDepkpC7FGFrqMDPXE PrUzWInNk3X9ntdn4LW1GA6o+3xKQYghesRJcB177WHkseqganvJ3aoX3Fg02/KyILPEuFLhRNKcb W1JaKmFm6GSbJe8NchjpD3lP1t28yp+HCr+xuFO/ARPeox2g0gkaxxEfACamHCINWDqHgKPHgyMR/ HGJf1w2jWXfNJJrQb1JCQc2X0i5dYxVtLKNU91cFgbdvBjw3e/CHJk64kRR7otbOrRp3/1HCtf3q0 GTU2+eMElNNwAQk0drCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0m0P-00BzYu-Cu; Tue, 06 Jul 2021 14:24:57 +0000 Received: from mail-eopbgr60084.outbound.protection.outlook.com ([40.107.6.84] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0m09-00BzU5-J8 for linux-arm-kernel@lists.infradead.org; Tue, 06 Jul 2021 14:24:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i59Whg0diMdpX/+IakUSokxGaMc2gju8V5pQ70/IxQAnuMq9iKGsjVvhWiOkj5pDjUZG0Kp6ZuZTOa1oKpH/swPUISCADJiTwCkpHg36BdeRYkJQtZzlGzXo7Pl9osaG95KSGsD78thoqyZ5qEh7QRJkiQKVXPpqrnpZW9orLmsFkM/pcrkDWzSvyX528mCACQXtmB8vIG6nWF2xVenzF3zSpGQhLG8vVMPszTpXUvVyBUlksFzWk1wvymBMcWpwRkwvqd/x0b0IBV43fl0n1JWAbeO4xovz0tMv2Gku3QNG0qrFCeV57ahlUMMsW7LI9X6/HUlaGys0AZK4sVSF3w== 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=MIoYm2BFuThDlBnufSToyjl+gtLcGeZhOl5kc3VS5U0=; b=kIi6gXWJ63Sjam2c6Csc6VPPf0xdtDQD9mJOSYaqvrbaImXx925XfuT+6MYKHDoI59X7EhNzIGp3yi2v3v3PaO1dWH6QdAWAZ8RR1LY9/sfEv1pvioJGvcm5RlkFbIhK/CsP5BhM0FVFDRZw78w+AgFJp1ESESXsSECK1A+C6Qtjqnmi/ESVE2zgynYXcIXKeX+/g+fkWM8loR6lCnwqa4ke94WJ5p2+I7rVqPEsRaaJr2ptO+sOnahdEPrm8OgTmyZyX3NerfCl4KjtMcvn3asVR1Z++6OmzTivuUqrIfSMf4/noVhypfjFws+IDmA93SbWaMgAEYGdrcXCriaOpA== 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=MIoYm2BFuThDlBnufSToyjl+gtLcGeZhOl5kc3VS5U0=; b=SlzIsBFbJxWap+IEMxMFFpKccTvpKZIyjY4j1QY+WU+lKdwEgH4L6KS3ytE/xbcoDoICHqFGv7T+ihWmuTDHb4TXY2ghU+za7cj9az/iYsh0wTMccqQP8lwc6GdkbvvnjhVv1aGyWY9L559ef5iw9xywMUCnk9W5eIwrJ0b+0ug= 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 DU2PR04MB8853.eurprd04.prod.outlook.com (2603:10a6:10:2e0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.26; Tue, 6 Jul 2021 14:24:40 +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.4287.033; Tue, 6 Jul 2021 14:24:40 +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, Dong Aisheng , Peng Fan Subject: [PATCH 2/4] remoteproc: imx_rproc: fix TCM io memory type Date: Tue, 6 Jul 2021 22:23:33 +0800 Message-Id: <20210706142335.952858-2-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210706142335.952858-1-aisheng.dong@nxp.com> References: <20210706142335.952858-1-aisheng.dong@nxp.com> X-ClientProxiedBy: SG2PR01CA0145.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::25) 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 SG2PR01CA0145.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Tue, 6 Jul 2021 14:24:37 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b5376dba-7606-4833-e5dd-08d94089ca54 X-MS-TrafficTypeDiagnostic: DU2PR04MB8853: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:397; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tmGOtt+L7bIXc5wQ1OjyJdwieeldPh1w21kb7+qUtPbYPJ6eSBZdaiClid/Z1Xi1MABI+TOTAmfrmGnNrS06Yu7XoTSP8IH88ZUXtcev8HFJPSA+XAHZP2ltOCVUOMF0EVk83h0/3zsv0hL1QqN3EPj4oJPL7ERLRnsuk9R28vjvWskTXtyDsIb4/igmpNuNSFYtBy1d0Sj8Yyi15r2Qp9MdBt3+16jTbDMnYK3EQsND9nGlftsY2FURsW3q70ckwOQBlHxv91axXHS76Aasrb+FqWMDwDyUTAgIdh7xIdX2j2dFnejNvgLEOP6m7lf3zlkk3TCBJ9veWUfmCWpEulmdy+TRlskxeLTatg7EXEBjicRNwEXKsp6FLgTJ5xbGk/nj39P/s525J57KBnzDLweKx7RuX+oFKR3fkpS8+vZEFZMyRQ5AjcWLkrud8t7+EK+GRfwxwNuknItLyj5mryIx/fb0rTDw+MSgq2t2V3lkc3Jm+SQDGtn5rzNL+G9GIbHDPoq+rQGoHhVjf7FMZxQ3CazW00P8he6ON7H6sJYDSWoIl0HwWWlmDu823B1cnvd0TP5BDQn+I30ucAbZoFD9wY+3S4jyeyvD8edvQ6cxblqMsQKpi4VtbNWS6Uo3Y6KhZiqTLQD/L6MHtpH7D8+UDqCsEnvDs78+88DWLh5G8U3zGwf/fUrFo9lDOdqR4h8ZijgwZ+v7ITZMZ/wSAw== 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)(376002)(346002)(396003)(39860400002)(136003)(366004)(66556008)(66946007)(8676002)(66476007)(1076003)(316002)(83380400001)(26005)(6916009)(2906002)(6666004)(38350700002)(54906003)(36756003)(52116002)(956004)(6486002)(8936002)(478600001)(38100700002)(6506007)(2616005)(5660300002)(86362001)(186003)(6512007)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: K/oGt/YkP3Ga5S7+wSH6Cab2axp1IFw42Fm7WwGCfVRWtc0V2MxflR4HUzg59vZakTCvi41h66EfU8Yi/0TRmbn9fPp4kx+sj3Bpd7M9GgrTqtl/kgBcw83lXFmBLg8Lrxq6nhj5eJiwNEB5m7slp0CuPPqGwYZqvmxrjiJTJ2YiiWyljMlwPFX2Ki8lqb4sN58+AK/p5CRsdNqsLl/37lGN7uCiSJi5ZDYQSRA+t5snb00CKDEe9HoHo7ApRZ18MD31TjmMTh4siIAe9lrLckqPuA9K+X9C6UIbMIz0wFOfhX9boHwUeCwP7dQwcir6ffw4/fc440IjzJloeieRnAUTa0oqJOHFSTMhr6WYmp6U66ZojHaj3OvLjJpIX9/gR37zHQQJ3Lmd72QZC2uPC01XHSY6pR51KXIhLCTukI4l5S72wQSm7QooOJ89Ammnp3UGGESEUmADoS4P8r0RMbu3lcFtr5L+7Zfi1EmunhX/j8Bn/VWACveA8Jjv4iLxOmaJLnDDDztJ7hdgyBHIncdeSojyD0zlKxDzLmHXJuXFSKyGcHvxsd7HXdH9TOnbUhXGVJeYOPfDTu5ZcMVpvr2Rfupwn0PBIds4MFuCPOhDtNTlrrZ6YvIdp20EcAwUGsTiV7JA6psq7/D1+PrUFU72DySxhK1+eYjQ6E9/k+I8oUKQAt6HQEdsM5TrGZGKa8auO+wUqbjjWxDLyl+hExjbT4VHdgqdSDbtK0gaq3sscIAsRHGUBPa4BTGcfsa3Iodd7UObbXBOpOR24JRf7A0MINmmy7BV59MfH5EIkF/fRMOW6vBLPAJkMRvRef4RZM/W7oeiRytavcIpPrjeXWXw4/smdU6+Fu4HewTyQhh39XF1/0BqOpIHYGuXOlVV0kvs1N8m36BnrjimWRPP8KLN40gNjP4KgmNS02dohRsddMbWJ8aG68YPhzBmu/lmpA0o6u4AVhbHGmrY2FmsGOP6s1Mt6tbl7nKbDF374uEKexoORYOBl9YQoMqeK2CHOuSaEerIwYzfnLtW/xVtnQ7weKQ1fJtxMFmxQWcqoTdP3PTTCCggwNKrS/is0VGwjQJn41aYaykq4qe63Vw75p6EGpM34iYm/oiawmVTfTTu1famljx8/fUbg9tBWIvsTLNFjEmSB88s35wFxziLxIQRE6hgRZpChac8WGpwgYv3yRAjN3oxHjHAJa3pPhisb+S0rKyINkH9o1qdpS6KxWUW9AJiK7cEXQJxsDPOIOBnDW7mLZqA1dvc7iVL1IPlTnGiD5jErQxzeDqaRhmh5omLt+pKexaEuaxG4zLKT2+a7QSMmLF3jTdidfdaJCQp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5376dba-7606-4833-e5dd-08d94089ca54 X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2021 14:24:40.0457 (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: Lo0ENq0WOrMmhWKly7dXr/e+OqPIVSdEP02hWzIfPXXoDgEcyFAFm0vqB0f09XpV290HPA0B2EeRLY7NYweLjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8853 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210706_072441_659662_6EDDA252 X-CRM114-Status: GOOD ( 16.38 ) 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 is_iomem was introduced in the commit 40df0a91b2a5 ("remoteproc: add is_iomem to da_to_va"), but the driver seemed missed to provide the io type correctly. This patch updates remoteproc driver to indicate the TCM on IMX are io memories. Without the change, remoteroc kick will fail. Cc: Bjorn Andersson Cc: Mathieu Poirier Cc: Peng Fan Fixes: 40df0a91b2a5 ("remoteproc: add is_iomem to da_to_va") Signed-off-by: Dong Aisheng --- drivers/remoteproc/imx_rproc.c | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index d88f76f5305e..752f8ab258cf 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -71,6 +71,7 @@ struct imx_rproc_mem { /* att flags */ /* M4 own area. Can be mapped at probe */ #define ATT_OWN BIT(1) +#define ATT_IOMEM BIT(2) /* address translation table */ struct imx_rproc_att { @@ -117,7 +118,7 @@ struct imx_rproc { static const struct imx_rproc_att imx_rproc_att_imx8mn[] = { /* dev addr , sys addr , size , flags */ /* ITCM */ - { 0x00000000, 0x007E0000, 0x00020000, ATT_OWN }, + { 0x00000000, 0x007E0000, 0x00020000, ATT_OWN | ATT_IOMEM }, /* OCRAM_S */ { 0x00180000, 0x00180000, 0x00009000, 0 }, /* OCRAM */ @@ -131,7 +132,7 @@ static const struct imx_rproc_att imx_rproc_att_imx8mn[] = { /* DDR (Code) - alias */ { 0x10000000, 0x40000000, 0x0FFE0000, 0 }, /* DTCM */ - { 0x20000000, 0x00800000, 0x00020000, ATT_OWN }, + { 0x20000000, 0x00800000, 0x00020000, ATT_OWN | ATT_IOMEM }, /* OCRAM_S - alias */ { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, /* OCRAM */ @@ -147,7 +148,7 @@ static const struct imx_rproc_att imx_rproc_att_imx8mn[] = { static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { /* dev addr , sys addr , size , flags */ /* TCML - alias */ - { 0x00000000, 0x007e0000, 0x00020000, 0 }, + { 0x00000000, 0x007e0000, 0x00020000, ATT_IOMEM}, /* OCRAM_S */ { 0x00180000, 0x00180000, 0x00008000, 0 }, /* OCRAM */ @@ -159,9 +160,9 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { /* DDR (Code) - alias */ { 0x10000000, 0x80000000, 0x0FFE0000, 0 }, /* TCML */ - { 0x1FFE0000, 0x007E0000, 0x00020000, ATT_OWN }, + { 0x1FFE0000, 0x007E0000, 0x00020000, ATT_OWN | ATT_IOMEM}, /* TCMU */ - { 0x20000000, 0x00800000, 0x00020000, ATT_OWN }, + { 0x20000000, 0x00800000, 0x00020000, ATT_OWN | ATT_IOMEM}, /* OCRAM_S */ { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, /* OCRAM */ @@ -199,12 +200,12 @@ static const struct imx_rproc_att imx_rproc_att_imx7d[] = { /* OCRAM_PXP (Code) - alias */ { 0x00940000, 0x00940000, 0x00008000, 0 }, /* TCML (Code) */ - { 0x1FFF8000, 0x007F8000, 0x00008000, ATT_OWN }, + { 0x1FFF8000, 0x007F8000, 0x00008000, ATT_OWN | ATT_IOMEM }, /* DDR (Code) - alias, first part of DDR (Data) */ { 0x10000000, 0x80000000, 0x0FFF0000, 0 }, /* TCMU (Data) */ - { 0x20000000, 0x00800000, 0x00008000, ATT_OWN }, + { 0x20000000, 0x00800000, 0x00008000, ATT_OWN | ATT_IOMEM }, /* OCRAM (Data) */ { 0x20200000, 0x00900000, 0x00020000, 0 }, /* OCRAM_EPDC (Data) */ @@ -218,18 +219,18 @@ static const struct imx_rproc_att imx_rproc_att_imx7d[] = { static const struct imx_rproc_att imx_rproc_att_imx6sx[] = { /* dev addr , sys addr , size , flags */ /* TCML (M4 Boot Code) - alias */ - { 0x00000000, 0x007F8000, 0x00008000, 0 }, + { 0x00000000, 0x007F8000, 0x00008000, ATT_IOMEM }, /* OCRAM_S (Code) */ { 0x00180000, 0x008F8000, 0x00004000, 0 }, /* OCRAM_S (Code) - alias */ { 0x00180000, 0x008FC000, 0x00004000, 0 }, /* TCML (Code) */ - { 0x1FFF8000, 0x007F8000, 0x00008000, ATT_OWN }, + { 0x1FFF8000, 0x007F8000, 0x00008000, ATT_OWN | ATT_IOMEM }, /* DDR (Code) - alias, first part of DDR (Data) */ { 0x10000000, 0x80000000, 0x0FFF8000, 0 }, /* TCMU (Data) */ - { 0x20000000, 0x00800000, 0x00008000, ATT_OWN }, + { 0x20000000, 0x00800000, 0x00008000, ATT_OWN | ATT_IOMEM }, /* OCRAM_S (Data) - alias? */ { 0x208F8000, 0x008F8000, 0x00004000, 0 }, /* DDR (Data) */ @@ -341,7 +342,7 @@ static int imx_rproc_stop(struct rproc *rproc) } static int imx_rproc_da_to_sys(struct imx_rproc *priv, u64 da, - size_t len, u64 *sys) + size_t len, u64 *sys, bool *is_iomem) { const struct imx_rproc_dcfg *dcfg = priv->dcfg; int i; @@ -354,6 +355,8 @@ static int imx_rproc_da_to_sys(struct imx_rproc *priv, u64 da, unsigned int offset = da - att->da; *sys = att->sa + offset; + if (is_iomem) + *is_iomem = att->flags & ATT_IOMEM; return 0; } } @@ -377,7 +380,7 @@ static void *imx_rproc_da_to_va(struct rproc *rproc, u64 da, size_t len, bool *i * On device side we have many aliases, so we need to convert device * address (M4) to system bus address first. */ - if (imx_rproc_da_to_sys(priv, da, len, &sys)) + if (imx_rproc_da_to_sys(priv, da, len, &sys, is_iomem)) return NULL; for (i = 0; i < IMX_RPROC_MEM_MAX; i++) { From patchwork Tue Jul 6 14:23:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12360621 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=-18.2 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 65460C07E96 for ; Tue, 6 Jul 2021 14:27:42 +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 292A3610A6 for ; Tue, 6 Jul 2021 14:27:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 292A3610A6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=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=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=iLDJLnPYLR6XjY191OCYX3SvJfHdCzPMs8p6CawqbYs=; b=IFPaprgBon14cO jya7epTg1c6tLVGQwnCTxQ2+vsPs0m0iGOBKXAPE7ZfwxksG1sUG05uSd6fhOaBcF/Yov05A5AJx/ CwRkXoRkEVo1SsFk5h8QtW8644LWDbHNR+XRlBdAV/wTyvYy5KoPMHNWns5OSPsWoRYdPF+yN5xjp IwjXLtWqSLH6mmDZD6ZC0dVUVgY2CqAXXNsKM9hal62PPhID+Ug+aSl5QpZvc0Tqz9S8gAZFhmcxI iHpOskUKz3FWNT14sIuxBua1QL47Yra6RBvpg+7lq82iPoHwpa3QqY5pUA07GNGKpASncF4+HKge5 El7kQmvHe0Q2K2sDfLiQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0m0d-00BzcC-SV; Tue, 06 Jul 2021 14:25:12 +0000 Received: from mail-eopbgr60052.outbound.protection.outlook.com ([40.107.6.52] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0m0E-00BzVx-7p for linux-arm-kernel@lists.infradead.org; Tue, 06 Jul 2021 14:24:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J0kqYH4/SOBMnVPJvDrUM1rSzffUgDpK4jsB9eYxNy1mM11m++QQKA24quh57aY2/gMQWCuX7i0zc5Qq0Ex59HiA6rcD2INGS0pnExybkNRfHYTh2tWk5PavExMxcaIIhTU6XiwOmAm5aBW+RqKfczcW0ZFK6tCwZo+6BNo+h2kqvzJBphATNTm/Klgts5mEJo1cDPvSiBKLy22kMsh3YlP/ZfdarwZGuhAkXHlslRNFVygamLi8XaVBxj24XDuSA21DQ5eFK/hUuzbeH9IYbXGwDxe2svfTisKWBSRhR29URdEra8MRZtc44600T0Qqy3YsBuDbwLb50p62OjhDrQ== 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=QZHQBKTWjUJP84BYYvM+TGZKiaReFS05jiEkua8sNA8=; b=TLVXSP/fpYzqKlq0wjPUmJiPJLp3R5TFXxxp3RzyXhPz/f0SxedLQE8YUD7OpXVTHiQOntUg01BuSHr35qBSwcPZ0167lu3FrqVsAFoxiBQe7KgxOPUyM+vCC9Nc1H230s2sya4ckoYk5RJbwkTKC+rxY6WpngF17MKfY6M5w0dpI2gcsJwqtGveK08FFmywEKbZXOSoFLbNH3v/rYLYDtKutOiLxVjsrHAWBlxCfENoYKvtHPFkJIJfURDvS4BEcOpXW0qnAjDfINxdzLvt4FYsfb3xu7/k0VGIu6IJxWWKDq7ybLcfyg3QZqGEbU6Vx1YemzulC+c8dU7Z07+gog== 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=QZHQBKTWjUJP84BYYvM+TGZKiaReFS05jiEkua8sNA8=; b=YfgnvMd3uIY1TAGoQ4U99/2tmK6G+H7dIS2yZkZ2eoQ1sMloXhVIkXLjM7FMg34zkrtN27VdVhDdV0ld1WUdBk89UTJ5y5+lL38vazjvLJwdO0spq6U/sxNyAu4nMT9AvBDxG3M1e/sZFPWq4cogyU02Xz3Ieyurkx49JVUCtoc= 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 DU2PR04MB8853.eurprd04.prod.outlook.com (2603:10a6:10:2e0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.26; Tue, 6 Jul 2021 14:24:43 +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.4287.033; Tue, 6 Jul 2021 14:24:43 +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, Dong Aisheng Subject: [PATCH 3/4] remoteproc: imx_rproc: fix ignoring mapping vdev regions Date: Tue, 6 Jul 2021 22:23:34 +0800 Message-Id: <20210706142335.952858-3-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210706142335.952858-1-aisheng.dong@nxp.com> References: <20210706142335.952858-1-aisheng.dong@nxp.com> X-ClientProxiedBy: SG2PR01CA0145.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::25) 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 SG2PR01CA0145.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Tue, 6 Jul 2021 14:24:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d63a79df-700c-46f9-dc6d-08d94089cc0c X-MS-TrafficTypeDiagnostic: DU2PR04MB8853: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:398; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8F9dpXlhccOO9iAjraeWcva4JZO8ZjaUQrl2hrB/hzvquCe8Jh/bG7lSywrUwey6Wnng3lWboTQufXXEtlE9pHd2RSYjI7UxS0DTqEHuqDhuy6Lgth1I0rRYhWN12qfmX/6q+HEN3Ddxv+MGiqiwp2UffxAom4ptcU+pRvF4KzdHjMw9dpvFRid/yrfRFLo3FboYINAEVnPLcEf3zFZWfxHNrP3QmPnLNzX82aMK6zYtxvlhMPh8B+6y2v6xZ6M5tbpr9zffb5s7m0JEOnYC7ryKlnc7vyeK8OPYWb94TSmPMHNWbjtHrBeGzXJHFJvg8PwCRG7Q5WlcdQphJsGnrpxK1npGXs8pwvUsgp58BEb12Sn2ouiU23c42CHcZgXonjwpfEKOrB+KrcckBQvXM++8gHgQb6jrWKQvOaUzUIG5JNPBZy2JGXtaLFZTrdhBXO3LjJyUDZCFOtHxdC5TeJNldDVNvGRPd4mQYopiJaIsBUrOEHedfLfrLOXwttjH1orK0GBYdImXBoC23Viw87SN6XV5m1Y3ytqO6jvWvnFP2dHorBOLjFM8xxG8k2twHkyVnQdfiWlmu4uagiN8lTLLN3Oys/2KzpUibLaeB2fjwnTtp33YS/n4TFkmM+k2qqGuIxSwHnyZUpFVyFRR/qRLifogXJNAIV6L+xSVURgqlnm5CsKluNQo/u5CvF95biBZm6OrK5EJ3pKKbXiMYg== 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)(376002)(346002)(396003)(39860400002)(136003)(366004)(66556008)(66946007)(8676002)(66476007)(4744005)(1076003)(316002)(83380400001)(26005)(6916009)(2906002)(6666004)(38350700002)(36756003)(52116002)(956004)(6486002)(8936002)(478600001)(38100700002)(6506007)(2616005)(5660300002)(86362001)(186003)(6512007)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bEWk1Sh1vL2iOSYdXcQA8B2aT6y6ZDzsX9nbRgrIU70bM6N8YMZE0043gZNLiVFMR58FogB8MkuabkoFaLq/cm4+K7hZNzXmbPzB+3NmMWsJleWDkXemLSGh2cSkYF5K837wKseBifrMLaxQDmsZIYIyUTPzodc8ONwvOQIlNTw4apNpPvQSiNwo+QC0rgN2zlP4QkyNwiWGe3aFLR7GYmS6DA/E0pAv29yyNXfD4bvvzSiFAciwlVIXteeMcjBmsbbj0ah0E1AfWf65blayvmTuPKBR4sKLCdWQbcOKA+TKEEwUtZAgarSfLpFJ9bMaHHARLl235WsiH/MSmOt1T/dP4FaQuKytviKj2Lvp5F5tdTiEhVeeubwj4RVqWRkyWNUPDpZB5q8wjcg1ztvZTxY7wJZleaWTMnEzvFa4yJ2vYJ/RPYh53qaiiGqBpCISSYKzDYgJQF84CMTt1RyXcVcPXmsjQ0nasOtML/AUeOpHBjUVvwt2zLG/H4siETxCWTQfnH7aUtVspWI+8qZzaWu3xkHR7GIqWdGUVxUhr6sxUCFPE49kypwme5M4rqbRVtrQ4iQ7JxfVACeWQ9RVMyl5iYsvs8ev1CDnWqRrZSdXbgGhXEaodRew+RkKEpFGu+eyXlK1wv0ivJevMWKMchtT62+0S9hXFBNKgd+yDy3O4PwzIfsL+GTPPLc2ebVp3rlJuMfMa1AL1ZrD7WK6tslzN9o9F6WGPiQQewLXo25mSEutQNZrwKf+1Jlrxjn7TYFU+rAOWiaR6vEc6pROaNrlaC6q4HIirUp+32S7/OpCFajPdbNc6U5Oc4unvg6KoSWmGLTh4CgkcdwCOlgayAjOh7TpkBLoMUnr3qqZtQsiKAl7X4N2VuPujm9UcssXC2+qUVx1OWZWBsHZ8OT7hBbTtNyQdQacuETpibFyJaZ8B3AV25hKHziw4HylM3uZLrRM7WFnMuQwROLXIknYWC0xlJbUWCm6yxo/2vkp3pw47wXk41i3m5Xlv85A4isjJowDeH4xiI8RCTauz9CbgMuUKm/ONBL4Ur+u4JZkqj6gsAvnCEE0zI7dckirxO5xW/1D67dy/1meu2OEW7Y3wy8HhkELrU298L5dyxfUYeIhJRELIY83L88zTnQLWGTOV8DNJ/hSC18IKEN7jiHA9f6VFr8wlMy3xs/tdS3eykKqhwvk6klPPbbzhCP9ngehlATRC4IA/oXVY56DYE5CnD4IIF3ymPMSg8/c4sFl+tpV/dhjAsn2S572dGanCBZrmBWfwMDCKbPHaPdZpRu/UijcYYpqQEcLoxJHfAyqOcQJa5wb/zsiW27nxKheNxlj X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d63a79df-700c-46f9-dc6d-08d94089cc0c X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2021 14:24:43.0386 (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: niLTxrIbGClhJPBnZ00MC7HVtW98KclKJ9U+NHhF7lHob7QECB4YULN3X+NnGhN3X8z4bZGHL98od9vtrkX3gg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8853 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210706_072446_305127_F06B95DA X-CRM114-Status: GOOD ( 10.80 ) 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") Signed-off-by: Dong Aisheng Reviewed-by: Peng Fan --- 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 752f8ab258cf..12de153abb2d 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -578,8 +578,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) { From patchwork Tue Jul 6 14:23:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 12360623 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=-18.2 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 E184FC07E96 for ; Tue, 6 Jul 2021 14:28:01 +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 AFFF2610A6 for ; Tue, 6 Jul 2021 14:28:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AFFF2610A6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=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=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=bA59rz9+r36WY6vuGkJpDRkuTr3pDVfF+2VGNmol5jA=; b=Rt6luKOONyGDYX z/tyde2ZAL4d4j/cVWPzMEbHcFwsI9uhXOK/gk1zVyOxT1s5f+MtHQ8ubl1xo/dmzbDmOy88okhnI wxQOsM+2fFMyMOJ1It5ZpF4PE/OsiqgsYPYhyUjSTDJR1PwQiSAZl3di+Ug8PZuLK0Er7V71MxQPt ivFd04ObrDkPfiHSWi6PftfJmNNzjz0qW/dqTKr5WOBhMLMNR8aKWaZhsVOSTXkMrS86HAiA7XwAA SbpwEnWjv3twS/VQT6aN/xF0imj6BNDjU2hchgEQYkMbBWlgGQ9L5eP3MqC8Lc+e2fSn9mTYsSWl3 0R0WTKMpPNvF6hizBjQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0m0y-00Bzhg-Fd; Tue, 06 Jul 2021 14:25:32 +0000 Received: from mail-eopbgr60052.outbound.protection.outlook.com ([40.107.6.52] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0m0F-00BzVx-Q2 for linux-arm-kernel@lists.infradead.org; Tue, 06 Jul 2021 14:24:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CzyaKTqDptBNEG6obM4uD3d+TlFSV5wl9lYTe7Sho7kbu+yM2JaOe9Syu2m/m6PSUJTi0A4cAF0HZvty34Y1tqMJUuGSb4sitC0MstpsKCaAq6Aabp8EjZBqC676XqfDwPw+sfpAiJ3lJuj67vvTDwFB/19RXQRg8CRtbWcSz/QOrP4jAMxlsMS8AV3wdqFBL8x7absYtfOl9EX1mAawqrFwehymTv5QH8Q4s2vvF11/YVItBhTX0dtm8X5LVrzGcFsRhRT8qpKBRsArMdHYuMGZhLCtSRiGxd8OWfAbo1/1yFjSPjm9Bq7XU1gyiPnwtpvSylonf+1sX39GQ1654w== 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=lyhMnFvyJTyXGLRSOGsDEh8PMb9zjCEHbBZAf5i+Rng=; b=b/bUNLe1VVKwxMCpJUiIRmWPUd9uo7UeLtC0fa9vmcx8rAXUNQsYOQnmq+JGzMvGsXfBUt/2uTvjySkpQcPV5nQryWAlfne/AbtGrmbUcfd9xKXyiWrs7RF/B250lzT8nGRMK+4XKgxsVtBwcWdBHK70MbQo6jXGrbHlZF00Gy0MPQuuTKyCk4I5tWDCYtyYjR92uDYndzuVnDZhLxKhunTaNyOpoTlSLF9C91EaxCK6JQDFztdZtYCGw999XrtLxOWGXIV4I5y0Wzr094Gzevof3cnX8iUcusyqh/yvyZ3gkzjxOGviSEMMnXlGZcugpoYahmF3TN7YoLv24q1hCg== 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=lyhMnFvyJTyXGLRSOGsDEh8PMb9zjCEHbBZAf5i+Rng=; b=VqUBy/vZZw/gR6XHjbU7GluqnmPGOByw7FvnSyeOjMG52gNssttSVmaaf/+qCW0HxJNoN0vXHGwBNxeBvpSNYDoO+jL4ISRCHmlQ4N9+AVifSik5n1iL/5fpGE/DEZD/Qbjeq+TLt317DsDa1+meEd9gNMn6cNU4FUr33EVJdoE= 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 DU2PR04MB8853.eurprd04.prod.outlook.com (2603:10a6:10:2e0::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.26; Tue, 6 Jul 2021 14:24:46 +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.4287.033; Tue, 6 Jul 2021 14:24:46 +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, Dong Aisheng , Peng Fan Subject: [PATCH 4/4] remoteproc: imx_rproc: fix rsc-table name Date: Tue, 6 Jul 2021 22:23:35 +0800 Message-Id: <20210706142335.952858-4-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210706142335.952858-1-aisheng.dong@nxp.com> References: <20210706142335.952858-1-aisheng.dong@nxp.com> X-ClientProxiedBy: SG2PR01CA0145.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::25) 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 SG2PR01CA0145.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Tue, 6 Jul 2021 14:24:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d05f4948-174a-4113-f079-08d94089cdcd X-MS-TrafficTypeDiagnostic: DU2PR04MB8853: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4502; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pP/7mQKzIUorWyIEU3XcgfqYhsOnDjpyUN75U1cvESf/rw8ikJgHScKUdN2Esd4DR5Slwl+WDgc8WrEV9IiYbW8rnYJGE7N98/WIXPIxCCugXxMGMPp4IpPj9ToXwQx6I0opHzgXjFaHvFTPX+oYF5C3gy0tggr/7iLq0x3YFElYM8WXSyf6tG2Q/kviDZJz8oUmNFpPAMft6Gvc2rbGcuSESqGVIvLseZO9A+1shxyR7i/1bhi18g8m244Zfq2H0jw/bpHUYVUMwt9aFFif2N0+tDhT8vo9jGItflWaVlIN3vfRDQ09xWGXpvvtD9OXGd5HtHA8ZUpgmCrrEv211ld0efgFWrG4szLzkH/jvwAqsRga1Vo9FLjZzmftWKlSon0UoCGU/kXPCufKatpv911EUrEI4hcrUi8oHKa/2iabQBzt5V3hmh/Yz+pVgxmuXJhkTEu1CEE6PXumXgv8eFVyZ9q4crPrP6NTDgIyCuvaJrJ17q6oLi+IBb0Kv+UENmirZjFL8bVd82wjBoSLQq2+FD+W37+E/eAQ6NR/WQM6SHisgaF5qdQiUhLHTZOt1+r5a8e2lxXzjQhpode+m0Ex9l4L50T7dndVwgL1cUxcS4pCekT7Lc+mnMT9ugvvE3PXiAbEswxz8hIRvunxMhA3avD7lWPpabikRVHJLZkpKiEWhuQOUkE7jEMaj90rZ2XijSHepxqgoJ9Nv5FQhA== 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)(376002)(346002)(396003)(39860400002)(136003)(366004)(66556008)(66946007)(8676002)(66476007)(4744005)(1076003)(316002)(83380400001)(26005)(6916009)(2906002)(6666004)(38350700002)(54906003)(36756003)(52116002)(956004)(6486002)(8936002)(478600001)(38100700002)(6506007)(2616005)(5660300002)(86362001)(186003)(6512007)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vEjT+T5e9B9N3n+InxWIhexTulKtm+Y7fl9xPXtDw6FSdiNrnIhX9GnirFK+Z/NbNLOwIeq0x279BLsowVaOE6R4RkYXuRf7wss1Vq/7+CU6XmJM944ihbV1RgEj2TljwXMzv9ogNm8JQaFE5oZHR3AN8svvTLQpbeyE3sAbodYhXiJVzTJUinr0eX+7A08qa6FjX3PnxiRdr1AvaISp14LIKudia2n5RkXp5wt7a0qoXaO1P9QPx+RWyvu7Grz3sSWmG4apFLptvZ1z26YIwCD3l+wveNslIDvUo15NaWgCdrGJ5PnIxnPAUQeG2ZbEmKDK6cusPgQM69JoNlHre6Cs76JzUuNkJjrEVCJ5vV8Ywq1T+xLn8NgCVxwfDUTFb1wkq2nNwcAkaiKmXutUzvb0maCBvg+bzp7J3MuZ85LZjKCKLB3662bodk0NLwWc6mGT6Hh8T4tuzF5xO9KXSRgd/9R9SgAfuysw/gfSnQJqO1VBeVybFYe4e+W5ZJPR8xYCfDEjBC9qMFLO3IKTKV6RhRHDBE5+E1zr5/GcHblqPQ87Bd4pfnHdcRhdbN8bbJGW9Orf3KrwqwnNobtRMcFmqZRHbhkAiHSuD9nX/zvLgRWfb9pmu9OyXsfZvGzeujYNCnIZHx+oMNWxnUST6lYmTfpNdhbKllAeV03U1Z2IgZ6Yljt2g4al0ZNq7xRyFdQNZNTNW0zzpqZywsaKgNM8uRAWEKjFqa41s7N5fVLAe6OuuifRRSHtPcsvGT4S7HJAmlsQAwhJyoz0fB9I0qF1rrHmdthUQeQQQZyTW8wI2laWJX+YBZMzQ/hEDyk/2ZmjlsEF5vSsMDVjd5byPLKJdFARowM1M3W7EA3ygtUobpuI0zkQn4b0HP/TKOaRHR7682zg8s8nzg4LQgkMTh+y8nfJgiHYGRStdmzIFFVaNiSD0V5xO4pjm2XQKuqBUO/X2b0RAvvIVMgL58bGC+oTHtd6M5pzkDfB8tNAI7FTriRjq8CEIyu+LDIVcg9t32imTLs0bLAdrsoRkT61f4VD5ppmpKa21LtsqqpnjeTGE80dEGGZr7ZBvezeynRi23zkeJtw/g2+GNMwsEh2yjchYWiD8z2q2L6H1aJa3b7tex4QkdQitzAvQREkD5WD6liM4eI0xPuk5gBdYlfNVv/mUIaCtRvVu1KGjEJwo8jTW7tNxPwLNxQjf5QXbadENf823V44VYUa9Pu+NYvEPF7QnT2MMw/0huxGvMVNuS3r9NhlWUd9rUQn25oXD6MPB/a6q6iN0PBf6AhphDFtuWAtrGW0FIp0HoB9Cu7wNY8zwL/CdljRDhb9UGgOa9nO X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d05f4948-174a-4113-f079-08d94089cdcd X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8477.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2021 14:24:46.0085 (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: HUMobD/oMrP7p8VQLYbll2tHexTMjBSnpU0DM1znkCTnzq3ATQLMnZXBDE1uCDPD8o28ROcbJmZVDJsPbv4n8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8853 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210706_072447_877338_824AC014 X-CRM114-Status: GOOD ( 10.97 ) 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 Usually the dash '-' is preferred in node name. So far, not dts in upstream kernel, so we just update node name in driver. Cc: Bjorn Andersson Cc: Mathieu Poirier Cc: Peng Fan Fixes: 5e4c1243071d ("remoteproc: imx_rproc: support remote cores booted before Linux Kernel") Signed-off-by: Dong Aisheng Reviewed-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 12de153abb2d..26eb130f3263 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -600,7 +600,7 @@ static int imx_rproc_addr_init(struct imx_rproc *priv, } priv->mem[b].sys_addr = res.start; priv->mem[b].size = resource_size(&res); - if (!strcmp(node->name, "rsc_table")) + if (!strcmp(node->name, "rsc-table")) priv->rsc_table = priv->mem[b].cpu_addr; b++; }