Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3139839rdb; Tue, 29 Aug 2023 06:37:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRVPSVBKFqp3CEZH1zF2AfYOuVpOLN9BxYPjrMGhYHeLYpyh9h+dr/ADXS50olFO9wcLhU X-Received: by 2002:a05:6a21:4843:b0:14b:ea0d:e301 with SMTP id au3-20020a056a21484300b0014bea0de301mr15097407pzc.0.1693316271746; Tue, 29 Aug 2023 06:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693316271; cv=none; d=google.com; s=arc-20160816; b=OFLFehHk8IhJgp13mJxwWpaiENmNv6NeQmONzbQ32OceI5AHgWUACOC9Taop35LMvk Ut3kFY63swK8/LATCZOSdRkjD1WZJPnu9DKCqkBdi3EfgqKRizlzq+W5AKldHz82/wdp JMCAmSmo6jErXttmsM8ccyEd/7eVWdpQsBGfQ/XadzpUv3FfodnQy7LQEiKBSr0pGf7G gSOBOcxLuh0tmQvunENxfmn/fxBdvnCKuqahX+o64Vm4JdpNSltHBEw+cQxGnb6hKNiO HERHvfhDuYXulXwz5H1igFhfHHVU86SIp7u9VgVrv37yT+RTPvijeFqaG+FKaVRAy92N v5eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=te6drXizJQM0iG+5+zXvBFbNVfPAMe8yngOoX+3Kmdo=; fh=TtEk/yC0Drd9M0YtOHHcrvVW5v8qmlOtnLvMaUKg2fk=; b=sXd4xi/aNfXHzvL1+zy07/jUhmNgMTtnylJlxnVjv8kWhlxUYzvNOiPzriycP1LHEU jcyOzd8PMyrO1XDdNo8oPtCnsO/7qeTzirEnK6qgGgV9j/FwkT/2H/1hU42AksoFVAQx A1w62iGpOQyeXBrEdeBy9JwqGETCjfxD6SbcKLtvuV2ijovKhxXWMnoRbLA/lHpZ+F45 Iu22tzgvzBWWSSgn4wh2fAc2APdHXTmDGkxa276gl3tlT+YRJ3WIO/WmucWOzDEgrzab 89jNbqY991qtkDk73dAEb18Nra32AqhRPoI9E2DaBtouVtoNRuN5gya9hRFLWZII9B4F crhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpoxyfT9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a056a00219300b0068bf30dfd93si9788998pfi.76.2023.08.29.06.37.48; Tue, 29 Aug 2023 06:37:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpoxyfT9; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232240AbjH2Lr5 (ORCPT + 12 others); Tue, 29 Aug 2023 07:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232167AbjH2Lrf (ORCPT ); Tue, 29 Aug 2023 07:47:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABBA2109; Tue, 29 Aug 2023 04:47:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 48FB560B70; Tue, 29 Aug 2023 11:47:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C42DAC433C7; Tue, 29 Aug 2023 11:47:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693309651; bh=2JIypwUK6FhIZ3QHAhrbsLajiBfjZ62lgJwSgVYXJYg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=WpoxyfT96RrgWmxmpt0PCKw3+0p9AMvKZBdy3TXUdL05NbfuKsxK77tiGyJnGNJpR gCGygjGrcu2CfbwyEtnC3unyQWxnfWRPgPW2rcGvRqZOPr5ZCLr66H480QkVADumGf InSYuRL8On+eG8q/1uYOyJTBCfDVCb2KlPilpds3+dHyBMuhNysqkxgc+wxr1GlmVL iXwL1UMc3X0KoIZljIw6IO1+ivfZ3oug14DW5RYpHh3LxbR9m0yUy7nLEpRxa8wCxJ 7VAMZeaEio82tcD6cbFptCLSLvY0SNF0whvzjsjTrm62OguXDmgW43D8ZdJG9fxxZY xeuuLZ623t+QQ== From: Kalle Valo To: Johan Hovold Cc: Jeff Johnson , Bjorn Andersson , Manivannan Sadhasivam , Konrad Dybcio , Manikanta Pubbisetty , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "Revert "wifi: ath11k: Enable threaded NAPI"" References: <20230809073432.4193-1-johan+linaro@kernel.org> <87o7izi6br.fsf@kernel.org> Date: Tue, 29 Aug 2023 14:47:27 +0300 In-Reply-To: (Johan Hovold's message of "Sat, 26 Aug 2023 17:53:16 +0200") Message-ID: <87leduf4ts.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Johan Hovold writes: > On Tue, Aug 22, 2023 at 03:44:45PM +0200, Johan Hovold wrote: >> On Tue, Aug 22, 2023 at 03:56:24PM +0300, Kalle Valo wrote: >> > Johan Hovold writes: >> > > On Wed, Aug 09, 2023 at 09:34:32AM +0200, Johan Hovold wrote: >> > > >> > >> Disabling threaded NAPI caused a severe regression in 6.5-rc5 by making >> > >> the X13s completely unusable (e.g. no keyboard input, I've seen an RCU >> > >> splat once). >> >> > > Any chance we can get the offending commit reverted before 6.5 is >> > > released? >> > >> > The problem here is that would break QCN9074 again so there is no good >> > solution. I suspect we have a fundamental issue in ath11k which we just >> > haven't discovered yet. I would prefer to get to the bottom of this >> > before reverting anything. >> >> Sure, ideally we can find and fix the underlying issues these next few >> days, but since this regression was introduced in rc5 in an attempt to >> address the QCN9074 issue which has been there since 6.1 I think we >> need to revert otherwise. > > I've managed to track down what causes the hang on the X13s after > disabling threaded NAPI. Turns out to be a severe regression in the > genirq code that causes the software resend tasklet to loop > indefinitely. > > I've just sent a fix here: > > https://lore.kernel.org/lkml/20230826154004.1417-1-johan+linaro@kernel.org/ Oh wow, that's a tricky bug :o I'm sure it was not easy to find. > I've also made some progress on the QCN9074 hang, but keeping the > threaded NAPI revert for now is indeed the right thing to do. Ok, thanks for the update and looking at also this problem. Very much appreciated! I'm sure we have a major bug lurking somewhere in ath11k, would be so good to fix that. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches