Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4895578ybi; Tue, 30 Jul 2019 10:00:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlwp0syEkW2LqnhmF89/k9oSKyKGrKF3Wi/APK69mtaP2PamoU/h2QBuIaRHdh90nnAeIh X-Received: by 2002:a17:90a:bb94:: with SMTP id v20mr119600160pjr.88.1564506059140; Tue, 30 Jul 2019 10:00:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564506059; cv=none; d=google.com; s=arc-20160816; b=DYQycF+Ne6Ox1KNxZwZHl7BudGDySMXFF6a39RRp/Gx4+K5BdOK/PU8NSq7AB/zIr6 YeZx7OnhNAtDFW6kpaFTDk9Rc3FEpc1ZYtRGXJ0Vm66lMKkxiMk1xeruCqBgezttHaAP kwqiMADbhFvy7q9BUsxWpRe8BbGcpNuMIF5cwPVL3cqi+1SNq19wGgNsQy7YX4iOsmcv ynY38FQGC2tyQ9O+qHt6Exa9hTxFTTUG577G1k4lwDxi7YSY5rEt/2u6ribFt07XwiZG Vp+Mv8UDAj2khDidXPI8xgdpZhWmjONPDll/K7TrU7L0ggkJBh4fhPA/vkcFnveL58DM OXPw== 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=thfSVMX6+HwxM/ty44YHwCabreMvWV/+Gb4a/AYAosM=; b=izLje6WnWjUyziw74dKOYWNSnCiootNes48U4+HFZF0r+vSbRvEubC+uuaA3aeqUts qDQLNBRyxt4DozAASsmL8fa7ErTJsWWx/fbbNJvZMiKaLWPfpSu1ezBXs9pY80cfDr4h lAPIEeemWBheCvPn2A0h4OucC96hUSioNPZejuK4YoiM1vY4hLfluH+/c9mW6tWtSKWR xKiY63Jt7DIqdYLCr7moFY2ijXrR3JT59YZ2AZSa1O5RjQ4DPP5vzfXa9yJlKUmXQ7EU LbfHgkFSTCHN70fgvRbfh7QGTZ7E7hIjNi3ZQgmYdZwWPTEKDaZ48/YmgQJIC/kz1sDa 3SnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="QDZk/EFU"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i188si29619341pfe.96.2019.07.30.10.00.44; Tue, 30 Jul 2019 10:00:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@chromium.org header.s=google header.b="QDZk/EFU"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727236AbfG3Q76 (ORCPT + 99 others); Tue, 30 Jul 2019 12:59:58 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:40595 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfG3Q75 (ORCPT ); Tue, 30 Jul 2019 12:59:57 -0400 Received: by mail-io1-f66.google.com with SMTP id h6so4563325iom.7 for ; Tue, 30 Jul 2019 09:59:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=thfSVMX6+HwxM/ty44YHwCabreMvWV/+Gb4a/AYAosM=; b=QDZk/EFUsh6U0OHs8YqCvTgja17nbMT2Y0sFIVcZgyTwIhEIGARc0EvYjU0bNaUDDw DhykaLBu959pAPwvEWt43vHt5h7OAeSRBBZov+gZsctSFuksXsHKukwZRmShoDWKA+8I wItHBj4PVtGEm32bkk7ccUJxqF53Ib3OaAdy0= 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=thfSVMX6+HwxM/ty44YHwCabreMvWV/+Gb4a/AYAosM=; b=MyVyUl2s1IpSDsWza50jWyIOK23TJ33BuNU3J2UNbGhJ2q7BneCQQ8Lm5gvA5WWqzC 1waLFVjXPUas5ZOIbof7oAo5PDbIzFenJOzLVYHoqsdHXdZ44+eKlhJ8ylJPLzG8UXLL I09MNfQEDSRsT95297v/FdFjk/sAz8fIosgaFRcglqkgfxu1gQ0ItU+PFEHoX5pStVDO x4bM7gIXE4+gcHYYBf0NK7wa1VuCW6b4d/QBWpT3HOrwJmuXG/AHzeZzqw0vQVXGaikF 92GtCe66qHTXc3cJF57TxJDxSw9L492D5ueDN6OxPnqW4s3Y5yOjjv20Dj+Zt99L/hkF 6P3Q== X-Gm-Message-State: APjAAAUMzbMp1PK+uqIV7PiFTm6JmWZkzDbrxZ6wb0MY/7d5MgehhaYu A05PsUOcXY5v03WvGaWudx9GC2LSZww= X-Received: by 2002:a05:6638:627:: with SMTP id h7mr90992883jar.33.1564505996932; Tue, 30 Jul 2019 09:59:56 -0700 (PDT) Received: from mail-io1-f54.google.com (mail-io1-f54.google.com. [209.85.166.54]) by smtp.gmail.com with ESMTPSA id e22sm49744692iob.66.2019.07.30.09.59.55 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jul 2019 09:59:55 -0700 (PDT) Received: by mail-io1-f54.google.com with SMTP id e20so99340948iob.9 for ; Tue, 30 Jul 2019 09:59:55 -0700 (PDT) X-Received: by 2002:a02:5b05:: with SMTP id g5mr116310299jab.114.1564505994931; Tue, 30 Jul 2019 09:59:54 -0700 (PDT) MIME-Version: 1.0 References: <20190722193939.125578-1-dianders@chromium.org> In-Reply-To: From: Doug Anderson Date: Tue, 30 Jul 2019 09:59:42 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/2] mmc: core: Fix Marvell WiFi reset by adding SDIO API to replug card To: Andreas Fenkart Cc: Ulf Hansson , Kalle Valo , Adrian Hunter , Ganapathi Bhat , linux-wireless , Brian Norris , Amitkumar Karwar , "open list:ARM/Rockchip SoC..." , Wolfram Sang , Nishant Sarmukadam , netdev , Avri Altman , linux-mmc , David Miller , Xinming Hu , LKML , Thomas Gleixner , Kate Stewart Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, On Tue, Jul 30, 2019 at 1:47 AM Andreas Fenkart wrote: > > > * Sometimes while I was testing I saw "Fail WiFi 1" indicating a > > transitory failure. Usually this was an association failure, but in > > one case I saw the device do "Firmware wakeup failed" after I > > triggered the reset. This caused the driver to trigger a re-reset > > of itself which eventually recovered things. This was good because > > it was an actual test of the normal reset flow (not the one > > triggered via sysfs). > > This error triggers something. I remember that when I was working on > suspend-to-ram feature, we had problems to wake up the firmware > reliable. I found this patch in one of my old 3.13 tree > > the missing bit -- ugly hack to force cmd52 before cmd53. Thanks for the reference! At the moment I'm not terribly worried about this particular failure case (compared to other failure modes) because it's rare and it self-heals. ...my best guess, though, is that the problem isn't exactly the same. The "Firmware wakeup failed" is a pretty generic error message, kind of like "something went wrong" and not all instances of this message will have the same root cause. I actually dealt with a few suspend/resume issues around mwifiex recently though. If you ever uprev, you might be interested in: b82d6c1f8f82 mwifiex: Make resume actually do something useful again on SDIO cards 83293386bc95 mmc: core: Prevent processing SDIO IRQs when the card is suspended -Doug