Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp625516ybi; Fri, 24 May 2019 08:51:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoGxqpfL7pN3u+llPxSQ6Qa6aBJJwXdI7L40G4qj50cAXfIOWmMCOW4rSCdaPZKP653JR/ X-Received: by 2002:a63:f551:: with SMTP id e17mr11058663pgk.329.1558713096762; Fri, 24 May 2019 08:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558713096; cv=none; d=google.com; s=arc-20160816; b=q8JcZg9ByvMt8g7YSRytjj56p8d7k7dsQn/uevPN3+NhOyXNeZyIiRWjgO942GiSEV 7ASswSI3bAk5aSr84t6CbTKKfbCaid9HpM04uX2aM4AmfTJdiNwqO6v7kxl+JCkKOc88 +Q5uUqcG0biVWyuzIaPF5k1O1R1FPHKOblHKmRFWyZv9tCbkAUThy//cfzYD1idQ5AQ1 fZBKold0IBzxe/zRLbYxLKWraPuisyFGUnCykgy7X8Fu7R1kmwSIoJK1zRb7FnHduLvq bQzv4yHoxwT3IfrDdeBj8MVHkgVV3jotj1rm4DxqmEEgaP3Et28y/PPuaUcIMRWRGn7x RtPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=63cR10Yme75fuUtp+mYDzn8tFT+rwB1aV3PTtkS8xAs=; b=tBBeQc2L8aq8hN/7izeD6FtuhIan/+m3w3/T3M1JKlT3+5eFasGsWhpSwm/ofiAa/A 900o7ZNMJljpdZahRjoYj341YEwuBQ/0yHi8T1u1IQqQ39Eg5RBRIuVyifC1PHMW9K4N dhdtDJXymiWiVyxfIYHm/Y24gh4WX4lNgdr7BrhP2TgLt95Ybx6Oqvx7P5eRDYBj83/P 4Hl4EKG8dfI/euda/zdZroitCYFgmlI7Kgi3xB1oVqYQaddKE2UzRg8h+XiwBO+s8vnR voFYqGqRQ7WjGva8KCWIER2U+1vhdzAIzz14P3MEoWvvIVvwoUCq10Z5mrTl75JeVajp KexQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=I9od8GE6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15si4923115pfq.169.2019.05.24.08.51.21; Fri, 24 May 2019 08:51:36 -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 (test mode) header.i=@onstation.org header.s=default header.b=I9od8GE6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390346AbfEXPuA (ORCPT + 99 others); Fri, 24 May 2019 11:50:00 -0400 Received: from onstation.org ([52.200.56.107]:54660 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389870AbfEXPt7 (ORCPT ); Fri, 24 May 2019 11:49:59 -0400 Received: from localhost (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id B81873E88C; Fri, 24 May 2019 15:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1558712998; bh=wE008nmdMIJ1X3Gb62XmLrTtKKI/KWwzvPpHDDz1U4k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I9od8GE6a5uUN5eHfSjy5Y39lMjTk6Ryd8gsBJlrW3cz1+75/RY2WRaytdTdC8v1E osdrxr4Wb8DN3aakOG6M1NWM27D3bd0C7vVnvA+1oDdfcKfjgdYxN4KgwYb8Aep1fE HFkWtwy/TzcvoTapcnOKBmAyowHqRHqVw9VrLn3c= Date: Fri, 24 May 2019 11:49:58 -0400 From: Brian Masney To: Adrian Hunter Cc: ulf.hansson@linaro.org, faiz_abbas@ti.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] mmc: sdhci: queue work after sdhci_defer_done() Message-ID: <20190524154958.GB16322@basecamp> References: <20190524111053.12228-1-masneyb@onstation.org> <70782901-a9ac-5647-1abe-89c86a44a01b@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <70782901-a9ac-5647-1abe-89c86a44a01b@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 03:17:13PM +0300, Adrian Hunter wrote: > On 24/05/19 2:10 PM, Brian Masney wrote: > > WiFi stopped working on the LG Nexus 5 phone and the issue was bisected > > to the commit c07a48c26519 ("mmc: sdhci: Remove finish_tasklet") that > > moved from using a tasklet to a work queue. That patch also changed > > sdhci_irq() to return IRQ_WAKE_THREAD instead of finishing the work when > > sdhci_defer_done() is true. Change it to queue work to the complete work > > queue if sdhci_defer_done() is true so that the functionality is > > equilivent to what was there when the finish_tasklet was present. This > > corrects the WiFi breakage on the Nexus 5 phone. > > > > Signed-off-by: Brian Masney > > Fixes: c07a48c26519 ("mmc: sdhci: Remove finish_tasklet") > > --- > > See 'sdhci@f98a4900' in qcom-msm8974-lge-nexus5-hammerhead.dts for > > details about how the WiFi is wired into sdhci on this platform. > > > > bisect log: > > > > git bisect start > > # bad: [4dde821e4296e156d133b98ddc4c45861935a4fb] Merge tag 'xfs-5.2-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux > > git bisect bad 4dde821e4296e156d133b98ddc4c45861935a4fb > > # good: [e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd] Linux 5.1 > > git bisect good e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd > > # bad: [8c79f4cd441b27df6cadd11b70a50e06b3b3a2bf] Merge tag 'docs-5.2' of git://git.lwn.net/linux > > git bisect bad 8c79f4cd441b27df6cadd11b70a50e06b3b3a2bf > > # bad: [67a242223958d628f0ba33283668e3ddd192d057] Merge tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-block > > git bisect bad 67a242223958d628f0ba33283668e3ddd192d057 > > # good: [8ff468c29e9a9c3afe9152c10c7b141343270bf3] Merge branch 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip > > git bisect good 8ff468c29e9a9c3afe9152c10c7b141343270bf3 > > # good: [e2a5be107f52cefb9010ccae6f569c3ddaa954cc] staging: kpc2000: kpc_spi: Fix build error for {read,write}q > > git bisect good e2a5be107f52cefb9010ccae6f569c3ddaa954cc > > # bad: [cf482a49af564a3044de3178ea28f10ad5921b38] Merge tag 'driver-core-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core > > git bisect bad cf482a49af564a3044de3178ea28f10ad5921b38 > > # good: [9f2e3a53f7ec9ef55e9d01bc29a6285d291c151e] Merge tag 'for-5.2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux > > git bisect good 9f2e3a53f7ec9ef55e9d01bc29a6285d291c151e > > # good: [b4b52b881cf08e13d110eac811d4becc0775abbf] Merge tag 'Wimplicit-fallthrough-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux > > git bisect good b4b52b881cf08e13d110eac811d4becc0775abbf > > # bad: [d5f758f2df8015b8dcf47b6403cc192e4cef734d] mmc: meson-gx: disable HS400 > > git bisect bad d5f758f2df8015b8dcf47b6403cc192e4cef734d > > # good: [b3fb9d64b497b890f7b779a9f0b40b5cc269ea18] mmc: mmci: define get_dctrl_cfg for legacy variant > > git bisect good b3fb9d64b497b890f7b779a9f0b40b5cc269ea18 > > # good: [ade024f130f742725da9219624b01666f04bc4a6] memstick: jmb38x_ms: remove set but not used variable 'data' > > git bisect good ade024f130f742725da9219624b01666f04bc4a6 > > # bad: [42c38d4a1bc41e78dedbf73b0fb35e44007789bb] mmc: core: Fix warning and undefined behavior in mmc voltage handling > > git bisect bad 42c38d4a1bc41e78dedbf73b0fb35e44007789bb > > # good: [19d2f695f4e82794df7465b029c02b104d1b9903] mmc: sdhci: Call mmc_request_done() from IRQ handler if possible > > git bisect good 19d2f695f4e82794df7465b029c02b104d1b9903 > > # bad: [71c733c4e1aeb83e8221e89caeec893d51f88b7b] mmc: tegra: add sdhci tegra suspend and resume > > git bisect bad 71c733c4e1aeb83e8221e89caeec893d51f88b7b > > # bad: [c07a48c2651965e84d35cf193dfc0e5f7892d612] mmc: sdhci: Remove finish_tasklet > > git bisect bad c07a48c2651965e84d35cf193dfc0e5f7892d612 > > # first bad commit: [c07a48c2651965e84d35cf193dfc0e5f7892d612] mmc: sdhci: Remove finish_tasklet > > > > drivers/mmc/host/sdhci.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c > > index 97158344b862..3563c3bc57c9 100644 > > --- a/drivers/mmc/host/sdhci.c > > +++ b/drivers/mmc/host/sdhci.c > > @@ -3115,7 +3115,7 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id) > > continue; > > > > if (sdhci_defer_done(host, mrq)) { > > - result = IRQ_WAKE_THREAD; > > + queue_work(host->complete_wq, &host->complete_work); > > The IRQ thread has a lot less latency than the work queue, which is why it > is done that way. > > I am not sure why you say this change is equivalent to what was there > before, nor why it fixes your problem. > > Can you explain some more? drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c calls sdio_claim_host() and it appears to never return. I'm not going to be able to look into this more today but I should have time this weekend to dig in more with ftrace. Brian