Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3326340ybz; Mon, 20 Apr 2020 00:04:20 -0700 (PDT) X-Google-Smtp-Source: APiQypLUx8wh1CFWCW/2sILcGAoqB1AuWyJLofQH5hLZHWjQReUp0d8ON9bAbHLcF2JpXft6KpXI X-Received: by 2002:a17:906:459:: with SMTP id e25mr14863953eja.379.1587366260031; Mon, 20 Apr 2020 00:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587366260; cv=none; d=google.com; s=arc-20160816; b=UFZ8xrVuAhKRumFanbZchBCO4Vdg6YH0Vdqcy0QbI1YucUwEFLfT6mJ6hdsUc18RSr FYLjbl1U0BaUy9RPKs6IBMpmaMHsiRQfiXxWzHySGR5moyumr5/Arefa9PvlZlVqJK7/ N6943MPasQAwd1/rk09U5+yo63YCxp6oYeDVjr8FRFL3jGlBOSQmZIuoRV3XqOIU83LF 8sDkp6ZQD4v1NUrrFHLTAntPTqf1yd42O43KjFiPIKVX22/32U2WiUyOjTDkz96EiJED hmU03nZMRN3OmJId0+cznVCZDlLoqQ+GXLl/Ik1SLgKlVgjllve7D9HlNNBDV1dg8IPU +VfQ== 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=BNLp6+Gsbqdw+yeE2veHuTXUKvMYmfTKb4PTArDW8Jg=; b=SG3eZWKYktU6kAtx0/TqdsG5xBbl/E6oK269k4/CoFwwTlLheiq8s4so7Uw/Ie41n7 hHAOPrvr2QiAjGdUI/DLtX0pB6r2Gy4sdGVVa+5Qh+BbNvumeyyUFtL2H6HhbuE7a02q cP3/qFn4cgfrtJMZzcu9PXFbshLmv4BVKN7SeNkuht6S02haQ2B8zF4iRtBvOQP+8V2U eUP5PnJnS/83M4k0gHA+tEXNKl1s99sQ0rBDYr3CK1xJeDk8B1s6QZUquWRxK7Ap2auO d2cGdqnFsMO8FaX89UkJyWtb1IOEuZyBJFn/s5NWKdn2ijJBnmVqFpahMiGsTpKTqo8B BUzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="L7fR/GkT"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb8si6513ejb.96.2020.04.20.00.03.56; Mon, 20 Apr 2020 00:04:20 -0700 (PDT) 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=@linaro.org header.s=google header.b="L7fR/GkT"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726049AbgDTHCN (ORCPT + 99 others); Mon, 20 Apr 2020 03:02:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726006AbgDTHCM (ORCPT ); Mon, 20 Apr 2020 03:02:12 -0400 Received: from mail-vs1-xe43.google.com (mail-vs1-xe43.google.com [IPv6:2607:f8b0:4864:20::e43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CE7EC061A0C for ; Mon, 20 Apr 2020 00:02:12 -0700 (PDT) Received: by mail-vs1-xe43.google.com with SMTP id y185so5306090vsy.8 for ; Mon, 20 Apr 2020 00:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BNLp6+Gsbqdw+yeE2veHuTXUKvMYmfTKb4PTArDW8Jg=; b=L7fR/GkTpewbsAps7RKRuWYf+NNZDSy0hbHYUxnqot+bJG1LVvhyjdr511thwzxM6B /92BfD9yixIJ/mjHt+bantd4QKvPXVlJ0hN6wT3PF2MKEWywX3JYk6NtQ66v8STIo6EU yiQt5o84kdRUXRZPOqiRCs+vJX93kEJD6l87VLCswb+JLGQEd65DQJUbwmeQ2blUayRz kKMb84g0Q0zkM5oRuWQ3GaI5NS42bFtD3b0QZJntIYyoBbUsYOS1lIW7Eek/Vw1LzAqw Snxtr6alJ98BYmb3qwaI65XTPLgpZ8UqsvuxMBjKllNJHnxZHd4AQ/7Vz51AUMuQ8K+r O4NA== 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=BNLp6+Gsbqdw+yeE2veHuTXUKvMYmfTKb4PTArDW8Jg=; b=cJsx1opG7ccGxVv9FF+xIo4nd5I4sgAlr0SEqTWWjzzP/oqpJDXLm4KmOMyXIzQfcm Nk3CtPd+c3tVe9fCvvpcIFs/n7FKZNap5CfTy6AQWZ976cEKDHZpL2eQsl0XYiaXn7gM gDw5sX7mvJAOODgVpJ/MoiUSNqQInaV5Wro9+bDfFoSUet3n18btGgybodATjX3MJzAE 5i0vT4YMa8IjM4j8XbLjDYFJml5JHwWkI8Jz7R1/o8jtFT5/ZZGfp+iyzWQjQt3lAvbt HaxeuAD/GN9mb9NHZ1rbStpsyWr4GLB49YEVDDmO+SDi5FuRvpci0IOahF5ZXn2diGYd JQjg== X-Gm-Message-State: AGi0PuYaNAO8gbhj+DGZ3Ho56SyIyU5PXab7Zna8pk0DGFxYL5q1o19i 2mZPYmfGti/a46yZ6S0+UBMR49Po27MhqYlLajgCfQ== X-Received: by 2002:a67:8b09:: with SMTP id n9mr9999698vsd.191.1587366131112; Mon, 20 Apr 2020 00:02:11 -0700 (PDT) MIME-Version: 1.0 References: <1587150844-12003-1-git-send-email-skomatineni@nvidia.com> <20200419072030.GB3544449@kroah.com> <6911ee08-1376-a515-9393-1ebc6cc6a255@nvidia.com> <20200419165204.GA3697430@kroah.com> In-Reply-To: <20200419165204.GA3697430@kroah.com> From: Ulf Hansson Date: Mon, 20 Apr 2020 09:01:35 +0200 Message-ID: Subject: Re: [PATCH 4.19.113 0/3] Fix for long operation cmds busy detection To: Greg KH Cc: Sowjanya Komatineni , Adrian Hunter , "(Exiting) Baolin Wang" , Kate Stewart , Thomas Gleixner , Bradley Bolen , Faiz Abbas , Thierry Reding , Jon Hunter , Bitan Biswas , Aniruddha Tvs Rao , linux-tegra , Linux Kernel Mailing List , "linux-mmc@vger.kernel.org" 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 Sun, 19 Apr 2020 at 18:52, Greg KH wrote: > > On Sun, Apr 19, 2020 at 09:23:39AM -0700, Sowjanya Komatineni wrote: > > > > On 4/19/20 12:20 AM, Greg KH wrote: > > > External email: Use caution opening links or attachments > > > > > > > > > On Fri, Apr 17, 2020 at 12:14:01PM -0700, Sowjanya Komatineni wrote: > > > > This series includes manually backported changes that implements Tegra > > > > specific timeout callback to switch between finite and infinite HW busy > > > > detection wait modes. > > > > > > > > sdhci-tegra driver patch implements set_timeout callback based on one of > > > > the sdhci host driver patch that refactors sdhci_set_timeout and allows > > > > drivers to call __sdhci_set_timeout with their timeout callback > > > > implementation. > > > > > > > > Both of these patches are manually backported in this series. > > > Is this a bugfix or a new feature? I can't tell, but it feels like it's > > > a new feature. What's wrong with just using the 5.4.y kernel tree? > > > > > > thanks, > > > > > > greg k-h > > Ulf recent patches for increased timeout adds capability > > MMC_CAP_NEED_RSP_BUSY for sdhci-tegra as well. > > > > So, it will always use R1B for R1B type commands so there are no known bugs > > or failures with mmc devices we use on our platforms. > > I have no idea what this means, sorry. > > > So, we can treat this patch as an improvement for long operation commands > > where HW will wait as long as device is busy. > > Ok, so this isn't a regression and can't match the stable kernel rules, > sorry. Let me help to clarify. This isn't a regression, correct. However, the patch fixes a long outstanding bug for sdhci-tegra. For some SD/MMC commands, the mmc core may provide a long busy timeout trusting the mmc host to cope with it. It has turned out that sdhci-tegra didn't, thus it may report a cmd-timeout error, while in fact it shouldn't. I believe that is what the small series of patches should be addressing. Kind regards Uffe