Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3226457rwe; Mon, 29 Aug 2022 07:57:46 -0700 (PDT) X-Google-Smtp-Source: AA6agR7+xhAlJKoxvDsvkhREc0X93T5OM1Ipc5BoslLI95IV2Gw9aSr1rlpBrY4TKgfIQ1nGyf+O X-Received: by 2002:a17:906:b303:b0:73d:6c5b:65d2 with SMTP id n3-20020a170906b30300b0073d6c5b65d2mr13310941ejz.414.1661785066218; Mon, 29 Aug 2022 07:57:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661785066; cv=pass; d=google.com; s=arc-20160816; b=1KgF7MV32XscIfhU8QMcGK0gJDHTdP4njRUFkR1ECnC95EB9IArL6ILjZ2uNlxoSKT X0Y0bMuyhpHAPWMOmKJ2JVmYLob5sguSIvBfKdllWUsbdEzN1LdPCarhSQCmIvxIfzqF F3qBfjuoU8Y7+9plQnKU4wh0SWtjRCMoEQw8xU0tZR/xgrvhHuN10Q6bpDbqJKLiq8sE 8PPof+X+hMvjYG12PQ43ib/StlE0IgwwreR5cQaHOHkXtF1oKm0Q5RqjSRW5eXzvyqFP buffVXBzY0UOwfaLRihRjPZPYMjZzYsULV4r3R9B3D1IiJCVUm12Lqa3uFXePadl4ZBF XM9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=GRoJ+EFAMDCBldUWKxdrcmfifQ+iiixFqGQFd9ZCTrs=; b=nqH5NjPzP3nI71VVhVCocR8iLL+NNAFu7ooPWXShYhesdUhLAXGjPb/5/49oBKqpEX 79Aan9xY81keI/N0ABY/TlGTXtCC5zJSD8digFVIImWOZ1gGtL9svtMRUBWnqYxW3hn6 UV6oTngl6/YszvKmB6ERVkxz3OTY/vze5dsJ9WjCQYPKaxOfqbr9ZXoS/JTtdDN/qics T71751Ph2B9qOcsoWzCRl/1ssM4W6Npc3p4+LCc1VMiL12w5BgvBXdF+r5vXidi3m+Qf 4e+qPLP0kSCo6WEzPFgIl11USRJOqnp6fF/CPUiV15SpEVr0WXkBLNUYvS8pgtFnt1qh wl3A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@KoCoConnector.onmicrosoft.com header.s=selector2-KoCoConnector-onmicrosoft-com header.b=EczAL7bg; arc=pass (i=1 spf=pass spfdomain=kococonnector.com dkim=pass dkdomain=kococonnector.com dmarc=pass fromdomain=kococonnector.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=kococonnector.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc30-20020a1709071c1e00b00730a21eaa9dsi7214915ejc.760.2022.08.29.07.57.20; Mon, 29 Aug 2022 07:57:46 -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=@KoCoConnector.onmicrosoft.com header.s=selector2-KoCoConnector-onmicrosoft-com header.b=EczAL7bg; arc=pass (i=1 spf=pass spfdomain=kococonnector.com dkim=pass dkdomain=kococonnector.com dmarc=pass fromdomain=kococonnector.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=kococonnector.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229723AbiH2Nv0 (ORCPT + 99 others); Mon, 29 Aug 2022 09:51:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiH2NvX (ORCPT ); Mon, 29 Aug 2022 09:51:23 -0400 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10087.outbound.protection.outlook.com [40.107.1.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3412C6C746 for ; Mon, 29 Aug 2022 06:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CgOhqgu5iscm4gt7Ykx5OCIawifBg6DXsWxYKOuZruW8KBkZXx5ElX0Kf2SKPgOd2y6XwJsl/oNI4oWALZFSH38m+agFpsBRGTI6vwBzUsFJNFnN52qmzjTRE0R3Z9GyeGTfQAsnA1zwyDNBbvOpcZYO9wJNgY7vqbrkpNxn/xHzvPY7HSpcCJWK/GrHYhfyaB8FL5VF2PtuuMXp4s8fZc5JgtAZW4vTEMQ5u2N9RIHhAzQeEK5iMjT/ah5S5lPcvPL1knknQ/Jn7Ahklwj79BGVeKkVTW1xpQ+I/IywZg0RtBOxioGb0T3HY1cGsFN1pTwTUQ2b98/0zMbItBaWdw== 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=GRoJ+EFAMDCBldUWKxdrcmfifQ+iiixFqGQFd9ZCTrs=; b=keroc2lLEE1HsoJlGM02vKd+ptmaXtRsgVHsXsahsA3zhH7AWORnkuZCWVIjzWt2UeAUAmb7bgrXnqMXXe1S1SXywAf5IIM2MninO0cFVTHyqKtrOZGJ7fBpdyP/zCS5BCtW1lqvpZwagdb++H+qNkrX6simbh5xDt0uROtSh3EaapfoNTQayy2bqm6zop/xH5TT68CrOqZmBRYFtI4jRl5PwPDPl4BVr7j83GbabkcozHNXpSenfEPSf4uV5Q61j88uy+ch2I+8sJXwSkHmOblII2KrHWBFw0vMXAgBGDAySTEkqKWaq5uSQd837A9hQZCr/PDf92yANfj5ykIEfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kococonnector.com; dmarc=pass action=none header.from=kococonnector.com; dkim=pass header.d=kococonnector.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=KoCoConnector.onmicrosoft.com; s=selector2-KoCoConnector-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GRoJ+EFAMDCBldUWKxdrcmfifQ+iiixFqGQFd9ZCTrs=; b=EczAL7bgFYiR6cZ9PVvvDe35Kbjs+Nuw1cYBVWeq1pND6jVNARtAeELr9R27BfPfb3c9znYs29qqhn67VGhr7KQeYbI2ggGfc03f+dqwUWfxaijE+ni+2WmnVl+UgSEgfOBfrCrWYxUJKfRS6nu4nq7rToqNZ20l/HFfPhWpNO4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kococonnector.com; Received: from AM9PR09MB4884.eurprd09.prod.outlook.com (2603:10a6:20b:281::9) by DB9PR09MB6012.eurprd09.prod.outlook.com (2603:10a6:10:3db::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.14; Mon, 29 Aug 2022 13:51:18 +0000 Received: from AM9PR09MB4884.eurprd09.prod.outlook.com ([fe80::e1da:7a91:5add:b775]) by AM9PR09MB4884.eurprd09.prod.outlook.com ([fe80::e1da:7a91:5add:b775%5]) with mapi id 15.20.5566.021; Mon, 29 Aug 2022 13:51:18 +0000 From: Oliver Graute To: shawnguo@kernel.org Cc: oliver.graute@kococonnector.com, oliver.graute@gmail.com, Anson.Huang@nxp.com, aisheng.dong@nxp.com, Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] linux: imx: imx-scu: increased scu message timeout Date: Mon, 29 Aug 2022 15:58:04 +0200 Message-Id: <20220829135804.12632-1-oliver.graute@kococonnector.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: FR0P281CA0001.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:15::6) To AM9PR09MB4884.eurprd09.prod.outlook.com (2603:10a6:20b:281::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d2b7643e-e664-4fb9-0b52-08da89c58c8e X-MS-TrafficTypeDiagnostic: DB9PR09MB6012:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sS7nzgICvrrgTAJkWgM4YziPckoszWWPtXSzIX2S9beUL6QQfj3N5r4maqZBWD38rfiT2nMDH0vguOi6swe8WmP4PTZLzzIfbeXb2y6Za41rmrx58Y8V6fjDa7omkfo3k3eql7Wxwh3XJd6Wa25GDN1wpZoLRAs6+ZlkG1IgI9y8dvDvQuovTBHqQsT8eV/68tvls08p3DLQliBsDRL8lus+BaXmhPZSDA3cn5B0t5zMBbtUD4lFulA1Q0m956oSASSuZirO5H8dKs5V67TSBuNA7N8Nbj5/eODnak8SNu0xkX583PEkbOOvfivUgGM3Czk4A+7zfRcNBa15S2/RBBLQLuM2PNaZvrQqkIgihNZUhzyri9eO8YEAh10mULlyge0NCrAK++TyPd8hYejX6psKrYVJsqtSceL78eBCDyGGvYIMbingULcB9DwsC0TM4mP8uud6hkdTZi/E4X+WYkiXp3CBiweYuhzBiinkDNNWQOgWDbNECBjPRryFzGWPH60ulTELU1f3CTja4qhyBO7WVUvyVmOghj7bS63rJYpR+30921UYvjONTAfdSRTzZk4xe88F+2UCP8b7uFeF+pqDkhikSPHn1cWtfCTsVKlybVA1S7pvAVRDs65UWu2UeNiXfG5mc6tjEKTm1PK9bVg6+HbxD6mM950VqtVQg3mt4E/skHTsSdTNf7ATB2Zcmqbm/ImB8bio3kC+YToF8ofymneS7VFEgEnieeZ+d7zwmjOC4LooZXTDyyNEBVCd8ox3vi4WA28q5L91+TlasgEC9Kbpys5QtCVVwLn8eGioiD8qlpyiJqypKxMl8HiN X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR09MB4884.eurprd09.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(376002)(396003)(39830400003)(366004)(136003)(346002)(6512007)(86362001)(26005)(52116002)(478600001)(6486002)(6666004)(6506007)(41300700001)(186003)(38100700002)(83380400001)(38350700002)(66476007)(1076003)(2616005)(54906003)(7416002)(15650500001)(66946007)(5660300002)(66556008)(8676002)(8936002)(4326008)(316002)(2906002)(36756003)(6916009)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?+bNqGtOedD11XMz2M1xlKjjBJah/sAdO9azTJ9Es2k/P/nddv0uWRAb9JRJ2?= =?us-ascii?Q?PTLogeSmpqPnLo+jT2EQ6Hj6KmIEjTxIe6PDOkuC+OVPRYl6TcdAXNxwnQVA?= =?us-ascii?Q?mmC3FPq4cvX2v3A3bSJWc3CQ8vxa7mO0l9+GmVmc7FqH43zJm0OkWeowlowI?= =?us-ascii?Q?wDlIjKC5sT2NZVNOkoudwXRAU0tJ20P6EjCuadsN/hfE2pHwIFr8gcl+CeQj?= =?us-ascii?Q?4H/fg4OEa2dR32UP9itL8zqekmJEwa8F9/zc+Q+w6yEEk/9yc/rqsP5nm8AS?= =?us-ascii?Q?aiFGhAeJ+GPMVOmLrjy36x9LVZSCr0iJ80P4InU2XLZ2KlyPE4jzhq0oRHxz?= =?us-ascii?Q?gbcONfb5xA5kBItS9OZrG328D1Lz+PHXsRM9g7ldI8KPqujfwQadkiYe0eim?= =?us-ascii?Q?RBZ76KmsEYwu1iLYIM2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Bw?= =?us-ascii?Q?YAxxW5b9nQrIyYHBOjkgeCX/8gOWnSsUR/MraZ8t2lCMiZTb+WG+MNZ/MsNV?= =?us-ascii?Q?INBrUwiFcZXLnBlQZqMS1JukqDCofmsiTFlx5ml/32pAtgCm9tj1RHYP8g+e?= =?us-ascii?Q?+HCCa/zrwIfy7qveqynUtcipY5YswcsOR2aRAbWm/T4q7xSoPjwsOEx0/CTs?= =?us-ascii?Q?0k3ijDT+EiKzDMrb02Rg6TgHeyALJ3r6IksGdHNA8mNgA8IbmiP+lXDNn8Et?= =?us-ascii?Q?WPnrfIEmen2rIq0fflqjdo7VKHgn5n6+uniCFHcdJ5JryJWDpi8VK7x+AtIq?= =?us-ascii?Q?BDQg8WZ5BmAL+snAZMNv2P4=3D?= X-OriginatorOrg: kococonnector.com X-MS-Exchange-CrossTenant-Network-Message-Id: d2b7643e-e664-4fb9-0b52-08da89c58c8e X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4884.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2022 13:51:18.7122 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 59845429-0644-4099-bd7e-17fba65a2f2b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mxBieBvREMYUdtCE9XIkaA4tV/4KO3ZXRzpHabSxBrgHSed/ts0FA3mtfjcJVIkmYYtxW/NcxlDJPnP+dgrUTo/tvSdUxxDJwrvoVst9QyY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR09MB6012 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With MAX_RX_TIMEOUT = 30 ms we observed some wired behavior of communication to scfw. After increasing the scu message timeout to arbitrarily MAX_RX_TIMEOUT = 1s these problemes are gone. a35_clk: failed to get clock rate -22 gpt0_clk: failed to attached the power domain -2 imx-scu scu: RPC send msg timeout gpt2: failed to power up resource 209 ret -110 imx-scu-clk: probe of gpt2_clk failed with error -110 imx-scu scu: RPC send msg timeout lpspi0: failed to power off resource 53 ret -110 imx-scu scu: RPC send msg timeout enet1: failed to power up resource 252 ret -110 imx-scu-clk: probe of enet1_clk failed with error -110 mipi_csi0_core_clk: failed to attached the power domain -2 mipi_csi0_esc_clk: failed to attached the power domain -2 mipi_csi0_i2c0_clk: failed to attached the power domain -2 mipi_csi0_pwm0_clk: failed to attached the power domain -2 lvds0_i2c0_clk: failed to attached the power domain -2 lvds0_i2c1_clk: failed to attached the power domain -2 lvds0_i2c1_clk: failed to get clock rate -22 lvds1_i2c1_clk: failed to attached the power domain -2 lvds1_i2c1_clk: failed to get clock rate -22 Signed-off-by: Oliver Graute --- drivers/firmware/imx/imx-scu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/imx/imx-scu.c b/drivers/firmware/imx/imx-scu.c index dca79caccd01..cef2bcea61e7 100644 --- a/drivers/firmware/imx/imx-scu.c +++ b/drivers/firmware/imx/imx-scu.c @@ -20,7 +20,7 @@ #include #define SCU_MU_CHAN_NUM 8 -#define MAX_RX_TIMEOUT (msecs_to_jiffies(30)) +#define MAX_RX_TIMEOUT (msecs_to_jiffies(1000)) struct imx_sc_chan { struct imx_sc_ipc *sc_ipc; -- 2.26.0