Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1008488ybk; Fri, 15 May 2020 21:10:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYOKpmtXFUzJt83hNsmxGHCZnis1AUqPhX13RquDq+sH65iNDX93I9JPGDYZAy+VEo7jnK X-Received: by 2002:a17:906:41a:: with SMTP id d26mr5639105eja.217.1589602212513; Fri, 15 May 2020 21:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602212; cv=none; d=google.com; s=arc-20160816; b=b0XRyQME99iDboPw1Fxv3fOw+qcCw98mU96hlrFyfXf6XoK2JBkYGu6rQMWHPaSP4x 9BHUxy9fhYynUI+32r/kvNu2Xlb/489xj5JrOW2zSuuijurqlLym0fW+8qR1d0Xt0ng6 /BhAX5CR8NYDAxJLmvBK1zD6DjASDJZYViK3VTne2pZPeWO9tYiEOFEMDPh12p8IhiJy SYiPGZO9/04maW7AUb8v6j4qpIvZKkzx3iyNNZB9bhIhkEQXicXNX2oNsUpOnQPhvurt Y1hb8OYSC1kc4WyQe9rynxkVrvdeHrc/UD0E8EtgdRXIVU8fp0VKFgqsAy3G9mo+ASEb yIng== 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=pzKGrP1dcY39C40zoZZuybJrD8WuaSa1VZ90S7jsI/c=; b=hp4r+GPNMb1VZuc60QBTsajiHdF0/dyFqqQ1m4XpMdlk819RQwzclhmcrzXPevSnRg n0La6ozn2HJKf3QHWt4+zvbuWam6f2wRJnhwkKgZ3k8gVBRIzUT/vMX9GLC7lfDaqnS9 gBorQarQyKhpF+Y0lhT70z4udpyZJAharbL17gJ+91rw7FvQZ2oBD0exy6EkDtFXKRuK DYzpRH0lznIV3hQwxBVCpmZUgitvTyrdiCNk98cSdiYmWlRxOhWU82XTniedo6tFRgPS UUQjYtJDDsewg/Hf3vo/ZkjfElQLs3qrh/ZK9sLYB3/bVhlaDhOcioFE0FTxe7L7+lGR dR8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZfZU+bDo; 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 r25si2258078edb.189.2020.05.15.21.09.49; Fri, 15 May 2020 21:10:12 -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=ZfZU+bDo; 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 S1726772AbgEPEIO (ORCPT + 99 others); Sat, 16 May 2020 00:08:14 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:49930 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725803AbgEPEIO (ORCPT ); Sat, 16 May 2020 00:08:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589602093; 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=pzKGrP1dcY39C40zoZZuybJrD8WuaSa1VZ90S7jsI/c=; b=ZfZU+bDoVi25nxnueq90LhzYJL/q22JR5IShWx7MNiAKJLJmMWqkOjAvcDRbb65bmPdcDh sEXKmlYC6zbzFEhHjEOp7YjKTD3oGCuT8XQAGQd/wqx8RR9RTxKlzBZsxX2tVliCURqYHh vRtHcsZ/b4S5040YubyAGVkyQAcZmd0= 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-90-7693THB7NYWd8sy1S5ZWpw-1; Sat, 16 May 2020 00:08:06 -0400 X-MC-Unique: 7693THB7NYWd8sy1S5ZWpw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9132D80B713; Sat, 16 May 2020 04:08:03 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C51F199D8; Sat, 16 May 2020 04:07:52 +0000 (UTC) Date: Sat, 16 May 2020 00:07: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, Derek Chickles , Satanand Burla , Felix Manlunas Subject: Re: [PATCH v2 06/15] liquidio: use new module_firmware_crashed() Message-ID: <20200516040749.GF3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-7-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515212846.1347-7-mcgrof@kernel.org> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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:37PM +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: Derek Chickles > Cc: Satanand Burla > Cc: Felix Manlunas > Reviewed-by: Derek Chickles > Signed-off-by: Luis Chamberlain > --- > drivers/net/ethernet/cavium/liquidio/lio_main.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c > index 66d31c018c7e..f18085262982 100644 > --- a/drivers/net/ethernet/cavium/liquidio/lio_main.c > +++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c > @@ -801,6 +801,7 @@ static int liquidio_watchdog(void *param) > continue; > > WRITE_ONCE(oct->cores_crashed, true); > + module_firmware_crashed(); > other_oct = get_other_octeon_device(oct); > if (other_oct) > WRITE_ONCE(other_oct->cores_crashed, true); > -- > 2.26.2 > Acked-by: Rafael Aquini