Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1788377ybj; Sun, 22 Sep 2019 11:58:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYQ8HWR0iCbRARSuvM22zVtU2rUstw5bB0tMF6lPHSY/FzwHS2nGujtS2QktRqfZ1bHrPj X-Received: by 2002:a05:6402:346:: with SMTP id r6mr32540799edw.124.1569178687099; Sun, 22 Sep 2019 11:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569178687; cv=none; d=google.com; s=arc-20160816; b=i0qTmsqqMMkjUdFB1QEstQVLLZy9GsXLut1k7B62L4eLI9y4Yvm5lxf6u8YbjSFG1U ywZnwReKP+r2hzXSjH7xLxlr6L5s+j6udGDT2BoM5Sf56PQBljb5+6t8uEwMkm5ml2bh 4EpuLEoMW9QIX8M9y23oEdRn1hLaH9ULSlHa+KzOUERkM3HxJGib9t79MmOeukojZGFb PGNAMWPLJJ5iF1uXRMRKZ/FpAMUyWUxRy4DEQgV04fem0Jp2kqSBU+rJmzIy5tlqDWGP 9bQYuf8BqNQF7lWFXCLLzR2EB2YkUUhNV7lcyCW8ZMcp9fsa4eetUmMrdgVLpbaMSeEw 8XUA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=xwXwb0VRr0Y5mbIrCdrhW15Qm4cGAzoeDVJ2lEpfOz8=; b=ZFqb+b/Ng1spx96PeC+gyWtwGumvhdcYSssreDpwsyJdbRuIQ0gmchD3WnFRyjChU4 z6/N1odQ5zg2jC3S4V0qrDOIlKksUUwI9vZbUQ8VN3D5TlvXGDyuM2gJlUNRnsg15bPD 2rgvl2JDz6z6qQtxVc2R3HajPbL6KUXLZdOVYkkz+YyoFnsufnQh1te1wYjukv+3nsMh op/Vp3A3ybtu+mTnuu9FHCCW6Mg30ka96ZAM9HFtqcEyShs2ZczGPP28ZIFV24xTTIoo tCi+BFhDmqW6jwXRvUzxJVh9FlkFTKkMKU2fLX+bNgMv2XjfHyW17f6VL5y4r6I65A/x ROag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=U3SmG6Mq; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22si5605913eda.27.2019.09.22.11.57.42; Sun, 22 Sep 2019 11:58:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=U3SmG6Mq; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405704AbfITR4i (ORCPT + 99 others); Fri, 20 Sep 2019 13:56:38 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36512 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392496AbfITR4i (ORCPT ); Fri, 20 Sep 2019 13:56:38 -0400 Received: by mail-qt1-f196.google.com with SMTP id o12so9672196qtf.3 for ; Fri, 20 Sep 2019 10:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=xwXwb0VRr0Y5mbIrCdrhW15Qm4cGAzoeDVJ2lEpfOz8=; b=U3SmG6MqU1G3DvKMpMi11blBiYYiRG4IcOO9Awa0gS87SZtXwHxfRAO+oIJ9MK0/EA Y5Nsta25gV6EmMx5g/TCw3dF35cXtaZf4UJQ2ybwL38/fuf5L0gSLWl/pIgkAy/Tr/9W 9lOEUdnL6ZM0CekQcwazwaVgejdB3SGe6ZWzCcI24li08Gqx59nLfW91oHIlP8XTnHGZ 8rVb6AExkrDnCzj8p+HKIxY250lw4QXE+FgqHm2qbRqX/YbEWhYwnNj0plotZ8P4mjFL YVQUH4FOhow4YLVAXaWBn0aBFQjADYeLIIcVijsmpWz5SUH2FgLmopUo3+6vwdV+rEDp IaDA== 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:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=xwXwb0VRr0Y5mbIrCdrhW15Qm4cGAzoeDVJ2lEpfOz8=; b=cmGIZ9e+Ch2ovmanX4E92I0mYDkW9rVrc/qSs9VfJmxkAYDALHjT2TvMQLFNdepRke EEQUsPTaI30tUw0TIGBjTm4WbbSzer/rf1vp95MVnMiPCveWuVwhojrXuprsujvJHXwW +p6kPfSOdtXAje2lrY9gLLVTAMz+ItTIGeXaSQa6yIPmNsl9ECcOHi/se35oyAVz9ug6 QEANGQFXC2BXWpQtxZYGqxCSzzOriuXSAY+eRxe+X10Kh6EROa+XF2mr6FKluqdgI8WS TeQNsFEDN0MGBGYe/RKTM7EHIQ0Lkqdv1XNunh6Bms4gTyxZiOhzIFUEAOKhzPvlMg6H Xrxw== X-Gm-Message-State: APjAAAWMyaTqq3WWSh921ZUoJbEShARn+0kyxAmSIqrV1lPQr5GSFHIG qxY3Lc5yCQoAaOIn9D6BoChjKw== X-Received: by 2002:ac8:3fd2:: with SMTP id v18mr4595140qtk.73.1569002197003; Fri, 20 Sep 2019 10:56:37 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id e42sm1322992qte.26.2019.09.20.10.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2019 10:56:36 -0700 (PDT) Date: Fri, 20 Sep 2019 10:56:31 -0700 From: Jakub Kicinski To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Johannes Berg Cc: "David S . Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jouni Malinen , hostap@lists.infradead.org, openwrt-devel@lists.openwrt.org, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH RFC] cfg80211: add new command for reporting wiphy crashes Message-ID: <20190920105631.34f10d79@cakuba.netronome.com> In-Reply-To: <20190920133708.15313-1-zajec5@gmail.com> References: <20190920133708.15313-1-zajec5@gmail.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 20 Sep 2019 15:37:08 +0200, Rafa=C5=82 Mi=C5=82ecki wrote: > From: Rafa=C5=82 Mi=C5=82ecki >=20 > Hardware or firmware instability may result in unusable wiphy. In such > cases usually a hardware reset is needed. To allow a full recovery > kernel has to indicate problem to the user space. >=20 > This new nl80211 command lets user space known wiphy has crashed and has > been just recovered. When applicable it should result in supplicant or > authenticator reconfiguring all interfaces. >=20 > Signed-off-by: Rafa=C5=82 Mi=C5=82ecki > --- > I'd like to use this new cfg80211_crash_report() in brcmfmac after a > successful recovery from a FullMAC firmware crash. >=20 > Later on I'd like to modify hostapd to reconfigure wiphy using a > previously used setup. >=20 > I'm OpenWrt developer & user and I got annoyed by my devices not auto > recovering after various failures. There are things I cannot fix (hw > failures or closed fw crashes) but I still expect my devices to get > back to operational state as soon as possible on their own. Perhaps a slightly larger point, but I think it should be raised -=20 is there any chance for reusing debugging, reset and recovery work done in devlink originally for complex Ethernet devices? WiFi drivers have been dealing with more complex/FW heavy designs for a while so maybe you've grow your own interfaces, and maybe they necessarily need to be 802.11-centric, but I'm a little surprised that: linux $ git grep devlink -- drivers/net/wireless/ linux $