Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2744913pxb; Mon, 31 Jan 2022 03:27:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4lRIi3SNjzxMJJKfWO/6HdMLAT4ovjClkQsgFQ3SwM/np/C3GLws+p74/lCV6X9+0tuJM X-Received: by 2002:a62:b618:: with SMTP id j24mr19731488pff.42.1643628441451; Mon, 31 Jan 2022 03:27:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643628441; cv=none; d=google.com; s=arc-20160816; b=TYwD3YZ5yg+dnBqm/7epIvjCGW2hh3zRA/kMxdd/S3AuqWsDEaMwgb6gdID15hnb3v ox+AtgN25/9CrATCKoYuQ8cGDmV82+JMUuNSSeJ0XDhfZ+y/JaCUQ6MfeUsztOZgIkQH IexnbJazSDaXL8qI0y9rLAf1Ly0FtWnU4LeKYdhw+eOy7agUCRMAr1xBxl9K0vaHqCfK 5noVaA3BKKhguIlfkUtnL3LH2PBBaOW7O06IgSTCw6oYbYKVXlEdE1tC2paIDhlPJSxf r4lyyPaAEP6JBItOJCW+YbwZ61cdCDxPVzcGWbametbsYilGRGGOXsmfTnzx8jtnr8Gt 0YrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dmarc-filter:sender:dkim-signature; bh=QwXJRec32Sfdr000R0mnPj2fV22XnG1mt0t4eMsdDmw=; b=amwYbUjOpcIWZ+vwYYebss6BoetGkVgANFagjVPXTVQEMjnI36X3P2xN0XlBg+Gr9K Xs+dtxmH+p8xPQSf061ODfZeUgY+OyRek4pqy4BS0ItECGJhGtztllwkD1I80lNxeiNq MCHOQPsX4fcGhFk0s0yyaVERBQeXaJtxo9E8DMEj6w9B/wcaGEhreqV8f2A5IQ1bF9R5 cxl4cDx1pvGk5XN5MjKzc617USSwSjFbrnuMjtPi+X8aRCCL7VMRkz3WdP1wB81atdOy 9MlUQJQvj5JfrVYzgTnbVgvl5Dw5rSb3pJZ0HpChF9TnBNt039B2YL2eZBXc6ie4U94f 4mgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="JkCbSE/N"; 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 135si13990626pgc.430.2022.01.31.03.27.10; Mon, 31 Jan 2022 03:27:21 -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=@mg.codeaurora.org header.s=smtp header.b="JkCbSE/N"; 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 S1348820AbiA1RuS (ORCPT + 99 others); Fri, 28 Jan 2022 12:50:18 -0500 Received: from so254-9.mailgun.net ([198.61.254.9]:62307 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348039AbiA1RuQ (ORCPT ); Fri, 28 Jan 2022 12:50:16 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1643392216; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: References: Cc: To: From: Subject: Sender; bh=QwXJRec32Sfdr000R0mnPj2fV22XnG1mt0t4eMsdDmw=; b=JkCbSE/NJjRcpw/XNeGPW2YT2MBCgU0OJcvv9t49AsolYJnOV9PfkriDrqsdwRvLyaV4ltNT hqQZNiTkvlAnttFFd9L8WV+wyZ+5QQxorgq/M4wxd2kjAah/q9O6WO6oiquKj2QdT77kfMgK ecZsaGGH2Iu7/StzoVzmES0sqXo= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 61f42cd562864ab101f6c3d0 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 28 Jan 2022 17:50:13 GMT Sender: sricharan=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id EB8ACC43619; Fri, 28 Jan 2022 17:50:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.0.104] (unknown [183.82.28.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sricharan) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7CC9BC4338F; Fri, 28 Jan 2022 17:50:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 7CC9BC4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org Subject: Re: [PATCH] mtd: nand: raw: qcom_nandc: Don't clear_bam_transaction on READID From: Sricharan Ramabadhran To: Miquel Raynal , Manivannan Sadhasivam Cc: 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 References: <20220113184427.2259509-1-konrad.dybcio@somainline.org> <20220114082718.32a2fc83@xps13> <20220126111613.3ab0021e@xps13> <20220126103316.GA212068@thinkpad> <20220126114200.4cc3c21b@xps13> Message-ID: Date: Fri, 28 Jan 2022 23:20:04 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Konrad, On 1/28/2022 9:55 AM, Sricharan Ramabadhran wrote: > Hi Miquel, > > On 1/26/2022 4:12 PM, Miquel Raynal wrote: >> Hi Mani, >> >> mani@kernel.org wrote on Wed, 26 Jan 2022 16:03:16 +0530: >> >>> On Wed, Jan 26, 2022 at 11:16:13AM +0100, Miquel Raynal wrote: >>>> 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. >>> 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 >>> migration from >>> codeaurora to quicinc put a barrier here. >>> >>> Let me ping them internally. >> Oh, ok, I didn't know. Thanks! > >    Sorry Miquel, somehow we did not get this email in our inbox. >    Thanks to Mani for pinging us, we will test this up today and get > back. >       While we could not reproduce this issue on our ipq boards (do not have a mdm9607 right now) and        issue does not look any obvious.       can you please give the debug logs that you did for the above stage by stage ?   Regards,       Sricharan