Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4162802pxb; Tue, 17 Nov 2020 13:02:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3u5XJ6U5sKkeQv31oIeJRjvP1CpVBoPp9QwgjybXl+6D7qCZkq7I1lS5ZC8l+oXcACS+W X-Received: by 2002:a5d:54c7:: with SMTP id x7mr1414737wrv.359.1605646951280; Tue, 17 Nov 2020 13:02:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605646951; cv=none; d=google.com; s=arc-20160816; b=U9h862mjoQgmmywThF3eXl/mWntqJyizeV0Hw+K9n6Y/FYFwKfdCEaDylxcwnl2Nao ewrW7MKDnGhzjFdawGCzxL7KTRCH9G0zurSS/OSSVx9EqlKz1nyowmLK3iyMfMdCuKoR H9TqUtg3sGNnfaxcoXp3v0xMsJQ4rFcXJ0PTug4MftG5nmvIgbnz5DRhsil844j3OVRQ G1L2YTVET0wErPas1UyYko9brWb5/YlbEho153hGCiPssdSeI9IqstLBTgFhs+ZNpKB7 VsGyvfBNaKAWvLXIZS+vJ2UEMcSOFDI+PUmE/c/nGZK8C59zczCO1j4TXEDSCq729K1v WRtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=Z9/68O94wj/uDMlx/3jfQcpnTqyYonc5KOR75ihqBhE=; b=PxHIdUPUvrfFlvWnCMwgz7DFujBwU4hD76Ue6TNDjhHvd2ZghzokgD8ggqNl35Ald7 aVKYfB3bzRLXSATBsOd/pObKH+IzWQg0M9GpFEeWFHLmfnVfp0S0k+ka40XBm25GBNIs A77ea5AMJj7oNRkYSgjuPobxq/duxrFLZzfD0qFnTgahmqx36AKcUM1SDN9QdgmK9dEX 6Gh0YNL8Syb+N7b1pZ9G1hpzVoZhZejGvkx/6xEnleeg29VVEGJggsC7eU8nJRJ1EUEd lQoCKMWAoozCDgreYTSdH4uoMSnCFh8EFDBztjtSN/2wDjvFoBMXk2lFXAqacluquFGH yeVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=dHLYV9cs; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=CN7sn13d; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si13460454ejg.51.2020.11.17.13.02.05; Tue, 17 Nov 2020 13:02:31 -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=@linutronix.de header.s=2020 header.b=dHLYV9cs; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=CN7sn13d; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727426AbgKQU7g (ORCPT + 99 others); Tue, 17 Nov 2020 15:59:36 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:50702 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbgKQU7f (ORCPT ); Tue, 17 Nov 2020 15:59:35 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605646772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z9/68O94wj/uDMlx/3jfQcpnTqyYonc5KOR75ihqBhE=; b=dHLYV9csZYO0Nlow8cBTxwXadbbE2IY0AR9mjiSCG4iby6PGCMVh3sNRK4tIsSRsRaLuAA 6dc7Jiq6lGYGqekwsNpS1OV2msONGxq2/W1690eaqhihmkmFZ1IoQOm/tSUP3OLUn//Isv GUrklLkisPstw42sfoPt38Z2a2hgvXSP9ofSMU7uvAzTnwbAuwsjlD+Cq+tRAcFuRDYNSr s4VmCjVzcPX9TjC37huDMuoWMmH6VeuRE3opii4p7Hhr+7GtHQrGvprbmMCGeW9XMkgE0c a5zuyp4awzPiWQXWB5UjPdDiVO6Xhp1EP1ep4rg3jS11/YNvx9Y+ZeXQsUpR0Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605646772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Z9/68O94wj/uDMlx/3jfQcpnTqyYonc5KOR75ihqBhE=; b=CN7sn13d6TRk8DdzKSVcd1hW/7r6NMLcRt8RoLpimnvgT+6UsbFrvMMgkVsO8Y/vei8FUP L3ZQF9epGIy5gtBA== To: wi nk , Thomas Krause Cc: 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 Subject: Re: pci_alloc_irq_vectors fails ENOSPC for XPS 13 9310 In-Reply-To: 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> Date: Tue, 17 Nov 2020 21:59:32 +0100 Message-ID: <87sg97wvgr.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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