Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5030077ybi; Tue, 11 Jun 2019 17:44:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqnZ0i/fMqAsbblTT5yMS0E1i5mpZ/ybKH6brmZSAeb3IrWWEfgJVeNJRqIo9PChRToFDr X-Received: by 2002:a63:5014:: with SMTP id e20mr21468437pgb.2.1560300285959; Tue, 11 Jun 2019 17:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560300285; cv=none; d=google.com; s=arc-20160816; b=gJxaCaCr+XI0g508m2lZF90LzQCX2+f3+MndcH0yflHbEflireeHZq/FYuPM4X8Snl wODB5/aMY6wYm8ih0RPPehJZxgTlNN7CFDHkAtMVFF9iUDNdM98iuvCDMFfxzsEYmf5P wSNJiGeBRoi2Z0j0ejKueLkj5/tUkHNEyX9bBK2q7sa4VMkGdNXEwqKYNXY5ry/WqWZU vsHE19OFdPIwy94iq9Unz7F/oPLrVrw0GU5ZpfOden4xQJ6+J3XlUXDpFbgzUjnL9c7o 3rXwsofkadekGIlt2ykoaPfWWcu5uKnjiXvkJI30fyfjEvso8eUYg5T8uBHP7i+QUgNj OIyA== 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=RV2XZvKeHCt5ppTVA2xtZpaWuI8ggUAA1z+9Dn7I/C8=; b=cUoIKpMRX9yvzGtj20jqRwMn0gSale0Q12JiJb4QhhWvbgdpME+2rqH8QHKmbLpm/a IF6eRQaWScLmjiu/qC3rSmKDVjyYVw5QwcaX64OAh7iMD0SNNqlYgWMof8loEwMOZU3r yDd4pk5ZNWQdbBO9lKtUW4RmH7/u99n2QxQqYJbQu87Xov+9GhsBvuJujYNo4EMP/dPq KUbjZSUNk25kXG0C0zir0795AVDelGp/vfcJs1D3b9uB8vBo9YMWme8Xb+YJYD15/oXk GKqJFP24rsmWLMFR2aCtdTNmzc0RJyVY6VdmnGZuaLxmZ8JUQHyZLw16vws01a5Quy0S Hdhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B9H34ToU; 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 m15si13788668pgl.300.2019.06.11.17.44.30; Tue, 11 Jun 2019 17:44:45 -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=B9H34ToU; 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 S2405581AbfFKUDd (ORCPT + 99 others); Tue, 11 Jun 2019 16:03:33 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:39977 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404557AbfFKUDd (ORCPT ); Tue, 11 Jun 2019 16:03:33 -0400 Received: by mail-it1-f196.google.com with SMTP id q14so6854707itc.5 for ; Tue, 11 Jun 2019 13:03:32 -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=RV2XZvKeHCt5ppTVA2xtZpaWuI8ggUAA1z+9Dn7I/C8=; b=B9H34ToUen3Bo1fx+8TmCQkb87rnYGQ7Eq9zOIQOakZliffIiP4mWASY+VN4UOjh/i Ew7jPQTWiPn3s/F1RF/sYQAsNqQgAjxIOgkAf2mGSAWcLKe3mTqNg0Qf7DEJPKb6c8FO NadVfE8tysk8WhnB+Y/Al8R8Pw9/KSf929Ii81Wh7AB4AVzK6H+Chb132JzJpmEgm0k0 XRzr+jKmPCs+QV47JyA0iIs0WA8T5xM+BEzZOIFnuRun6ov0lW1BlmuqqEt4rHXfug83 wvC/fx8J0BI/RW6Pi4X4Kp7DXwvcTxy63ctb3n8SczAYmi9cpNsm7qZjpJGesvcikdyG glyg== 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=RV2XZvKeHCt5ppTVA2xtZpaWuI8ggUAA1z+9Dn7I/C8=; b=oHLmZwOGv1cpTGnUObL6aHdwvlx8fg3wjdgzPWtWLwBDypOta6ClONXrydFmh2Jf3Q Tvf7onR1NYkNexH8ZKHjfJ8RT7x/sX2/mxI44Ky6/GG6UBC+gKpsokgRPIEgNLGiUj+K ZHxI24icBevPFw59B6xwG37JndY80Q+j1HMvVpowvh7b3ui1TrGh4hFvyFMBoDz/ZkCR Y0is/+OGfeq2ho/vHCkQDWE2dObYfErn1/NSzhArKwVKz1d5XZo+IFLjF4EhEhy8437o sdq4pbzMqE4t0iDhq665E0CId+LAahy+W9bzOl5v24p6NVRazvGZHtMx47UOLs4H8JM3 bb5g== X-Gm-Message-State: APjAAAXBhHtd+fuT5VSBuYirZV51Q705+GW1o83dZlpu1DPxwA0tlWc4 Gin110rU1LNG8oHLw6JbOuBLAdpat06iljUElAE= X-Received: by 2002:a02:7b2d:: with SMTP id q45mr48125056jac.127.1560283412476; Tue, 11 Jun 2019 13:03:32 -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: Tue, 11 Jun 2019 16:03:21 -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 Richard, You have any other review comments/concerns with this patch, if not can you please sign off on it. Thanks Kamal On Fri, May 17, 2019 at 7:56 AM Kamal Dasu wrote: > > 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