From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39C6A32E6A3 for ; Wed, 25 Feb 2026 22:24:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772058252; cv=none; b=keD/ix5dz8GRaWngqTnO7u0I9aV+WCsrYwpsRJl9WKMid+WX0wbquxr28ebq+zcRyDaKQcShpKHB/wqvdM40TVbCt/mFtcT8QkhPZajD+lnr+ZO7NccxrawR6PXfWtAKlL9R4knP8M7rlH3lcQyoPoZIw57OK/xMY25L+qCLqGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772058252; c=relaxed/simple; bh=f3e35Ez6uhgZgPH5U0fc93eG4IVguXA81SEeT4cMkR4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=N5B8gqFlUMmBigEuMzq1SPKVINp2W3tLQcWYhqpaWG3hM81855xWQ7CIOtOLFohPvGyEKua9IpYH9DuUAyTFexGn07S8UuQ9DCgsF1S/nW5fkFXY7wbu5APsG5ijsMGC4EQvmK4iOBV62Vcn+ii00bv/fYSVV5W16FTGRvNcFBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=o3xf4W2I; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=DXDKs3TA; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="o3xf4W2I"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="DXDKs3TA" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61PGkirZ3633021 for ; Wed, 25 Feb 2026 22:24:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= svccUThHe/dQLGWL4PYVHbZ8LS96Vy6iNyhhAR9sFEM=; b=o3xf4W2IYukQzGJl 3df3jhgP884OdcdX1k5XXFAtEMraxac66VwBsunfsiQKOv8aGP1STPiZAeiRwkZG ImjJZ+bRX+WdZ+10ewE26vB7jKw+NxKtNdQkhsVThJ0ibdlFwXpXg84mrOddhJle LVjmjjw8rRHKcofL4yWz+EknVDYeeyzddkfRJuemfxLvvEeibDRul8uSXCOtF06N PubpnaLbQfOVFIiGaGa6V8JLgPtl2b+VrUCy5517kHl9SOoPwKkaLPSfCkDXDlnZ k0nWlQBjTbWdytzCdDanUNa7jXA00/wQ6mn6y0fxvzncrjwN9+F51pXV6Smfsuu9 ojASyQ== Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cj4w4ryjt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 25 Feb 2026 22:24:08 +0000 (GMT) Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-45ca5b0a968so3291351b6e.2 for ; Wed, 25 Feb 2026 14:24:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1772058248; x=1772663048; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=svccUThHe/dQLGWL4PYVHbZ8LS96Vy6iNyhhAR9sFEM=; b=DXDKs3TAywpfyiMhKZUHic3JvQFWDA4TFmWwBKj0L7Glv6BSNg2JeAGWoXBI7WkfGs 75POzC/4FzTUVXgrpNxR3gYBDax6sXfqUjQGdJwwCMrxSOKsmJ2un+IV4oFIYlEVygGw EMaz5+ijFeJNdHIY5MGmIl2d5byN+Cdn0Ws7K1JjsdMhn4zso5S9QrbSO4YJT8NBuDkn dszRrUWRFzvBXMm8BJDnkWx2b5yeTKfEb/RC4KCsNZf2SbGZQyNAaxxg7zVW+d1Q4BXV 1NkbUXevYm6Gz1B/J4/rG18x+OM0PJC1wQ/swWq83qm2ktCyUxXNt70fuN+NueADWHGX xFMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772058248; x=1772663048; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=svccUThHe/dQLGWL4PYVHbZ8LS96Vy6iNyhhAR9sFEM=; b=LTHNqxHRtS4x4/uDnbsAXceW1gUkDeUHq8mjXEzS955aX8ryVbyxAs+lkq/O1srAi3 pxdF01sfbr3wYDI9BILeecMNy8/SSNGc5RHj2yj9u0k26RIg/LOdQACCgiCJRFt4ebD/ ZFMRb3/kjdh7ZvudAmO8BILlxkVGNQIThigZ6XI9pY6SRwxnLCTkplr3oPBeWqE2lxCk wKNkCW+kuc4vVMn0ZJUQVA+Xg444hZ1cZ/qLh6ghpoE4uz1P2n0GjX4ioz7r1XGpnMUG ZlIX6RYltt/Q2UQO8NHz1Bx9/ZAMWk47HXwa/MgMTO/9DrQmMFOXjUBuGo/M/yQy4SRX 4aRg== X-Forwarded-Encrypted: i=1; AJvYcCUiDiD5RsYn9dmX94nu/kMJWBkcFJCQKqaroRSEHzCcTyBsz17lMFq+QGs9E08pghiLWfumD87yhnCXB6w=@vger.kernel.org X-Gm-Message-State: AOJu0YzHTHJFEfcUlBX30rlo4LDxM8Of78ichTN5mU9GT/OWa76cDxGL kYFyn+2WPBigj0k1X3CRvfJNdqra/K7w4Ti1Q3BwP5ZSlqXOqa6GGGXytg+3taOJlLuGy1eo70F be9N/aI1n8ri+3eB13lEbhCrWLjeK90Zctt6iaNemShU/nxF4vEYEPNhsbeFAJAIn3lVyZ9WWaN s= X-Gm-Gg: ATEYQzysM3ARPLTcelk7ZDn7E/obN++b8xUIBsL1og211JYKUXPqlSeYQ7gBS6rqaRs n/+JOmXxYAYHemLXq8qi69hAsRCt5xmGnbFWCKUXCF61asg92j3+W3Bqbb9/iDC/a580oGxxEhm DGIyebAEwTRHuPZAxlJFms024f12wbXoxHpN7KEBP9PTG7kScMLfD4Us+ZgEhGTUyef4ZFzojWN G40K6Ao/PiFlSBxb1AD+xnQeTB0i4QfMShq6aD/DR34idTEngXK51o/U335jDnonbrGZUFslz7O DZVjURdzlPmEpzTH1BmGiVsj7s3gUZzIhMEhj+9z+Tz/EiBYdfP3dP0rkSkLJ9W5gcHCjIP56L9 AK6UZTz5mXAwiy+TYx9aP7sAGa0Z7GDjrvJyLrcVCg4nFi8wGpIBxJgDxmD3TktM2PIK9PhWj3Y OcrBRpHiqKl+7DSg== X-Received: by 2002:a05:6808:c2ab:b0:45c:90d6:9911 with SMTP id 5614622812f47-4649efebc95mr1146802b6e.36.1772058248069; Wed, 25 Feb 2026 14:24:08 -0800 (PST) X-Received: by 2002:a05:6808:c2ab:b0:45c:90d6:9911 with SMTP id 5614622812f47-4649efebc95mr1146791b6e.36.1772058247726; Wed, 25 Feb 2026 14:24:07 -0800 (PST) Received: from [192.168.1.41] (c-24-130-122-79.hsd1.ca.comcast.net. [24.130.122.79]) by smtp.gmail.com with ESMTPSA id 5614622812f47-46460661eeesm7255226b6e.13.2026.02.25.14.24.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Feb 2026 14:24:07 -0800 (PST) Message-ID: <704dc2ae-cc22-463b-b858-060fe7d35f9b@oss.qualcomm.com> Date: Wed, 25 Feb 2026 14:24:02 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH ath-next v2 0/4] wifi: ath12k: harden stats/rate handling for WCN785x stability To: m.limarencko@yandex.ru, jjohnson@kernel.org Cc: linux-wireless@vger.kernel.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org References: <20260212121746.329619-1-m.limarencko@yandex.ru> From: Jeff Johnson Content-Language: en-US In-Reply-To: <20260212121746.329619-1-m.limarencko@yandex.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: FWQA3OJAPjHNyKhS3AwnuqZ8Ud-OIaXW X-Authority-Analysis: v=2.4 cv=IqMTsb/g c=1 sm=1 tr=0 ts=699f7688 cx=c_pps a=4ztaESFFfuz8Af0l9swBwA==:117 a=Tg7Z00WN3eLgNEO9NLUKUQ==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=vaJtXVxTAAAA:8 a=fa93lz8o_VCnTWEDYAwA:9 a=QEXdDO2ut3YA:10 a=TPnrazJqx2CeVZ-ItzZ-:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjI1MDIxNCBTYWx0ZWRfX5OK/NwtK+QO0 65HIQMksVfhp5o2ismZbDar74gov4fQlBhQvHJT/jjvtP9/IFaktG3icaYMMYVoxizeNg7blEUA l7IvyAsr0PAka/ivEX6t/S7ywtloMym5lYJIxTjqShSBso6tAtl+Uzb4vLhamHIT9xkPRVYQGBK F06BMdTLosf0jys7IS1NHenx4tkhFdehWR82FN3UIxu43Xp5AxDkKvm4jMezZGJfYjUrZTnqRFE 7Gji2lUx/zQ3KgS2U9YykMFzx6am3XwRehOkOZIIi5Tn6Q5cHepTchcDKd24QcwOBEgkyHcBEbJ vsXUOKDD68O3mNhc1eP6d1uQWl0gPxTq6w9sSPWxD381aSiG87f0HGhp1k0LI3jgzyZBYwKZiNL 41DRTHohs2lTa14wYYCV1/M4W5ViXhcoCxh9C+kt4zfzVZpe/5Zq3sxXOUhRH5wdTDdzulHjT4b GY+tQF1mYTNbyS1w+Gg== X-Proofpoint-GUID: FWQA3OJAPjHNyKhS3AwnuqZ8Ud-OIaXW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-25_03,2026-02-25_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1011 lowpriorityscore=0 suspectscore=0 adultscore=0 impostorscore=0 spamscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2602250214 On 2/12/2026 4:17 AM, m.limarencko@yandex.ru wrote: > From: Mikhail Limarenko > > Hi Jeff, all, > > On QCNFA765/WCN785x (PCI, kernel 6.18.5) we observed three recurring > issues: > > - chan info events with frequency not present in local survey range, > producing invalid idx warnings; > - frequent VDEV_STAT polling can block for 3 seconds on fw_stats_done > timeouts and cause visible hitches; > - occasional invalid MCS metadata (for example HE MCS=12) propagates > into mac80211 status handling and correlates with ieee80211_rx_list > warnings. > > This series addresses those cases by: > 1. returning an explicit error from freq_to_idx() when no channel > matches, and rejecting negative indexes in callers; > 2. reducing the wait on VDEV_STAT fw_stats completion and skipping > unnecessary waits for stats types that do not require it; > 3. sanitizing invalid MCS metadata in both dp_rx and dp_mon paths by > falling back to legacy metadata with ratelimited diagnostics. > > Tested on: > - hardware: QCNFA765 (WCN785x) > - kernel: 6.18.5+deb13-amd64 > - AP mode: 5 GHz (802.11ac) > > Observed after applying this series: > - station dump polling no longer shows multi-second stalls in test runs; > - no fresh ieee80211_rx_list WARN was observed in the same windows. > > v2: > - patch 1/4 commit message no longer claims OOB in chan-info paths > - patch 1/4 keeps matched-frequency index progression unchanged > - patch 1/4 returns -ENOENT on no-match and callers reject negative idx > > Thanks, > Mikhail Limarenko > > Mikhail Limarenko (4): > wifi: ath12k: return error when survey frequency is not found > wifi: ath12k: avoid long fw_stats waits on vdev stats hot path > wifi: ath12k: sanitize invalid MCS metadata in rx path > wifi: ath12k: sanitize invalid MCS metadata in monitor rx path > > drivers/net/wireless/ath/ath12k/dp_mon.c | 38 ++++++++++++++--------- > drivers/net/wireless/ath/ath12k/dp_rx.c | 39 ++++++++++++++---------- > drivers/net/wireless/ath/ath12k/mac.c | 22 +++++++++++-- > drivers/net/wireless/ath/ath12k/wmi.c | 9 +++------ > 4 files changed, 70 insertions(+), 38 deletions(-) > This series does not apply cleanly to ath/main (or ath/ath-next). Please make sure the issues you saw have not already been fixed since there were substantial changes from 6.18 => 6.19.