Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp816797ybk; Fri, 15 May 2020 14:32:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/fW+euO0BdwJLpI3Re14y6Fs8FrxLT+BGfo9yK5GziG/R/JtQl61m/L84W3Y2xx0SF+fT X-Received: by 2002:a05:6402:1558:: with SMTP id p24mr5102056edx.32.1589578320287; Fri, 15 May 2020 14:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589578320; cv=none; d=google.com; s=arc-20160816; b=djBjHHZWfpUe+hvDonksP9ftQBb796ixZvflAd1kbLgQx7VpXbdL0dU2xS1liQdEqs UAgQAzZdDYcxepHnH707WZScfoEgBnYHHRcSiRWxX/zc7JcCmhPFAO/ANsl9NLF+Fp+p ZqRehZbgbL8CYFOFrYH4REcCiy7Gox/oA38J/kbJ9jQgLT2yughZAcsKsW4I5Nt+c4kl g2QoxRIMgXMSAWen5q2pWNkD//GYaXfx+q/qisVHHtGkp+6kLqCXWzw4ft9tkOJKQJY0 UPPe8wCGOFj6js7mNMYtUPmnaLXWWRuVrtxBeWfwol5/ttaRTrvYj+ahJyNtZvvrpq/c RYgQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7iSHfXW9+fvDe3OMezoTpoZ6yc3BiswtzUTGtFdEoqM=; b=cPoQOBVO4gGo3uGN27QoUcl5LUd/joRG3bW+VXArZjE7REUTMBaRlp9bvHdtYDguo3 LBJvlR6ayahG861p4rUiEty3UEhHRGIIccyFkiVNnwnAyG0YiezkHW1YzIXCe5U5vWy2 4KKth/qCdE5COOqw3rl2D2aehRAsFkW/20S9jKGH0ysn+/4xF3w8jma6b2TKdXY0EIjk Tk+eECDhmG18Se2q3jsx8unWMYpDy7wXphPJbq9KyVuVk1kjT1tHhuno1nFmga8h7G72 tlkWn8kIF2uiaIc/hsq49gCEZkQSo8hWk27T/WKnfye9mhauk2945e8Bt2e9OJcJZAEe 6jaw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb5si1911582ejb.426.2020.05.15.14.31.37; Fri, 15 May 2020 14:32:00 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728056AbgEOV3b (ORCPT + 99 others); Fri, 15 May 2020 17:29:31 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44667 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727942AbgEOV3H (ORCPT ); Fri, 15 May 2020 17:29:07 -0400 Received: by mail-pg1-f193.google.com with SMTP id b8so1587153pgi.11; Fri, 15 May 2020 14:29:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7iSHfXW9+fvDe3OMezoTpoZ6yc3BiswtzUTGtFdEoqM=; b=CWT3RSEsOAt3vxph1Drkp6lLCexue3b3KvLCldOnH8ALvAN+vG7ea8ubR3spND7fNJ jrosDF++LVePslD+xaXTT04Dr31BRgvteWo/uCtQqi4oif794PROe+fklD8OUKEqX4pA QG4wWoSauN0emeuSxha6yT8ugiYfMnV346cti0anyZR8Z/mDDmIpCO2Thvyp22N+lQeZ kTbgXNu6dlOitrhfpKl5z4QKE5wWxYyiNBtWDp59hDGh2rzVZMNfsCSsQxtPbismgFxD zuok7sbso5ktvEQvVHjRzuSbyvpON5p/VgfmCj5Zs6lbISK6e1gFECdajf/sQCQVnJek 6KhQ== X-Gm-Message-State: AOAM5320EiO4ESDUt3yjDQX383A+SPvM1GZR0amfD/fawwVeiraWdgom 8naqhOEHuEOtYF2c0FbXQuk= X-Received: by 2002:a62:7d91:: with SMTP id y139mr5770731pfc.172.1589578147283; Fri, 15 May 2020 14:29:07 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id 25sm2281115pjk.50.2020.05.15.14.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 14:29:04 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 6016742380; Fri, 15 May 2020 21:28:50 +0000 (UTC) From: Luis Chamberlain To: jeyu@kernel.org Cc: akpm@linux-foundation.org, arnd@arndb.de, rostedt@goodmis.org, mingo@redhat.com, aquini@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, Luis Chamberlain , 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?q?Rafa=C5=82=20Mi=C5=82ecki?= , Pieter-Paul Giesberts Subject: [PATCH v2 14/15] brcm80211: use new module_firmware_crashed() Date: Fri, 15 May 2020 21:28:45 +0000 Message-Id: <20200515212846.1347-15-mcgrof@kernel.org> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200515212846.1347-1-mcgrof@kernel.org> References: <20200515212846.1347-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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