Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1011282ybk; Fri, 15 May 2020 21:16:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyol5l5ejTQzKl45dCeYw8fVmgEZL/l2dAgnGfmHKM5vmQCZy6jfdkLVDr2vP7OlFXeN4q/ X-Received: by 2002:a05:6402:30b4:: with SMTP id df20mr5674039edb.158.1589602592753; Fri, 15 May 2020 21:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602592; cv=none; d=google.com; s=arc-20160816; b=QxlV+dGKZJf4BDRKAXNcuDssBWT8yPMQLFeBByV8SD7xuB7j3U7K5KqCvhlmlc9HNu z/ojxCJLhmw57N5FgL7gaxly4+O20sii58tU3b2hyAlr2IZLO+Aj46EOzxmhrLDFvR1t CEG605Q180gQPkD0t8lA97iHdYBLI8VO7DmUhs8Oz7VtLoFKYX0f/pESaju4jgibFVAo iDqx3YXNXkS/o7ld/7gM0nm/rau4YL/fPnswT6hjMXut1kJnrSl1iu/2AC71iF/oxRX5 mJhpX/IoKPGFtLy+BMZNsaVn1m6cDDLmoPIMB2+2vnXKuJTwVcRU1nciFzCefJQawlAx 4MdA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2C8j4i4cIMoVQxBLJB+gQw/ICcPRRsENYdtc77zibQ0=; b=vLX69pIN7cu9qWiUB2LsyYpeqpQ5JDCEoZci+tO30kIMxAZeV/4ITat0GL3cMaY0YS A3amwQnhISwEwdUF++4UnYCHOaqz188QkNmNZMwKhQ4AiRV0cjsnFZjTsH1eiipjdnv9 +pipwndfc5z0HxQFJY9YdLu/sPFRx93DOUM9smbnTiSBaNHeSAkUS/qt4keCqtZBmZ9p ImVEMIrk3WdsxcS9qMPG5V10MGjGpGJqAyVpeh4Hu5xgcVcZ3r8ed4SkjoV0Eh4i44oS n3kzhjbfuyHmgrc1WkzTC3bJdyQbx+DCM5c4Rd08LDVTBD7KZf1dJ3orHNcmZL2nhwSS 8Jvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TE5tpFOb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 f25si2510526ejb.318.2020.05.15.21.16.09; Fri, 15 May 2020 21:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=TE5tpFOb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726552AbgEPENh (ORCPT + 99 others); Sat, 16 May 2020 00:13:37 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:33337 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725934AbgEPENh (ORCPT ); Sat, 16 May 2020 00:13:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589602416; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2C8j4i4cIMoVQxBLJB+gQw/ICcPRRsENYdtc77zibQ0=; b=TE5tpFObJbqi0fXP0AQxkYcNugt2zHdJPbIdecAt3jmZUqhArzNSM9iJ3Lb5I5o7zLkmN/ O8p/OQiyJoVDnPWvubfRVhOigEvLKsT1pjqHwFvj6r2/vebiFhkCjCUf/tI7xbimcrK/I+ qFpa0OXkhYMj0Lzmkx8oSq+tCCrN3HY= 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-27-dMCqwxtMMaGRgPYZ5eLJ5w-1; Sat, 16 May 2020 00:13:33 -0400 X-MC-Unique: dMCqwxtMMaGRgPYZ5eLJ5w-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C361B100961C; Sat, 16 May 2020 04:13:29 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1E03A100239A; Sat, 16 May 2020 04:13:16 +0000 (UTC) Date: Sat, 16 May 2020 00:13:13 -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, brcm80211-dev-list.pdl@broadcom.com, brcm80211-dev-list@cypress.com, Arend van Spriel , Franky Lin , Hante Meuleman , Chi-Hsien Lin , Wright Feng , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Pieter-Paul Giesberts Subject: Re: [PATCH v2 14/15] brcm80211: use new module_firmware_crashed() Message-ID: <20200516041313.GN3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-15-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200515212846.1347-15-mcgrof@kernel.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 09:28:45PM +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: brcm80211-dev-list.pdl@broadcom.com > Cc: brcm80211-dev-list@cypress.com > Cc: Arend van Spriel > Cc: Franky Lin > Cc: Hante Meuleman > Cc: Chi-Hsien Lin > Cc: Wright Feng > Cc: Kalle Valo > Cc: "Rafał Miłecki" > Cc: Pieter-Paul Giesberts > Signed-off-by: Luis Chamberlain > --- > drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c > index c88655acc78c..d623f83568b3 100644 > --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c > +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c > @@ -1393,6 +1393,7 @@ void brcmf_fw_crashed(struct device *dev) > struct brcmf_pub *drvr = bus_if->drvr; > > bphy_err(drvr, "Firmware has halted or crashed\n"); > + module_firmware_crashed(); > > brcmf_dev_coredump(dev); > > -- > 2.26.2 > Acked-by: Rafael Aquini