Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp806257ybe; Wed, 11 Sep 2019 05:08:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIqgSc6SAUaS7RGQmmdSFav1oIrFOf/fkK5ZA8fwEUHkJJT8G3wC+h0H/NWsdrCJgyUUFh X-Received: by 2002:a50:918d:: with SMTP id g13mr35906738eda.64.1568203689027; Wed, 11 Sep 2019 05:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568203689; cv=none; d=google.com; s=arc-20160816; b=wduqnb0ChsU0nBWo8na8TzLe7hWbEL6XDjq+fn7vHiPw1GGgV+3BX2dSrwtbPLnknR FkIM2BQxMY8w1TsFQ8jK/TBl718TMqmz1foBMmcVIUyGgqkjqgAk2xa65fA2gJ5+2U6j v1jt9beOLXCtq780RsRfZ6/0m78PnDgvaNQH+NX5f5EyRj6P37C5nWdrcZEMKn8Wbwm/ /nS3j5NyzCS6LuDGk8UBxOmxxkUjbve4jknfY44508Tl4HxA8XC5tlTxrucwdM+KXNpo ztQ8AEOk2XKnVC9xcDEYT8ygvlb6PvlA/6p7Llk6212ti/73qGhDThPd7hhswk9qvbO8 DBqA== 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=aQKBJQo3ZGYudOWFeMPZku+TyDaT32VHOOxum96XY58=; b=ihzgxUgCwkpa0TLkR54k7Foe8Q4zntswMghQNoR6I09u7OwxQE00XJq8B2fWjf24D5 nMP7RqLpu3nBu/2f0Bu4IYZWIlzdCM8CN6c8Dzcg8cCLhGaGF+SIJV97DlXQQjD0XqsC NyHawoqTED+zscZtjfXdmVFrXixT7o1mJZ44BTH1hOpSSAmxWk/M7kY+ZBl2QJHmi3OH WGP3myL7yISRk1aJgiYtcJoP+iWd4+t/I0gSzKpDh44DKbpwudonzDdW6eaIosSghP5m crABsXerdKMRuir8spt9U51MsSQICguzNyIj9R39ssBAYM1buR+S7Y4OJdY2LoAFW+HI V6jg== ARC-Authentication-Results: i=1; mx.google.com; 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 p13si11116038ejr.281.2019.09.11.05.07.42; Wed, 11 Sep 2019 05:08:09 -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; 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 S1727828AbfIKMEl (ORCPT + 99 others); Wed, 11 Sep 2019 08:04:41 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:37674 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726696AbfIKMEk (ORCPT ); Wed, 11 Sep 2019 08:04:40 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1i81MN-0006HO-EX; Wed, 11 Sep 2019 14:04:31 +0200 Message-ID: <30679d3f86731475943856196478677e70a349a9.camel@sipsolutions.net> Subject: Re: WARNING at net/mac80211/sta_info.c:1057 (__sta_info_destroy_part2()) From: Johannes Berg To: Linus Torvalds Cc: "David S. Miller" , Kalle Valo , linux-wireless@vger.kernel.org, Netdev , Linux List Kernel Mailing Date: Wed, 11 Sep 2019 14:04:30 +0200 In-Reply-To: (sfid-20190911_135849_146176_004B38CD) References: (sfid-20190911_135849_146176_004B38CD) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) 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 Wed, 2019-09-11 at 12:58 +0100, Linus Torvalds wrote: > > And I didn't think about it or double-check, because the errors that > then followed later _looked_ like that TX power failing that I thought > hadn't happened. Yeah, it could be something already got stuck there, hard to say. > > Since we see that something actually did an rfkill operation. Did you > > push a button there? > > No, I tried to turn off and turn on Wifi manually (no button, just the > settings panel). That does usually also cause rfkill, so that explains how we got down this particular code path. > I didn't notice the WARN_ON(), I just noticed that there was no > networking, and "turn it off and on again" is obviously the first > thing to try ;) :-) > Sep 11 10:27:13 xps13 kernel: WARNING: CPU: 4 PID: 1246 at > net/mac80211/sta_info.c:1057 __sta_info_destroy_part2+0x147/0x150 > [mac80211] > > but if you want full logs I can send them in private to you. No, it's fine, though maybe Kalle does - he was stepping out for a while but said he'd look later. This is the interesting time - 10:27:13 we get one of the first failures. Really the first one was this: > Sep 11 10:27:07 xps13 kernel: ath10k_pci 0000:02:00.0: wmi command 16387 timeout, restarting hardware > I do suspect it's atheros and suspend/resume or something. The > wireless clearly worked for a while after the resume, but then at some > point it stopped. I'm not really sure it's related to suspend/resume at all, the firmware seems to just have gotten stuck, and the device and firmware most likely got reset over the suspend/resume anyway. > > The only explanation I therefore have is that something is just taking > > *forever* in that code path, hence my question about timing information > > on the logs. > > Yeah, maybe it would time out everything eventually. But not for a > long time. It hadn't cleared up by > > Sep 11 10:36:21 xps13 gnome-session-f[6837]: gnome-session-failed: > Fatal IO error 0 (Success) on X server :0. Ok, that's way longer than I would have guessed even! That's over 9 minutes, that'd be close to 200 commands having to be issued and timing out ... I don't know. What I wrote before is basically all I can say, I think the driver gets stuck somewhere waiting for the device "forever", and the stack just doesn't get to release the lock, causing all the follow- up problems. johannes