From patchwork Mon Nov 13 17:32:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ronald Monthero X-Patchwork-Id: 164574 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1361703vqg; Mon, 13 Nov 2023 09:33:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvzhJzfQiQag3UNmvKW0swqc9XlJqigo4cQjwHjPA/gmtc2sojRk/BcgeeAfK3byhG3EYM X-Received: by 2002:aa7:8b45:0:b0:6bf:15fb:4b32 with SMTP id i5-20020aa78b45000000b006bf15fb4b32mr244720pfd.8.1699896810448; Mon, 13 Nov 2023 09:33:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699896810; cv=none; d=google.com; s=arc-20160816; b=X+vclG83MmU/EgtvkOOWHbp8jyUXYoPRlbhQCHsOejVC9rR3Jsry+ROo50EjygboEz 00PyQX2V1AARRkkyBgrVgOo2IqkTGBuxx1c4gWL3xK5E7gDlaus5/3vODVIPOiBPB1L7 Iv1MxUJOwl3HUf4Op37tza3pAR4uqAR4dSN/2qpGg4KJoxiyIqzhefqH7tLpEzyu2iAd 9dcbw2s5tcSF7gxwIbnGLAnHM78vL6Fzij6l3yUb1f3WT55gWeo9QW8qQrJp4QyohhKt FZPbhvYv9FPTqcLOKbDkC/rv+cDT3RMvwQig6ERX6NTvQwNh+QAMAhe4tWRygV6WhK9j 81Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yIiFWyxFC1HOSVVyldmWbIpiXOMSUH/VwjcC908opxI=; fh=NPQw90lVETXkTJ45/C4hc61CmUY4FF0+5/DnlbEwMVc=; b=DFAb9XWrrj2Mqqk19AR8Ljlcu1Nsu9GYla31kShonlk40zdaMJu9/6tAYm7Rz1SybO 1lu7SnY8q7xd9xab68BDbNnlCDlb4CRZQ/8MSbxQ5qBCk0D7szpvrgH92T90+K711930 jgqSZdSfnv/bGcEEYKpl0Apcl0Mv1aAkYz68payZDoAtv79nVjipFLzGdnvW3yIK7+au oSrgHtS7kxbRdFMxSUzzDdik3LjOGxuATsIqKmwmiQBJcO7d8Qtc66LZz5cOfk+1+M1I 5W9LnKFpoXsjSroC8FMRF7Gx4WM0yklitSQjwO4sTO/9ePh/KGupPtG9vACcqmkNq+XE Gy2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=faE8HEee; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id fa14-20020a056a002d0e00b0068a85532963si6334116pfb.160.2023.11.13.09.33.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 09:33:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=faE8HEee; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4B9A780C65E6; Mon, 13 Nov 2023 09:33:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229847AbjKMRdU (ORCPT + 30 others); Mon, 13 Nov 2023 12:33:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjKMRdR (ORCPT ); Mon, 13 Nov 2023 12:33:17 -0500 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3135910E5; Mon, 13 Nov 2023 09:33:15 -0800 (PST) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-6bd73395bceso3606884b3a.0; Mon, 13 Nov 2023 09:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699896794; x=1700501594; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yIiFWyxFC1HOSVVyldmWbIpiXOMSUH/VwjcC908opxI=; b=faE8HEeeHZmXbsjJIHxT5JRiJ7LvFfL5mryTwj6JkmzjQU/VXN8WSixuBRA/D/5G76 f8Gry5eDZZbxts35YRGI1RRva0RwN+jEZRL0J+gILZBhTjsYTtLNC3GY7O9/ab2OhOKT viGIhajjjbm2zlL4GQjDDOhVInnUn8UGIEyCapA85rQY1GmGL4N8hQ9x/EwAYZwHDGGa Ol8oKbU75OQ36rCYZBAlO1C1FlGyCSLWsiKTmb2jZd2JsCtLSAu3PQzLUhhDXN86H/iz f4fgl51suzdbTcYxrzj3IXP5+TSieh5Ve3txdH1R6mMNkRmJFm2EFZNXEiZ2MpBxPTcX sRvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699896794; x=1700501594; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yIiFWyxFC1HOSVVyldmWbIpiXOMSUH/VwjcC908opxI=; b=ksweX+aulkXZU4cBH6ghIp0OA2bPjQWB9L27GJ7ZNORn2Ve+jbI94yI4FE/GiTgG6y NTALAEIbIpGQ9/FjSnB+Axbf0aOZuqgdEZbWuFEAPmj0CSmFANoYwLRQstEOdddEXtyP h+fbGAC1JKHdYNIOzSrlJPGsNX+sChLYzXNFty7h0/+17exDw5AM15neH27yXw3XpJu9 4jIlMyEuhVa+Of0zEO1rbPalFheYy2B9PX9KhmTBqpuIXgQVVBt0lZ/QORGqqOijalFk ROaWxZ0RWaNcx0BKr2XyxA805vTKTy77XxnN+KUQgkMsPCdQbFO6emGi1GKGWAu9FdZs yH8A== X-Gm-Message-State: AOJu0YyHQ1Tp6Ad+0zzhvYXDSqCoPt3srEqeiyDua2wysZVH9cLP3H8B q+9sfQ40t6q2ptNgWOa3+vu66/QxgoSutQ== X-Received: by 2002:a05:6a20:430f:b0:17a:f4b6:bf89 with SMTP id h15-20020a056a20430f00b0017af4b6bf89mr174764pzk.31.1699896794496; Mon, 13 Nov 2023 09:33:14 -0800 (PST) Received: from localhost.localdomain ([149.167.148.33]) by smtp.gmail.com with ESMTPSA id v65-20020a632f44000000b0058a9621f583sm4210456pgv.44.2023.11.13.09.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 09:33:13 -0800 (PST) From: Ronald Monthero To: miquel.raynal@bootlin.com, andriy.shevchenko@linux.intel.com Cc: richard@nod.at, vigneshr@ti.com, heiko@sntech.de, martin.blumenstingl@googlemail.com, paul@crapouillou.net, robh@kernel.org, u.kleine-koenig@pengutronix.de, debug.penguin32@gmail.com, AVKrasnov@sberdevices.ru, r.czerwinski@pengutronix.de, jaimeliao.tw@gmail.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Roger Quadros , Thierry Reding Subject: [PATCH v3] mtd: rawnand: Increment IFC_TIMEOUT_MSECS for nand controller response Date: Tue, 14 Nov 2023 03:32:49 +1000 Message-Id: <20231113173251.623268-1-debug.penguin32@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 13 Nov 2023 09:33:29 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782464783835693775 X-GMAIL-MSGID: 1782470997811737824 Under heavy load it is likely that the controller is done with its own task but the thread unlocking the wait is not scheduled in time. Increasing IFC_TIMEOUT_MSECS allows the controller to respond within allowable timeslice of 1 sec. fsl,ifc-nand 7e800000.nand: Controller is not responding [<804b2047>] (nand_get_device) from [<804b5335>] (nand_write_oob+0x1b/0x4a) [<804b5335>] (nand_write_oob) from [<804a3585>] (mtd_write+0x41/0x5c) [<804a3585>] (mtd_write) from [<804c1d47>] (ubi_io_write+0x17f/0x22c) [<804c1d47>] (ubi_io_write) from [<804c047b>] (ubi_eba_write_leb+0x5b/0x1d0) Cc: stable@vger.kernel.org Signed-off-by: Ronald Monthero --- drivers/mtd/nand/raw/fsl_ifc_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/fsl_ifc_nand.c b/drivers/mtd/nand/raw/fsl_ifc_nand.c index 20bb1e0cb5eb..f0e2318ce088 100644 --- a/drivers/mtd/nand/raw/fsl_ifc_nand.c +++ b/drivers/mtd/nand/raw/fsl_ifc_nand.c @@ -21,7 +21,7 @@ #define ERR_BYTE 0xFF /* Value returned for read bytes when read failed */ -#define IFC_TIMEOUT_MSECS 500 /* Maximum number of mSecs to wait +#define IFC_TIMEOUT_MSECS 1000 /* Maximum timeout to wait for IFC NAND Machine */ struct fsl_ifc_ctrl;