Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2885463ybk; Mon, 18 May 2020 10:16:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCuUYNe1OUqQnq42owIdeUGFokf0bjziy8+8Ff0gjKXJD41yZ7aQ1f3BCPPJRXtFzwomCA X-Received: by 2002:a50:b961:: with SMTP id m88mr14631837ede.4.1589822203823; Mon, 18 May 2020 10:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589822203; cv=none; d=google.com; s=arc-20160816; b=kTSmQvO2Q/PnlJ8CEJnitTSh/UzMB6ouh0ogBf20zztMrc6Pm48viXcwurECxtaygX CP/w2uFSrPX5OX8C/16XBMJ0Aic5QjGfVF1/hBKTwjCVTm0GUbxz+LcYNfKu5yAMUufr 0i2nFkOvbgXAnjdWp3+EFYhNGcA2em4yIpWOsgQzcz9Pkrg/AkjJWfU92fVBBC7Qtvxa TJHB/ui+CBmdFimYxWBxZ+7HuWxQoiaJBnxvsZWRPtLGempUNE8kn7945t6Kz7wgAzby Vjhrxuwa38gPfK9dUOJdfc7AGbhpFlBW1nMRhckyThga0gAl3j5lFvXq/V3P6sbI53uN O5Kg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:dkim-filter; bh=D4aFyC71+/1PXmePRMDQx9XOGmL5ee0UjqAZ8h9RntY=; b=MoZfUBcnq155cedsmhOzKvVbkVz6JIygr/4DyRnWXKyGfTE7ti5kGFVhiFzq74SUN/ NRIuFOVRAgW5M7CAB4U/5XUJuEIVHhTRfLkqrja9WqKSPAtIRfRFg6hBd0t/GlRw8kO5 tUmx43GtHPhP+oRabJbXr8E8vsL040CwtMG4U1mLORAqvGcP2MgDJwFzebCPnSwwoyug ivQIxirI92ToXc1kXAU1Rh8nMkEgpQKfZH5zxXIPOrmJ94/vLBYJ2Axd0jNhuJ+DCugb 6i7paZxsQMNoZHLlKwEYAn/tbBYO8qyJ2W0/9erfoodsFAc+hv/WnCfm7EPhgXfCQbn0 WAcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=EahJ6nXo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o19si1459483ejc.483.2020.05.18.10.16.17; Mon, 18 May 2020 10:16:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@candelatech.com header.s=default header.b=EahJ6nXo; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728280AbgERRPu (ORCPT + 99 others); Mon, 18 May 2020 13:15:50 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:35378 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbgERRPu (ORCPT ); Mon, 18 May 2020 13:15:50 -0400 Received: from [192.168.254.4] (unknown [50.34.197.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id B2CEA13C2B0; Mon, 18 May 2020 10:15:45 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com B2CEA13C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1589822148; bh=NyVoTLXcAUhrdBxNZ3ByqbNgi3//xvQrJFVw1pieP30=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=EahJ6nXo7xZTcMND2RMRA4QyfxAc1FQKjY8+FPeO8oUKOR2i3l0nqdyxzv7gU4Vv6 5YMXtFaxixJ0wrNqx15kMIf2rnfeEAq4VgGmvyoEbOYlayENNUB0xWSlLypTcHncK4 xjQhLdCQM5BreEQPEobOFdGqMe+Wa4cHXg9HoiiE= Subject: Re: [PATCH v2 12/15] ath10k: use new module_firmware_crashed() To: Luis Chamberlain References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-13-mcgrof@kernel.org> <2b74a35c726e451b2fab2b5d0d301e80d1f4cdc7.camel@sipsolutions.net> <20200518165154.GH11244@42.do-not-panic.com> <4ad0668d-2de9-11d7-c3a1-ad2aedd0c02d@candelatech.com> <20200518170934.GJ11244@42.do-not-panic.com> Cc: Johannes Berg , jeyu@kernel.org, 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, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org From: Ben Greear Message-ID: Date: Mon, 18 May 2020 10:15:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20200518170934.GJ11244@42.do-not-panic.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 05/18/2020 10:09 AM, Luis Chamberlain wrote: > On Mon, May 18, 2020 at 09:58:53AM -0700, Ben Greear wrote: >> >> >> On 05/18/2020 09:51 AM, Luis Chamberlain wrote: >>> On Sat, May 16, 2020 at 03:24:01PM +0200, Johannes Berg wrote: >>>> On Fri, 2020-05-15 at 21:28 +0000, Luis Chamberlain wrote:> module_firmware_crashed >>>> >>>> You didn't CC me or the wireless list on the rest of the patches, so I'm >>>> replying to a random one, but ... >>>> >>>> What is the point here? >>>> >>>> This should in no way affect the integrity of the system/kernel, for >>>> most devices anyway. >>> >>> Keyword you used here is "most device". And in the worst case, *who* >>> knows what other odd things may happen afterwards. >>> >>>> So what if ath10k's firmware crashes? If there's a driver bug it will >>>> not handle it right (and probably crash, WARN_ON, or something else), >>>> but if the driver is working right then that will not affect the kernel >>>> at all. >>> >>> Sometimes the device can go into a state which requires driver removal >>> and addition to get things back up. >> >> It would be lovely to be able to detect this case in the driver/system >> somehow! I haven't seen any such cases recently, > > I assure you that I have run into it. Once it does again I'll report > the crash, but the problem with some of this is that unless you scrape > the log you won't know. Eventually, a uevent would indeed tell inform > me. > >> but in case there is >> some common case you see, maybe we can think of a way to detect it? > > ath10k is just one case, this patch series addresses a simple way to > annotate this tree-wide. > >>>> So maybe I can understand that maybe you want an easy way to discover - >>>> per device - that the firmware crashed, but that still doesn't warrant a >>>> complete kernel taint. >>> >>> That is one reason, another is that a taint helps support cases *fast* >>> easily detect if the issue was a firmware crash, instead of scraping >>> logs for driver specific ways to say the firmware has crashed. >> >> You can listen for udev events (I think that is the right term), >> and find crashes that way. You get the actual crash info as well. > > My follow up to this was to add uevent to add_taint() as well, this way > these could generically be processed by userspace. I'm not opposed to the taint, though I have not thought much on it. But, if you can already get the crash info from uevent, and it automatically comes without polling or scraping logs, then what benefit beyond that does the taint give you? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com