Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1485339pjr; Mon, 18 May 2020 14:23:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZQU/XCZf0swTbXCcPEy9SRhBb3wIMd+QpTqPrSXxRb4BT+pNZm1V/Sx6BtrwS2LhPPjlT X-Received: by 2002:a17:906:1dcc:: with SMTP id v12mr16260916ejh.236.1589836995151; Mon, 18 May 2020 14:23:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589836995; cv=none; d=google.com; s=arc-20160816; b=IhFiUBcfeJwf5hE11TV8/7ZSnMKhv2D0pP3Two7/G3iSrO9zJVNBhvyhV25DgL12TJ iiiYqYfZoZsrNYq3V4mUe8cyjMOFkEI40t4nb94DREivy4HRYw/ap1rZ/MQyARKVafFW XVw5MVQvyDMYZ24T46QMNHVGOqG0gNplDAZ/heJhuW0JpzeXKHZhQYfPWaQ9BDZkG805 TQmVBcXLwcT1mOowEtFrMB5YaoV5qteMmVC9RFy3vT0J0WVwHzVrtzphwIzh1KfnMe1l 3ufZPhFm5i+laciTf9hMFRBAaSjz9ORdskItIpsI0OxdLRpOL1iuCdeKjugGU0z/xow0 /IGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Y/wo2Runc9bAB/6pd6AKP8cw8s6s3rSoWBtx05F6YCY=; b=n4xfXA5BDA8oH4t+tabhJSvI41RGEShM1BKF8qzLLnSyvE3u0stIwrxSLqtSGL9Gub 1vo7Z0p6qm/DKcTUUAM+2zW3PIMTyfjlG7RqZYQG5ZK6Rw8ceFzefc8Dlu7gihiLQ+Fp rj7eH2Zm80RxAsPe/X/eIlb87zev38ND2jomjoURcYyx+lT67m1fpfegGsA0qg5yMxDe dpxFZ731RCdACmc/6Pmy7PCK9zMdMDJD2xYkUlX5v6MA+5GWTo+kNm5gvAVIZl1B+CtL tiJNVJfn3qiukmE+Vr6cak3oSXv24zwA2adLMTLPYO3OqcgOMZmPBX9fNtx0AZTYDiJ3 EBnA== 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; 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 ce18si7814082edb.26.2020.05.18.14.22.50; Mon, 18 May 2020 14:23:15 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726417AbgERVWF (ORCPT + 99 others); Mon, 18 May 2020 17:22:05 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46645 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726367AbgERVWF (ORCPT ); Mon, 18 May 2020 17:22:05 -0400 Received: by mail-pf1-f194.google.com with SMTP id 145so5529587pfw.13; Mon, 18 May 2020 14:22:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Y/wo2Runc9bAB/6pd6AKP8cw8s6s3rSoWBtx05F6YCY=; b=FymUGAi+qHWAnxN2+dkVooEaU1xb5GgkL3l9TdVi8pj91FwAf/vneT/RnRU83rXd5V aWyIVXA+9fydUAc6CLWRPBL0+rtCesAVIPP3dydOT0lIymqFBd/kENFUT/ubRhBnVx20 l7O3suq4A/cB3T3PHC3+QtA5AaBr3EF42bHX0V44AHsvKjh/A4kyRKE9qOkb9iezvRAS NmD233UMq8VYGV/aMF5qGNFwO0HZUFYypsjsaeiOw92dtsnVBiZzMqF8NYDQSTbz+zAI +SCjMuhh3g85BVNm0Gr6iqPQkJ1Dv5j+W7VjYSxiQBaMcMtomAfxl+qDmZYDswRJ3lMj KvJg== X-Gm-Message-State: AOAM531C1Enou/GtjWf2HyPqpcBVZLhTHNwckICyVYq1pkPi8nRoNQi1 LO0fqaTXk14Z9FH9eoq+MA0= X-Received: by 2002:a62:15c7:: with SMTP id 190mr8308823pfv.190.1589836924550; Mon, 18 May 2020 14:22:04 -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 l6sm9387019pfl.128.2020.05.18.14.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 14:22:03 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 90999404B0; Mon, 18 May 2020 21:22:02 +0000 (UTC) Date: Mon, 18 May 2020 21:22:02 +0000 From: Luis Chamberlain To: Jakub Kicinski Cc: Johannes Berg , Steve deRosier , Ben Greear , 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, Takashi Iwai , schlad@suse.de, andriy.shevchenko@linux.intel.com, keescook@chromium.org, daniel.vetter@ffwll.ch, will@kernel.org, mchehab+samsung@kernel.org, Kalle Valo , "David S. Miller" , Network Development , LKML , linux-wireless , ath10k@lists.infradead.org Subject: Re: [PATCH v2 12/15] ath10k: use new module_firmware_crashed() Message-ID: <20200518212202.GR11244@42.do-not-panic.com> References: <20200518171801.GL11244@42.do-not-panic.com> <20200518190930.GO11244@42.do-not-panic.com> <20200518132828.553159d9@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <8d7a3bed242ac9d3ec55a4c97e008081230f1f6d.camel@sipsolutions.net> <20200518133521.6052042e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200518134643.685fcb0e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200518134643.685fcb0e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, May 18, 2020 at 01:46:43PM -0700, Jakub Kicinski wrote: > On Mon, 18 May 2020 22:41:48 +0200 Johannes Berg wrote: > > On Mon, 2020-05-18 at 13:35 -0700, Jakub Kicinski wrote: > > > It's intended to be a generic netlink channel for configuring devices. > > > > > > All the firmware-related interfaces have no dependencies on netdevs, > > > in fact that's one of the reasons we moved to devlink - we don't want > > > to hold rtnl lock just for talking to device firmware. > > > > Sounds good :) > > > > So I guess Luis just has to add some way in devlink to hook up devlink > > health in a simple way to drivers, perhaps? I mean, many drivers won't > > really want to use devlink for anything else, so I guess it should be as > > simple as the API that Luis proposed ("firmware crashed for this struct > > device"), if nothing more interesting is done with devlink? > > > > Dunno. But anyway sounds like it should somehow integrate there rather > > than the way this patchset proposed? > > Right, that'd be great. Simple API to register a devlink instance with > whatever number of reporters the device would need. I'm happy to help. Indeed my issue with devlink is that it did not seem generic enough for all devices which use firmware and for which firmware can crash. Support should not have to be "add devlink support" + "now use this new hook", but rather a very lighweight devlink_crash(device) call we can sprinkly with only the device as a functional requirement. Luis