Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp375462ybi; Fri, 24 May 2019 05:19:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp6udXEo7tdFfl2GmZgXzPCGDv7Irtv8aJn8iP+rlNLTXyDavFIgI7JSZvyVzaZJKcIPcc X-Received: by 2002:a63:6cc5:: with SMTP id h188mr44274156pgc.105.1558700343796; Fri, 24 May 2019 05:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558700343; cv=none; d=google.com; s=arc-20160816; b=g58FCWErgEIgf69N/W6X+vO8LpB3JOWzDyU+mjcal6j0Fp9GWKUDlxDh7531p7jjWR Xesec3oynSRjQIijHCSjwoEp3qSFb2fTPVUcrgTrhzRftv3ysqpYtjTXLrQY2guLHd0N 6MKZDItX2kWNhOLbiU5oMkng3ABYD1dCHdddohofWz6ZUqHEfzYliHe9KoztKTt2KTr+ mLE/xvhkuYHAusRXOJSGfWu0Hw2z20BH68iXmwRG4ahZwQ0+GfwDgshSqazp9qKr7RTs +XYumsVQCequgR9Blm+9D+zvswbuqi+dsJ7W8OA84wT8DK55c5mKFfKA4CWvvwvPYoDd WKdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=kQ81ZasrcOYLiQ9Yd3CDTXhw24S83JZAbw+a5tqB6K8=; b=Iyy4B8tn09fLwyIOauRMJW4OxnnVOvndKgKPO+3+4pevxath07JSMZgbHixvncomTo SRCXqQZctdHpIAVOQP8nZsyNF1oFo1sXgCtRot3OqsF0RSrD2mbnp3LW/rfVOqQWcCud 8HRc9zU3vwLJMp7WK/Y2xPnnBCDej6Hr24txMKxxAhIZIfhwfJk9g+3Evget++8O2Q/J ac8Q+aToUawG/kuwn5BoioqOlA05gi8ij4B/GQ+nvs31Ld53smpuKNjZjKy6XaWkvlzA wPni+VWdt8gcrndFkHA/daBnxIwDmIx78xUkiCTQoXtNMC0TAIVbtlyPLVJUniOljRK2 rh1A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si3767642pgc.472.2019.05.24.05.18.44; Fri, 24 May 2019 05:19:03 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391408AbfEXMRa (ORCPT + 99 others); Fri, 24 May 2019 08:17:30 -0400 Received: from mga09.intel.com ([134.134.136.24]:8125 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390961AbfEXMR3 (ORCPT ); Fri, 24 May 2019 08:17:29 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 May 2019 05:17:29 -0700 X-ExtLoop1: 1 Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.198]) ([10.237.72.198]) by fmsmga005.fm.intel.com with ESMTP; 24 May 2019 05:17:27 -0700 Subject: Re: [PATCH] mmc: sdhci: queue work after sdhci_defer_done() To: Brian Masney , ulf.hansson@linaro.org Cc: faiz_abbas@ti.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20190524111053.12228-1-masneyb@onstation.org> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <70782901-a9ac-5647-1abe-89c86a44a01b@intel.com> Date: Fri, 24 May 2019 15:17:13 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190524111053.12228-1-masneyb@onstation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > } else { > mrqs_done[i] = mrq; > host->mrqs_done[i] = NULL; >