Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1010179ybk; Fri, 15 May 2020 21:13:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHbkV+8b15juaza+IXze2e8qIdGNBtIi3q8iXWTAMlw9JJHRs634h2IfGgDV5e8GABKARV X-Received: by 2002:a05:6402:21cc:: with SMTP id bi12mr5619708edb.294.1589602438339; Fri, 15 May 2020 21:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589602438; cv=none; d=google.com; s=arc-20160816; b=xPqKQczRSf7Hc9T5YD4ZDmNN+MuDSjd+TsvxTgOhZshRPpFSJx3ni9F6zwgUTf+0t1 zjpp/zILQxGQf/jak4kPi6HapfLO0xHslsD34YkJwm3UZ2xDbg9+BUbWa86Pmtn5Fdjm 83JCmIr551cAp9CO4hXz4y7v54wrehaT5Mlh2x9xazFbk5c+905cBA4pqIi0ZEPFC820 9zIgdLLDT7XttoLVIBGQqs7Wy9YH/wTiqbg1Lrk1N45lyAAwILhg+MhY7eEph/fPnqyo QH1K8JtGZhNDw5o1El3ga5GnRHGChTHYjUyrggTXhbH6AbMK4IacdysQUHrBvKT7Cc5D +4wA== 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=KA2V3BpgZ0c6dcuS+GWF6G6JZMOgBQvmv5cWM20/AUM=; b=HStchJbmjdgQnYUmorYzfLk8cRWpoz/09UghIr+f6rO1+edQ+2CLTAwzPIsJ+5KIOe JMZMQ8fcbSSnH4NZWqHEc7fiyxVbMir3CwJHvnyp8o+7r4n+zCckx5dgP+MDEXE5PMVJ vuo7NaGm/IqPZ0WF1wqJzyM02wz4I1ZK8gHVT4SVTsZDNc0yyfbkCicJEHXZWb5EVGAf D08viNKm8K0QY7+ieBF5FRPe95It5ci5km4lLXf8vV0NWO3qkNH4fl6nwuEpFTV+5Ltc DS+m0VH+dFBdD1wz6gTQFdgf6c4DTDa3pA685KR4Qt8VYLcpsJltTyl0mxeurtqaQnSY DQsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iEgcQPFG; 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 oq22si2642321ejb.312.2020.05.15.21.13.34; Fri, 15 May 2020 21:13:58 -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=iEgcQPFG; 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 S1726969AbgEPELW (ORCPT + 99 others); Sat, 16 May 2020 00:11:22 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:27994 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725275AbgEPELV (ORCPT ); Sat, 16 May 2020 00:11:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589602280; 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=KA2V3BpgZ0c6dcuS+GWF6G6JZMOgBQvmv5cWM20/AUM=; b=iEgcQPFGsjIBCTCAWuzvgmLKWks90nejxy30EOvI/W5c2eSL+tXOlVQ4AmR6GEkAiqjafK ITlMRmnkayIcHE3eCRqPZxDFuew6T3V3IIge/mWZ1o1cMMTLrvpSI7RcGCaYR8Pq8ZpslZ l4K3GHxWQBUQkrsCrniPuZz60qu0Yio= 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-398-2HqC332BOx2tpp1tUsYgcw-1; Sat, 16 May 2020 00:11:12 -0400 X-MC-Unique: 2HqC332BOx2tpp1tUsYgcw-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 B4180107ACF2; Sat, 16 May 2020 04:11:09 +0000 (UTC) Received: from x1-fbsd (unknown [10.3.128.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 64C1099D8; Sat, 16 May 2020 04:10:59 +0000 (UTC) Date: Sat, 16 May 2020 00:10:55 -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, Alex Elder Subject: Re: [PATCH v2 10/15] soc: qcom: ipa: use new module_firmware_crashed() Message-ID: <20200516041055.GJ3182@x1-fbsd> References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-11-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515212846.1347-11-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:41PM +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: Alex Elder > Signed-off-by: Luis Chamberlain > --- > drivers/net/ipa/ipa_modem.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ipa/ipa_modem.c b/drivers/net/ipa/ipa_modem.c > index ed10818dd99f..1790b87446ed 100644 > --- a/drivers/net/ipa/ipa_modem.c > +++ b/drivers/net/ipa/ipa_modem.c > @@ -285,6 +285,7 @@ static void ipa_modem_crashed(struct ipa *ipa) > struct device *dev = &ipa->pdev->dev; > int ret; > > + module_firmware_crashed(); > ipa_endpoint_modem_pause_all(ipa, true); > > ipa_endpoint_modem_hol_block_clear_all(ipa); > -- > 2.26.2 > Acked-by: Rafael Aquini