Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1226402ybe; Wed, 11 Sep 2019 11:21:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/SrYta004TKRm6B0dem/iMVshLZfeJODf8oMXG2DbYJ4koPbCysBkUNBGjQRWM3c1iosm X-Received: by 2002:a17:906:5299:: with SMTP id c25mr14488319ejm.64.1568226078786; Wed, 11 Sep 2019 11:21:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568226078; cv=none; d=google.com; s=arc-20160816; b=CAvHZgFNQxigks6w7STNjOEcBkg/dkWfPJUdf3a6HMRLjNH3nsP3MAm0HI0RasIlNT bjYc756ooFxHAMFCLDSyORO3/hUM+ExfzuUekwWfzOstm6Hw+I/G4GCjSFLdUO2ykwLb 1Vptrl7TJTSa12BPN89ZuvpS9ucHhFd47qPuntA0IYmlxxi76M1o1mwW50VIKMHhHkZO w76NI6XdCOFVWVDn5yI+O8Ayo86nEpL+rkF4AFwFgHjjPhsJQE8KB9z6ZgpfcTcG298d EjXHOx92bvZfvS3bbdbbUAcx3xb7cBpCaGTQsozX4zWTNAFQxgOVAWmVlJ6SNBfWSPQO U7FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=uu0kKyIgCS0A6iLO6/KQ4zRrSq4oWmvIt9EDg9bXfOI=; b=UHQjX/w1JRTcjs3PJ4ErHl6au+k5MIQskFCBaXHcbEyRlbYa/MaZVz2YKpAr3Xt4nf oNR8+3bS3Tcp6l+DJ2AuYnbc0/gz76lV2blnhdliD+hSxF8WrIVPqyeVNAT0LBdd+0fM 5XSOpF5XsNmlTOppwzecbBZrmcE8+0CD/ZJ51APMaJJgC/IALEAvg/eQDWnl4cUvRJ12 ylBjD8wVZ0hUie1sxu1e+eD+MYvOAQi7skP6LfzKImh7fP0uccbQdqYHjq0fhXuFjbFh qIHQzPO+2DHLO2rqMJ0CojijaDrvO0mt6EPxiGCkyp7uq/fH6ySesvmHjdS1tv14K/nv 9zIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=D4aSuyuL; dkim=pass header.i=@codeaurora.org header.s=default header.b=oPoyWpwW; 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 y9si11459442ejb.5.2019.09.11.11.20.53; Wed, 11 Sep 2019 11:21:18 -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=@codeaurora.org header.s=default header.b=D4aSuyuL; dkim=pass header.i=@codeaurora.org header.s=default header.b=oPoyWpwW; 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 S1729914AbfIKSTZ (ORCPT + 99 others); Wed, 11 Sep 2019 14:19:25 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46830 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728198AbfIKSTZ (ORCPT ); Wed, 11 Sep 2019 14:19:25 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 33882607C6; Wed, 11 Sep 2019 18:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568225964; bh=Cq8dA5RuJNCfEAowmhvZuC5y4iuFy5mhIPmTToluUMs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=D4aSuyuLCh3pJmHnnFpuTZCHcgVPaPoy16SYi1IkAD2LGzeyMkb1mf4M04VdRUEsl deUcjNc05bsek504fYmwIDZbrG6EDW1lu3lpUtBPeCdZqQkJ68cukQl+Hzlsp1p82J wny+cIg6vd2kG6sSC7EPTgNfqTVcbu96E3ggKVSY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from tynnyri.adurom.net (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 933CF602BC; Wed, 11 Sep 2019 18:19:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1568225963; bh=Cq8dA5RuJNCfEAowmhvZuC5y4iuFy5mhIPmTToluUMs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=oPoyWpwWaYG6gmpB5EbPPo9zZG4bz8pA8hQ3l4p8ZV5bp+GMzxvD0tduXjlV+A/vn 4PvOsNNH3umELX67JiyoIbxDx+wsjMi3kYHic0fJIv+3qNnM2tnVsy/YnztgZjQHat egYPG4zlizRYUB9g1n3e9+jHAuwVloSa1avaEzGg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 933CF602BC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Johannes Berg Cc: Linus Torvalds , "David S. Miller" , Kalle Valo , linux-wireless@vger.kernel.org, Netdev , Linux List Kernel Mailing , ath10k@lists.infradead.org Subject: Re: WARNING at net/mac80211/sta_info.c:1057 (__sta_info_destroy_part2()) References: Date: Wed, 11 Sep 2019 21:19:19 +0300 In-Reply-To: (Johannes Berg's message of "Wed, 11 Sep 2019 12:26:32 +0200") Message-ID: <87ef0mlmqg.fsf@tynnyri.adurom.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Johannes Berg writes: >> ath10k_pci 0000:02:00.0: wmi command 16387 timeout, restarting hardware >> ath10k_pci 0000:02:00.0: failed to set 5g txpower 23: -11 >> ath10k_pci 0000:02:00.0: failed to setup tx power 23: -11 >> ath10k_pci 0000:02:00.0: failed to recalc tx power: -11 >> ath10k_pci 0000:02:00.0: failed to set inactivity time for vdev 0: -108 >> ath10k_pci 0000:02:00.0: failed to setup powersave: -108 >> >> That certainly looks like something did try to set a power limit, but >> eventually failed. > > Yeah, that does seem a bit fishy. Kalle would have to comment for > ath10k. > >> Immediately after that: >> >> wlp2s0: deauthenticating from 54:ec:2f:05:70:2c by local choice >> (Reason: 3=DEAUTH_LEAVING) > > I don't _think_ any of the above would be a reason to disconnect, but it > clearly looks like the device got stuck at this point, since everything > just fails afterwards. Yeah, to me it looks anything ath10k tries to do with the devie fails, even resetting the device. > Looks like indeed the driver gives the device at least *3 seconds* for > every command, see ath10k_wmi_cmd_send(), so most likely this would > eventually have finished, but who knows how many firmware commands it > would still have attempted to send... 3 seconds is a bit short but in normal cases it should be enough. Of course we could increase the delay but I'm skeptic it would help here. > Perhaps the driver should mark the device as dead and fail quickly once > it timed out once, or so, but I'll let Kalle comment on that. Actually we do try to restart the device when a timeout happens in ath10k_wmi_cmd_send(): if (ret == -EAGAIN) { ath10k_warn(ar, "wmi command %d timeout, restarting hardware\n", cmd_id); queue_work(ar->workqueue, &ar->restart_work); } -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches