Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp141091ybk; Fri, 8 May 2020 21:42:33 -0700 (PDT) X-Google-Smtp-Source: APiQypJC4bXIYog5qjn3GxJEeeBqywHKy69t1I9SljcVlqmsnyWXLGDrOshnxqc2lF2VNoYsOjzU X-Received: by 2002:a17:906:660f:: with SMTP id b15mr4396002ejp.113.1588999352862; Fri, 08 May 2020 21:42:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588999352; cv=none; d=google.com; s=arc-20160816; b=M1k6joxs/u5ix/wfELc0v7LUSvFirB4EhV5bgh3FCQjszJob9c1Q4DcljfXHskCnRb OKLlC5A+QecU9QFkFY5PN/IRWjewU7BhNr5174IxL/lL/e0VroYDXrxSNbabXOg8tSGD 1S+HL+uLtVnJeWpqavp5quTOR8k01wLut0Ot2wymsce2wSh9OpD6IZsQ3VAO+cOdRdOI CSKOv+zAz6boXZ4yGom/DO1F6DpIqWAXu6d3XHm1AnhER+SSQDouDiuuQEfVECcXl0iY bc9nJdnkqgo6MmaNMrgHfHQBwSSU4dnYlZ70xXl2ieguvB7VS99r0YEAcToV9AJf76JF uy3w== 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=6nV8PMylqoFPDUoYFmy1R2d+sPYm3cn1hK2t9F4BUt8=; b=LMSOVPgtdr99eWKSz6cJNpq6/KNYy8LiTvuir/DlfsDmiLVVPQnJaYWVHuQ1tpC/1B wFHg/1Qgf8BfpVEfDM1BHx5tXN+E7IVs5BQcY7KpgaYEQQuDTk0ZQfH9kIFCRvdKvKcF Ct+1Q0HZtsqv/CzfJ1mx449cCP0/hiItpSHl0frPdB+Bqq/Irw/tVImEX0qxefU3QDG+ S0q5Dma5jpQ01aAzWMRpMN8/g5I/q4MYJoOLgngx0SVW846FN1H4+5Ncmpwcu0UrxVkJ 84m0Zl+mbuSgYX/5wDK1Qn8LxXcRsZXzKdFqI+Zs0mRnekyMA+ayy21XFB5c98SPV5rz COOg== 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 cw21si2073576ejb.158.2020.05.08.21.42.10; Fri, 08 May 2020 21:42:32 -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 S1728933AbgEIEgw (ORCPT + 99 others); Sat, 9 May 2020 00:36:52 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33126 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728817AbgEIEgR (ORCPT ); Sat, 9 May 2020 00:36:17 -0400 Received: by mail-pf1-f193.google.com with SMTP id x77so2064725pfc.0; Fri, 08 May 2020 21:36:15 -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=6nV8PMylqoFPDUoYFmy1R2d+sPYm3cn1hK2t9F4BUt8=; b=Al0rNm92TXFjSiIFvJIeTtAlfdJZtazQ9V5vFaLzkrTWcbCWNzMCV3xWR8gzpJRTtl NEaO3UK6caLkbxCep9aN9FiNAaGho3TYOauTsKCOR9R7VB+t2ea+ettH7jYpg78nuvms AGyJ9vKJfwyj9aGh7zV7MU16IJ8fGpV0esaaVbRmjyFaB1C7cUnsG2TKFKOevB8QwQq3 EPqYYSSuX+qOoyrsWjcH2obVy+8Cz1SPlH6a1kHd0Sbf3Shi52TKxEYKQYsVhvqnvb8r 5IIQKF4U6JVOc65gFQDavrtnoKgEv7NiGt3VFt7YF6AUCi7D+TrhAAhP3W3HcLHdV+Cp VBVQ== X-Gm-Message-State: AGi0PuaZrvUuOJwS/HokYR34C7lElu0Z2xpUAMw05U+JNKEnmIzDQWvw RlbM1s9h2ClHzffn+YzfhHY= X-Received: by 2002:a62:2582:: with SMTP id l124mr77401pfl.308.1588998975368; Fri, 08 May 2020 21:36:15 -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 o140sm592530pfd.176.2020.05.08.21.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2020 21:36:07 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 3F16642309; Sat, 9 May 2020 04:36:01 +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 , Alex Elder Subject: [PATCH 10/15] soc: qcom: ipa: use new module_firmware_crashed() Date: Sat, 9 May 2020 04:35:47 +0000 Message-Id: <20200509043552.8745-11-mcgrof@kernel.org> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200509043552.8745-1-mcgrof@kernel.org> References: <20200509043552.8745-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: 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.25.1