Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1009659ybk; Fri, 15 May 2020 21:12:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHdkT4ZV1fyK3g1QwEiUb8ZiUe2jtj4n7CFuBFAT7jn7oyw1ccF24CJmHk1S0dZwioVjro X-Received: by 2002:a17:906:7c4e:: with SMTP id g14mr5900272ejp.353.1589602361799; Fri, 15 May 2020 21:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602361; cv=none; d=google.com; s=arc-20160816; b=ev/AiC/A63veL/CC0rBMMKExiQ9G6c+Kv+98ETJcClmgB15MAZYQcYRpHN1MpLEHjx SeF1L8IME6o8ID2hphXthCqkSRfmBndUjTg5BWVqyTKhQb1rX7wNm6uyXrZFSBj8OVBV LIFvnOwAd3Ue+KhFh0cd7h/p1JqhCmaJwdub3ZRg32tpwIUlRB6ECGjFovK+Fz0WUfao VQNZT3nN1lmfyvBSvgOdh8Z/uJfmRL2s57Z317BI3eRpRiOLRcl7Um9i+Uk43QaeAUmb lTv31/ExWhCTFNQuefYpcz2lM/43pwKPhzNcI66Ugu8mWQ0IYrs8NgRPI0IWXfon4PQg Ca8g== 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=vIxHfO81N+03vuMfHp47HPc/YBphFIdNIRkmQNFD2rA=; b=Gasbif31XZP9helOKVGz+7LpUgV9xT+D14HMIu4P3EVhNyQc1vmg93+xeLNDXNzAzm u/2gDp6x4JeKDDQ2Co5W4s8jQne1352TStW/R2BO8G02V+GynEPNxHaHUWbhpyhBt7NV qldWZ19MrVABTmAfVOlz3RW4on0VamhtDYAQhbQs33uMHS5pwonIbzQpV0NR056jl9DO Dg1iQ+wEd9eIn4DqTNssCP2GL1PVyKu1TMzrJAuc0DUDIWAZ0UQROR5hfKTMZJEFeidI raGJCKS501liowmYZH1A6wx/mLtxZ0G7IAB9oTsctZDe/mJ2a1DOL6UfLHHRSRB9xFkk lpKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=b8UxdUyi; 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 oy4si1298127ejb.433.2020.05.15.21.12.18; Fri, 15 May 2020 21:12:41 -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=b8UxdUyi; 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 S1726895AbgEPEKK (ORCPT + 99 others); Sat, 16 May 2020 00:10:10 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:33137 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725275AbgEPEKJ (ORCPT ); Sat, 16 May 2020 00:10:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589602208; 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=vIxHfO81N+03vuMfHp47HPc/YBphFIdNIRkmQNFD2rA=; b=b8UxdUyihUpiZ66oI9CFvhI2L1OR6NMSR6iMd0Tn5SlOZY67uUFrCuzvrOESwBHpSgwWau cd/7Q+z0Dlk+V70ePbnX1dSrtV+/MoIQnQECixU7K/3almmDJgkQWOS6OzGLAeLveb8rYZ Ljz6W9O7QO76d1XrLwKaYXEB/Hf4gVU= 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-395-6heSXt0zPhOn6WGvQjSr9Q-1; Sat, 16 May 2020 00:10:06 -0400 X-MC-Unique: 6heSXt0zPhOn6WGvQjSr9Q-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 64035460; Sat, 16 May 2020 04:10:03 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D6EA05C1B0; Sat, 16 May 2020 04:09:52 +0000 (UTC) Date: Sat, 16 May 2020 00:09:49 -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, Douglas Miller Subject: Re: [PATCH v2 08/15] ehea: use new module_firmware_crashed() Message-ID: <20200516040949.GH3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-9-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515212846.1347-9-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:39PM +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: Douglas Miller > Signed-off-by: Luis Chamberlain > --- > drivers/net/ethernet/ibm/ehea/ehea_main.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/ethernet/ibm/ehea/ehea_main.c b/drivers/net/ethernet/ibm/ehea/ehea_main.c > index 0273fb7a9d01..6ae35067003f 100644 > --- a/drivers/net/ethernet/ibm/ehea/ehea_main.c > +++ b/drivers/net/ethernet/ibm/ehea/ehea_main.c > @@ -3285,6 +3285,8 @@ static void ehea_crash_handler(void) > { > int i; > > + module_firmware_crashed(); > + > if (ehea_fw_handles.arr) > for (i = 0; i < ehea_fw_handles.num_entries; i++) > ehea_h_free_resource(ehea_fw_handles.arr[i].adh, > -- > 2.26.2 > Acked-by: Rafael Aquini