From patchwork Wed Nov 2 11:24:50 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: 14188 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3567056wru; Wed, 2 Nov 2022 04:44:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4QHNQQ9eMrEnWMa4YljMvEg8CeMvctiUuo88vF9pZNVn3d99TTxoU66/h9LZRtBTDdOb58 X-Received: by 2002:a63:f214:0:b0:461:8862:331e with SMTP id v20-20020a63f214000000b004618862331emr21190824pgh.386.1667389481360; Wed, 02 Nov 2022 04:44:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667389481; cv=pass; d=google.com; s=arc-20160816; b=j+n9fz7DpioajNWb8OpvBGkZC8KHxOBJY+F7ReFC3KumLJtSZVHzkWIO+JjwuNT4uU gVA0MTaPqVegQJxzCCQodC28EaP3+bTh2UBtFMRllSdSzEtUSlyqmDtjIUB1mtsJ3lqb jIK73Kr+jCJmYO4xU/FxG6T6sKRHL97BMS6vCbMGXjBDDVFXiAGRIJFVbzXQX4/m07vC ZTSJhbqTdXpD5LQjXr97owukSagpUck2nTXo1IQo09g4rTyIYARUXxqASC0RONihG/Bb 3fTdvNOP1YGxxmPRO4+8tpggCIA6fR8s7yYkM/ybNVvxzk+sNMd+QOJhTIuHKdcZVhrF 2OeQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mSbd3wHqsIyDJZXdLg/IS7qljdiv3wDv6wV4cU4z26Y=; b=b8AGRUUwdRNV33F3p8vyEmpOE75TDXiIsbZ54e/ZlHwrT+XYq5ct/kDyxBjcBHxUgy e77DobcWbKJJpc/VJQveS2sSbJ3DnM3Hfh4XoRM4vsKIgrCcrkN7v4sC/mlvUX/4Adwh 18DysCYM8dc8DfZRIl087OWFHvq+Va+PwZA4JtFEtQjMv3APzQdAh8Tf1L4sywsOIdFS W2eQMLFUHimxdQIH/feUB90fpINkIpzSF7KBvrAAOb4aaGHYHpAPGWKsBjbjdHJY9zuj QsrSJcsV0jGZo23oEnTzz97anNrRPj9vDDI84VHH+xGoMQskSQ3W8KXlmZNq0L5L4TWh 3EQw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hFRDfwZx; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be8-20020a056a001f0800b005660f2c4b27si14064982pfb.274.2022.11.02.04.44.27; Wed, 02 Nov 2022 04:44:41 -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=hFRDfwZx; 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 S230500AbiKBLXf (ORCPT + 99 others); Wed, 2 Nov 2022 07:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbiKBLXa (ORCPT ); Wed, 2 Nov 2022 07:23:30 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2072.outbound.protection.outlook.com [40.107.105.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C33F248D3; Wed, 2 Nov 2022 04:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HwnDhxvBZheHW3zVR/NzxQlPq1RVxqU3KSjTTj+ee+MMBn1eH6RJ9+1v5l21GhpH5ybL483/XZ0KFtKYk03hEaHmh6j9h2uaFUUE1Ld7SbSNf9Ifv3n7LoFEDq+t3WYhOSzNKaCPe7on4vsPDrxJGU96/iBCCOT5bvAP2tX0VeTgDpOqgyOV69twgnMM22QkMmspvTT5bznei86kQWXdrviPf9lrkjnATriMZLcRwr/wAdY2S2MmnYzKR4UL8v7Av9aaLSuyoWmP3Dj3pgI6rxcwqb2uK+So6RLFemmlACH+9VYt7FRZm+fp0JfeKx0gfoBrY8u1r8JTXzanyFBb8A== 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=mSbd3wHqsIyDJZXdLg/IS7qljdiv3wDv6wV4cU4z26Y=; b=ntzv4Z0dF3Gehq09UaQxjNhHk3dhkBqtyBqxeCw8un/GwHtVuTjgL5gK8gHrvYyQm5QnWuvcQoD8vNS9yV08QJqBZ0SzDsXNd/VaONFAH8Om7mB8S2sqXyR3g14iHC8ZYD/Y4wXwL62mqOJUlLtKC95AMWwZjBI0+b0T4riFT41jsF08Icpf5WFX6yizI6hKVTNUd5HU75TLL1n8wma4KVaWU6wDommA4+zp405DVm+5zQXA+xybHfdS6N3fnJucRiGP+RQlnEdS+agem1ycPVJI1ZX/fiGvjP8MvJ0bX2u/ChbG/Ma8zezDHQJJ1ex2DflFbpYEcB/zJv9X/mTxTw== 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=mSbd3wHqsIyDJZXdLg/IS7qljdiv3wDv6wV4cU4z26Y=; b=hFRDfwZx/bzlXepki4aV64Xjb9trJYIsxrBHDSvv4DLkjHCJsEIP+SNxkn9Y3KBjaswKOWpQ2prUlLR3hFP2vAhHkFNR6OPGZeOaooPl3Ei08e5IeicLR2nvIQDJWmqqB7MUGpeda1yWe/uXRtKSsmuarlSY4TcQjPaX/tgih6Q= 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 AS8PR04MB8344.eurprd04.prod.outlook.com (2603:10a6:20b:3b3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14; Wed, 2 Nov 2022 11:23:27 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::36a4:e1fc:67a2:c701]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::36a4:e1fc:67a2:c701%7]) with mapi id 15.20.5791.020; Wed, 2 Nov 2022 11:23:27 +0000 From: "Peng Fan (OSS)" To: andersson@kernel.org, mathieu.poirier@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: 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, devicetree@vger.kernel.org, Peng Fan Subject: [PATCH V2 1/2] dt-bindings: remoteproc: imx_rproc: add fsl,startup-delay-ms Date: Wed, 2 Nov 2022 19:24:50 +0800 Message-Id: <20221102112451.128110-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221102112451.128110-1-peng.fan@oss.nxp.com> References: <20221102112451.128110-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR06CA0003.apcprd06.prod.outlook.com (2603:1096:4:186::14) 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-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AS8PR04MB8344:EE_ X-MS-Office365-Filtering-Correlation-Id: b24cbe91-6c25-4308-e0b1-08dabcc4a96a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mC1HRkKZMSkGpMq7PkIc75YKhIztIVsxZvOKauEVWIzsDXWgk0yxTG/UBb7hVyirqGLfDUOq4cFoZ3JdylmSL7934dbGQaVM/ux26imwU3dQYtqtSFHlAheC+UiXBoV5/4gpwxu7l/ormxEWNkUFwgJ3oi0nBJc5sMhmZPX7cXXA0g+YaibZgS1SJCE6qbllndx7K2Si4uyZtSGisiI9bkpDHtVQkYrqZYzPYn4DlQcRmUfloT9/DkDe0zbgPvt/WMTVUNpEbrLsSYlnABc8dLPdYWG2dbyiOFkwlMPNOILmCQkIMYlq/hKPrYpuTCtWRxwC8P7S5cppVtKI0MMppOP/CRjUuIT22Bja7e7SEbS5vuKAYQS/y+5xohVBsbGiNEWhrgnro+tLGu937gZ+AtQ7YZlvHBHnRW8v13JTX1yPSM9wIxtYm6GTmOAZ1RCSlhCCp+tBVia2s1WFbe45w/rOlFMbD+yJwQtUl3hTOMchawWU6zu/E1S2/0/obNYMKHQOLMP5zz5UEI4pYrYpDv6RW1+G9upDqcj2Rn6mOnFD/84DXkJ61Bdlua3r3lSa6EQ2TUX0mLp9Rn1Q5a/fDsBdXhSIASdt9oPBSh9VXbXnMHshwVZ1bCtMGD8GOXa/jzyGmr7Th7CVd8iIjRpoJ2JNfSqJY/44B/GNLuXYmxTl8FGrVsW7PAi4aiOhtmTSrlnd7zuiVIpvLAwuRQ4weExj4mTmTnMMxuMTPODIsqDpiG378CIJhU3SbUapG9ZKVKyf+jYABQUkJD4Euly0IQ== 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:(13230022)(4636009)(366004)(39860400002)(376002)(396003)(136003)(346002)(451199015)(6666004)(5660300002)(316002)(2616005)(6512007)(86362001)(66946007)(4744005)(1076003)(66556008)(2906002)(7416002)(8676002)(66476007)(6506007)(4326008)(26005)(41300700001)(8936002)(186003)(6486002)(478600001)(38350700002)(38100700002)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wAVgqACMbpeU6v1MlzCktcNZhdXWNDnTDOYHm61F9n0rwLXT4TmFN8z1enljEcWQ6f5q+TqVczkZq6zYGJSeifPUEy/HPtHUF98aJg2R3tuGh4zHihV1XOmCwk05wNGOEVkenib7sJM7U10Es0pgtJgRyyxf5Oc6Yj0zgiHdbDhPV/izIJ7skpYNf+2L/6wyfEKPYB40hqTbFXBhKFVgePOgkgyDdtl7t9u7W+XYyLlFmJo9TN94gwXmb5WgCZqOsnpuFChyjjlNJ85ugyifiuLYf8yzhLDhyrOs9DCflRhh9rMq09hrWo1f79gkTzUW/ggP2sW2gRcxY+VgsCd4zQ2TnRuM3kdwDN7hGMZWPx5Rp5aRAacac0IWH3DEHfvee/BOGwuyD7ELsTfCkRKRGYMBbBTKiAVHED2ihBVjqUTni+jcGADh9OivWNNHSRsrjxN1nSpzlshOwlmyrQxHacrVktDfXecZopggoOjPy9WMKDM2OWpIrdgqQj1L91yLAlUa5T6k8u9W8kSySFAoLPiD9VgaShegaX0oyGfA4acwObgdJ2QkGYXey2NmUzVhrtJmEezCNx7KULXgcjsde81jJq9vKyQzvUu/n2O3LFMwK5Poig6W60lrORwsEKw8opygsldfrwdB3eJyYuve0XcFo+tDJ7WsOxnPPRc8+So9O6Mp6FVyeSEDhTXvZNMvUYTFZIwS0TkZM/FUtx2Eh2eOg3M0tGAIPEXy0epyB58rz83hIdmTr/skbua1KSuWAxLYGsTPMQkVrG4mnwd6cp5S/NzlFZTpGeNvebFhmzRehra/xO/BXfdTG83kBcKpQAdurJXYe92RnbacaK8MlaGjDXFvhzn24oGob2VH9GHzlDHj1rNCNbkPKEHQDx3ZwnFXXdr2cGJ0vPlXfWp7pCFp7I3gS3uV2j7k92F65W+zwLdHMli35wuXaJfMLzS+StUt1oEN2piO1glUDISVVnjrw2U80uyLCs/tryHvQhhr0RJZUgW8MXrhSf/SGYqnsH9OGQaLF6OpxBQbiktv26SORHeheoNsc04Od9nIYgvcPhsN+SSbgGPSw2GN1yCoxdvgOWa3T8brJCMEiwyToOE+f9c6HnDX6Fr/q6Qhx8ftAo/l16GsyD2lu6XTA1MMv0uPKPpRbS0oORWUjV9gubvW8z85lZYyuImvhoL8DlQdkT63AfXOkpOme3QlNnREHTOdWxNOeO3+i4Gj6U9K8h+tGd8hg2uPMN+TyTekyB9yjL+dQ04/2b6tWokQUqk/tgtfoKUNsZSW4qUopFRDQJGjaEL/7X00poafSSSiSGZyeTz6T8l3Rtbm5QqFaUAYKc5CDLTx036O0Pkldn/xxU3EGFYiQN/tZfbNSOauEATRW1Y2tlx3pg8JDVfTOFrh2SNvmM/DR4Oi+sTrENJlaLi516q3fYE62lAkY+K5ZPkIBGtf6IM7kYgXWCFNNgwa7POVeaHsKgbw2iP9oGwrDyMbL2xfK//0hh0oeK2H6knIbNtq3JTufXF8j/4tGrQ9CjWyVR5bdl9y4s2wvCR+4JBZrYAyL3W4ynAntbfsV+oW+5h0s+rVSZaVlOCZWLoZ X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b24cbe91-6c25-4308-e0b1-08dabcc4a96a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2022 11:23:27.1436 (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: QZOomvSyJsVXRsZOSgpoXzZhZkn5CieOu/IB6vm7BU4oZgBhAFxRSqT8SuBUlBrTqDWS/1DLSlAcQcH8Ijb2pg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8344 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748384592683357334?= X-GMAIL-MSGID: =?utf-8?q?1748384592683357334?= 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 ad3b8d4ccd91..d99d3342ad52 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 Wed Nov 2 11:24:51 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: 14189 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3567140wru; Wed, 2 Nov 2022 04:44:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6blsix8BeOmP2Usr/SdLO4pnjfcDrcexSCEP5BHIesCtO9xel2CKQ9o2N3pLksemmbDvdD X-Received: by 2002:a17:90a:a781:b0:214:2921:41ca with SMTP id f1-20020a17090aa78100b00214292141camr3915614pjq.118.1667389496886; Wed, 02 Nov 2022 04:44:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667389496; cv=pass; d=google.com; s=arc-20160816; b=m6x1zHMtrPJqw0HyK0KLLa9q1asRIxpNhECul30vAUX6n0ay/957klCgAr03YisrIp kHVLZZb/tPMpjAG8YyG0d2hWtGVjyxDefQsu53pRv6B3ReZrheZ50aCo1hba5NGmU7X/ JFEgq++T+B2j3MRAc3RhZfRWbfDn39Hdh+vhwdABDP3aqIYs5L8w8qd2+aOjBgUxMip1 0Wgwzz+b67yQtVuTVBv8lS2w9l90Lw5OxFnlvxM/zebVhdeAL0iVL8bNEy8skUiO8val k86uGxtSyw60SyBZdDOJmw0xBGaMQfUi1xh8DtAzQQn2Cpod7vAQJZz9VOGl8JwT8dpv Uy6w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZiI1PAJBeTVWWsbWM7xDehXIJvyqs2SmUGws0WLMhP4=; b=Fq2dDMSkoDbLOvTP6+ED2ktOC0laVgJYLD+UVtQNJwaEb0WPccdpKvkdbMdXFBstxY AWHG+5K6psJYzmDTHGHZ+RE7m+Z1UZcLsf1kWzQwLUcb13wd5f+KBa32i48sfNNLS3y+ OeDKoBM1kf8gR0kWwePlv1P+368AiiebB9OjiWmvB16PeI1Ha+b0BT6mV2pEW9ZGSkHV ljkMTaHzO+ETiTR6OuMWswiE/jhu2ILFXEkx2dIn/MqwHPazytFksDJqioZ8DK4HuFtJ r4au/T0R6Z8v/9FjdR8e7t/Q58csUcoXR9kO14W/3vrVsEo48Ykc0w+pMAkCQoqj9aoy R8oA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=fga49r+M; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020a170902f68900b00186c41eced7si16242118plg.36.2022.11.02.04.44.44; Wed, 02 Nov 2022 04:44:56 -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=fga49r+M; 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 S230013AbiKBLXm (ORCPT + 99 others); Wed, 2 Nov 2022 07:23:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230501AbiKBLXg (ORCPT ); Wed, 2 Nov 2022 07:23:36 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2070.outbound.protection.outlook.com [40.107.105.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B66C24950; Wed, 2 Nov 2022 04:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ABSKv9PmUJ6Fdw2YD5ar6SIua0/w4ByDC2wJcM2FRSqmdbKHsAWr2mw0LFOd6lrSn91smbIbEohIr9JZzrQcfSTvcdiK8Hnj4no5QLjfluEoIDrZrAwscbVWz8XiNfLFxtsMdTlwKJJOctG0APW7x6BlaRoOzqd0UOJmVI9OFkiQ6f5CtDPN0LhXCPP8+egEkmbWhPmyEK9vZqoRhKktLwr1OcOY3WmOvN/ZIrVJCX5+GnCixq2LRFYYpkrjSTIv1pLsQ/K1CoJYpQyCMC7OeJJQWYtw11xggrKmRSBl57TLH6krAS6FsRkcPS1cQg9Y/dKH0wKrBpfqR8WXL3H2zA== 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=ZiI1PAJBeTVWWsbWM7xDehXIJvyqs2SmUGws0WLMhP4=; b=Vt6aaFPseq10WiIH9jVySrLvSrfrhKj6WG7lrJYLvb8/pJ9ZaeWf91C2TeGQAdIRXwJk9OojqZbFiabKFbWtshKxY9EwxdmeEbl6S14OYt7MwuvshP/YxUrYURsUpc5k9bbGjnJdbiwg7jgaDYZbEfcic6TQn0yRP+QVVd2DxV6VrkQikv7nfg0vM06iEff+JIzlvFSYTcayo14laWT9K9krQ4Ted2LmZvL3uBs0GMU9L4kHvCpQCvLSrnOAoHOvSaJ9kTTRXKRQ7LQwOKp3xlGvCqKutgrzu2IVSnvrWe8kuaU2Iwyn6BxGhc4jphT/0tNPhfTVkHg/4rFPwJatqg== 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=ZiI1PAJBeTVWWsbWM7xDehXIJvyqs2SmUGws0WLMhP4=; b=fga49r+MhY25eXDOgZkvLT6cc1Lr1IUqG2UEn3iQNL/9Y0/73+4W/HGECZRh6S2t0EAQdzAUexC6jcXXGIeyO7JPkmAS0ui8QCIzQlA0JFGeXDpLOr33ogBfzU79yZJH8KdxGNHf7JmTKdoq6qSiJWW1AuKbzCNtiFHmcndEAxA= 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 AS8PR04MB8344.eurprd04.prod.outlook.com (2603:10a6:20b:3b3::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.14; Wed, 2 Nov 2022 11:23:31 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::36a4:e1fc:67a2:c701]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::36a4:e1fc:67a2:c701%7]) with mapi id 15.20.5791.020; Wed, 2 Nov 2022 11:23:31 +0000 From: "Peng Fan (OSS)" To: andersson@kernel.org, mathieu.poirier@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: 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, devicetree@vger.kernel.org, Peng Fan Subject: [PATCH V2 2/2] remoteproc: imx_rproc: delay after kick remote processor Date: Wed, 2 Nov 2022 19:24:51 +0800 Message-Id: <20221102112451.128110-3-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20221102112451.128110-1-peng.fan@oss.nxp.com> References: <20221102112451.128110-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI2PR06CA0003.apcprd06.prod.outlook.com (2603:1096:4:186::14) 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-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AS8PR04MB8344:EE_ X-MS-Office365-Filtering-Correlation-Id: 81b76d6f-1cc1-4600-63e3-08dabcc4ac1e X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7mJK+OS8Xsz24ytGMJNYLGOaHxCtYHn9HoqZK32R8e+JkOslNS8wt1PRGLHeKjBECCzPcdUFdxiSbp9LgZFfzYAq5rz/oE/+ouV5po5UYjZjG73ZPREN7Bf+IPcX55VwamJIXZRCuFvTaOy+4ujPqVwktgkNOCf6oj3sAVGr1Vq1Pya6NVjFkS0BkEzhQFAu+q+eZYKJh7d/hKDryrDM3VD1tZAxmDcxKjn54vsMgyJ0wZSH75Mn4OFq6gWH9N8u9MtM4NiO+UsYhMySZ60LThdDfTDDgo7HmcdA91WVqRcoxAEFh3q4vZ9Mk0L99zflYmDFSFnzi1jkpm5rcQUktvpJajIh+8UFs+c7S9EosP8ZS2E9R4ZjgQ/NuLtl9AEl3iBnZMskCk/+gXRQvRfcUtVTr6/yA/llnbYFXrCOqBXgPPySpl+Qj52Oku/r8yKoMBlZsR1BNFBEC98fg1GZoT5OhZZ75gZs3EaLq/grq3/xF6s5vOn2Pma52UlbRaYDkVzJN1q3dkNn2l47bnK68smigwFq2IzcrK2zYupHnD3QH6D8/db45c+S4oyL95NvzFasIuIVSMIWDhDadNrbGPcpXkJZCmhBBmAwUf9Q/oYerel34OID78Ng6Vt7Tzr+fZd1vlJwN6f4HUNstOxsENl1rqmtFn6EmE5vPwhXjMwuzJpHzGeAsiQTNxfdsENFtSETpf+o1Njh4//ZqqrimaQefdbiMRDSJmqV20/l1/zpeysdORZO1BeRjclBDvGaRuPg3E5vG0k0eTNk/9zcoA== 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:(13230022)(4636009)(366004)(39860400002)(376002)(396003)(136003)(346002)(451199015)(6666004)(5660300002)(316002)(2616005)(6512007)(86362001)(66946007)(1076003)(66556008)(2906002)(7416002)(83380400001)(8676002)(66476007)(6506007)(4326008)(26005)(41300700001)(8936002)(186003)(6486002)(478600001)(38350700002)(38100700002)(52116002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 01l2ueiuiFK2kS0NgalC4RPjcEq3BET+49conKd02kRl2r8PKM8GRYAtBx/mFSPgB4uj7Y3c11XQoOFwyWW0D9sFmA8YYS72+PuHFFjFI7Yht1hzN+1/eS0l9cpA//J3xJOxtpK8e15N9J1udxOSYKkti5JQvYHd7yMFeFfbB12Qyg4Y2PFb7+rqWS5BBPxLBsf4B18iMkQDXEIfYzVBIri+Z8eJrcTbfdq7FMrgbOU4eRRk0Bkr0Ro8ykVnUu1WCc97hovdmkGnN4uM4KzgthqcMi2audE1y9WQ9AP3UgcoVJ6tkkAdBCsryEjJrSGfdEIgdTYmdooMI9/HLei+k2Ymf1DEFP8rrm/NH2iVaxf8kN2wI65YDaTenXfIMEwdFYddEI8j8CTcnsOayJQ+N6bQmE72TsoVNaqM4HO/7KLxxOY1ltQCcrIxWnY0pGFZh0s/A93XFdW+LOz4Nwb47r0tF+q0eShEmLKiZisJEZqZBViswwkd2fLUTflr8u6pHJLWyPANreB4XwQbGV8PgOS00tVAZrdfnJn5gYv3qCFimnyqc9J6gAuQqqPlWh5v6GueOkcsdsNfEtBQfv+3EXeXdBXF9iXilqNNWbgAGsoKut6Bg94ElaK++IaPa3xh/wlnsJiM1cEo6+PAIXCWEZyvLYrmN8QGICEhO7W9zcieogO8zVknqpndxz+Sx0cS0zK0DJI24ExvZpvsRDk7cQPQm5tRY67NPUAAAoA4gQgnT0hJlDCSnT27VTXucuyc2mXLYkDhUodVdQpBg+LqhiMtRhSvRw6YLTU1hbw+F2q++WsRRtTAh/yhChgpJNXDqjb9xaW3gXkCJAl81YJZDsqkE+mqjYNVxTElkizu03vxEMcmmDPSFi4O/NElx/pODm1frZkAIw7wUs+7aceFasc4UZgAITmjEtyr1C7SDWHejynMo3gb1Ex4y36WntCosX9bs1SQ83yoB+NEnQKFjw9c27PvuFKBxRJYqDSQwVJ5X6mqfOco9IRcci7KVa1u7BxnvTuex2VgSIxLSNw4/QH/9uHjEPZ9aKF+9LFI9joZmpG1iCXgEEaOpPVAqmquomsTSohTa+9jYnBjoE3rHtGgGERVFHvooEx3U1UYk6qfRs6ZlieBRDB9CWpmYzAc3ntvARMQLNG6+zALV5O2J4VAmPvTzBssrMntHiUDxMjo4BG6E3/1ZDkEPZ2iTgqUTiqPj65zgQ54b49cjxDuhNF0uZnVJtP+THPqxMYmhvfp7PnpPfql9qg+u+2Ju+N/NcggOBhb12MQGTD+KFDf/2QUdvznqqLN6f2/FhrujkqdCVfqWjPeZy1twXijoFHiSiHpsT8tjWrFbxRLybYK2pn1e+2KjwM4/Bs200a6VvqhSJ9IpU27bmFWLUNFgOFhKb2cd7vMJNCcLOC/OT/t0fqVkhjQz3lj/ZmKFmwM6y0WNwxTzmBtZFN2B4P6XuUZtqjfAuPuKHF4T0C8YCxyp1j8KPxs/4tc52R2VTm+VvdqeuQUHJ/uzR9KFMJ3Y1Jb7K6KDVjd50bRoGSCgyHhRKpjz/WMuQY/ECz2GiuxOaKk+k56xu+qYudqYSdLD4G8 X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81b76d6f-1cc1-4600-63e3-08dabcc4ac1e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2022 11:23:31.5988 (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: u7K93L/9I9ZDJ+n4CeW2AaNR1qxg7yURDrGngDvWIPkZEN3O/KwzQcgpfIVwkn2RfC7Wi3aKwfriqDm2F9GCmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8344 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748384609552529903?= X-GMAIL-MSGID: =?utf-8?q?1748384609552529903?= 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 9fc978e0393c..aa4e06f54f27 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -110,6 +111,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[] = { @@ -382,6 +384,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; } @@ -1087,6 +1092,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");