Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1009312ybk; Fri, 15 May 2020 21:11:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeW8VBvxmta+2QT5aluyUVN3kSkuFwHPCbVkk30clta/LjwD2kkpbHdY49FGSMlE7mLf4q X-Received: by 2002:a05:6402:2c4:: with SMTP id b4mr5725084edx.331.1589602316840; Fri, 15 May 2020 21:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602316; cv=none; d=google.com; s=arc-20160816; b=WSjsG+YEu9m//Z+QyayGV+5bxZVFe2FHvISQlmupMM2oUX+rhl5KdOQXn3nfff9D8K n4ZooPjM8Oz6WxdGRs56SaaYJgJJubOHdzIuD6sLOpZRlR6GxGUVU+pcF4bwCFMf/uZz 6cvCsYCdAR8dl4LyUbs+du3YBMlBOcpjbtfOzYu25QLk6ARqW+yQCI2pFKEpRPVGH/UX oy19R30Ak699quBRMSR96vIAcNNttbjcZq67MZuOavfSFSHmD5gq+vPZD3bqdIgk2dAq jQ3V7p+77mUdteLvWI4C2JkfpKd8e6ON6pCyQeLl8+ewOQIGbR9PsSN4M5SWjyWHLSoZ F5GA== 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=X9enCBr7tW7yfSw0U2tAzbrHP1z4E5Xt7K+b3QrVp9c=; b=XveGEAt2H2EC89nSgZ5eXRzROpYFFKvx3LCzl1ADDjMpUBzubhPz/o0hXqCqScGErH Iqi3I1NAy7XWw4n+DY3sd0s72V+QQ58Pp0CFU1dQjkufW2GLJOKdurHN7pOXe0ifa+pF /qvzrI8mXqnMfudxZKa7a58i3UhHKthTo3Ottcg+l/Jyr6yRF1hXWSOkA/9n/JJ7nnyN VrfQdUDxnemXZwMMgF1PBKCWwDjbVcMUFyk8/CZXjcUIyuM0WM6O+WjUWd0z1embuT50 /lrZ4QMe/f9HgN0Pjo3ns+vggSQkkj7rcYA2rXdhsCIt3fafKszh2oO6WO24wpdVL/Ib NugQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aV4t4ZW8; 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 oq22si2642321ejb.312.2020.05.15.21.11.33; Fri, 15 May 2020 21:11:56 -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=aV4t4ZW8; 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 S1726936AbgEPEGn (ORCPT + 99 others); Sat, 16 May 2020 00:06:43 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:58915 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726328AbgEPEGm (ORCPT ); Sat, 16 May 2020 00:06:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589602001; 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=X9enCBr7tW7yfSw0U2tAzbrHP1z4E5Xt7K+b3QrVp9c=; b=aV4t4ZW83ghCXvq+sNda0grUt2gvbv2bHdmzncwWJMyK2nrAZmK2eUqhaIF6q29KtYbcSz RydPbw2gDndvxfMkS6FcMU+QAylS3xj00XNULPosDRkDXI9tSc0TiTkvC3Te39zuJiNXB/ Mo+fxtL8QXfYu5L+5kYCCYYmWk4hra4= 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-509-hRwK9iiHPoSApB9NyATYoQ-1; Sat, 16 May 2020 00:06:33 -0400 X-MC-Unique: hRwK9iiHPoSApB9NyATYoQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 745B48018A2; Sat, 16 May 2020 04:06:30 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 326FB5C1B0; Sat, 16 May 2020 04:06:19 +0000 (UTC) Date: Sat, 16 May 2020 00:06:16 -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, Michael Chan Subject: Re: [PATCH v2 04/15] bnxt: use new module_firmware_crashed() Message-ID: <20200516040616.GD3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-5-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515212846.1347-5-mcgrof@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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:35PM +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: Michael Chan > Signed-off-by: Luis Chamberlain > --- > drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c > index dd0c3f227009..5ba1bd0734e9 100644 > --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c > +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c > @@ -3503,6 +3503,7 @@ static int bnxt_get_dump_data(struct net_device *dev, struct ethtool_dump *dump, > > dump->flag = bp->dump_flag; > if (dump->flag == BNXT_DUMP_CRASH) { > + module_firmware_crashed(); > #ifdef CONFIG_TEE_BNXT_FW > return tee_bnxt_copy_coredump(buf, 0, dump->len); > #endif > -- > 2.26.2 > Acked-by: Rafael Aquini