Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1007480ybk; Fri, 15 May 2020 21:08:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw01b89yE9kzxG4UxMcoSkkf0OTZFrqZJv0Sn4mvNo/tludCkKGKyoZ6HYpffYE021F4u/S X-Received: by 2002:a17:906:480f:: with SMTP id w15mr368975ejq.381.1589602082190; Fri, 15 May 2020 21:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602082; cv=none; d=google.com; s=arc-20160816; b=j/gmTfKfuWVxklEssDTUB6hq0CUPbpqa6tiLNjPvLioRWIw+D7NQD9N2Z1cuJYVgid 32gPAdGLapAaYyu9uF1vPVj57bzQnqvDQYcXO4T1NcXENCEpOoc7rr+RlgK5B8ASBoLo 86wjalE2NJ7L02r5/yM7bocUPXTYhZP+gay0lhXtaTuibfVvklgZ7bLncirGAKM9KsbO ReiPqnpy+Nk0/mTZx5eC0yTps1qB29TlcQ6WtbNx7abC5VNV1VNSdXo4JsQQ8zZEtEvN M43vRP2m5SKzNV/To3FSO4e0Q+XcVQLCDH0D+r8/Be+Mw3Wpu0yi6IZGP8TQMztquFXa vaNw== 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=qZFEaKrNvjcuFnNRasMkMJZvRQRsiJyBl8UOZqRrOZU=; b=PuU2G3fUv31YKxddoOCaiUtj+MziNlAns1lLtIBdHq3Hnui7+xhl9l0mFtW3lKy/OW UMskcBg+sIbS5E2thHOghOj6czQhaRnRScCddNUscymp3/YRVKtBTyibDj6iTG3GxG0C 1vTUuoVSMGNpZV5h/c4UDxMjmT12o6HrktCY8FQmokwKb3oD6BBSgESYkGp/Opie9u00 XPgEUSAOyU2OviFSF0YfF7bGDDPlqdrMoHavF5uQccvcplALSEhZhCG59a/2qFAZT6Jq CxzXcNXqtM1SCTtKngVeQ00HUls0y37bjgN57rlUG6AMUCJDmRfeN7psb571BTildW7H /+oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LpDviKMA; 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 c8si2646459ejr.252.2020.05.15.21.07.37; Fri, 15 May 2020 21:08:02 -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=LpDviKMA; 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 S1726303AbgEPEFP (ORCPT + 99 others); Sat, 16 May 2020 00:05:15 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:39013 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725275AbgEPEFP (ORCPT ); Sat, 16 May 2020 00:05:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589601913; 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=qZFEaKrNvjcuFnNRasMkMJZvRQRsiJyBl8UOZqRrOZU=; b=LpDviKMAdkhLNxPt8UJJQh+cEx4GvoBvhvK2W/b0WNCNJf9eFTcV3gV1FhtiTLccxr3N1n FFcdZO3x4p65oM0aIWy8D4ejIp3pnYbMt4lCe0jqIFMc3TTVVZBOHRU7arGlL6Zy5lZKul YjKhBUE3qbrxumzMjrAEWB2FKOYGt70= 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-166-KgCfEaxZNay5LI_cG4WFNw-1; Sat, 16 May 2020 00:05:09 -0400 X-MC-Unique: KgCfEaxZNay5LI_cG4WFNw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 403701800D42; Sat, 16 May 2020 04:05:06 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 91568100239A; Sat, 16 May 2020 04:04:52 +0000 (UTC) Date: Sat, 16 May 2020 00:04:48 -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 S. Tsirkin" , Shannon Nelson , Jakub Kicinski , Heiner Kallweit Subject: Re: [PATCH v2 02/15] ethernet/839: use new module_firmware_crashed() Message-ID: <20200516040448.GB3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-3-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515212846.1347-3-mcgrof@kernel.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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:33PM +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 S. Tsirkin" > Cc: Shannon Nelson > Cc: Jakub Kicinski > Cc: Heiner Kallweit > Signed-off-by: Luis Chamberlain > --- > drivers/net/ethernet/8390/axnet_cs.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/8390/axnet_cs.c b/drivers/net/ethernet/8390/axnet_cs.c > index aeae7966a082..8ad0200db8e9 100644 > --- a/drivers/net/ethernet/8390/axnet_cs.c > +++ b/drivers/net/ethernet/8390/axnet_cs.c > @@ -1358,9 +1358,11 @@ static void ei_receive(struct net_device *dev) > */ > if ((netif_msg_rx_err(ei_local)) && > this_frame != ei_local->current_page && > - (this_frame != 0x0 || rxing_page != 0xFF)) > + (this_frame != 0x0 || rxing_page != 0xFF)) { > + module_firmware_crashed(); > netdev_err(dev, "mismatched read page pointers %2x vs %2x\n", > this_frame, ei_local->current_page); > + } > > if (this_frame == rxing_page) /* Read all the frames? */ > break; /* Done for now */ > -- > 2.26.2 > Acked-by: Rafael Aquini