Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2297906ybd; Thu, 27 Jun 2019 10:00:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyklvGaWt6lTUF9hby2kAknzyNdjckXA2uzl7LPWmIy+2TMZJinkc4+jNmsbT0oWa3WWJGa X-Received: by 2002:a17:90a:35e6:: with SMTP id r93mr7358739pjb.20.1561654825019; Thu, 27 Jun 2019 10:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561654825; cv=none; d=google.com; s=arc-20160816; b=Kj56FXZqEeaJg74BzmJz0ptBq/xEBQnAj0pwbUSYkpbPYQ47ay3h4NuZySNh58g5Ip e+3Zx4axOyywkMVsfD82MP9Twewm7BzeG24/D/POX0dVY4jOsfrPSFncdV0NQdM4v6jH 1xBOLUwWnmzSiMMh/El8QInzTM8PZBDMcwKBcGchxZ9XAS5ElTwqU+8TBqLFIqT4lEIh OStfgkBI2FPOwH6/7fY5xzCzQmpSkHU124/H9z6P4yAlHBBq6w9wQDF1E6gTD9e3hqsb I8GE2+i7JTzwcDcbYctEF2PNRlbBXrFrUEqCfm6yYar3sGX9qkQmtBYSJsT5TRKNkCk0 aGSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=IH0R0oxGbOBzbNJHBY8aV6DDi5LVA08b8d7H97KT5ZE=; b=UUGLL9KZS3Go+llgvM4b331X8Haq8PMAkNAcv8L6/v9mw36nLeIGaS/Q8gMaz3d26A c78x9ojU3/u0uaxMrkCUQ+o7MXeyCWDMoeignQe32l1a9Fs+icQFIA/9xxoOIN0TqIkh jfU8nKy9cCA+QTG8skjs2S80ND97qGoZufRW96nHjb13Kn2lo+aneIlJwtu0BAnXm73G Yk+j325ghMamg4TbCa1QbHGfTq0P9ji2ooF1tTjByx/yXQPriQ5TUHS0gGRkZ3pkLpjL ZahtD7q7gbvfLgE15MutGw1ciORBSASfjudZdm+HMH2f2W72Z+kxzZVCX3VWho1IiL5o 8ffg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si23602pjr.28.2019.06.27.10.00.08; Thu, 27 Jun 2019 10:00:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726561AbfF0Q7L convert rfc822-to-8bit (ORCPT + 99 others); Thu, 27 Jun 2019 12:59:11 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:58161 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbfF0Q7L (ORCPT ); Thu, 27 Jun 2019 12:59:11 -0400 X-Originating-IP: 91.224.148.103 Received: from xps13 (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 5789AFF813; Thu, 27 Jun 2019 16:59:04 +0000 (UTC) Date: Thu, 27 Jun 2019 18:59:01 +0200 From: Miquel Raynal To: Christophe Kerello Cc: , , , , , , , , , Amelie Delaunay Subject: Re: [PATCH] mtd: rawnand: stm32_fmc2: increase DMA completion timeouts Message-ID: <20190627185901.6247a77c@xps13> In-Reply-To: <1561128480-14531-1-git-send-email-christophe.kerello@st.com> References: <1561128480-14531-1-git-send-email-christophe.kerello@st.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christophe, Christophe Kerello wrote on Fri, 21 Jun 2019 16:48:00 +0200: > When the system is overloaded, DMA data transfer completion occurs after > 100ms. Increase the timeouts to let it the time to complete. > > Signed-off-by: Amelie Delaunay The first SoB should be the author's. Either Amelie is the author and you should use 'git commit --amend --author=..." or she is not and should be dropped (unless she sends the patch which is yours, and in this case her name should appear second). > Signed-off-by: Christophe Kerello > --- > drivers/mtd/nand/raw/stm32_fmc2_nand.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c > index 4aabea2..c7f7c6f 100644 > --- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c > +++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c > @@ -981,7 +981,7 @@ static int stm32_fmc2_xfer(struct nand_chip *chip, const u8 *buf, > > /* Wait DMA data transfer completion */ > if (!wait_for_completion_timeout(&fmc2->dma_data_complete, > - msecs_to_jiffies(100))) { > + msecs_to_jiffies(500))) { > dev_err(fmc2->dev, "data DMA timeout\n"); > dmaengine_terminate_all(dma_ch); > ret = -ETIMEDOUT; > @@ -990,7 +990,7 @@ static int stm32_fmc2_xfer(struct nand_chip *chip, const u8 *buf, > /* Wait DMA ECC transfer completion */ > if (!write_data && !raw) { > if (!wait_for_completion_timeout(&fmc2->dma_ecc_complete, > - msecs_to_jiffies(100))) { > + msecs_to_jiffies(500))) { IIRC I already asked you this but could you please make a define and at the same time make it 1000 ms, I don't see the point in being close to the maximum latency. If this is reached, your transfer was screwed already, there is no performance impact here. Sorry for the late notice but I will close the nand/next branch tomorrow, so I'll queue your v2 only if I receive it soon enough :) Thanks, Miquèl