Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1007515ybk; Fri, 15 May 2020 21:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3TPL9kdz/T8wZ/TT9QDsTHK1d6cB+4D1QhBvS6DY39YUxm6QFDc5s2wh52xsYXJrKigoa X-Received: by 2002:a17:906:4406:: with SMTP id x6mr6149373ejo.160.1589602087043; Fri, 15 May 2020 21:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602087; cv=none; d=google.com; s=arc-20160816; b=TlJ5Dqo3zDNsImOzn6QUIOcTovBx5Xq75AiKuEAM9PDRVAdbWYK9Zg2IVzzBj5FlLZ GrwLwoVrRZ8DRwsKoV9ECmWDEJ16dIERkBPfidypy8nLicd6n+Q27fHFRyLz/IeeSJAo A/UgUmS+rwyAhHIbPMxgp3UoFBb1++YEYtC+p0sMerrIrJatDF57oHzP6QrflPp819AQ QokotUlz5SLx5tN0vtTS/jtA6ZDn+Z74a/CdwgzoyxgE18ffut7Yiwg8RQwweX303Lep yz9k/ByqOdLgvKBkynMarvuOKUgemuNwiy5Pbv7J9MSUN7c0+TgYGivOY/K1D6/V4lGb zV4Q== 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=3GThcFJi6mjPq3yR/OkVZogFkUGUPuA1kG+DkwzxNmo=; b=pC0LKCND22CYA3wGuGittWfxTbqmLWhVU2RXOoveePALSpmFpGm+EMbe2iJyb7pOoZ Dde4Fpm3Nx30sHHWYBbEaBdKGXdrShQFjseXOgkqSHu5uJjoiPa/EzIOjrCzTVSBsFnW fg/fSP062MTl1GRyhkdu/r/399/WKWy3mEXYzLTKWqdBDc3QP3nR29KEVlQvI4j8bVq7 tmZ8ITU66zuCQRSimsdHie1MB5GBRWTmI1rBxIvkX6j+anrRWsWnSE1CqHsYVWGRvXtg wBiAl+5LYcG77Z3aCZdyMWLBmq5MjUitoaiy+9FsgdN8981uMYp5Rca/EMmbW34lYVEo sSwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gWYDT0nS; 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 v26si1706101ejb.314.2020.05.15.21.07.43; Fri, 15 May 2020 21:08:07 -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=gWYDT0nS; 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 S1726414AbgEPEFz (ORCPT + 99 others); Sat, 16 May 2020 00:05:55 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:42478 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725275AbgEPEFz (ORCPT ); Sat, 16 May 2020 00:05:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589601954; 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=3GThcFJi6mjPq3yR/OkVZogFkUGUPuA1kG+DkwzxNmo=; b=gWYDT0nShZKyCnp6UeC3PacpmrHz5AFYwRW0yqr08BUpFtz6QmB8ODzShYVUQXL5NXWOO1 CMEtnKlGxVEU0xlWsgHoevNbU0DWmythWSZNP+bsh/RE2yzNHaV8iJi1X4SYWHoByfpuMg ZRAkmy97lKaHh0zWI6TTOPXlCX3ofHc= 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-393-tFkabqqYO_OyUY77sZkaIg-1; Sat, 16 May 2020 00:05:46 -0400 X-MC-Unique: tFkabqqYO_OyUY77sZkaIg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 670018005AD; Sat, 16 May 2020 04:05:43 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2E58812A4D; Sat, 16 May 2020 04:05:29 +0000 (UTC) Date: Sat, 16 May 2020 00:05:26 -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, Ariel Elior , Sudarsana Kalluru , GR-everest-linux-l2@marvell.com Subject: Re: [PATCH v2 03/15] bnx2x: use new module_firmware_crashed() Message-ID: <20200516040526.GC3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-4-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515212846.1347-4-mcgrof@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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:34PM +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: Ariel Elior > Cc: Sudarsana Kalluru > CC: GR-everest-linux-l2@marvell.com > Signed-off-by: Luis Chamberlain > --- > drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c > index db5107e7937c..c38b8c9c8af0 100644 > --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c > +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c > @@ -909,6 +909,7 @@ void bnx2x_panic_dump(struct bnx2x *bp, bool disable_int) > bp->eth_stats.unrecoverable_error++; > DP(BNX2X_MSG_STATS, "stats_state - DISABLED\n"); > > + module_firmware_crashed(); > BNX2X_ERR("begin crash dump -----------------\n"); > > /* Indices */ > -- > 2.26.2 > Acked-by: Rafael Aquini