Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp55796lqb; Tue, 16 Apr 2024 08:40:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWk2rFrk0PVdm0iHLvzZAMB1Ywlh/jzGzNOVAJ3kdM+SI4VF94tTktvXwmze9XuwtfeK5yRBO84n695X8tqt/f8tdh24rRx5LGsMiThmw== X-Google-Smtp-Source: AGHT+IFK/KBbrQYvPbzeOt4DEvlQsNet+5GqkYgkpavlROYbWjRehA4j1+/JPpUb/TX7rQr0AEsN X-Received: by 2002:a50:955d:0:b0:570:8f8:bc3a with SMTP id v29-20020a50955d000000b0057008f8bc3amr7044389eda.4.1713282048944; Tue, 16 Apr 2024 08:40:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713282048; cv=pass; d=google.com; s=arc-20160816; b=S7VEg1fYs9eA25mRBafzLf6kuBH8LoxSWCkJuHCSbqNGoT6ddLo39kgwNQeeUXlWFb DLkBoAAqKHd3ueJ7wgjgqOg+gI8eR37ntdtmWVh5l+21ds59zRSDeKl9bBVZr3aRtyS3 Y5oTvE0dxt+86lsQ9XFJNxBJ8Ztwhndw7SFJe3TntLRPb77rKPzTw/z/yz1A5A7e+cT1 fYhXUUOaAMqiKJOmz7/rfTyNuOx9EBYaknrKnOCe0ajVtBtELYJ6fBpFmrCCvahBRUwa C7+2Uigjb0AIfIEZsOfsW91ETdRVMl/kK6wxLE8CSF80VuP5yhZHn9j1lkourRqR7N/I CgMQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=GyG8rAq6ewzeKsPt0mHsZyNL0Ljo1ec+uNO4v4NZv7Y=; fh=kPQsImdN3LxNdUurLWCtZgV3Pp3e3XqSn503+3S7Q8Y=; b=k4XvL+83REa4RkyVi42HcOKgOOW8VRIbQd5Y3vgexjiC49RQEJMJyCWIDCf12WpyRG Ya1Zn9AySRLA3zfKwgpG636OIKhRPO688Sr8TmbkgB4Q7lj9wTbAda/97iUjY2jnfbN+ rhUye0D8u/Wbqeo3QwO07NHON13e83k1nCnSEX6eg2iBl1BAB6L2EHiDm/5nj9zCHXK3 d19YcYeDjSZH0NM17msn+kwIGBCo7qrKO8x0/J0kPeMdAQlq+txLUvcsFFOOV7pLNGFO dO5+6RFdkxUG8x40ntXZqU0QsyAnjLJ4Z8Y4E6Dlb3gdKWajvPd4LFbSyxWmXGSxw8Ap 7Ydw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gSHYndLg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id el9-20020a056402360900b0056e727aae57si5730120edb.177.2024.04.16.08.40.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 08:40:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gSHYndLg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-6403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A45C61F22142 for ; Tue, 16 Apr 2024 15:40:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EB77130E40; Tue, 16 Apr 2024 15:40:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gSHYndLg" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 76932130491; Tue, 16 Apr 2024 15:40:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282043; cv=none; b=TOrPcFZpcqcGFvIAyG0V3eLYlh1UFhj9ezWT1kUZVDb6QOPIVKAbxY+DhkXkAQWATcf+2F/I5DKXwJ3MHoT8xqwmeiTTjpmmiE5Zw1HLcVdh+OeTla4mY4BkWFV8Dn39hSCd+jcSkZd/cFxlqmThr6zB4DM9uneReiu6TKr4r54= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282043; c=relaxed/simple; bh=M8oXFOXC9510L1sS9yrQwCiqB9isOtApcFXKR6Um07A=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Jg9yqwHJXW7WbN5UeGKVEP/yAp+ZHkKxglcwjyJEqrB45MWdQaUzCNtQoq04Cmwde1QQ/kYxViGKuQismgIlxC7PfwtHvHK6+DihWfSSHN8gouEMK/Nb3LUMnhbXzJ/01bxRRlXC4Rg+lmiFQwaSHKXv1T3uUaHLra32fY7a/nM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gSHYndLg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 565EFC113CE; Tue, 16 Apr 2024 15:40:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713282043; bh=M8oXFOXC9510L1sS9yrQwCiqB9isOtApcFXKR6Um07A=; h=Date:From:To:Cc:Subject:From; b=gSHYndLgQ56O76u3RNiEF/RQ7gBGKZxI/UgP8M0MOMUZchr73UqFrltTx1Jaky37E 2PDm6pZUSLadw3UTIQP6/kmZqgB2xo6Cs59UhIR5pc+Whxv2wKsc5sdxU7LBfRUgkk /de0az0CjUS1nwJTflxergcCYLsZ7ThrkvCkGGEMqmVkyTeOVNsf+LT+zmiCuRi6+/ n2UhOXE8XK2MWY+jWNPueo3zeu9IWC6rwmSTjq0OLWCnXVu8Rh/4bLW2DIBKw0r3iW XcDfBGWrT08PV3LlFv0oeQ5c5V2rzeeJ/dhyGwUAwEkfyFaPHA7b8nvCo+I0jlMk2B yeRmPWg/pZ3iA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rwkvL-000000005yE-0UE6; Tue, 16 Apr 2024 17:40:43 +0200 Date: Tue, 16 Apr 2024 17:40:43 +0200 From: Johan Hovold To: Kalle Valo , Jeff Johnson Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: ath11k: WCN6855: possible ring buffer corruption Message-ID: Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Kalle and Jeff, Over the past year I've received occasional reports from users of the Lenovo ThinkPad X13s (aarch64) that the wifi sometimes stops working. When this happens the kernel log is filled with errors like: [ 1164.962227] ath11k_warn: 222 callbacks suppressed [ 1164.962238] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1484, expected 1492 [ 1164.962309] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1460, expected 1484 [ 1164.962994] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1476, expected 1484 [ 1164.963405] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1484, expected 1488 [ 1164.963701] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1480, expected 1484 [ 1164.963852] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1468, expected 1480 [ 1164.964491] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1484, expected 1492 [ 1164.964733] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1488, expected 1492 [ 1165.198329] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1460, expected 1488 [ 1165.198470] ath11k_pci 0006:01:00.0: HTC Rx: insufficient length, got 1460, expected 1476 [ 1166.266513] ath11k_pci 0006:01:00.0: wmi tlv parse failure of tag 2699 at byte 348 (1132 bytes left, 64788 expected) [ 1166.542803] ath11k_pci 0006:01:00.0: wmi tlv parse failure of tag 4270 at byte 348 (1128 bytes left, 63772 expected) [ 1166.768238] ath11k_pci 0006:01:00.0: wmi tlv parse failure of tag 0 at byte 376 (1112 bytes left, 11730 expected) [ 1166.900152] ath11k_pci 0006:01:00.0: wmi tlv parse failure of tag 3 at byte 790 (694 bytes left, 16256 expected) [ 1168.499073] ath11k_pci 0006:01:00.0: wmi tlv parse failure of tag 1 at byte 62 (1426 bytes left, 3089 expected) [ 1168.818086] ath11k_pci 0006:01:00.0: wmi tlv parse failure of tag 63063 at byte 1466 (10 bytes left, 50467 expected) [ 1169.032885] ath11k_pci 0006:01:00.0: wmi tlv parse failure of tag 0 at byte 364 (1120 bytes left, 12483 expected) [ 1169.308546] ath11k_pci 0006:01:00.0: wmi tlv parse failure of tag 3092 at byte 348 (1128 bytes left, 64780 expected) [ 1169.563928] ath11k_pci 0006:01:00.0: wmi tlv parse failure of tag 1 at byte 348 (1124 bytes left, 44062 expected) which after a quick look at the driver seems to suggest that we may be hitting some kind of ring buffer corruption. Rebinding the driver supposedly sometimes make things work again, but not always. The issue has been confirmed with the 6.8 kernel and the latest firmware WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37. I've triggered this issue twice myself with 6.6 and .23 firmware, but the reports date back to at least 6.2 and likely when using even older firmware. An unconfirmed hypothesis is that we may be hitting this more often when enabling the GIC ITS so that the interrupt processing is spread out over all cores (unlike when using the DWC controller's internal MSI implementation). This change is now merged for 6.10. Do you have any immediate theories about what could be causing this? Does it look like a firmware or driver issue to you, for example? Is it something you've seen before? Note that I've previously reported this here: https://bugzilla.kernel.org/show_bug.cgi?id=218623 Johan