From patchwork Thu Jun 9 12:34:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12875544 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02122CCA485 for ; Thu, 9 Jun 2022 12:33:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245234AbiFIMdf (ORCPT ); Thu, 9 Jun 2022 08:33:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245241AbiFIMd0 (ORCPT ); Thu, 9 Jun 2022 08:33:26 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60072.outbound.protection.outlook.com [40.107.6.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25AA5192AB; Thu, 9 Jun 2022 05:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UVRyIYRj+QSYNJRRNz41d6FAqZlDSgimWi+nXd0XtTp5b1q+rrj6MuFMLYhw9Q4KIBE4XtrUMp2n2Pt/ZbQWfcDX9Fze0h/xjG8eKk8XVDwmq/cALRIWTQ+Gfb7uGfZTmEa6sP3DBsPQyyEJvl+ztaih8EceW6XOE40Uk5Hlxp+oNcESxbztnwmQmS9L+bvH0/wIKuESJKVXBazsTXn93dF9qJaXk0Gabsixm1AQzPGischC5buyCN5mZ4Z2BtsamIlgPCIi5NIoVvTMxc+UvQjH6oK9UnNyeEPJQws3zbrlkIAbQXPUK+o7ukXhTVnF7ckTaaWcxyLf+1tAxRd2KA== 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=08xmNNqjcWmhowrmJ7eQ29Kp6yFmubzsnyoFd2YZw6M=; b=Gxuz4wLzQAqBy9k7AiJZJVMCRNQhR4FEvEC3CLhP1B6BTx+6vmOw6tPxtyEHgagEyedlzv/wBXKD2WeYppQxex9zSrKT29yyeEPY1oUkhkiE9MiHZQCt/Tax/9eihyp0kCzhV7n6kU2iZkI4pqctbm9/gD49qS/s3C3H89S6AAdW2BBx3lOE4Lo/NQU4zzuwYTnVRFcEUcJGCFP6ROMNv2qhs5gNEYj7L3/BVIxJwiFSOqrvkcn7hrsibLBvzk2uGkqSNURPCm2NyewKf26gz83w/2/SqwtAwk3ns6wax9tsYHVB9Hl/flqUizOP6zv/4YX2Mk6ynF6EIRTDRrUloA== 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=08xmNNqjcWmhowrmJ7eQ29Kp6yFmubzsnyoFd2YZw6M=; b=LiARiNYcv+xvE2vrkHGhWxgmAxHnAGwONNwQeLgVScliwBug+7EUdX4w6HPmR1wFBHN+zxvq4zVQnYCX/pFeB5Vl34RWVvuIFLORwkxNpFQbCYboacH0HRX9nzu8dW6DfbcxYs8wHlocbnYdBWFtle/KiCR1qCudz837nsnIpHE= 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 DB7PR04MB4475.eurprd04.prod.outlook.com (2603:10a6:5:35::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Thu, 9 Jun 2022 12:33:22 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%8]) with mapi id 15.20.5332.012; Thu, 9 Jun 2022 12:33:22 +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, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: devicetree@vger.kernel.org, Peng Fan Subject: [PATCH 1/2] dt-bindings: remoteproc: imx_rproc: add fsl,startup-delay-ms Date: Thu, 9 Jun 2022 20:34:59 +0800 Message-Id: <20220609123500.3492475-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220609123500.3492475-1-peng.fan@oss.nxp.com> References: <20220609123500.3492475-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR02CA0021.apcprd02.prod.outlook.com (2603:1096:4:195::10) 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: 784871db-ccda-46de-96ac-08da4a143db3 X-MS-TrafficTypeDiagnostic: DB7PR04MB4475: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: eopk2LmuVvZ1vG4+8vawKmolIvoa9VzuHROX1gD+bIzu3JJeIU7z1rP8BA810xVG5wl8wG1cbYL3ys0jBjnYk/A/dykNKrcqASlbqEIkgmK8kr3ZwXIMEYCTXLJTIm8H/WxSvLar4Y45Mbhzq0phd/MhK7Jjtc4AQZ3Nl4EMCTICGRUxmG8P39S4L+yD4dCWmo5rgDIaxkmSpFCGU6V3+0i3IFpExNOxRWLBYOhmnmRPF5XvQAPEPtGydIwJ7VQZf++tEgekWY6zkSx9g0qOJrolUAIhACQvOGTvGQcxLObQ770U/Rf0ob1VSTu5onWnenLjWN9zYgSCXcxvjxFLboRu+Uh26XpfYviDjXT6HCPNgP7n6xpQ8Qy/+kxkcgc8FsebJi6IHkChoxio9LxgXLYJz2VypgEJ+D/0XBurjcmOE4tfGOnvFjJBcvWQUVLaCxSJsYM9SGl4a+acOIPJVuUeyH0gTphA4NTKkuIxBHMOPMncpHm4/PcLuCCNu6jFQ6UP2yHB4HcYpuPl8dggxXiq6mPjsD6rxy7flwtgFIuV1ZwniUPrJQgX0BKArEpgVepDnO09G+EYy78NQ61cF1MJyzKEk2uRyHJz7Z7sKccc3Ig6JrPHNvJwJ/kMacQkAlX6B+CD9YaAQc3uoRw03u11b/b9/XazDEiPHbVn97OUPNiUXRoKt1S9s+IgEndYr7RpJ18FJmd/CSLgk1t5mWKiZb8EPEcTPLbsV7zo6mU= 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)(921005)(4744005)(26005)(6512007)(4326008)(186003)(52116002)(316002)(6506007)(1076003)(8936002)(86362001)(8676002)(66946007)(6486002)(66476007)(66556008)(508600001)(6666004)(38350700002)(38100700002)(7416002)(5660300002)(2616005)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-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K5AABJtGiUPHhlI07aQi0tYoP8/qgyYRcXAIbaq5sxoBUdrfNJ9sT0jfQuStJtjJKXzZ16I1yNlbRs4kdVxl9RHxRb+5o0bfbJfehqei+tMoTCmlCJv8LtsKjpKy2Ns1elvWHdBZQrVAg7tHWEPYjjaruZyMXu64P1NyWG57HoY4xxqa/8SReeLNvaNGXS1wy0FUzIj/NaaIFFKMLxg26mcnl+20iG0HHpB2FkBlvtuLPHYJTbSTxBL0F18LmREe3qtrMQln4kfwWBFWs/AxObHZ2e0pBH6OlR7GAo5cv/u3SSOmIcSzMs/xbQR01rI1wcgzCdC9ZBe+XtUTIEz3vRith/IWUM1XiXJRaBsTAP5cnCHEfY0p+HaV51HSLasRsgSbJ7/SCTr+dxWFx7zVnYo+SMihvwSPr5ibcM8l9Sc+LVmaRc0AWq8zVTg3oZ0h5ievqkcWUPxf2Uet6k4MjVDLDECs4fVUvD75iHcMomFF/k8+bdnbVe+/gUhCtTjaVdW+IWEXWNLSPgVGcJz4E0Dq3yai2qFUAeoYhzPGfz84gkZ1tLzGBuMb+OH6u5tyUS6D9NBxw11ilBXlEAU1F6Be8kcPMPkMshTORfr8+Rb3Deb1ADaeXSLlyeaBHJ7sgh+D0q2YDyOg9mw2rNhY57zoPoBakPWGWozy2c/+Il/vlKFVW8vFdQIaakdmm0Kb8R8O97Srguzg== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 784871db-ccda-46de-96ac-08da4a143db3 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2022 12:33:22.5076 (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: UojIMEqDteVCF0oCEUVlN8aVMaS3+7DpsdCUygGobk+dPQu3ag4eyxL/WtP2TGdf9kqjVzThbekp6giLQg5Ivw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4475 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org From: Peng Fan add fsl,startup-delay-ms property indicating delay some time after just kicks remote processor. Signed-off-by: Peng Fan --- .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml index 64e783234e38..56f3ed18c28c 100644 --- a/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml +++ b/Documentation/devicetree/bindings/remoteproc/fsl,imx-rproc.yaml @@ -76,6 +76,10 @@ properties: This property is to specify the resource id of the remote processor in SoC which supports SCFW + fsl,startup-delay-ms: + $ref: "/schemas/types.yaml#/definitions/uint32" + description: Startup time that remote processor ready for communication + required: - compatible From patchwork Thu Jun 9 12:35:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 12875543 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6F5FCCA47B for ; Thu, 9 Jun 2022 12:33:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245080AbiFIMde (ORCPT ); Thu, 9 Jun 2022 08:33:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245430AbiFIMdb (ORCPT ); Thu, 9 Jun 2022 08:33:31 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60067.outbound.protection.outlook.com [40.107.6.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F39F186FB; Thu, 9 Jun 2022 05:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KcCZmgsalLaiq1H159KH4P0pS03RdGeaUGs1ws5V4wXOk9g9idmryH8LYqVyKcI+fwNh9TT5kwoLTh1kNcuqhn0p1BG8tpVR7xEHz6avm9P9FzZx6XXhxrlfmBpxJB9GQ99aev9KUt0grd+mKv20PPI2APk1YuRzW4HmMmB3nc0PtB0Qo3FKLfrjVzzxG5nbDFnUmXzakNIcS80nqIOayPRa6RLrxDgY1gyLuAKAlB7nuwFFweH98oauVmoyAmSaZRj3sY4oqTZsK3oqWzp/SWxXcMg8WpggAUhl9BOTacjNd0SrZ+QEFc9ia6GCQbl0NTVKQq/Nmy6UTnWC29Yr/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=8AhxINjBYSayOm0wbQf1JweZvXYsx+vRUb4sT7T3218=; b=AKXXVEQyVcO2Q3cSI5C9FyFpL5ui/sYilwqBFbhtZLrmkEcmnLt/zCQiKwOGlL7PPi4WXzFceOjKqqW/mOaYmCrlkcZ5RqVCGfQxbNpwG0cloa83yGGF00kvrU4ozj/hAIKTIb1601sE4g1XZld4ihBpv1d99Gwn8qJExj9esFtgrxXgp34FneAICGTj0nMN5uzJ651FsoWJplwPEbRngPg6WuroHlkLiqlC4zPi3uT6zASpvl5SogeVqD94eSebOeL9tqvoJi8xVkl4AZ2ZdtSuSgVoarSLgpsor8D3gzktthWEtE8c6Q0arWLW2g/stL9U24FaW+Zcu8qvkwXYpg== 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=8AhxINjBYSayOm0wbQf1JweZvXYsx+vRUb4sT7T3218=; b=IGbUANeHwv5qn7rGDp7lflNxCMmCAbYxFSguM7Lsl7QqXhKHzRxAEdBkDjqGywFo/8bxTFbw9JNIoq3aJJUTmxg0E4tJCkvZmp2HqEGFI1r/CDhkoEuzEQkRZdTAlvBWEyF4oMG93/WjVkEXe54nxaz3vaapMarS1Sjhnkk8R9M= 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 DB7PR04MB4475.eurprd04.prod.outlook.com (2603:10a6:5:35::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Thu, 9 Jun 2022 12:33:27 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::a892:e4a9:4769:13a5%8]) with mapi id 15.20.5332.012; Thu, 9 Jun 2022 12:33:27 +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, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: devicetree@vger.kernel.org, Peng Fan Subject: [PATCH 2/2] remoteproc: imx_rproc: delay after kick remote processor Date: Thu, 9 Jun 2022 20:35:00 +0800 Message-Id: <20220609123500.3492475-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220609123500.3492475-1-peng.fan@oss.nxp.com> References: <20220609123500.3492475-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR02CA0021.apcprd02.prod.outlook.com (2603:1096:4:195::10) 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: 9326d93d-89cf-4ea9-412b-08da4a144086 X-MS-TrafficTypeDiagnostic: DB7PR04MB4475: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: egwSX/+GT04amGr8JyZoRsFKs98P5jPPQSE9TSQ0B3UqumPQEnSGrVjzbxFFAGBlJrkOU2qnyYeGcpIQoZb1x5IjnIFDcvflCRJuPPuWysITT/PNjz/khmx3V7SxvNSXwtqYxAnj0UYWk8+yryROcrpISA/wF5LJQWw+PSiOHg54N5q6tA3g+EMZ/GMRuAh2ZL9EI+3zwyc9Yjbq+oK5YKEyaOW1KBKOoPoD6H4uJ3qxizwyMHeknM/rfjct68HLjsDpqExWyuawSuUHbdPSOoIYl0Plsu89h/0YR0U9WFhVVQU4/uakrhnSrbVj990Aw/vMFiucphlgIccLnqxm3PuUs+jSKMJb5XXaHL2pyeC+ORXoSClUJnj8LaXXJRhzAdILxRVMgmiIjlZd2WSk/CfycnMaMaEYQXR5HtcWK0a9Tz0CGC8WnTB5q3E4f5RDHWduGQrOBxRRdy2VWMbSok7PqMiggjiWJB+B7jaPj4MEnp4Qoe2yl1dmw1RUrmFapU8ikz6ao73TZQibr7sbEf7xCUU2wPGmVjSetFpboRI5WOjLeJxbfgAEEUWCK5dvVnmh/jmgyQjczRhjnSgxzAodSiWUeTO1gL6ZT6tJ47z8cJffUvxhn9yG4JJYSc0hWGv3L7ORlp1W7YQRXrDBUdt878WRNWyKiLJKvEou0GIdNHDrLx84yzrRNG51zybHGiVArJu1V/5ba9MpCUj1UPguVlIPERHzQBKra02w17g= 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)(921005)(26005)(6512007)(4326008)(186003)(52116002)(316002)(6506007)(1076003)(8936002)(86362001)(8676002)(66946007)(6486002)(66476007)(66556008)(83380400001)(508600001)(6666004)(38350700002)(38100700002)(7416002)(5660300002)(2616005)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MMYjQ2rjZ1Trw9p+lIIX90Tr7D18oEeUFYzbLJgWLUGMYPpMbus2BkBA24R63QFn2gVupaAWAu4LXzRZ1wcRtgOEJbxGO2OXs2d5sMHH8DWyp1Rj/S9TmornLPc+Ymlx1RprX0kzT4NkNRsoTe/pfHZnQlyegYAm6uIshm3IqRPSEgBZP/1Fp/Iz9WK0fitbtrzz6Uib60+ol3xjIY3Nem62P4wvorFtrwmuIEsr0NxpEDKh8ecYENeCT1O+i3Ia/VgYLoRaXZuNxeavhSeeIi3DvF+yokWsjCgeEJarRRD1CREjHo6vGxymt7ntLfFzBGUPlocgN4TtBRYdomzezYAP3BkORnCWlK23oueyFcey8FbhWa+ZuHU/xwGWCMKqSr/lJuIGaRLitm6FtM0yfGA9JQZ6avewkPsa1l15pggFgCOiYXEfvqUt5/zh3t/tpwjgBfoKNv/bOeyMS4lv0MKaXax9/V+iEIQxEp1YplMSpFO+9IUm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fOB1LMeAALtzizaHzZ7dctzLssLddcOOJhhY68Ozd+zfOTRu/yxwJ95mwNuu9Ufk/w01qMqOPcjr2MUiMwnu0llkoEWeje5gR+BBdddyLqiWyAFaFQVDBpUZDGbrLTa0h/L/PcY7Ep06sio6pO4mwV6Hs7rk3xdDR5tWbVsA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9326d93d-89cf-4ea9-412b-08da4a144086 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2022 12:33:27.2437 (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: pzNUcoW0fiOpkrpO43EAeyjS7WPgwNltXwOL/lV5orU8LX6FHn8ptvopS0dMeWtKlctKFEZKjduGcWFyRRVtAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4475 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org From: Peng Fan There is case that after remoteproc start remote processor[M4], the M4 runs slow and before M4 finish its own rpmsg framework initialization, linux sends out vring kick message, then M4 firmware drops the kick message. Some NXP released Cortex-M[x] images has such limitation that it requires linux sends out vring kick message after M4 firmware finish its rpmsg framework initialization. So add delay before linux send out vring kick message. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 8fe139624ecc..ad0fec128504 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -109,6 +110,7 @@ struct imx_rproc { u32 core_index; struct device **pd_dev; struct device_link **pd_dev_link; + u32 startup_delay; }; static const struct imx_rproc_att imx_rproc_att_imx93[] = { @@ -381,6 +383,9 @@ static int imx_rproc_start(struct rproc *rproc) if (ret) dev_err(dev, "Failed to enable remote core!\n"); + if (priv->startup_delay) + msleep_interruptible(priv->startup_delay); + return ret; } @@ -1020,6 +1025,10 @@ static int imx_rproc_probe(struct platform_device *pdev) if (rproc->state != RPROC_DETACHED) rproc->auto_boot = of_property_read_bool(np, "fsl,auto-boot"); + ret = of_property_read_u32(np, "fsl,startup-delay-ms", &priv->startup_delay); + if (ret) + priv->startup_delay = 0; + ret = rproc_add(rproc); if (ret) { dev_err(dev, "rproc_add failed\n");