Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp103580pxb; Wed, 11 Nov 2020 21:41:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHvoDhG+pUiJEJW7ZoFAtrNZd7fLChpTKw3MqboRdmjKdvqXISYQa789p93S5+ZTV/FPve X-Received: by 2002:a17:906:1c0f:: with SMTP id k15mr27848431ejg.343.1605159682252; Wed, 11 Nov 2020 21:41:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605159682; cv=none; d=google.com; s=arc-20160816; b=MGLbC9O8lu0/I1j7B1guYGQ6aYccDr0LMbvGVj7B64oGgPdeLFNwWJzxe6JVT3J3Nt aNHKkOHNoAKnQZbmm50kj3/VhrN5Mv8uurzI+GilHLCIVziWb3bB05m0Po3b6qjiBX6N niBC/vgw+ksNAar4upaj1pd8SfAEXf9yaTqJQ1IiWzFveePVKUADMwbmAgbrRT3kyWYk Y+x4uDZP7YKz0i7L8EUx/aq6bZ+uKfJfgBKvBup6djycsfCkmcGJ0M3Tphmht/iFXbLv M6s6DKI5CKOFJHo5o1pC4RdkSf069ue+613WJ6j+qLAU6Jib99fAFJsLAaR8b0O0HP3k Ho0g== 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=EUzPg8y73vRxlAHH+zIia8Krjs+sYU9K0sC28KymEQY=; b=g/XhDNynz3+MpvUeUgzIUH6uRN5S4uMZQb9NkMKW3HSLcAhGyUKTiPIwPoE/WAeZo/ UyHhxT4ERq9fIbEJddGkPxN7VexanVxzTh6hTwf1cH4DGZMEPXgP7vYH9PYBjo5fkYvy L1+KFmVIY3LeTpXeAflu7ENQrv0oef1eDxExrflXPBhhzvfrcvXKVr16uTauAU3p/ZdU c/0dSIop38QQYK28Yj53l68UlFJ6Hu9FfRcj4CsHGVQDq18B2NNRXcG+fHSTWrwAcoJy l6lXiHCoyNXRQjSrFkPNfvs1nUJ5jYQMh8urq20/uXxSXTBeZ2aitnhoNL3FmqdmMmQB XcAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@technolu-st.20150623.gappssmtp.com header.s=20150623 header.b=OFdfsyF5; 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 oq28si2971947ejb.183.2020.11.11.21.40.57; Wed, 11 Nov 2020 21:41:22 -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=OFdfsyF5; 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 S1729096AbgKLFik (ORCPT + 99 others); Thu, 12 Nov 2020 00:38:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726459AbgKLCcM (ORCPT ); Wed, 11 Nov 2020 21:32:12 -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 B1A97C0613D1 for ; Wed, 11 Nov 2020 18:32:10 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id cw8so5528257ejb.8 for ; Wed, 11 Nov 2020 18:32:10 -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=EUzPg8y73vRxlAHH+zIia8Krjs+sYU9K0sC28KymEQY=; b=OFdfsyF59is2mlKKEZpxTJE38bU0jQpXcEKm0WKQv7bmSSLkS09VKmuD1R/V971ynM S3kh+zrHT/CWrjm0Ok6zUt2BiFhf56JU6hrhTQ9DThImfqMzK6eiDFzLaDgD8+6sDkPs dp64eW4FkOefdJbTYHBpvs2vRDNTyd1nvf5mkoRC5ijYPYziFUC2OemDikc/ZdvLPkSw MMuibtWAT4mKpeYRH4Y4nQNRWs3Rn4HB1RTYO8aeZHMV8IzR0uxD1hM5JoFHIjXqNzeB /licFcwyMdkqPLzMsrIyz5cvfcaMNZ0lebxqAla8KGzlHc545aPNvfysBlVFhPDMKTHP JFFw== 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=EUzPg8y73vRxlAHH+zIia8Krjs+sYU9K0sC28KymEQY=; b=efsO0O94BKQVrLup5f/JXdN/lrP9G8LdyCTqiwnrRgFHYru+I4hLkW6hZ9Iis4LcZe 6AKMhjoawnIJQlsvit89Fiz6xJWpnD4D08pR2ONk4JFPsLZw5xqhqgVCV8OwCWFzAQ1n cvC3k5bCvzxFJtpf6/F771HYrDt/7Lc5HEd5URpn3nCv8aim92f829tSkckg1ZFeWATT 4HNGdA5LvoFF3ojYY12W01ZTkLJK/NBHlglzRClt790FhfHYblfndV6Uz4xPWwkIJtBa Mi1EtbfUAcQ9u0CULCU9E2ZG5rRynSmvLXZokEYqbKMVImocremTmLMKnkFR5VZCzDhN WCpg== X-Gm-Message-State: AOAM530DWwp6f+COjx5d/ah16SxxydMweTkCthVWA0pwFEvI9sgRdlPz lVt6T3/224INCDOrwBif2Uo8c17a5MJKbBqT1HZZ0/EM1YJZPskHVmw= X-Received: by 2002:a17:906:4c41:: with SMTP id d1mr29697883ejw.485.1605148329262; Wed, 11 Nov 2020 18:32:09 -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> In-Reply-To: From: wi nk Date: Thu, 12 Nov 2020 03:31:57 +0100 Message-ID: Subject: Re: pci_alloc_irq_vectors fails ENOSPC for XPS 13 9310 To: Stefani Seibold Cc: Kalle Valo , Thomas Krause , Govind Singh , linux-pci@vger.kernel.org, linux-wireless@vger.kernel.org, Devin Bayer , Christoph Hellwig , 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 2:11 AM wi nk wrote: > > On Thu, Nov 12, 2020 at 2:10 AM wi nk wrote: > > > > 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! :)). > > > > On Thu, Nov 12, 2020 at 1:24 AM wi nk wrote: > > > > > > On Wed, Nov 11, 2020 at 11:02 PM Stefani Seibold wrote: > > > > > > > > On Wed, 2020-11-11 at 21:10 +0200, Kalle Valo wrote: > > > > > > > > > > The proof of concept patch for v5.10-rc2 is here: > > > > > > > > > > https://patchwork.kernel.org/project/linux-wireless/patch/1605121102-14352-1-git-send-email-kvalo@codeaurora.org/ > > > > > > > > > > Hopefully it makes it possible to boot the firmware now. But this is > > > > > a > > > > > quick hack and most likely buggy, so keep your expectations low :) > > > > > > > > > > In case there are these warnings during firmware initialisation: > > > > > > > > > > ath11k_pci 0000:05:00.0: qmi failed memory request, err = -110 > > > > > ath11k_pci 0000:05:00.0: qmi failed to respond fw mem req:-110 > > > > > > > > > > Try reverting this commit: > > > > > > > > > > 7fef431be9c9 mm/page_alloc: place pages to tail in > > > > > __free_pages_core() > > > > > > > > > > That's another issue which is debugged here: > > > > > > > > > > http://lists.infradead.org/pipermail/ath11k/2020-November/000550.html > > > > > > > > > > > > > Applying the patch and revert patch 7fef431be9c9 worked on the first > > > > glance. > > > > > > > > After a couple of minutes the connection get broken. The kernel log > > > > shows the following error: > > > > > > > > ath11k_pci 0000:55:00.0: wmi command 16387 timeout > > > > ath11k_pci 0000:55:00.0: failed to send WMI_PDEV_SET_PARAM cmd > > > > ath11k_pc > > > > i 0000:55:00.0: failed to enable PMF QOS: (-11 > > > > > > > > It is also not possible to unload the ath11k_pci, rmmod will hang. > > > > > > > > > > > > > > I can confirm the same behavior as Stefani so far. After applying the > > > patch, and reverting commit 7fef431be9c9, I am able to connect to a > > > network. It hasn't disconnected yet (I'm sending this email via that > > > connection). I'll report what I find next. > > > > > > Thanks again for the help! > > Sigh.... sorry for the top post again. I'll now get a real email client. So the connection remained super stable for a while, so I decided to tempt fate and suspend the laptop to see what would happen :). [ 5994.143715] PM: suspend exit [ 5997.260351] ath11k_pci 0000:55:00.0: wmi command 16387 timeout [ 5997.260353] ath11k_pci 0000:55:00.0: failed to send WMI_PDEV_SET_PARAM cmd [ 5997.260356] ath11k_pci 0000:55:00.0: failed to enable dynamic bw: -11 [ 6000.332299] ath11k_pci 0000:55:00.0: wmi command 16387 timeout [ 6000.332303] ath11k_pci 0000:55:00.0: failed to send WMI_PDEV_SET_PARAM cmd [ 6000.332308] ath11k_pci 0000:55:00.0: failed to enable PMF QOS: (-11 [ 6003.404365] ath11k_pci 0000:55:00.0: wmi command 16387 timeout [ 6003.404368] ath11k_pci 0000:55:00.0: failed to send WMI_PDEV_SET_PARAM cmd [ 6003.404373] ath11k_pci 0000:55:00.0: failed to enable PMF QOS: (-11 [ 6016.204347] ath11k_pci 0000:55:00.0: wmi command 16387 timeout [ 6016.204351] ath11k_pci 0000:55:00.0: failed to send WMI_PDEV_SET_PARAM cmd [ 6016.204357] ath11k_pci 0000:55:00.0: failed to enable PMF QOS: (-11 [ 6019.276319] ath11k_pci 0000:55:00.0: wmi command 16387 timeout [ 6019.276323] ath11k_pci 0000:55:00.0: failed to send WMI_PDEV_SET_PARAM cmd [ 6019.276329] ath11k_pci 0000:55:00.0: failed to enable PMF QOS: (-11 [ 6031.052272] ath11k_pci 0000:55:00.0: wmi command 16387 timeout [ 6031.052275] ath11k_pci 0000:55:00.0: failed to send WMI_PDEV_SET_PARAM cmd [ 6031.052279] ath11k_pci 0000:55:00.0: failed to enable PMF QOS: (-11 [ 6034.128257] ath11k_pci 0000:55:00.0: wmi command 16387 timeout [ 6034.128261] ath11k_pci 0000:55:00.0: failed to send WMI_PDEV_SET_PARAM cmd [ 6034.128265] ath11k_pci 0000:55:00.0: failed to enable PMF QOS: (-11 [ 6039.500241] ath11k_pci 0000:55:00.0: qmi failed set mode request, mode: 4, err = -110 [ 6039.500244] ath11k_pci 0000:55:00.0: qmi failed to send wlan mode off I was able to remove the ath11k module using rmmod -f , and then modprobe ath11k + atk11k_pci and the device was able to reassociate and bring the connection back up.