Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1276874ybk; Sat, 16 May 2020 06:30:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNKQ3eBi7D2iLfmpIuG6oe5BkWlU7Da/d9I5n0sqPp/YP0KqfuBPw7B0iaPXASyfDK13gF X-Received: by 2002:a50:98a2:: with SMTP id j31mr6564808edb.79.1589635837238; Sat, 16 May 2020 06:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589635837; cv=none; d=google.com; s=arc-20160816; b=mk9ubZzzLb/90QSloERw/A6ncuzl8wmDYAiKeQHFA1x8dcvfGb5/xFtxJaclbVbHeO L9v5tpasAQS91wQyiqaZy4t5An8tvUkjs3qkyNHifiueOEbtrpYY8EhEbwRPGfWIyf/+ T5PQngu/kk/PqIdwmKGoOM9zEtGGm03iczT2q+nqahwyh4o15G5OZrHTTo4OElCQ/GKA AxaTz1p8sDs18mu6XPSGCpo41RczLry+7uN6zOK5v+tpj2rzokLA6MLJ2uzMhZaDIzir /kXQqiIeuliflmDkPT4sRVx22/boOytTCvjVnE2TNSS1XwYe18z1FBjCbt9Pel10rApw EnuA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=rXDAP6c+bWLmD7gMuQGPrJJBZMkRIy6EO/jKXidLs50=; b=CVlleoTNI+Z8CI94hQvVwZtOs6spXcom/aofFqyGVG1mglnHnFmzeyFVDhpPgtEoF7 4aW7fwblxepZ5I37qTFFlbGtf8ORaE6jlocj8g3aunCBOXVV2BJtxB4QL9zxRF5X9Om1 7n3lLaDJgegyBiN9Id40R0UoVzCUj5Fe6DSCnA04iAP6HXOWznVY5dhv90DzvDw5Edy5 gfbsUdVay70z29QxHAlVg2e4pkqIPkplfeU6sRI0TRlHt9yqI3lddnhyEkjyHeS4mLgR yJLaBCMeN7HMDuiKDpNmiA8T1EzwVUztrZQWezMVm/KSZjhEjIItXwJSPA4Xfn9iJAmn nPXQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si3151546eji.236.2020.05.16.06.29.53; Sat, 16 May 2020 06:30:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726374AbgEPNZD (ORCPT + 99 others); Sat, 16 May 2020 09:25:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726302AbgEPNZD (ORCPT ); Sat, 16 May 2020 09:25:03 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C71C061A0C; Sat, 16 May 2020 06:25:03 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jZwnO-00EBvX-6E; Sat, 16 May 2020 15:24:06 +0200 Message-ID: <2b74a35c726e451b2fab2b5d0d301e80d1f4cdc7.camel@sipsolutions.net> Subject: Re: [PATCH v2 12/15] ath10k: use new module_firmware_crashed() From: Johannes Berg To: Luis Chamberlain , 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, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Date: Sat, 16 May 2020 15:24:01 +0200 In-Reply-To: <20200515212846.1347-13-mcgrof@kernel.org> (sfid-20200515_233205_994687_1F26BDAB) References: <20200515212846.1347-1-mcgrof@kernel.org> <20200515212846.1347-13-mcgrof@kernel.org> (sfid-20200515_233205_994687_1F26BDAB) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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. 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. 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. Instead of the kernel taint, IMHO you should provide an annotation in sysfs (or somewhere else) for the *struct device* that had its firmware crash. Or maybe, if it's too complex to walk the entire hierarchy checking for that, have a uevent, or add the ability for the kernel to print out elsewhere in debugfs the list of devices that crashed at some point... All of that is fine, but a kernel taint? johannes