Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5206911ima; Tue, 5 Feb 2019 08:01:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IYJe+PyNzbTUncsJ0ya//NAw3nPuwFTPKG/AhI4s4LnwgGoi/li3WL03ZX6Z/bkA9hChQRH X-Received: by 2002:a65:64d6:: with SMTP id t22mr5222727pgv.52.1549382513655; Tue, 05 Feb 2019 08:01:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549382513; cv=none; d=google.com; s=arc-20160816; b=xoqRXOsV9tNk+xPYMDAgGykPcRE393md94yiwCG0WFKBxVlx9WUfnwG0FQdsTiOKiy 2ezn2qG6y7Wfw5aWK/BeNP85DReqw2mAW6ADeo6SNs8E7cHIe2iWXrnfksn5rReye+8v Ry2KZFFVOaW5N/zUFBXGo/aBMNHdaPEXlsG/9xOKrIHeQnvfXop9vixRzLD8Nuh3daeH inRuYC+Tn67hQonNYtWXHjOFHZsYV+RYhXzCxBSEyIUxUmIx7XaVbS+V1+yMTm3vBzTn w6uzMMpLwYAaclomjvD7OoL3vGRmUw6/Qsp0C8O6QEia5gtf5sGJH11th//7VfbdGT9B lybw== 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=o2lyay0uTbVBoe4xiTfy5VxKiOqBr975EBvWxqMzRak=; b=aSB7pXKwu39xI+ak7zc6uw4ot3FPojFqwWx1qG8d0qa0ZQFMhtpuTlUrSwsIhFHExf dousvXO2E2y9vmy4b97b69fOzPG9DtIFxfkovFX5y99Mgm1pW610zoc++SleMNCtXu8b Be0CJR1HrII50ph9/CsPW9H4VBBRCnvy8Lsk+7fxeDpofvYVK6avKie9KLB6ris0owUO NfxPKr5hJbdWFntL05qDbL7T0+uo7YEGEy874gZSqFK1UDlmhEwTUMwrwySJXqWknmBu J8eDYOpba+k1j61BL0ZdyAejFmeqZ5eT2riGH+bv69iwOwYO7CrSVhC4wX2q7FqYffzw 100w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c23si3428650pls.236.2019.02.05.08.01.27; Tue, 05 Feb 2019 08:01:53 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727578AbfBEOOo convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Feb 2019 09:14:44 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:40312 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbfBEOOn (ORCPT ); Tue, 5 Feb 2019 09:14:43 -0500 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:b93f:9fae:b276:a89a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 4551527FB12; Tue, 5 Feb 2019 14:14:41 +0000 (GMT) Date: Tue, 5 Feb 2019 15:14:37 +0100 From: Boris Brezillon To: Miquel Raynal Cc: Martin Kepplinger , han.xu@nxp.com, richard@nod.at, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kepplinger , Manfred Schlaegl Subject: Re: [PATCH] mtd: rawnand: gpmi: fix MX28 bus master lockup problem Message-ID: <20190205151437.33f4d990@collabora.com> In-Reply-To: <20190205135946.64eda55c@xps13> References: <20190129153700.18717-1-martink@posteo.de> <20190205135946.64eda55c@xps13> Organization: Collabora X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-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 On Tue, 5 Feb 2019 13:59:46 +0100 Miquel Raynal wrote: > Hi Martin, > > Martin Kepplinger wrote on Tue, 29 Jan 2019 > 16:37:00 +0100: > > > From: Martin Kepplinger > > > > Disable BCH soft reset according to MX23 erratum #2847 ("BCH soft > > reset may cause bus master lock up") for MX28 too. It has the same > > problem. > > > > Observed problem: once per 100,000+ MX28 reboots NAND read failed on > > DMA timeout errors: > > [ 1.770823] UBI: attaching mtd3 to ubi0 > > [ 2.768088] gpmi_nand: DMA timeout, last DMA :1 > > [ 3.958087] gpmi_nand: BCH timeout, last DMA :1 > > [ 4.156033] gpmi_nand: Error in ECC-based read: -110 > > [ 4.161136] UBI warning: ubi_io_read: error -110 while reading 64 > > bytes from PEB 0:0, read only 0 bytes, retry > > [ 4.171283] step 1 error > > [ 4.173846] gpmi_nand: Chip: 0, Error -1 > > > > Without BCH soft reset we successfully executed 1,000,000 MX28 > > reboots. > > > > I have a quote from NXP regarding this problem, from July 18th 2016: > > > > "As the i.MX23 and i.MX28 are of the same generation, they share > > many characteristics. Unfortunately, also the erratas may be shared. > > In case of the documented erratas and the workarounds, you can also > > apply the workaround solution of one device on the other one. This > > have been reported, but I’m afraid that there are not an estimated > > date for updating the Errata documents. > > Please accept our apologies for any inconveniences this may cause." > > > > Signed-off-by: Manfred Schlaegl > > Signed-off-by: Martin Kepplinger > > --- > > > > This is something we have in our tree for years and is running on > > production systems and I hope that this helps others too. > > > > thanks > > martin > > Thanks for sharing this. > > On my side the patch looks ok, maybe an Acked-by from Han would be > great? > > Reviewed-by: Miquel Raynal > > Boris, do you want to take this? If you don't have more fixes to send > I can queue it to nand/next. I'll take it.