Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp237100iob; Mon, 2 May 2022 18:06:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoVIxSm3TCdeDosjZq2ryWIjFOuuZwN7ovlbr8T2esccJ0bBU0M2/UvAEVGJGU7Ef1eyfA X-Received: by 2002:a17:90b:3909:b0:1dc:2805:9aeb with SMTP id ob9-20020a17090b390900b001dc28059aebmr2053391pjb.147.1651540001446; Mon, 02 May 2022 18:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540001; cv=none; d=google.com; s=arc-20160816; b=TJ4+yXTZ1vUf7BgwN/zh3wqK3GcP2PbWpjsnlB5ERYnDplwrsvLEOZ6xd9k7LNL3ZU G8gWsfNKTUieKPuevHR2W0ZeYPiuZqV2d2ucTOS7BKC1lDPqce4cIh7MLkgwlu9YVhj/ 1WQJdFFx2MMtrBV3D0IUepRE0c1Sb7qEX85C/lSfeWJkwHpK81jGDnxYanURhktsaYAA IfXMIiquExo4qmR9qHlzEePiCsZjGEkFL6SG8GYCbpnqr2b9nzZ0LNwVD3eZmBvbwA9+ quXQ/aJ0WAA/ci+1Rp5MyltPl5ogbIjzyadJd7gsDzFQki5eJOB+PSzQ/4SUwDMpRNNZ 3Sxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=ye8ChGnm2maCaFdfYYZpDcXvcieVjvMJFjlhFEWCgM4=; b=Vb0jz925QyjgHgxKbOjISkMe7LFczStgPpVFr7euH9a3LB6ljofyswVIIAyrFzMYC6 R995g1NPytzMQ20RIR5TqcWIOC/2GqoiLYqVUQClZakwp6GK/Mgm80vXz0KNJpGs6sTG HuJhZfXeatZuC5vSPAYskq90v1ogJG5pXgS0W1laUzpXx0FYuOaxjDRcKPSGwKWKhYwZ CEtgxXDsNVFEmwr9I0TusvdFeVZrAhrCge4y9kfQ/u7vvupvpfDjjrXuTBqzBq23ZzYN MeYG8oa984Win70lumLCgygIQYqHGyOqXvobehUHveU0GrRouIJ4Ec/A0PLu1xOzvCAu DYtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LysZ0fWz; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a6-20020a63e846000000b003c19e2b38f8si11726311pgk.421.2022.05.02.18.06.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:06:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LysZ0fWz; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 90EDB36E25; Mon, 2 May 2022 17:49:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236450AbiEBOAU (ORCPT + 68 others); Mon, 2 May 2022 10:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236321AbiEBOAT (ORCPT ); Mon, 2 May 2022 10:00:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E93A11178 for ; Mon, 2 May 2022 06:56:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 04FC860B83 for ; Mon, 2 May 2022 13:56:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F3C5C385A4; Mon, 2 May 2022 13:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651499809; bh=qyL8unxF+GYrVSHUEoChKceFv97ML8X3CkWqmc1gLF8=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=LysZ0fWzWI48gQ/ZefycReTb23H9tvtrhmFLONjUOsfhbmC9XWTO1e2/zSnrvQcJ3 g5yK6U4ogXvGflmyOV8vX5fWXgfabRnAbCGzSp9jTQiA10L2zEnOLmj9R4fbsLolbz Zor2fCRLb5gp7Is2rCK3JMforn73lKrIwKgx4DqT2V68vsHmGtVTry4G+CEhlpXz99 yLaR+ufEz3mIOqgGuWP5Df7A7fudAoD9+zX3In+dZ6SMcjCUPSL3iYPKs0CO9kHlOQ ja2c6HvkNj2lYZ4V8UI2AfbiNA3b/MK5Dr5ExjEx2yHbUoZZdnfFVlq8NXFDvorP+d nosvcii0lbwXA== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] ath11k: fix warning of not found station for bssid in message From: Kalle Valo In-Reply-To: <20220428022426.2927-1-quic_wgong@quicinc.com> References: <20220428022426.2927-1-quic_wgong@quicinc.com> To: Wen Gong Cc: , , User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <165149980392.16977.654671468717148799.kvalo@kernel.org> Date: Mon, 2 May 2022 13:56:48 +0000 (UTC) X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Wen Gong wrote: > When test connect/disconnect to an AP frequently with WCN6855, sometimes > it show below log. > > [ 277.040121] wls1: deauthenticating from 8c:21:0a:b3:5a:64 by local choice (Reason: 3=DEAUTH_LEAVING) > [ 277.050906] ath11k_pci 0000:05:00.0: wmi stats vdev id 0 mac 00:03:7f:29:61:11 > [ 277.050944] ath11k_pci 0000:05:00.0: wmi stats bssid 8c:21:0a:b3:5a:64 vif pK-error > [ 277.050954] ath11k_pci 0000:05:00.0: not found station for bssid 8c:21:0a:b3:5a:64 > [ 277.050961] ath11k_pci 0000:05:00.0: failed to parse rssi chain -71 > [ 277.050967] ath11k_pci 0000:05:00.0: failed to pull fw stats: -71 > [ 277.050976] ath11k_pci 0000:05:00.0: wmi stats vdev id 0 mac 00:03:7f:29:61:11 > [ 277.050983] ath11k_pci 0000:05:00.0: wmi stats bssid 8c:21:0a:b3:5a:64 vif pK-error > [ 277.050989] ath11k_pci 0000:05:00.0: not found station for bssid 8c:21:0a:b3:5a:64 > [ 277.050995] ath11k_pci 0000:05:00.0: failed to parse rssi chain -71 > [ 277.051000] ath11k_pci 0000:05:00.0: failed to pull fw stats: -71 > [ 278.064050] ath11k_pci 0000:05:00.0: failed to request fw stats: -110 > > Reason is: > When running disconnect operation, sta_info removed from local->sta_hash > by __sta_info_destroy_part1() from __sta_info_flush(), after this, > ieee80211_find_sta_by_ifaddr() which called by > ath11k_wmi_tlv_fw_stats_data_parse() and ath11k_wmi_tlv_rssi_chain_parse() > cannot find this station, then failed log printed. > > steps are like this: > 1. when disconnect from AP, __sta_info_destroy() called __sta_info_destroy_part1() > and __sta_info_destroy_part2(). > > 2. in __sta_info_destroy_part1(), it has "sta_info_hash_del(local, sta)" > and "list_del_rcu(&sta->list)", it will remove the ieee80211_sta from the > list of ieee80211_hw. > > 3. in __sta_info_destroy_part2(), it called drv_sta_state()->ath11k_mac_op_sta_state(), > then peer->sta is clear at this moment. > > 4. in __sta_info_destroy_part2(), it then called sta_set_sinfo()->drv_sta_statistics() > ->ath11k_mac_op_sta_statistics(), then WMI_REQUEST_STATS_CMDID sent to firmware. > > 5. WMI_UPDATE_STATS_EVENTID reported from firmware, at this moment, the > ieee80211_sta can not be found again because it has remove from list in > step2 and also peer->sta is clear in step3. > > 6. in __sta_info_destroy_part2(), it then called cleanup_single_sta()-> > sta_info_free()->kfree(sta), at this moment, the ieee80211_sta is freed > in memory, then the failed log will not happen because function > ath11k_mac_op_sta_state() will not be called. > > Actually this print log is not a real error, it is only to skip parse the > info, so change to skip print by default debug setting. > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3 > > Signed-off-by: Wen Gong > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. 7330e1ec9748 ath11k: fix warning of not found station for bssid in message -- https://patchwork.kernel.org/project/linux-wireless/patch/20220428022426.2927-1-quic_wgong@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches