Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp209094pxb; Wed, 18 Nov 2020 02:24:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIUVz/e8PnM62DT+SJp4jJPF8ShblLAyPiqwmexlsWvH978bNSFsB/eXFX7h4W5j72u6d+ X-Received: by 2002:a50:abe6:: with SMTP id u93mr26437941edc.277.1605695093212; Wed, 18 Nov 2020 02:24:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605695093; cv=none; d=google.com; s=arc-20160816; b=cO1vwGmdf/xEvEaRupPr7sf3KGvexAIoViXGceAgiAEKp9q2OZ86+mjZNNWN+pPil6 g9m0/jjSCS/jL7fhK4am23cFXhf/j0dkDYp0QrMZaG72xTGW4JuGjLJeFE2Rxe/aBOHl QZXO9ryQuQmhbixAl7eemkz5Nzf5dLx+BrR68/P9TW8X04E81fO5+4Xwcm0BwsYe0cQh WwqT7FN0iw4bDRa5yNhx9qeeE6PweljKLie7XPzRtssWx9wiB64YTbPB0RExAZ/C/v2/ k5s6LvWVcn1zCMbBM4WLX2ws0Hr0jp6nnoP1RQ6lkvPzafNh7gpV5eeh2Avw+PCaBjMp FggA== 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=sI3Qvd5uSLh3sTc/bNorfEjSUnZKG4TO/HsxvppIaZs=; b=e2DH/7igmHBrCd0uZ8k0eZUMvyBpiyKrUFjeSPXbggZAXYjIt0vhp9BnziTrrXqcSk lKX/U/box51GQh5BKnPhHhfLXfgpFXFdVe8yj2NOJYVwQYMcpDY8aLPg5kvcUZKkLu8l 89Gl6l+KrW+HWeBX3EI7D+s/OPCkJztJkVcAbOoemYKyZsX1/U2oTDRdY81pysMX/WKY eb/PB4DDdqOSuwyc4a33xLWNOyaHN4iszNCE3AnAbi/jDln14/aMIGiENipRdB0+lAm8 E/vWH29SbwsFaSve55QETK+lUpFhf+RR2eX7bcKkT25Z5gnruWMwkOaNJBKvfOwYEAbw x5gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@technolu-st.20150623.gappssmtp.com header.s=20150623 header.b=O66dkVEE; 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 b1si16533741edy.451.2020.11.18.02.24.17; Wed, 18 Nov 2020 02:24:53 -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=O66dkVEE; 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 S1725497AbgKRKWw (ORCPT + 99 others); Wed, 18 Nov 2020 05:22:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbgKRKWw (ORCPT ); Wed, 18 Nov 2020 05:22:52 -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 126E3C061A48 for ; Wed, 18 Nov 2020 02:22:52 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id oq3so1977003ejb.7 for ; Wed, 18 Nov 2020 02:22:51 -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=sI3Qvd5uSLh3sTc/bNorfEjSUnZKG4TO/HsxvppIaZs=; b=O66dkVEEL0lYSTNUrP73tZdheyh1PKoIQOIeGGNJKTcXlGCHk+2z2sWtCiYCwLiFaZ IdpCa/yRZXMNOEPMIT+xyVoW6j8S6leF7lmIGmkbn1RkZFmDuool/XHtT91vJyxi9ad9 YLdgEGRQRUV8hGPpfmt6Z222LrPpnb9WN1QdiMMYpnTsHFx+I+d0Scvd+4GTT8sz8DBO q0JatXZz2CHHBBX3gQfjHruhIseHRaswiEGhm96mdjrsruiXDbo1XZLT+ynUkKUOuMTM c+4w6dn2km/WwRCUUlWAxudAnOALVF/HZhorvCV3CAkK5CZc/VRvlMr+MlJdC4SSubqK gppw== 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=sI3Qvd5uSLh3sTc/bNorfEjSUnZKG4TO/HsxvppIaZs=; b=kl76kp5DM2QB6hEDPsNt1qxaqkFs0UVGCPCkEJ765BsOJ709kTAs4ilgBD8TP+GL0u atqUnVwmgxDDDS8rtAM9B9ZRgmlQP8BuY0wdnNXuek1KBEb0+Vo16ZyJn0UmchPRF2EA 3+ovi6ismgH7nguvIaptEAZYYMGbxVPTCKWU4tB0TuTYgr7nA1d7kAj7gw242/lucTql BZe1S+7Xtx8CyMBvQU+E6PUH/IRL60H7vIRFxwE8ZPiZ+shAkPSEwfiVXCOXjcZ+NnpG HHw1FLdN1FYFb/h6I8YR0zc90NerjfaYUERTe4e+L6k/KMdt9jyde4chJ4cM+Dqnh2l3 GILg== X-Gm-Message-State: AOAM532fSLIPmtn3F79YCneQa7bSVp+3f8Z0u+b1ogSDXQtO9AO04AI3 ypY2Rg0jpGkUO0D9Ko9XbBxg9l+2SMuWDS5pq5CoYg== X-Received: by 2002:a17:906:b53:: with SMTP id v19mr22603373ejg.136.1605694970684; Wed, 18 Nov 2020 02:22:50 -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> <87sg97wvgr.fsf@nanos.tec.linutronix.de> In-Reply-To: <87sg97wvgr.fsf@nanos.tec.linutronix.de> From: wi nk Date: Wed, 18 Nov 2020 11:22:39 +0100 Message-ID: Subject: Re: pci_alloc_irq_vectors fails ENOSPC for XPS 13 9310 To: Thomas Gleixner Cc: Thomas Krause , Kalle Valo , Govind Singh , linux-pci@vger.kernel.org, Stefani Seibold , linux-wireless@vger.kernel.org, Devin Bayer , Christoph Hellwig , Bjorn Helgaas , 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 Tue, Nov 17, 2020 at 9:59 PM Thomas Gleixner wrote: > > On Tue, Nov 17 2020 at 16:49, wi nk wrote: > > On Sun, Nov 15, 2020 at 8:55 PM wi nk wrote: > > So up until this point, everything is working without issues. > > Everything seems to spiral out of control a couple of seconds later > > when my system attempts to actually bring up the adapter. In most of > > the crash states I will see this: > > > > [ 31.286725] wlp85s0: send auth to ec:08:6b:27:01:ea (try 1/3) > > [ 31.390187] wlp85s0: send auth to ec:08:6b:27:01:ea (try 2/3) > > [ 31.391928] wlp85s0: authenticated > > [ 31.394196] wlp85s0: associate with ec:08:6b:27:01:ea (try 1/3) > > [ 31.396513] wlp85s0: RX AssocResp from ec:08:6b:27:01:ea > > (capab=0x411 status=0 aid=6) > > [ 31.407730] wlp85s0: associated > > [ 31.434354] IPv6: ADDRCONF(NETDEV_CHANGE): wlp85s0: link becomes ready > > > > And then either somewhere in that pile of messages, or a second or two > > after this my machine will start to stutter as I mentioned before, and > > then it either hangs, or I see this message (I'm truncating the > > timestamp): > > > > [ 35.xxxx ] sched: RT throttling activated > > As this driver uses threaded interrupts, this looks like an interrupt > storm and the interrupt thread consumes the CPU fully. The RT throttler > limits the RT runtime of it which allows other tasks make some > progress. That's what you observe as stutter. > > You can apply the hack below so the irq thread(s) run in the SCHED_OTHER > class which prevents them from monopolizing the CPU. That might make the > problem simpler to debug. > > Thanks, > > tglx > --- > diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c > index c460e0496006..8473ecacac7a 100644 > --- a/kernel/irq/manage.c > +++ b/kernel/irq/manage.c > @@ -1320,7 +1320,7 @@ setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary) > if (IS_ERR(t)) > return PTR_ERR(t); > > - sched_set_fifo(t); > + //sched_set_fifo(t); > > /* > * We keep the reference to the task struct even if I was able to apply this patch and play a little bit. Unfortunately, whatever is still going on is mostly the same. It seems this patch extends the 'stuttering' I see a little bit, but the end result is still an unresponsive machine. I didn't get tons of time to play yet, so the extra time may make it possible to finally get sysrq-c issued and get a vmcore dump. I also tried to replicate a google android patch I found to basically BUG() on the rt throttling activating (https://groups.google.com/a/chromium.org/g/chromium-os-reviews/c/NDyPucYrvRY) but that path hasn't activated for me since I booted it. I'll hopefully have a chance again this evening.