Message ID | 20220609123500.3492475-1-peng.fan@oss.nxp.com |
---|---|
Headers | show
Return-Path: <devicetree-owner@kernel.org> 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 69F65C433EF for <linux-devicetree@archiver.kernel.org>; Thu, 9 Jun 2022 12:33:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236095AbiFIMdd (ORCPT <rfc822;linux-devicetree@archiver.kernel.org>); Thu, 9 Jun 2022 08:33:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238023AbiFIMdV (ORCPT <rfc822;devicetree@vger.kernel.org>); Thu, 9 Jun 2022 08:33:21 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60064.outbound.protection.outlook.com [40.107.6.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA6161E3EE; Thu, 9 Jun 2022 05:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Apv3cmgN2jVEyC617eOEYjA0/4N4afrEiAuRA3p4aT2CYtBLWx9SVreY78sHGRQ4GBsbS7WVQJHthknwBfr3SuV/4Cjku1UZ1jGisAzCNevUSHU0m78UFHrL8CjuhXUlE5keiYpd7WoYHL2qaXi17yViK2pSie+R5PePpAEvdcCmk7unWyg/+GqYGPdwP0DyWGaBnMph53MUxACvLrJO+fV8/KPoOntcIVX1ky/F713T2RFQBpAZ3NI+Dli6/++h88f70beIEOkQoK2h6/MdVNRSy6dBRkymJe49efiJbKDvL6oJYMYRtFaOcfXzWMcLi3SAGsS9RUzIDplfH+wCVg== 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=ldln/h0uKHl15S179QhyHDShwEI0bRE1CEmEiMojvBU=; b=N1t3zTtFpTbYWr8UBmqw6KVn11QR1vF13Pos8uBSjVE5c7GHVs3q1ejmMr91NEfUTDcKT4c/5lF2FPcJOgWfaiPwFIvaUGeV0onXB9ZDVkuGP75ET2DEfXmsfghP9LEaJS2THlAWUwz35VahooxJ+OaL2r0wwHGz+F0+1sOVG5xHv7ZKyHG5iI99PuO3c1e1U1JcI2Dp6jIM8eu9tEWO9DxIzbucm08neayczLjYavVPxyoew5S04nFgS8yiyHRW3ce1PgRHh4JnNPuXt1rRt4Ww1qSOrq07Zucz1XR0qn/sD6Kq8PaILv578sdPmFF9jdlEuEKGIfrrBkPTznXsvw== 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=ldln/h0uKHl15S179QhyHDShwEI0bRE1CEmEiMojvBU=; b=fdDbabP+QXnNzKUu6ZNRlLsmi2qzR98+RGWMbsoVCTXKFJNL1iMq2qZMX58xzDTPaeEC1GL1yXnSDKzmQY6yXoJGGZVxCwN91Zm7LHvhDXFeTZ+4DmHSIIiddVRuIVrAmxwt+M0qWGS6G39/eKlhSd14MiZoHJIkMmHc0g7/Npc= 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:17 +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:17 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> 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 <peng.fan@nxp.com> Subject: [PATCH 0/2] remoteproc: imx: add start up delay Date: Thu, 9 Jun 2022 20:34:58 +0800 Message-Id: <20220609123500.3492475-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: ee983f07-e371-40e0-2b28-08da4a143a58 X-MS-TrafficTypeDiagnostic: DB7PR04MB4475:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: <DB7PR04MB4475A5484FB6FC5E33688C64C9A79@DB7PR04MB4475.eurprd04.prod.outlook.com> X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dvx/pXRHjUxQRu502YYWUpHIiXmhLVEhJJBsJJQPBgXI4CUU97nYZIpwObJt8MWfmPEhPB2dFHDl2fzxzYcSIK1OOZNxkt2zXQkChFl6J5Qfe1xmHOT0m/NNSjnvPMTNA/JiSDh4j/nYRY5Q12PVf//Z7c1URPElzxhlnmnMphPFhSC3YYt3mS9UGhDo1zjawUCzNkkunrZlMNTwdu8Y73QiTlyNL9XiGTnlsdq9qkgnjVpHoWD4rsxHA2EgBC4ghzpkmpk0YZJQ0EtiZsIGbc0VEDcQ3M9Sc04Bk2Ii74oq/f42x+/TCLsSkZVfWG9Nnu2ew6Vr0/q1EHD5jZ0aZ9tYBHNbYp9I4iM1ZNGivWobGiJHjseiidkLtO9eTDViE6tt3iWIz6rJxsDA3Q6u4MC56yyhaZf9SkosB7qaUhH2J0vWezivbV5Xwt3JkElu+BABg1bUNZkLsoT1qpuusrkqrvh33ZmlOfByECvMsWG3rA4IitBwpxIqL+u/GWZBAAHcjjLw67OTjxufwVOsAT2xGaMN5jsAJu7Sye40V3EmmwhlZ5dYGh7BY5KuZkN8wsh7k1rI3HuomWrmLT9eSQ/fGveOwfJwCYfzbLb03Wh86+GfcnupXaPadK/lBI3oHDZ1G/8TRhHmYi9noh19xHHa9cikntm1rWtFF4dQfgaqyJKU4xW1HbS5EINOPpdKcNAU9R8U5NIg8m9LzNtEAFs1pppSXVSZF3UMMswYerc= 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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EhT848lRNTmJTIdO0BCVau3dSYlhGuzn5G2FzFMeg1lt5s7VCEkwWQ2AtuM4ERCI2pYoMWarBH3kp+s5Gu20lIVsqY9ZbRWb28gWPJ4wg+CCLjKfKSUb6h90TmgiEmpu2yNoYAyc5fIpXegkr257LbWvJ6a8BAHvQAaYQBEnvy81KEegz5iNqC+eEjtyO1ADmRCZ3XLQBzkLEr8JPr1okRO2lXVitJYXGnFfiXa4O/9+4C7TB2HRtK/8ons4iolxs6pIATaqHW4b1P2fX+jhspy86T27tF1aNkmPuA+J0ckE5qXYCpMZ2pS8RRWi7AXBUrICYxl55/+WGZAbp59gjT6T+fslq2v/5poe/vuKtPzxyDA+XWBwmxEt27e4PwSAD0xlVymt0BGsM0RamHDT9Q7PTtE4IORdWU8eANPf+lJCPVLJoaLYWCEYnopARBpmXrPbiOqUqHkLlheiSuMQDCyVxSj1QBFOeogrAu7l6AikQRD4DizhHLmALn+ehYOc+C/qjoItZchoQ/q8z+VtiIxrReJ9cLJEsK7CZ0zJTN3oJR8jLu8Ux0s0/FkcMSqg/qel0HgizEglvjv9peBCry+Gxks5b2jIE86KIR9AwsY6171IEw2kYzYyHvFcF22t2Op4JgINC7jEjcuUEUo9dUZXrnyyCUa8bEONAQbrfZ6G6lm0FURq6GnFnGw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee983f07-e371-40e0-2b28-08da4a143a58 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:17.0472 (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: oho4wuhF2/kLa66YxysApUkAramPSEkOU3qG68CQaZ0VfD5zwoKtDUet5fR+oNAEk+66p3muM9Dc+eXKeYiA6w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4475 Precedence: bulk List-ID: <devicetree.vger.kernel.org> X-Mailing-List: devicetree@vger.kernel.org |
Series |
remoteproc: imx: add start up delay
|
expand
|
From: Peng Fan <peng.fan@nxp.com> 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. The best case is to use a method to let M4 notify Linux that M4 has finished initialization, but we could not patch released firmware, then update driver to detect notification. So add delay before linux send out vring kick message. It is not good to use a fixed time delay in driver, so I choose to get that from device tree. Peng Fan (2): dt-bindings: remoteproc: imx_rproc: add fsl,startup-delay-ms remoteproc: imx_rproc: delay after kick remote processor .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 4 ++++ drivers/remoteproc/imx_rproc.c | 9 +++++++++ 2 files changed, 13 insertions(+)