Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp23279ybl; Wed, 11 Dec 2019 13:19:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyscgYfguHTDBNcbyS2vGl8CIkBw4koTgnn3fwaKkDGpuYPUZwTcY3DEVsUgE/2WjFpB902 X-Received: by 2002:a9d:7e99:: with SMTP id m25mr3905408otp.212.1576099180623; Wed, 11 Dec 2019 13:19:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576099180; cv=none; d=google.com; s=arc-20160816; b=VLrINvzWhpXA3pynFE4vltfJfnH5ja2rNOls96303tOE7yC+1AhgwOWPDFX4bT4m8p x6Rr9el51emiJzyCkoXdFbLsaJUMgjwzptLQuLblqiS4ni/x99/jIH6KTDi+jEP2/LhO l1kK2p6nmvszi7y1sl06jcJ9nUK2lyJ8uqlfEXk+clE3XUsM6KJd6hcfdXw9ar64bMIm Wd9InwMIE5fudEYIjDNJh31nHb7Y0YczFO/sewRHnz41+Pn5pGJIs3mRRu5pL9En3TFu UiImkJ47M/eyHnMA9//YTX/niXtzpZRSrHUbP16QiqCImwO6fGTq4P8zFuyY+IMCE0Da +WLA== 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=WC157GmGbmaLrMK4sDFWahtIl8fVwlT96LDJCoKrDDs=; b=xRQjSblsDjGcNDqDRwxT0vl5On47x/WZ4oPP8f55OhdYKia8RBAFfK9Pt/iI3UDFE9 xw1lTCAWxx4Ogqe7BpxfWKM+wzh2JZZnYtbyfnGc9/eco7KFC4EJFXRfU046VsPapXIf giFmYoZboIBf7/g1QEqJVqfiO8cV5xsMHv4OPrffhkwaJ7brxYVWJycOJpmuTAqzEiS+ /XIxcMPOwHyRKvjgNOUbJL7Sgls13/uLmDPU0RBC8ihMF2fFS0QQjGOb7U42Uk0dJiaK /S+/ZbSru3sGF2JpBywyUQFyhcdF/H0jNmZr3Y8nXPABUxXMDqEfDmWnPYnEliAkuerQ xjgA== 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 t20si1889831otr.64.2019.12.11.13.19.29; Wed, 11 Dec 2019 13:19:40 -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 S1726704AbfLKVS2 (ORCPT + 99 others); Wed, 11 Dec 2019 16:18:28 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:41136 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726141AbfLKVS2 (ORCPT ); Wed, 11 Dec 2019 16:18:28 -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 1if9NG-0055Qg-Vw; Wed, 11 Dec 2019 22:18:23 +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 22:18:21 +0100 In-Reply-To: <87k172gbrn.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> <87k172gbrn.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:47 +0100, Toke Høiland-Jørgensen wrote: > > 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. > > 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 ... :) You're the expert, I'm just poking holes into it ;-) johannes