Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1010315ybk; Fri, 15 May 2020 21:14:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwTI2MioD5z8JIXWjM8mlM72h9pCfvIm+ZVINVfx92Zg8+Ag1Fp3uv6csFPVx7SPqM9aIl X-Received: by 2002:a50:8dc2:: with SMTP id s2mr5965953edh.318.1589602457787; Fri, 15 May 2020 21:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602457; cv=none; d=google.com; s=arc-20160816; b=VA7laJu1louz85GUeZ5CyWsNivDgUfu9l2aXMrpF5ExZwUtmQTsp1o8AzjXsGmtNyv HQIRnde0ovmHTTk4tzLyFfS2kbVtbmfGDY4dRpg0256Wk8VQ8u+13GRp/BNxIqKYs3uJ i/X8jj58pTb7RCEjI/VL0IpJjzGI+QPFxXDJaImNi3Fex2v278f637ireesJCzcGJVDY YR+qEZI1bMl1pSS/sPmy3RubbEWKyocVulVe7IhGB3ffVdL43g2lIwjbNpeVoCZDAYA9 /OBC6X86iVTTqocyMNbzkB1h7uUCbXjW8jUTnlpt1+I+tNKti2Cqbu4ocWpPH4CzE9Md sq2w== 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=MsNAF+lEjVfoNNok+8GPXlzJnA9v2e+5s8MgqrPYvZU=; b=xbbInYAk9rJ8L5IuudtZbEvz7Qc2+psINA38Uqgmn4wzdKkChSCKDBwtLwf8588Zbc tH//op7aCkE4tQrYoTLxouWoIwouDpsyHk8sEV8bs8IrYfoAlf6+rgUecV7ULPrjpL/x FrSt7k3Nuti5dvbPv5JKVSUv7f1qw2JRqKG6zw1otQnG83/99mNWxq6DwwM6GmqG7QNz ma5PvQLmj0739naLma7n1G/ZepMwzadjuwfpJZx48ghpbf0zno+qXJlwXnjeQwGRyHfP rMO6v3CCl9pLGPIdkJmJSTn3z4i/b41vsbZa89PY22s6MpWu4izT1voD3N8NPinnD5vJ mYgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P1aLQ+VM; 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 r25si2258078edb.189.2020.05.15.21.13.54; Fri, 15 May 2020 21:14:17 -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=P1aLQ+VM; 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 S1726983AbgEPELs (ORCPT + 99 others); Sat, 16 May 2020 00:11:48 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:49907 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726259AbgEPELs (ORCPT ); Sat, 16 May 2020 00:11:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589602307; 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=MsNAF+lEjVfoNNok+8GPXlzJnA9v2e+5s8MgqrPYvZU=; b=P1aLQ+VMAKzDyJAI7PvoFJBJbPnD7jb9W9eyW45DBF/nGHnamodDR+OdYL9x3lveqt64DL M4eqbPMj9+w5Il5DttCYx2nmEe/nWbrI7dsdYkiIJ8ECzXIovhW/5sNWf4K8kcOCZdRbvb /HKA/NOJAYT+zTi8El/RxCuQugQwb3M= 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-268-d6X-AxzTN_epPz8es0IETQ-1; Sat, 16 May 2020 00:11:42 -0400 X-MC-Unique: d6X-AxzTN_epPz8es0IETQ-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 D51E78015D2; Sat, 16 May 2020 04:11:39 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5F468101F6D8; Sat, 16 May 2020 04:11:29 +0000 (UTC) Date: Sat, 16 May 2020 00:11:25 -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-wimax@intel.com, Inaky Perez-Gonzalez Subject: Re: [PATCH v2 11/15] wimax/i2400m: use new module_firmware_crashed() Message-ID: <20200516041125.GK3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-12-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515212846.1347-12-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:42PM +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-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 > Acked-by: Rafael Aquini