Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp661096pxb; Tue, 1 Feb 2022 07:56:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqjTOfQfTTAu+YkniPPEOVmXiey8wPRZzbwhPRc5STkQKrZim+qpiulZi82Np2Wgy7vu/2 X-Received: by 2002:a65:680d:: with SMTP id l13mr21091497pgt.485.1643730969856; Tue, 01 Feb 2022 07:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643730969; cv=none; d=google.com; s=arc-20160816; b=fBURoDr9IzQd7bjDmrAwG6DJMPYQ1l+1lBjQCWT7eKhMTsjFLPpaMMaJswArhfGrP9 YDJ3jWcJWkpKw979zSIV/tFnLXNj4T4Z1cLmqONGIxHxM4Za9Twxt12FvZmVCKNYJiKC A2k0DwkGS6S4pIYyZL6VAdB+2QQZPKJnytiWblsJ0JfjO2N8sSuT58Q54AW6KRohxBfo epP9Vr/m8iWaWm8q3Nlu2zi85Rrc48aq0J1dXyymKAw3uj6zxQHNQGYdP5Xyz6aHeEJe qdWL9QmripR3nA8XVYQTHgpO89uRpfMpoBPB7upjsiEf2QVgxjboEmF5q+oEt2O/sC0Q YUJg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=HR7lv1T/atYm0h435spzd7hIdETqddhxHf3ercKSY/E=; b=dlxFw4ey/T8kjSl7Y6ELSERj9VvYeMTkvgsM3J5NMMwfVMvbbt6dt3oUSQ3XfNWUw5 hqJ1bQNQO60+sO5/hvLglHgBzQuD6T+lkIVTIU/JqldCQT7QVAxZyYu0L2TzwFJRZdQW Kii/dPkamPWqpcU2OZg3xnUMYUGPEDoz2QqU8UZJPjZJSsdTkWOjQzObdyq9vR935P3S WwMV43/8HznpmaTboh33enlbxQGA5xphGCWAVm/Wl2mOmZYfe59DjLFHdPP8dhdhDI9p tP+1RzkLQmE5ft3Hx8qyBCCvIUtJ0TeyHFghCn1l/fLXsDLGnRzlFYV9GgJK+iYYRWsY fHkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DzNdOWCm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si16173798pfd.162.2022.02.01.07.55.58; Tue, 01 Feb 2022 07:56:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DzNdOWCm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239406AbiAaJw3 (ORCPT + 99 others); Mon, 31 Jan 2022 04:52:29 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:40737 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232052AbiAaJw0 (ORCPT ); Mon, 31 Jan 2022 04:52:26 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 6669B100005; Mon, 31 Jan 2022 09:52:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1643622744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HR7lv1T/atYm0h435spzd7hIdETqddhxHf3ercKSY/E=; b=DzNdOWCmYphISup4FHoUxnP+Y0rM3AcJduH72xPTeetXuaDyW6CpnnOy2gWw7jwNSnwhDw hmmE6rrLvNVmSmIAWvJpuMoHM9tQNpLb+zNxxqdqMSkgRozdXHmWHHL4ErZGqgWomZf3Eb c1/R0olzTVt7FqaHwo6yyB00Wa4Ixm2rSx9wNhn4ozVAZYkRNqlSav/9dwmVLDDV4rnE0T 1Tm+ij2vAbmdcsKHSHI+Arh5YZ3I4jbxvXrCEQT/NeAQbMDppHzeT1+wAxVM3v9GPgmMnj JvlMkvH7l/KS8coCouqQCZ8dbjNK6DMuhfho1FBn5+AT8m0VgadRosascbuzVw== Date: Mon, 31 Jan 2022 10:52:20 +0100 From: Miquel Raynal To: Sricharan Ramabadhran Cc: Manivannan Sadhasivam , Konrad Dybcio , ~postmarketos/upstreaming@lists.sr.ht, martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, mdalam@codeaurora.org Subject: Re: [PATCH] mtd: nand: raw: qcom_nandc: Don't clear_bam_transaction on READID Message-ID: <20220131105220.167bacaf@xps13> In-Reply-To: References: <20220113184427.2259509-1-konrad.dybcio@somainline.org> <20220114082718.32a2fc83@xps13> <20220126111613.3ab0021e@xps13> <20220126103316.GA212068@thinkpad> <20220126114200.4cc3c21b@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sricharan, sricharan@codeaurora.org wrote on Fri, 28 Jan 2022 23:20:04 +0530: > Hi Konrad, >=20 > On 1/28/2022 9:55 AM, Sricharan Ramabadhran wrote: > > Hi Miquel, > > > > On 1/26/2022 4:12 PM, Miquel Raynal wrote: =20 > >> Hi Mani, > >> > >> mani@kernel.org wrote on Wed, 26 Jan 2022 16:03:16 +0530: > >> =20 > >>> On Wed, Jan 26, 2022 at 11:16:13AM +0100, Miquel Raynal wrote: =20 > >>>> Hello, > >>>> > >>>> miquel.raynal@bootlin.com wrote on Fri, 14 Jan 2022 08:27:18 +0100: = =20 > >>>>> Hi Konrad, > >>>>> > >>>>> konrad.dybcio@somainline.org wrote on Thu, 13 Jan 2022 19:44:26 >>>= >> +0100: =20 > >>>>>> While I have absolutely 0 idea why and how, running >>>>>> clear_b= am_transaction > >>>>>> when READID is issued makes the DMA totally clog up and refuse to = >>>>>> function > >>>>>> at all on mdm9607. In fact, it is so bad that all the data gets >>= >>>> garbled > >>>>>> and after a short while in the nand probe flow, the CPU decides th= at > >>>>>> sepuku is the only option. > >>>>>> > >>>>>> Removing _READID from the if condition makes it work like a >>>>>>= charm, I can > >>>>>> read data and mount partitions without a problem. > >>>>>> > >>>>>> Signed-off-by: Konrad Dybcio > >>>>>> --- > >>>>>> This is totally just an observation which took me an inhumane >>>>= >> amount of > >>>>>> debug prints to find.. perhaps there's a better reason behind >>>>= >> this, but > >>>>>> I can't seem to find any answers.. Therefore, this is a BIG RFC! = =20 > >>>>> I'm adding two people from codeaurora who worked a lot on this >>>>= > driver. > >>>>> Hopefully they will have an idea :) =20 > >>>> Sadre, I've spent a significant amount of time reviewing your patche= s, > >>>> now it's your turn to not take a month to answer to your peers > >>>> proposals. > >>>> > >>>> Please help reviewing this patch. =20 > >>> Sorry. I was hoping that Qcom folks would chime in as I don't have >>= > any idea > >>> about the mdm9607 platform. It could be that the mail server >>> migr= ation from > >>> codeaurora to quicinc put a barrier here. > >>> > >>> Let me ping them internally. =20 > >> Oh, ok, I didn't know. Thanks! =20 > > > > =C2=A0=C2=A0 Sorry Miquel, somehow we did not get this email in our inb= ox. > > =C2=A0=C2=A0 Thanks to Mani for pinging us, we will test this up today = and get > back. > > =20 > =C2=A0 =C2=A0 =C2=A0 While we could not reproduce this issue on our ipq = boards (do not have a mdm9607 right now) and > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 issue does not look any obvious. > =C2=A0 =C2=A0 =C2=A0 can you please give the debug logs that you did for= the above stage by stage ? Thanks for stepping up, it is really appreciated, good luck both for the debugging. Thanks, Miqu=C3=A8l