Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1755372yba; Fri, 17 May 2019 04:58:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwelG21DZSEAhX0J1WrBYU9bdxB2msp7+baZHEPi7+89GSu9WfnVOpk0WHmqnz+Ue1KIunY X-Received: by 2002:a62:3381:: with SMTP id z123mr62254438pfz.42.1558094315861; Fri, 17 May 2019 04:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558094315; cv=none; d=google.com; s=arc-20160816; b=VqJ4JAoAnvU+m4+inhvHvvS4ye+mSDHUPLmeq9hVqmITShEk6gb0hF9xKPiN+5ARuh SwHN9gK9kKqpHhisQEcWk9ZvCZba9OafTbxHp6uO8TyRiT7mf/d7848jwq9LVweNQbaL snDvVu1lyJa14PK6HDO1cEEGPDdmSd4sZJFNdCcrdDArBf/8rtUkroJ5GntInmL9sAV7 hj/eW1PE+gxq+4BlICkPXWqmt/cWe1j9+9xJTtTa33kYL80/oSvAyvNFbhJFtfdNPLVR 6nZYeTS23fX+uU+kXMnEjve3WWtY3PEtEwtiy/fnn606F37AYozbEMGlaY7wWZxmc1KD zrEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CA1QgtL8vOu+blk28g43ESoyKQjrdUgm0/mMdKslbwI=; b=jFyMcG8FCc68BeLoXTQugB2UB26YxUiQRElkjOusgt+VhgzEduJ8guzl1BNwTSvVZR xG7IyjL0tr13P2d9rBWc07WJbJoNc5M+I1+qMK0dpuCOASbsv36npICrIDNBxzZkr1vK HNDPTyX7MkbuxgP6c4gX6tjHvp7hGf3JMtOJxY+JQmA/s3q6Fr76kBDYr2wVlzO0xkpr ELq9c+BwlTivirsT379rARI5qAT5zpHsm95DcPTzuXqjb3OEkQ3N757de+imqxq1vVc6 cbk6XM9rd4pVX1r2fL0UYG5cLHzhtPgsIgNvAn70SCxbbQQtEz3ahh4ktuvnLP+EHb+b m8ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m+abuiCU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si4450968pfr.52.2019.05.17.04.58.20; Fri, 17 May 2019 04:58:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m+abuiCU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728851AbfEQL4P (ORCPT + 99 others); Fri, 17 May 2019 07:56:15 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:37241 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727727AbfEQL4O (ORCPT ); Fri, 17 May 2019 07:56:14 -0400 Received: by mail-io1-f68.google.com with SMTP id u2so5250311ioc.4 for ; Fri, 17 May 2019 04:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CA1QgtL8vOu+blk28g43ESoyKQjrdUgm0/mMdKslbwI=; b=m+abuiCUQOIh/qk/pVf/2UgQvs4lGmH9qCd1ZGSbqAU43C5rMnpZZysuLCIvNqjLQA 87UWsCglPydE4JDOUkakqnPU5kEvIdYTqG3iL0GsDlcuRtiOuy7Ar8NMVoQHztL3W+Bt 0n1WIlfK0eKU7TwxOBwd3gLz/LCwrn/7yiRj8gr1+dqsZnmhMrOqmPkeNBJpo94ijifG emoszrtzIKzFdAmFP488Z0uClSgQf6Eu1EoyUUVVLG0Mst5A8+FNLjx8GwHW0+KT8viB T77kKAR08xTPlRd8I9Q7fUdmexzP29xTCorVjCuFTDy2mDU/EvQmsV2WbW0IuDPWklYC C43g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CA1QgtL8vOu+blk28g43ESoyKQjrdUgm0/mMdKslbwI=; b=C24DIIJbvRjhZ3Mwq4jwj+IHUgPv/fpqwYmrsIxBafr6MoIHTsowetUrH3sJoDipry IjZIJdQozCDjl3wyUa5Eedf7XZubyg3VKgAI0V1S4cFOlIGsotG8rS21k9Rf/Cz+w+FE zX6zIvnvdZ2lXVrQCc9MRqm4ANH+UPDozt8NA17K4bDUSz3sqgkbfdrd/jZ0wDacGINs tPHSj3J3kTfikJT4z73Gnv5tL3M4KjxD5MGz9puATwurQflcRO8Vlp8wdDVmrEaE7clY aeF5fHpTm9d0yqjPIdkEbnnDQZIwDX2TdeLD8/V84tC6wNxOp9VYd0coGhdtrSSQFC4c +ukg== X-Gm-Message-State: APjAAAVnitDpb7L0U64FIR3uirAEApwUZV6pvSmw8tFYmFT9NFLqEn2l OISIDUo9M1STTabt2VEPqN3+2AYemX1bIbMn2xdpAQ== X-Received: by 2002:a6b:3b88:: with SMTP id i130mr16477327ioa.21.1558094174033; Fri, 17 May 2019 04:56:14 -0700 (PDT) MIME-Version: 1.0 References: <1558024913-26502-1-git-send-email-kdasu.kdev@gmail.com> <1558024913-26502-2-git-send-email-kdasu.kdev@gmail.com> In-Reply-To: From: Kamal Dasu Date: Fri, 17 May 2019 07:56:01 -0400 Message-ID: Subject: Re: [PATCH v3 2/2] mtd: nand: raw: brcmnand: When oops in progress use pio and interrupt polling To: Richard Weinberger Cc: MTD Maling List , Vignesh Raghavendra , Richard Weinberger , LKML , Marek Vasut , bcm-kernel-feedback-list@broadcom.com, Miquel Raynal , Brian Norris , David Woodhouse Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 17, 2019 at 4:12 AM Richard Weinberger wrote: > > On Thu, May 16, 2019 at 6:42 PM Kamal Dasu wrote: > > > > If mtd_oops is in progress, switch to polling during NAND command > > completion instead of relying on DMA/interrupts so that the mtd_oops > > buffer can be completely written in the assigned NAND partition. > > With the new flag the semantics change, as soon a panic write happened, > the flag will stay and *all* future operates will take the polling/pio path. > Yes that is true. > IMHO this is fine since the kernel cannot recover from an oops. > But just to make sure we all get this. :-) > An alternative would be to block all further non-panic writes. Capturing the panic writes into an mtd device reliably is what the low level driver is trying to do.If there are non panic writes they will use pio and interrupt polling as well in this case. > -- > Thanks, > //richard Thanks Kamal