Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp698338ybl; Wed, 11 Dec 2019 06:13:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyxpUCNPjxY+4c5b8qIu0XvSKQEYWOuJDy3eJg8+EfgkWKLhE+Q1118YNem2U50htm36ESG X-Received: by 2002:aca:5117:: with SMTP id f23mr2840499oib.50.1576073600083; Wed, 11 Dec 2019 06:13:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576073600; cv=none; d=google.com; s=arc-20160816; b=UmvtdU72mONWtIKnEoyrSs6j+skZIfoLySgC5DZEH0f0ZbKZxh0o4MrqbkhyWAx06p 4ljcOjAkrAQSoh/KSGpfABCU/aonsnnk6zRLGKVQ+Ad05EzVTlfk+C0xBjZMnH64PFO7 FwuJ9j/+hs4YL766trd5F93F6opwZuqpNerVaxTlEMvQG59pLF670rddinhs4D71VqWy vD/T9p+xqZtBLBEObkHQZnWRA5gB9rZXLrWovnZagMQ0n2kq378jj+O8LQnwbmcZn24D sGHNkqKBCPdLPUEV/VmtxbWEdztGQSVUEcZNZdP3dwujKX9/Hr7YiwjLLBPTkQFmQbgd 1Fhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Q7FumXoL9icgcJyOLRbdjDq3qEOfS77gFSQZyoC73xs=; b=ZwffEUavhSj54FOmbiAnY9FwNWh0XPQ4hOqhNoBWli1ds1gsMCj+fTU3iLo5DfhJSW yambBMUX/q3Uodh3VQPQiCaSDIhb0iWK3hUzH+Qzbo+zAhb5xVNYDRU6CXcyrsKkfhP5 SfoYGsnh0+QTNUVk69ftqlXJkn28nHgWD5B/jT9qa/0EbvA3ZzHaAhC6rb9V9Q8Vt8kU u8xidXlyGGk4B95glA0+f+sUyUc4a92N3TxrF5/QRwWtYlc9EmyI9gJfbWD0b3XcOudb 1KPXPzVAhLFaBTWO3l3BXjOm+vr7cU5Ykh6KqkW/ym98QVjhEEJtr+5fqSt4M9ezMMw+ DAFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si1271146oib.67.2019.12.11.06.12.57; Wed, 11 Dec 2019 06:13:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729701AbfLKOMk (ORCPT + 99 others); Wed, 11 Dec 2019 09:12:40 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:55060 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbfLKOMj (ORCPT ); Wed, 11 Dec 2019 09:12:39 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.3) (envelope-from ) id 1if2jB-004BxT-Uz; Wed, 11 Dec 2019 15:12:34 +0100 Message-ID: Subject: Re: iwlwifi warnings in 5.5-rc1 From: Johannes Berg To: Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , Jens Axboe , Emmanuel Grumbach , Luca Coelho Cc: "linux-wireless@vger.kernel.org" , Networking Date: Wed, 11 Dec 2019 15:12:31 +0100 In-Reply-To: <87r21bez5g.fsf@toke.dk> References: <9727368004ceef03f72d259b0779c2cf401432e1.camel@sipsolutions.net> <878snjgs5l.fsf@toke.dk> <3420d73e667b01ec64bf0cc9da6232b41e862860.camel@sipsolutions.net> <875zingnzt.fsf@toke.dk> <14bbfcc8408500704c46701251546e7ff65c6fd0.camel@sipsolutions.net> <87r21bez5g.fsf@toke.dk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2019-12-11 at 15:04 +0100, Toke Høiland-Jørgensen wrote: > Johannes Berg writes: > > > Btw, there's *another* issue. You said in the commit log: > > > > This patch does *not* include any mechanism to wake a throttled TXQ again, > > on the assumption that this will happen anyway as a side effect of whatever > > freed the skb (most commonly a TX completion). > > > > Thinking about this some more, I'm not convinced that this assumption > > holds. You could have been stopped due to the global limit, and now you > > wake some queue but the TXQ is empty - now you should reschedule some > > *other* TXQ since the global limit had kicked in, not the per-TXQ limit, > > and prevented dequeuing, no? > > Well if you hit the global limit that means you have 24ms worth of data > queued in the hardware; those should be completed in turn, and enable > more to be dequeued, no? Yes, but on which queues? Say you have some queues - some (Q1-Qn) got a LOT of traffic, and another (Q0) just has some interactive traffic. You could then end up in a situation where you have 24ms queued up on Q1-Qn (with n high enough to not have hit the per-queue AQL limit), right? Say also the last frame on Q0 was dequeued by the hardware, but the tx_dequeue() got NULL because of the AQL limit having been eaten up by all the packets on Q1-Qn. Now you'll no longer get a new dequeue attempt on Q0 (it was already empty last time, so no hardware reclaim to trigger new dequeues), and a new dequeue on the *other* queues will not do anything for this queue. johannes