Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp656226ybl; Thu, 12 Dec 2019 02:47:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyfEAXoxSV8szxRjPAhZssYIECLUmtQy7U3fqDXaYUUDUY1Ystnp0puIujoH6Htb43RQO82 X-Received: by 2002:a05:6830:114f:: with SMTP id x15mr7139725otq.291.1576147663648; Thu, 12 Dec 2019 02:47:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576147663; cv=none; d=google.com; s=arc-20160816; b=JpJIDdrcZhxjE2uCAATkgS+Jv8TW+EwFi9gIWQfb67uFXm0ZwApuBX4IHIBUVlSV3Z kOWrLtzVprHQY5SlePe18pRJ+UE2siRxQ5yEaV6o/XrwDiOJDjk2GpWxjy7fT41vGBsx zXlpPUZxTR3utFBEAv/iRHac15ahx/mcC9hEgpp2O001waNpg6baX1FzC/zcH6GqTRmr FHMbpoJISEOXiPjDGb+ZcN4xW5AxEYAv9XZ2+o/zGEFFfvB/GArLszhyl4zm0IgOwW8P NnpUWzmwRu8yCGATyiUZJJtO4L3Dw2HQYLKD8yLpBVvBDGCU5X9ZoqfFGdkNaeLUUWsB 1cDQ== 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 :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=tn1/nohwvbWHf4oSzQNqJtRfBfJIOmLgNk9Q2cykBDg=; b=TiYRHXm1amrxI0jDEiuk/UVSQ4FSd2+lFhacQ94NANzPq6yz5lFSAcTpwB+VcmdpjM XhBU0eV3BGZcKzlfuE347x6aT1O9u9QT3okzRVvS9H0Fe/4CPQzeNwsHu8XtI7EmzKPi WK7bz2PAV6wjC0UVAstau7nOxhImrMdWnJ1MlYHeIp4wVsq72luILA0v1h6PwfdH0dLs OlnK62BvxdmewetXtqd1HHrev41bLhjKT4/qjgfgzn8ztQkvqniUCmpRRG5+m2YXfjT2 0EdBLBsIeywFE9ZqkRIu4HEZS0IiPrbjEP8YF0nvqlJ/x6yuURX9opOca5IQAA8Lo6Nu UCHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OvmpuEQG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si2729576otk.290.2019.12.12.02.47.27; Thu, 12 Dec 2019 02:47:43 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OvmpuEQG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728691AbfLLKpu (ORCPT + 99 others); Thu, 12 Dec 2019 05:45:50 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:55061 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728679AbfLLKpt (ORCPT ); Thu, 12 Dec 2019 05:45:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576147548; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tn1/nohwvbWHf4oSzQNqJtRfBfJIOmLgNk9Q2cykBDg=; b=OvmpuEQGE3X+bFzjgz/7dc4ShFpFIG5AcP9AjHkHUzAfq7+eJDB/qbBeovEj6cWKVedcMC 2Xp/IIIsTek8V20ig8XGxkZMEcDA2iXdTFi7cfezLJ5wSuud/oLMcgmpQlnvPcwFSIlnxh 5rKOIdG+KrFiK4rxI5g/7iegVfTKMEM= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-34-Cv1mRvGyMJK2IezAaq2jvw-1; Thu, 12 Dec 2019 05:45:46 -0500 X-MC-Unique: Cv1mRvGyMJK2IezAaq2jvw-1 Received: by mail-lf1-f69.google.com with SMTP id t8so466709lfc.21 for ; Thu, 12 Dec 2019 02:45:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=tn1/nohwvbWHf4oSzQNqJtRfBfJIOmLgNk9Q2cykBDg=; b=aiO7CGepvmlDqvQ5SQ7+LGrGlPZ5sjH1vP3pZOedHkrlJR5v5qycRC5VFMqzV8wK39 3PgcO07nAaqClzFyOzRO/aOnIw+c0aFpicJpFR6ndjz4byLQLViIsL/CwjOMHnXPcsvL x/jJ30FOGfJ6QiRdKvcCZkpm3l/OZvibIQC3IksxsBojECI5iz9JvbVu8pMz6KGd+06/ H/ILL5Gx9F2z87b2vjr+dlQRHhXZbyM/86rh2FPsGjCLZ6AJB2W43RsBqTc9rIGMhUkP VVreF40d/904IQVXEiQmQj/nkEfn6s0cGJH57oV8mAcl9BL/9hCh5Spzyea5k8X/JO++ 2kQA== X-Gm-Message-State: APjAAAV5Cvaxe9smKQGKuNUxDyft2vgWojlxWgrL6lL3lK4CF1YIY1Md 1+EIHveNShNVkLbTqFuQMRac32pBFHcgmwUWKSAb3veEvMv/D7x8DcD5lhTrGeF7bBdfH/bE5sb GxqE07M8gseL7uF+PkbU3mtGQjyE= X-Received: by 2002:a2e:918c:: with SMTP id f12mr5361746ljg.66.1576147544943; Thu, 12 Dec 2019 02:45:44 -0800 (PST) X-Received: by 2002:a2e:918c:: with SMTP id f12mr5361737ljg.66.1576147544779; Thu, 12 Dec 2019 02:45:44 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([45.145.92.2]) by smtp.gmail.com with ESMTPSA id u25sm2742643lfk.46.2019.12.12.02.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2019 02:45:43 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 1062F1819EA; Thu, 12 Dec 2019 11:45:43 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Johannes Berg , Jens Axboe , Emmanuel Grumbach , Luca Coelho Cc: "linux-wireless\@vger.kernel.org" , Networking Subject: Re: iwlwifi warnings in 5.5-rc1 In-Reply-To: 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> <87k172gbrn.fsf@toke.dk> X-Clacks-Overhead: GNU Terry Pratchett Date: Thu, 12 Dec 2019 11:45:42 +0100 Message-ID: <87y2vhesa1.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Johannes Berg writes: > On Wed, 2019-12-11 at 15:47 +0100, Toke H=C3=B8iland-J=C3=B8rgensen wrote: > >> > Say you have some queues - some (Q1-Qn) got a LOT of traffic, and >> > another (Q0) just has some interactive traffic. >> >=20 >> > 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? >> >=20 >> > 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. >> >=20 >> > 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. >>=20 >> Oh, right, I see; yeah, that could probably happen. I guess we could >> either kick all available queues whenever the global limit goes from >> "above" to "below"; or we could remove the "return NULL" logic from >> tx_dequeue() and rely on next_txq() to throttle. I think the latter is >> probably simpler, but I'm a little worried that the throttling will >> become too lax (because the driver can keep dequeueing in the same >> scheduling round)... > > I honestly have no idea what's better ... :) Right, I guess we'll have to go and measure. Let's leave it as-is for now, then, and we can adjust in a separate patch. > You're the expert, I'm just poking holes into it ;-) And you're doing that very well, as it turns out; thanks! ;) -Toke