Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1519381pxb; Sat, 29 Jan 2022 08:18:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzC6CrVBXxviugwbhIFN/CK79snbtmiBIYtIHEfI9tLyE6WK0yOoFNKBHWKrypQVfcO6zuh X-Received: by 2002:a17:902:d904:: with SMTP id c4mr13421819plz.67.1643473113647; Sat, 29 Jan 2022 08:18:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643473113; cv=none; d=google.com; s=arc-20160816; b=v/MuGrqmmss19xV0TEGSaeSgHUhY16ivs8svbt8wGSjume6GeXJLIVEMc7/qS7+PuL KbJRSH/oPtH3VgudPw5i/74GffznYq5KYn5WtJwm02HnuVGbrntUwShlTOdLt3w9qZjl pqAXvgLQvg0yf178d3sYtPQLB4lDY7OWvneZsG7PLatsn9qizK1+RLRpgRX809Nlux5j rGsVf1XPEXLJLN7Y4iMK4I48haKnhtSSd7j4nCoJXzi79GXgKqWdwc8mtG6rs1sDlhvP w8oZ0qi1k0iEnJmlaRWut0118vkVvcahtp1Rk1+ESPZJsQKgk/6Sr5i8Q3w2d1pv6+7j oMZQ== 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:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=sGRYfm9zjSs8NIE4YgHz6D1qO6Z0hrHxKVC1Yjok+H8=; b=o6HT7ZaRud60h5tLv61LeKc/6tsa9gcqVsfRVsEq4EpiY1zDh4eaijTr2QmRDY2vYF 024v2K3vpFPuyOVku/x3zbdnn86VBIGk/Y8WPIjLE87KwKHPTF6336LXS1zR8brmvO+Y bmggv+Z2ySroh8/NFUiOgzPeS1A6ZBFn8zxgOzFdIhJ1DLg/8EKVQZvanerXEH3c9k/p /J9Y9nMjiuoP9XdCEGpw9y7o6P6P7ACv2vA1d9rZyct0MrRJB9pvE5BF8AlzbyJDZxrI fhV5BYr5duLj66d+8pYtf33WlZwZt+xpFBpqpN2Ymza+Foaw+uHx/AKV9eVzOQ5XyZbZ fZbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="u2/BdM5R"; 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 f18si6043449pfv.142.2022.01.29.08.18.19; Sat, 29 Jan 2022 08:18:33 -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="u2/BdM5R"; 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 S1346030AbiA1EZL (ORCPT + 99 others); Thu, 27 Jan 2022 23:25:11 -0500 Received: from m43-7.mailgun.net ([69.72.43.7]:60207 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230321AbiA1EZJ (ORCPT ); Thu, 27 Jan 2022 23:25:09 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1643343909; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=sGRYfm9zjSs8NIE4YgHz6D1qO6Z0hrHxKVC1Yjok+H8=; b=u2/BdM5RS1dKSlStlHEfwyJS0zkwnyLuWr4VPOz0ZLJF+sCKDLVPwoGMek8eQ55WnLIy3FLB dejhz8VNrWgT9cCxsgTVLMBr5uo+J4TTw9283+w1SGmhEo9q6+H+RvNKcIHOQWIuibo1vJ+O BMn+puQPN5lr0uxg1miKITHP0Pc= X-Mailgun-Sending-Ip: 69.72.43.7 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-n04.prod.us-east-1.postgun.com with SMTP id 61f37025d2de5dba98245d20 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 28 Jan 2022 04:25:09 GMT Sender: sricharan=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 055A7C43635; Fri, 28 Jan 2022 04:25:08 +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,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 E64C8C4338F; Fri, 28 Jan 2022 04:25:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org E64C8C4338F 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 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> From: Sricharan Ramabadhran Message-ID: Date: Fri, 28 Jan 2022 09:55:01 +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: <20220126114200.4cc3c21b@xps13> 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 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. Regards,    Sricharan