Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1010675ybk; Fri, 15 May 2020 21:15:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf5Q7H8TCl6M9DYR4RIcK38txvig1uhWplT9eJFXYrNWu16AF3hBP/Y6k688Y3+E7apo2r X-Received: by 2002:a17:907:41dd:: with SMTP id og21mr5683279ejb.368.1589602508022; Fri, 15 May 2020 21:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602508; cv=none; d=google.com; s=arc-20160816; b=wxKy2GQSdd56PbAke4gtYNVyFtlXIbeyGGr8r15pl+8aeyC7CH4m5ucUAJGCD5txGI 4tPHfW+OGxVciU6gCR6UG889H+xQHzx+3ndTxsIyWKZzIJf8dxycEFvOA2AHpRYxtKC0 Ez4lhPpLjsTvIWHvfhRpHS+d/vRrCqyJm0/op6xYb59mSjONWjDZdvdrTZSkVfQzm9WC dEyeiGVguHcP9+xZ+CaoB4GymixDVeLpThyieJuINVR7pgSBBxBmEDPgANTI1XP2U/iC 55uPVONUYpNfDMmMhmpIreWPwhqfsI93ohsmvk6fc/XdPB+H1cL6Gss9T9R2MNl1D5+w +BGw== 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=0bdKPgDfEqRHaFGgl0l5EeNjW2TBnfhGDrlpUieGoaY=; b=BTGED8pfnZIDc/orIynUBiJTtY7pelv2Whhs1bNho2mhILQ0C4SX9o0SX81XaxSf6i MQ1nfd28nWAXYzWfckfzgSY2HX8y2OqcUQwbcElXqPiaXFRIgiXQevcsU40+0NNUQeLy 3p7pNpSz9jwNjm+j3PRtt1M88DhJmyNmHVp+iOtQf6K4tuVoPvRAUwmRrF6L46WqGReu h/Gw9GO21PDJ9CyzJpfwrCTQ75BuvTPeyRdSu8+NDmH0DfO7kTCvAkNSY8YAJb+wNm3N zueHhAbCD93yfPWTR1FWSsw3g8EQnkHJ5ximDbNTG7fvqxJBvK8oKQjcO2dnPuaTHl3c /yuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZgvgHP2x; 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 p23si2618315eju.299.2020.05.15.21.14.43; Fri, 15 May 2020 21:15:08 -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=ZgvgHP2x; 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 S1725885AbgEPENK (ORCPT + 99 others); Sat, 16 May 2020 00:13:10 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:51550 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725934AbgEPENF (ORCPT ); Sat, 16 May 2020 00:13:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589602384; 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=0bdKPgDfEqRHaFGgl0l5EeNjW2TBnfhGDrlpUieGoaY=; b=ZgvgHP2x0ESak87U9hXzdM3vfjhacFwEeDrFC8pmbRWlqjIZdA/ww+G+s/vB9ROPxaloIa YlSrOkLLwKWG1cvZapZ0wKJD1y5q6r3wFC9vXFz74CZuOOv5uycakRHKbU4KheSjOzV4PV fUW6gRr4uRvM24SExFB4yT5zgVNim7w= 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-356-rxgNGu-MNmaHc0lwQ6C4lw-1; Sat, 16 May 2020 00:13:00 -0400 X-MC-Unique: rxgNGu-MNmaHc0lwQ6C4lw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4CE45BFC2; Sat, 16 May 2020 04:12:57 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AFC4F5C1B0; Sat, 16 May 2020 04:12:46 +0000 (UTC) Date: Sat, 16 May 2020 00:12:43 -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, ath10k@lists.infradead.org Subject: Re: [PATCH v2 13/15] ath6kl: use new module_firmware_crashed() Message-ID: <20200516041243.GM3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-14-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515212846.1347-14-mcgrof@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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:44PM +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: ath10k@lists.infradead.org > Cc: Kalle Valo > Signed-off-by: Luis Chamberlain > --- > drivers/net/wireless/ath/ath6kl/hif.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/wireless/ath/ath6kl/hif.c b/drivers/net/wireless/ath/ath6kl/hif.c > index d1942537ea10..cfd838607544 100644 > --- a/drivers/net/wireless/ath/ath6kl/hif.c > +++ b/drivers/net/wireless/ath/ath6kl/hif.c > @@ -120,6 +120,7 @@ static int ath6kl_hif_proc_dbg_intr(struct ath6kl_device *dev) > int ret; > > ath6kl_warn("firmware crashed\n"); > + module_firmware_crashed(); > > /* > * read counter to clear the interrupt, the debug error interrupt is > -- > 2.26.2 > Acked-by: Rafael Aquini