From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l3xgV-0005U2-9u for barebox@lists.infradead.org; Mon, 25 Jan 2021 08:57:21 +0000 Date: Mon, 25 Jan 2021 09:57:17 +0100 From: Sascha Hauer Message-ID: <20210125085717.GC31738@pengutronix.de> References: <20210120125107.736121-1-andrej.picej@norik.com> <20210120125107.736121-4-andrej.picej@norik.com> <20210121091128.GG19063@pengutronix.de> <435bb8a9-96b8-4a09-1a42-19cc77e42ebf@norik.com> <20210122081215.GM19063@pengutronix.de> <65415553-750c-810d-7902-b1052d764bec@norik.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <65415553-750c-810d-7902-b1052d764bec@norik.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 3/3] ARM: i.MX: xload-gpmi-nand: apply errata 007117 To: Andrej Picej Cc: barebox@lists.infradead.org On Fri, Jan 22, 2021 at 10:47:09AM +0100, Andrej Picej wrote: > > > On 22. 01. 21 09:12, Sascha Hauer wrote: > > On Thu, Jan 21, 2021 at 01:23:16PM +0100, Andrej Picej wrote: > > > Hi Sascha, > > > > > > yes, unfortunately we have. We applied this just because we experienced > > > hangs in device booting tests. After this patch the NAND booting problems > > > went away. The booting failed during DMA page reading. > > > I just tested this again and after excluding the changes in this patch the > > > device fails at executing DMA commands. The boot fails in approximately one > > > out of 10 boots. > > > > Where exactly did it hang? In the xloader or later in the real barebox > > driver? > > You probably mean that it hangs in the xloader. Sorry to ask, but I'm > > still trying to understand. That would mean the ROM leaves the GPMI in > > an unusable state and I really wonder how this can happen. > > > > Sascha > > > > Sorry for not being clear enough the first time. You are correct, it hangs > in xloader. > > Maybe some additional information that may be relevant. When we boot barebox > without PBL support barebox boots without problem and NAND behaves normal, > so i guess the ROM sets the GPMI in usable state. > Just a thought: could it be that the problem is in xloader and we somehow > repair or reset the GPMI with this errata fix, so it works with xloader? It could be that the ROM changes parts of the clock tree after having loaded the image from NAND and before it jumps to the payload. It might be that we would have the same problem in the real barebox driver if we wouldn't reconfigure the clocks anyway in the clock driver. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox