Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1018906pxb; Fri, 13 Nov 2020 01:55:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOsbvgUAsB7t3yTdsvRqiVF8rKUOgrD85txyA47MqpMEpHoEGSA6IEWddmsLNJyVBbaTbm X-Received: by 2002:a05:6402:a57:: with SMTP id bt23mr1561649edb.62.1605261309532; Fri, 13 Nov 2020 01:55:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605261309; cv=none; d=google.com; s=arc-20160816; b=C/CpU/DUcDW6nNheXPsz6m26YR3KfS3JXofXbO1N6bPDWJPen3p/aDkq+cixYHsFor IpNDB/a0qOWCISqCc7Epyu17x9IDE+0KlY4YdqWlstIN8CEMeuL7JaOB7FSFhBGscPYE luGweYhs+WY8/7rv4myATNoRauRL67oWuPdLIsselmFmJMsQe6v1wLleDu94iwegsnEO wH5oWgoKZ2/bBmWpAOakZeiie60Kj12NzEUe5DK5bzVz2+QMXwN92JwmZx1V468xGDmq 2TCyXtNid0jX/yjfCtNppFdmUXbt2kjtieYmWakjo/6arhKz/hgQU4D1NisLKatbRZLB ZR5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sAPnUqkuDiKhQoJxuYmBfDJGGrKE4T/utkk3lGV54eY=; b=FvaAtOeC5N3D+KICPLTfCE/RzTlIyn2osP/Lneenjh2dd7x3gd2Q3WEiQmlOQEGLGp XMcELONElh4M/0LeGgDZZVmjcu0gLO7mOFZatVpqoIwV+H8meT7kFkT45/LA+BEU0d2T OP4mxo7aygz+GySIeI4vKZidlVT/FYwPW638r07tTTWZCVdo7prTt14XyU52v8JNxwFS rrarMhrC3tXFkzm3sODCmz/HKOWjuUPUaf1/0M1st17U3MPoH2fga3mPBAJ2GyJFucbi FVgq7t3WQUxV2VtQYU2DOOzyQemBd/kFzRBzQwj7o3JEFrPcVESrJNx/Si7dxkV4hYJ2 oorQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@technolu-st.20150623.gappssmtp.com header.s=20150623 header.b=KdlnMs6A; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i25si5434981ejy.626.2020.11.13.01.54.44; Fri, 13 Nov 2020 01:55:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@technolu-st.20150623.gappssmtp.com header.s=20150623 header.b=KdlnMs6A; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726181AbgKMJwc (ORCPT + 99 others); Fri, 13 Nov 2020 04:52:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgKMJwb (ORCPT ); Fri, 13 Nov 2020 04:52:31 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C42CC0613D1 for ; Fri, 13 Nov 2020 01:52:31 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id oq3so12460563ejb.7 for ; Fri, 13 Nov 2020 01:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=technolu-st.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sAPnUqkuDiKhQoJxuYmBfDJGGrKE4T/utkk3lGV54eY=; b=KdlnMs6AtWKy9C7hxX938qeabPHXiIvW80Ipv3MwL0+Zd5FfRh3D/SVM9SmgzPDX+y 7Spg0tRo4MbCxtaXNIOissV4kqkaC8JRe4b/TAkHW2l+qzGW8ISdHr9kfeavSBgwEGvx bTTIXRAN5r5De9n0po5w2Lja9gWYzUz8RW8gA8LFHSJHS/Va1PSK99UxeqKtK23I4Euy /Iidcpmu3gOgNRzAl+EfnNBuHe/Wo+t8HjD2vdyDmDUuNDd+ibysIB/U7KID7mWNE8Ny Ou8gO5QsVwE6DrdNu4xINKpTNNx03/+YOPy6xEfqmPucBf7JsfPNOC9eF29j2SZcmDjX cj7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sAPnUqkuDiKhQoJxuYmBfDJGGrKE4T/utkk3lGV54eY=; b=m7psZh7pnDQnCFRn07QMhQU6wdyy4YaOc5ALMCNqnTDoDP2G1trOPiStADV3nYL5gr 4pjfpbbvxKIotGRunLSmzbNT7lPDlLXuHa/sg8geo9K8BcpvSDlZMlArBPQsgVH9/SOL WGXToFFf8MJcBXO8+d5+MIL1rl1W5dSQuyZTCy0p1ubJNh/HXRVGp/H+4M/VKd+NTfCi 2/CVxIEsnGKiZfUiGBmP8JpxB8kVER4lOc4QqbyJdcBE3/ywCBewcreCjhkKa1X7GsDZ qzc05acmtgOWzCnX1ynv2Q//IZRBZxh4/9LfXxcMZlKWOGEcz63qHQTB4Z+psup+cPKS BC8g== X-Gm-Message-State: AOAM5322O0cRfTw5y2UQU4F+u/F5v/nWAGTrA8at79MYQxOSR4pQp6wA Ev2+W6NyXAGXu63nGuZrio6I51Ia8A1ZLZYN6YvKrw== X-Received: by 2002:a17:906:c41:: with SMTP id t1mr1116850ejf.19.1605261149728; Fri, 13 Nov 2020 01:52:29 -0800 (PST) MIME-Version: 1.0 References: <20201103160838.GA246433@bjorn-Precision-5520> <874km61732.fsf@nanos.tec.linutronix.de> <87mtzxkus5.fsf@nanos.tec.linutronix.de> <87wnz0hr9k.fsf@codeaurora.org> <87ft5hehlb.fsf@codeaurora.org> <6b60c8f1-ec37-d601-92c2-97a485b73431@posteo.de> <87v9ec9rk3.fsf@codeaurora.org> <87imab4slq.fsf@codeaurora.org> <0b58872b4f27dbf5aad2a39f5ec4a066e080d806.camel@seibold.net> <875z6b3v22.fsf@codeaurora.org> <87pn4j2bna.fsf@codeaurora.org> In-Reply-To: From: wi nk Date: Fri, 13 Nov 2020 10:52:18 +0100 Message-ID: Subject: Re: pci_alloc_irq_vectors fails ENOSPC for XPS 13 9310 To: Kalle Valo Cc: Govind Singh , linux-pci@vger.kernel.org, Stefani Seibold , linux-wireless@vger.kernel.org, Devin Bayer , Christoph Hellwig , Thomas Krause , Bjorn Helgaas , Thomas Gleixner , ath11k@lists.infradead.org, David Woodhouse Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, Nov 12, 2020 at 4:44 PM wi nk wrote: > > On Thu, Nov 12, 2020 at 10:00 AM Kalle Valo wrote: > > > > wi nk writes: > > > > > On Thu, Nov 12, 2020 at 8:15 AM Kalle Valo wrote: > > >> > > >> Stefani Seibold writes: > > >> > > >> > Am Donnerstag, den 12.11.2020, 02:10 +0100 schrieb wi nk: > > >> >> I've yet to see any instability after 45 minutes of exercising it, I > > >> >> do see a couple of messages that came out of the driver: > > >> >> > > >> >> [ 8.963389] ath11k_pci 0000:55:00.0: Unknown eventid: 0x16005 > > >> >> [ 11.342317] ath11k_pci 0000:55:00.0: Unknown eventid: 0x1d00a > > >> >> > > >> >> then when it associates: > > >> >> > > >> >> [ 16.718895] wlp85s0: send auth to ec:08:6b:27:01:ea (try 1/3) > > >> >> [ 16.722636] wlp85s0: authenticated > > >> >> [ 16.724150] wlp85s0: associate with ec:08:6b:27:01:ea (try 1/3) > > >> >> [ 16.726486] wlp85s0: RX AssocResp from ec:08:6b:27:01:ea > > >> >> (capab=0x411 status=0 aid=8) > > >> >> [ 16.738443] wlp85s0: associated > > >> >> [ 16.764966] IPv6: ADDRCONF(NETDEV_CHANGE): wlp85s0: link becomes > > >> >> ready > > >> >> > > >> >> The adapter is achieving around 500 mbps on my gigabit connection, my > > >> >> 2018 mbp sees around 650, so it's doing pretty well so far. > > >> >> > > >> >> Stefani - when you applied the patch that Kalle shared, which branch > > >> >> did you apply it to? I applied it to ath11k-qca6390-bringup and when > > >> >> I revert 7fef431be9c9 there is a small merge conflict I needed to > > >> >> resolve. I wonder if either the starting branch, or your chosen > > >> >> resolution are related to the instability you see (or I'm just lucky > > >> >> so far! :)). > > >> >> > > >> > > > >> > I used the vanilla kernel tree > > >> > https://git.kernel.org/torvalds/t/linux-5.10-rc2.tar.gz. On top of this > > >> > i applied the > > >> > > > >> > RFT-ath11k-pci-support-platforms-with-one-MSI-vector.patch > > >> > > > >> > and reverted the patch 7fef431be9c9 > > >> > > >> I did also my testing on v5.10-rc2 and I recommend to use that as the > > >> baseline when debuggin these ath11k problems. It helps to compare the > > >> results if everyone have the same baseline. > > >> > > >> -- > > >> https://patchwork.kernel.org/project/linux-wireless/list/ > > >> > > >> https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches > > > > > > Absolutely, I'll rebuild to 5.10 later today and apply the same series > > > of patches and report back. > > > > Great, thanks. > > > > > I'll also test out the patch on both versions from Carl to fix > > > resuming. It stands to reason that we may be seeing another regression > > > between Stefani (5.10) and myself (5.9 bringup branch) as I don't see > > > any disconnections or instability once the interface is online. > > > > Yeah, there is something strange happening between v5.9 and v5.10 we > > have not yet figured out. Most likely it has something to do with memory > > allocations and DMA transfers failing, but no clear understanding yet. > > > > But to keep things simple let's only discuss the MSI problem on this > > thread, and discuss the timeouts in the another thread: > > > > http://lists.infradead.org/pipermail/ath11k/2020-November/000641.html > > > > I'll include you and other reporters to that thread. > > > > -- > > https://patchwork.kernel.org/project/linux-wireless/list/ > > > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches > > Ok, I've tried a clean checkout of 5.10-rc2 with the one MSI patch > applied and 7fef431be9c9 reverted. I can't get my machine to boot > into anything usable with that configuration. I'm running ubuntu so > its starting right into X and sometime between showing the available > users and me clicking the icon to login the machine freezes. I can > see in the system tray that the wifi adapter is being activated and > appears to have associated with an AP, I just can't do much beyond > that as the keyboard backlight wakes up, but the caps lock key doesn't > work. I see similar behavior with the 5.9 configuration, but after a > reboot or two I win whatever race is occuring. With 5.10, I tried > maybe 10-15 times with 0 success. Kalle, what would be a useful next move for trying to hunt this? It seems I can't really test the single MSI patch on 5.10 since with the patch (+ the reverted commit) the driver isn't stable enough for my machine to stay running. It seems your hunch is that this is related to the issues in the other thread (http://lists.infradead.org/pipermail/ath11k/2020-November/000550.html)? I see the SOTA for debugging these things would be to use the kdump tools and let the secondary kernel dump diagnostics for me. Would such logs be useful for you/this? Thanks!