Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1011870ybk; Fri, 15 May 2020 21:18:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY3Hb9GYrWM+CeTus54UEMlhqU0XZreJQA/nsx0XBiYZ+2PCSy7aYLPTEeQK9KPMgZB/i/ X-Received: by 2002:a17:906:c10f:: with SMTP id do15mr3443388ejc.249.1589602683726; Fri, 15 May 2020 21:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602683; cv=none; d=google.com; s=arc-20160816; b=a4emPy91ud66b1ftVyGw9w7RLKDKt1RbrG1n+fr56NAGtiPALVrW8L7JUVHk2mN5Lc stXc1/ce6nSJAWgrfALNU9hVSIdEQccXGZ1Li2NicOTOfyFIo9bamg1qCGrg5TbxkvdZ vsLUvQzwWVKOiGt+P2PzYLdH4ylC7DhqaQonmvU1Oqkc805TWEgYwk2DiDINVa4o/DZ2 vzWflMdLroK/XtusVQOWy012MtMv3M2aVgwitJmwCO/XDgMvCK4UszCTt/coDjkBpzcu hCsinjGeoCmKPVdOyFxmZXlc5/RTjhZ9Am36QBvJ7ZhTLiHqOeB3s5e5vjGsRBIgPESG XhbQ== 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=EuAgvOaqRInTUNhLQNW9x4ROuhA10g3Sfi1G9i+YTz0=; b=dcygEgPanehc3L7TVhwW74/O+5m0vSAh+OfRArRWyfhLg3t5D0MZjzsr81+hryc/ee 1G/FVuYOsShyg5D10rpcVAObIdKNGf8Cd7kZ56ZymwakfI5nukbarvZhJbM/zapuDZ4E QA9pWHCvVrfOgAz9W2UikoQHtdzxmvch/Y4TvHICjTdAcOlP/he7iyqw/oqAyejjmyCE jQPl1p0xM3zryOQTUxPiS5kUqMlpHwc8whDQMwzBJ2i3dPEVCeqfddo4ONP0SyFbxdGC 59aHWnpl/3e8Dt5EM0K85UT4cVD4A181xmI4nfIc4/ovNxv2o3DRNQOQMBYiRI/nMRTr 0ecQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bLmqVZ2D; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h10si2389210eja.307.2020.05.15.21.17.40; Fri, 15 May 2020 21:18:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@redhat.com header.s=mimecast20190719 header.b=bLmqVZ2D; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727006AbgEPEOK (ORCPT + 99 others); Sat, 16 May 2020 00:14:10 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:23429 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726406AbgEPEOJ (ORCPT ); Sat, 16 May 2020 00:14:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589602448; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EuAgvOaqRInTUNhLQNW9x4ROuhA10g3Sfi1G9i+YTz0=; b=bLmqVZ2DH/V4fDaZqwsjzk94dKpQ1qQ7VJyrzTzaq5kxYT9AqqX+07ci7cfN5xdIQkEW90 XnoZvE5ob8cHoY5NvQGJwormy885IkcaXHo1jOtNGJnHVNicKIKLOgMNrinKYAmXoTaYAh hH2DPQhR/LMI5jJaq7qBI4oArIZ58tE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-248-iKzLjf_JMVikURnUgz8A6w-1; Sat, 16 May 2020 00:14:02 -0400 X-MC-Unique: iKzLjf_JMVikURnUgz8A6w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 97882835B43; Sat, 16 May 2020 04:13:59 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1199C3A2; Sat, 16 May 2020 04:13:47 +0000 (UTC) Date: Sat, 16 May 2020 00:13:44 -0400 From: Rafael Aquini To: Luis Chamberlain Cc: jeyu@kernel.org, akpm@linux-foundation.org, arnd@arndb.de, rostedt@goodmis.org, mingo@redhat.com, cai@lca.pw, dyoung@redhat.com, bhe@redhat.com, peterz@infradead.org, tglx@linutronix.de, gpiccoli@canonical.com, pmladek@suse.com, tiwai@suse.de, schlad@suse.de, andriy.shevchenko@linux.intel.com, keescook@chromium.org, daniel.vetter@ffwll.ch, will@kernel.org, mchehab+samsung@kernel.org, kvalo@codeaurora.org, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, Lennert Buytenhek , "Gustavo A. R. Silva" , Johannes Berg , Ganapathi Bhat Subject: Re: [PATCH v2 15/15] mwl8k: use new module_firmware_crashed() Message-ID: <20200516041344.GO3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-16-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515212846.1347-16-mcgrof@kernel.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, May 15, 2020 at 09:28:46PM +0000, Luis Chamberlain wrote: > This makes use of the new module_firmware_crashed() to help > annotate when firmware for device drivers crash. When firmware > crashes devices can sometimes become unresponsive, and recovery > sometimes requires a driver unload / reload and in the worst cases > a reboot. > > Using a taint flag allows us to annotate when this happens clearly. > > Cc: linux-wireless@vger.kernel.org > Cc: Lennert Buytenhek > Cc: Kalle Valo > Cc: "Gustavo A. R. Silva" > Cc: Johannes Berg > Cc: Ganapathi Bhat > Signed-off-by: Luis Chamberlain > --- > drivers/net/wireless/marvell/mwl8k.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/wireless/marvell/mwl8k.c b/drivers/net/wireless/marvell/mwl8k.c > index 97f23f93f6e7..d609ef1bb879 100644 > --- a/drivers/net/wireless/marvell/mwl8k.c > +++ b/drivers/net/wireless/marvell/mwl8k.c > @@ -1551,6 +1551,7 @@ static int mwl8k_tx_wait_empty(struct ieee80211_hw *hw) > * the firmware has crashed > */ > if (priv->hw_restart_in_progress) { > + module_firmware_crashed(); > if (priv->hw_restart_owner == current) > return 0; > else > -- > 2.26.2 > Acked-by: Rafael Aquini