Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5477562pxb; Wed, 26 Jan 2022 12:59:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHFcSYOWZ8QlKkTaMgV0BwgCuIfhd3uf8Ld6P6osz4Z2HuIMwOvg6FanATjce+VYDFpr+8 X-Received: by 2002:a17:902:c409:: with SMTP id k9mr839977plk.80.1643230766373; Wed, 26 Jan 2022 12:59:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643230766; cv=none; d=google.com; s=arc-20160816; b=ZJBdgXE75bhJeCM/Ex+byQAeoi9nRdlXtPJhrv0rk2z6VmAyeTvNcLfgULLBl41TlQ M3HINVFKOkQxTi0146a40XMcsJ/weaveXyD0M9b9jP+eZIF+kQHYJobeR/AmyKiQ5cjD JYM9Kuet4YjJGaSVt02K8CijWoX9vdfO70ra7h/1OmzP+gpZNDCpsRd48CmESvNBn2sb 9qb+co69PjMHVxAbv+MkInChlHpm3v0XH+N002p+QBrHl8WENVkowAyF4SQ1KDEcG07Q 7BlscoByT2HcWZngM4O/z+JT/tonNJPvRgeW48S3VWQyfPu0j6Srkh6cPXHCsm+rOzUc wm+A== 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; bh=i0epcsPk/FB6XWMC2IQ+Ca62moIzjZig6uiwWVSsH14=; b=jukWmjhp/GE0eN8rKWW4nWcHSLzelJXjQhFaZBWXCg/Lih/l6Sb7pMm3wtZtUd3xj6 GZ7aSS+fa8fK3pCU78CrzQrkhY4rOvPm58B3vCjJM1m3KQnzwsjehCnJOsnmctlUFnLy 32ULQvClwZGlNjo1jsktm/vwCjx0HYEN2FyxeqPCFyrFHlRte5L9qYp+W0kmrNumBFz3 b22vx7Iq2oxXX2vIRR9UL9g7+L51PJTroVlukNJhJXs7UCS/BqqKpdVt6f5edtKlcQ6V kK3Qxjggit7rg4Wz7ENLR5zMp36dnUidfIoSk3q2WCKZdwES6aIjqqamGFfsPw6zBmw3 Cc/g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bo22si3580614pjb.14.2022.01.26.12.59.14; Wed, 26 Jan 2022 12:59:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239751AbiAZKQZ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Jan 2022 05:16:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232071AbiAZKQY (ORCPT ); Wed, 26 Jan 2022 05:16:24 -0500 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [IPv6:2001:4b98:dc4:8::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4425DC06161C; Wed, 26 Jan 2022 02:16:21 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id B4238100009; Wed, 26 Jan 2022 10:16:15 +0000 (UTC) Date: Wed, 26 Jan 2022 11:16:13 +0100 From: Miquel Raynal To: Konrad Dybcio Cc: ~postmarketos/upstreaming@lists.sr.ht, martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Manivannan Sadhasivam , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, mdalam@codeaurora.org, sricharan@codeaurora.org Subject: Re: [PATCH] mtd: nand: raw: qcom_nandc: Don't clear_bam_transaction on READID Message-ID: <20220126111613.3ab0021e@xps13> In-Reply-To: <20220114082718.32a2fc83@xps13> References: <20220113184427.2259509-1-konrad.dybcio@somainline.org> <20220114082718.32a2fc83@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: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, miquel.raynal@bootlin.com wrote on Fri, 14 Jan 2022 08:27:18 +0100: > Hi Konrad, > > konrad.dybcio@somainline.org wrote on Thu, 13 Jan 2022 19:44:26 +0100: > > > While I have absolutely 0 idea why and how, running clear_bam_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 that > > 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! > > I'm adding two people from codeaurora who worked a lot on this driver. > Hopefully they will have an idea :) Sadre, I've spent a significant amount of time reviewing your patches, now it's your turn to not take a month to answer to your peers proposals. Please help reviewing this patch. BTW why is this driver still using cmdfund? It should have been migrated to ->exec_op() a long time ago. Thanks, Miquèl