Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp817434ybk; Fri, 15 May 2020 14:33:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpG3fwX7uD9cUdCncvvxUTfmt7MPXi2NxcFBTpEZzzOSYHJlGK3FK4J9crglrmRXZVrfmI X-Received: by 2002:a17:906:c10f:: with SMTP id do15mr2373128ejc.249.1589578395857; Fri, 15 May 2020 14:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589578395; cv=none; d=google.com; s=arc-20160816; b=nwOi5zop04kkizLWFO+NfC1kXXXh3DMcfx8fAgpdrceRYm2HbafWcuq4AuOo3fFDGt 0quahtkmtXNE2AR2iQM8KzWP2bYEJbog3sHPXjnii6e3z5mGPDiSuFdQg9CgJT2I5h9t LZKHNhdJJISHjSSMY+hh3c+2HY8g4P2IgS0e8oWlbQxm48rIJdSbnVQqSZHy/81rChix MIRLzBwcPBTtAAhsfGoWFhM0pOL/gYTeIn6T0yTBq9rTTwRxU5emqrXx6OW719T8rXSY +aR7an+muTxt2PPfRkhyo19m/qtQU01nnMJu+eMsXl95i/k22r7L0J6GwH1XPvVne3/D MNlA== 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=sfS8RWQILq5pTxsiwJfRKnCbiFfxKVOF+i1nmZH/cEc=; b=0Tu9pxz9yjTzHv/VhThdDn7AjhW+mtFoLPLM1V2DEV9VH4Jr0K471yR+tbOi7MVj6R 2RVgMgzsVhg2JfLIUn6VllZIpwzgwNeyuEdHbbFh4JUSWwZbf3KYGIUQc7/dSureLNhz SBWsy+Zfpzh+ESLDtgXeSQ8z/RY3QqUcBu1Eqfk42pdg1I8PvCnnpI2RR9cxEVzCUPji ZmvYsVF4J61E8iMXyuEjAWnFVyKuxkYV128AXiCQbB3Aftx1ibBF4NyOb3jNxRkfDlhT 6hAgCrEvgib6lDxMLZGiLNc9gI00+/V6H0sCwfobFehAJ1qWD3dV4YyNOXNwaKY9U7Id vwsw== 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 bq12si2001992ejb.472.2020.05.15.14.32.52; Fri, 15 May 2020 14:33:15 -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 S1728193AbgEOVaN (ORCPT + 99 others); Fri, 15 May 2020 17:30:13 -0400 Received: from mail-pj1-f67.google.com ([209.85.216.67]:53439 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727801AbgEOV25 (ORCPT ); Fri, 15 May 2020 17:28:57 -0400 Received: by mail-pj1-f67.google.com with SMTP id hi11so1478795pjb.3; Fri, 15 May 2020 14:28:56 -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=sfS8RWQILq5pTxsiwJfRKnCbiFfxKVOF+i1nmZH/cEc=; b=cHahCf7CLkL4kfpfmih1x5N6/feF48MZgbx5eEkuYk65j8O4PaHb6eGXgGVz6LR7Ax IP/gmHiRc4/myy7Jf7XuiqKBvz16JY5DjMaecLMP7ArLVctpv2MbxXavfj5GbqysxNaU rpuUwy2gzGV0e3Cc02KA4DVsy3yq0Q3RcR7n/3UFfJL02omregaz9H3u09/vcD967rVY s+BNyAt6zdHovGQAp6XFEY7Xp2FdmxBruWnSxoCJpzT55RvME9UGGQjgTaLWYGzyjw/k ayVmozkwT2YB1EWWmQKiVT8ggkf5W52W+jXASD2Hq2tmgs0xlCtX4NDK2wokgbg1n9jd yTVw== X-Gm-Message-State: AOAM531QRFWiKi0nXQ+eITvPE/PjeQcfDW5KUSeM5BWaVezO5WuRu8wT TaibqIPa4uRPiCbEFLInBYw= X-Received: by 2002:a17:902:dc84:: with SMTP id n4mr5635258pld.281.1589578135789; Fri, 15 May 2020 14:28:55 -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 v7sm2644511pfm.146.2020.05.15.14.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 14:28:51 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id B9C4A41DAB; 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 , Michael Chan Subject: [PATCH v2 04/15] bnxt: use new module_firmware_crashed() Date: Fri, 15 May 2020 21:28:35 +0000 Message-Id: <20200515212846.1347-5-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: 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