Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp816850ybk; Fri, 15 May 2020 14:32:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbTRjpwXNn8eGd8QA/pNxU4l1vT20Mpqwt8n7iMfYuXJteLtmlBMP8z9d9e2HOnY/UZHXh X-Received: by 2002:a05:6402:21cc:: with SMTP id bi12mr4746311edb.294.1589578324579; Fri, 15 May 2020 14:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589578324; cv=none; d=google.com; s=arc-20160816; b=g3xnl8xi4BHdCZ7EPuk7B6OWaTz/ushc/vfIfJMOahO4XTcSgM+pHynDUTMDOslyjf KE2JnWHQlFCxgEXDbWsTLoV+AEADag4PEqrXcxFQEUXX63xKCxDXvXB2zKLYbp/TEIor IhrwjO7zGlt1s5zzPm/t4UA/4x7iHwpWroJYPyjoyQyhlPhox9Quo21cQwxay+gi8JC1 Zj7POGJblS0E24J4IItK36b03s34SFpgF6w0MEBF18QWaapVZAJ17iqPY7sm8xOKq1mH rwI2DgCTbHl+/NAx3CRvIh7lUHPnjvXDaFdfuhNLJx9v1PVlIK82pjjS8KsS6Hz9QNPr 72nw== 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=qxlVajjfNXCuVHnmE5Xgl/OMrJvTtdBFsSisnAsjai4=; b=g8549y3wwlOgL9jTR3QS+6LCrJC+lPGwJwHhqBTwvrsDwm7DzZEB1FZqIH+2z7+6vL LO1NLEvnXpkdgKgpSmRHAOCkPep1z+FeF7HrLNrDjP+TmcUld+fLui2T4+foHeux4/U0 ySCF+UFwB+ltsN5XaGagxVNYZk5kUNaJTx+mpDVfBir3y6rmKttPeWrDJ96zX6A/IVNS hmqN1Ep+5h47uhXKjQe03ZYhhL8CryCNc3zTmui/wGGUZ8pYqgLADVlC3jNaZc5Yjh1D aSx5hvyph1rIYPd4d+WLYRmuTwURFncGulrHu5jj97o2mPKcK2E2BWA+08kRhEhoGmKT M/0A== 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 l15si1961577ejr.90.2020.05.15.14.31.42; Fri, 15 May 2020 14:32:04 -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 S1728110AbgEOV3q (ORCPT + 99 others); Fri, 15 May 2020 17:29:46 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42173 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727904AbgEOV3F (ORCPT ); Fri, 15 May 2020 17:29:05 -0400 Received: by mail-pf1-f196.google.com with SMTP id y18so1595189pfl.9; Fri, 15 May 2020 14:29:04 -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=qxlVajjfNXCuVHnmE5Xgl/OMrJvTtdBFsSisnAsjai4=; b=cjNh+5CWfFuHJmEkhtQZTa8V2Er32bR+QtLu4ooAgibXEBJ5yuZtVzohKHLeNYSCbw 0PrTOvVCRuw47szXz+aWI/f4+GMaYgGCyjiL6gsfgzG/DoH5IoH9NM9Sb0+aIVmTLUtP 9w6H82f40HsQ0Ia8QXSOd0rYiR83Qgy6kTU1OEz6bPz+Faqv1hVU80CjGR7zFw6CdBnn TnQsxOt7+ZdVzqbF//bGArm5msWhmmYTCa7H/UXfF4C9b+zFNb4WJbv7Ph4jG85L1KjO pYPDr6DMkhiizXqYr2trL3sJ2VzcuMIzonCmNCNjPQSDTQ6mA1mc4N7a+Rp4DuuVrRlF Mbag== X-Gm-Message-State: AOAM532knxrDHsbGmcGFNDomaa7TlvU9rDxHe9P2WR+I1Ea3ELWVA8vi WMKC1ypzdFpmPa4L/OY5zJs= X-Received: by 2002:a65:560f:: with SMTP id l15mr2568395pgs.439.1589578143709; Fri, 15 May 2020 14:29:03 -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 cc8sm2217831pjb.11.2020.05.15.14.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 14:28:55 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 19BE342341; 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-wimax@intel.com, Inaky Perez-Gonzalez Subject: [PATCH v2 11/15] wimax/i2400m: use new module_firmware_crashed() Date: Fri, 15 May 2020 21:28:42 +0000 Message-Id: <20200515212846.1347-12-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-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-wimax@intel.com Cc: Inaky Perez-Gonzalez Signed-off-by: Luis Chamberlain --- drivers/net/wimax/i2400m/rx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wimax/i2400m/rx.c b/drivers/net/wimax/i2400m/rx.c index c9fb619a9e01..307a62ca183f 100644 --- a/drivers/net/wimax/i2400m/rx.c +++ b/drivers/net/wimax/i2400m/rx.c @@ -712,6 +712,7 @@ void __i2400m_roq_queue(struct i2400m *i2400m, struct i2400m_roq *roq, dev_err(dev, "SW BUG? failed to insert packet\n"); dev_err(dev, "ERX: roq %p [ws %u] skb %p nsn %d sn %u\n", roq, roq->ws, skb, nsn, roq_data->sn); + module_firmware_crashed(); skb_queue_walk(&roq->queue, skb_itr) { roq_data_itr = (struct i2400m_roq_data *) &skb_itr->cb; nsn_itr = __i2400m_roq_nsn(roq, roq_data_itr->sn); -- 2.26.2