Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp815920ybk; Fri, 15 May 2020 14:30:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfpt1+qTexS87sxW+eb7m932Awvvb0g/6jysYXA9knTAtlgfXsXj+c0+gJhOz8kZfpw6Rw X-Received: by 2002:aa7:d787:: with SMTP id s7mr4909950edq.104.1589578228515; Fri, 15 May 2020 14:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589578228; cv=none; d=google.com; s=arc-20160816; b=tFqMwgFM0gNwCxD3N8YRQBLnenwPjFhA9sAfbOCirbCuh0g9Ux+bXX0M4CR0/CYBD5 KTFIr0Tim8/oWnzRLvn9eBO7fjrSUmjgK8SCOPvo1zMjnjB0lF3bWPn8PEgqEkqQah97 6EHRjl0vswfyD11NrSWK4BLHJ3yKeqO8RLwbkdVNV1bLfdefYWLi8rJq6JkqsOZpBpbC IFPAnqzRV1i6LfD7ArymQxHPTI84UbuVuIyUSJikkD/PDmOWVCtV0D2LZTBZ8T4O/kkA 3+pLVcpXK6SPQxTftj4e5PS3Lq4RT8tInB78fUBLGHN33su3iVEmvsKGPS0feHkvdBKg n7Hg== 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=wyaNKYj+csWx0v5/RRrrvPiG/GlOrf9rCpyGTc2gDv0=; b=PYzzWdrIiaV7949+I7FnsA5D/4wiHrPSKpaXXtqk+CLYDGHBNspllrxTIemdLW4CHj QiXIB8D1cQqJg8iysxEg80yh0ERCrp31b5xUkuxM+MuImAWHypBE0CwJBdTlA7QumSjA 6HvEh8oYPX/dq/Xs+dMwtDlh2S5y0hPYvr3kk6W8/aITbCXPdtK0VGEjD3kLe2VcMw3v 9dwfVhvYJEjr32O/EcfWj2MdLh1VFol/dbzNQNj0DNmJLlHo/PewH7onwwYQGJ4MYIAi JvTt/8+CobW+DXsbIm1kcQFzW/pOpPB8ZguP0xPZOR4uUOFGoTO6q5TlnC4QNi2VsfwR wDUA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f3si943659eds.389.2020.05.15.14.29.50; Fri, 15 May 2020 14:30:28 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728031AbgEOV3U (ORCPT + 99 others); Fri, 15 May 2020 17:29:20 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:38031 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727972AbgEOV3J (ORCPT ); Fri, 15 May 2020 17:29:09 -0400 Received: by mail-pf1-f193.google.com with SMTP id y25so1601914pfn.5; Fri, 15 May 2020 14:29:08 -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=wyaNKYj+csWx0v5/RRrrvPiG/GlOrf9rCpyGTc2gDv0=; b=PNU2WB7xGk4aeo9LqsRnFBNqh2ufNpsh3E2UmToKGNuzHfu5s+ztk+s6S6VUKmq0C/ iwuKhe46HL2A2VjsuMCiBG1UUq668ruWKtTYFkzSo6RRrX/zBJOPXhRKnsWG3B0dZ2hW bWS2BRDcZKdi0ogAgjbkHYrTzBOU4NRKRmSTPmsBmzjqEpdkwG3CiEBpgHGmHoGOpB6R 79oBGxLCemAvW7+V9HRYSkPx8A6zubaw+QyShr460zkG2LBJNAtE7VyZ2ppalO/b0PTK iMKzu8k478e+nghLjgvLqcZuQkCqBKzZEUEUe5QfMFc988OM7X2xv4dSblScsJRps6Fl 5B1A== X-Gm-Message-State: AOAM531hGbKW+WC3F5TKCbWmueDzmsXgOmOREtXk4XgjwqnH/lMZEyw5 Y6Oh5B+/fqtxcGWbDJ81iE4= X-Received: by 2002:aa7:8a92:: with SMTP id a18mr5990105pfc.0.1589578148396; Fri, 15 May 2020 14:29:08 -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 19sm2216513pjl.52.2020.05.15.14.28.57 (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 7975D4238B; 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, Lennert Buytenhek , "Gustavo A. R. Silva" , Johannes Berg , Ganapathi Bhat Subject: [PATCH v2 15/15] mwl8k: use new module_firmware_crashed() Date: Fri, 15 May 2020 21:28:46 +0000 Message-Id: <20200515212846.1347-16-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-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@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: 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