Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp816102ybk; Fri, 15 May 2020 14:30:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy93YIUqfkvvTfO1m2Jgoi2ZhOpdHBYBC/MEc/xHzfkPi027cthZIyJyHNgqc9Ju/eM7SiX X-Received: by 2002:a17:907:2142:: with SMTP id rk2mr4614422ejb.225.1589578247874; Fri, 15 May 2020 14:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589578247; cv=none; d=google.com; s=arc-20160816; b=yioIiU+qdp75yVYe5M4ooGj0W5fmufLM/CA0yHGkicsR7+rNCz3vzCN8hqLHfX76hd 8bbZ7pqR+ttJNm/n3BdJMY7Oo+KKeq394KQQK4zNBPUpdSBx5TUIG09YyxsAAu+seLI6 yc7fJy2wrgLnj37rj7uKp/25sOqDHpMMxCSvDShLgCA5uI3cku6qkREBYEUgDZ1sf4Me nn9MPEXwQ379SeLrDWIrZ3olHX/kBsUwfFF0OILNH7+Sjy8LHdjGaEb4WZ9wuD+tps/u B5SuksXmVh66vBfIu+1AcErhu2mQS87K/9CNHaGy7ozmVEXJUDGXG4LoIcDMFYHcnbXq W0FQ== 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=Os/9pOAyuFP5rE18cPqNjIzCr5UNKNMa70RxbYuAtoQ=; b=HQu5GBbiF9tSEZ5XM460PI128Autmi1hJGfze0UuWxrWDOw0QQ/1ZLluwNrVAGSQaO gFjNniiXpRuSsCF6Sah9EfosTVVYkOVgcdk/tXiHSeqiCu+KC5/mYUfCutZTZwO4TeVa 7FcyHn7oDbSDWbE6eWcA0Z20aMRtpeZfe9XTDpo8drexDhIcELzYD7nZCULzCTzQ/ux5 Xc5aoy8rjx6EofVidgMqRldzZX1RM3lx6sFUay3HyrgHoUbV/ff94epcYBaXCLKRjGI9 zMPjMY/rkjkpQdMJ7xT+Pih6rptUknr3ivspvrweOH4figC679NthqMUYeilVNEp07Y5 2kMQ== 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 e30si2268782edc.267.2020.05.15.14.30.25; Fri, 15 May 2020 14:30:47 -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 S1727823AbgEOV26 (ORCPT + 99 others); Fri, 15 May 2020 17:28:58 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43365 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727119AbgEOV2z (ORCPT ); Fri, 15 May 2020 17:28:55 -0400 Received: by mail-pg1-f193.google.com with SMTP id f4so1588986pgi.10; Fri, 15 May 2020 14:28:55 -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=Os/9pOAyuFP5rE18cPqNjIzCr5UNKNMa70RxbYuAtoQ=; b=BLUUinTZb4bn1XwI4Sbw0k1YwFvObAbJ76yDFFi2D6kYhxyYjBqrdkYZd8TsFJC6cT lzAv4/3uN3LPyYBmvdQQJr35Qo64pUr7t41qhno8B6KDGghGw+HbOkX/htvDZGIDyExK aXB3D3HoB/FlBXdGJCsmN8u3CHkh389CALRHiOdtfrjvs47La+90o8Gjl5A0/1vW6uFb zFiPflefNNWFEIOSVjYjXz9D9NmRQxu3hpcFcVza1x67tX924W9jCfNRB7JJZsBQi6NH PagsDNan9mF0XBTCIFQtho+IKrxYIqrvFZ8ED7omzWRnKmEmqkZBT9paOgz12U4SzW0f KpvQ== X-Gm-Message-State: AOAM532H8RWgWRcEKHphaz0lWbp+McCWDaH1bd+4gexLAL8HT71Pxwmu MqFS3Xm7E2si7XSH0bXRLlc= X-Received: by 2002:a62:68c1:: with SMTP id d184mr5878271pfc.138.1589578134871; Fri, 15 May 2020 14:28:54 -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 o9sm2171534pjp.4.2020.05.15.14.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 14:28:50 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id A958C41D95; Fri, 15 May 2020 21:28:49 +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 , Ariel Elior , Sudarsana Kalluru , GR-everest-linux-l2@marvell.com Subject: [PATCH v2 03/15] bnx2x: use new module_firmware_crashed() Date: Fri, 15 May 2020 21:28:34 +0000 Message-Id: <20200515212846.1347-4-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: 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