Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2336615ybx; Fri, 8 Nov 2019 02:59:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzGyMxgqz1yXM6kttdVXaiBHiaEi9wdbFw98Ho161K54IRLSjDvbO3alXp6JrVlanek6Jul X-Received: by 2002:a17:906:edd5:: with SMTP id sb21mr5124943ejb.138.1573210755471; Fri, 08 Nov 2019 02:59:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573210755; cv=none; d=google.com; s=arc-20160816; b=US9GUEEGvICCPIMy4hUp6m4Or1DDOyhgtThLEFoqLnAaBwEtcw0O23/wB7F3FBC2Yu fxWX+0ISseWkLRoJkBal1HCuQhrNfqhaV5VG+8Y5yaelOTaUA2srYnr9jVME/D+eMIqv Z4Omr1+ZFoARFWEIGmo17EZJAv+PHEmmnS6tdUSvWInsu4sZ2kCHYlCJ+9/68IiMKk3Q pjADgB3vEDBTq49Bly5fzt8bRN1igpA+G0i4orjywHquFm1QibV4Umx2qh0Ey+wjZdtX ArUReLnvC3l6bD6yyQN37z5NE9zf0OeNBJg+ew1rX/uIcWgb/oXNEUldQx+SXiPyR+9H z9JQ== 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=Z632feK0xo57emf6fFS5gwdIUzpWePHRoWFGwMcdBdg=; b=W/5RG9J69enAmvK8xTd4cf5R9xzSbXJLc3t0IZTlpqWG3PIrMOPcvor0nOKPdnWmR9 j+ajS/zxa0i+f/YVxcvJgIa9is/Ce1qO+BD481LwlmIqt2El8OmqYQ11zylj3FDEoZGt bYy50xRRxildieMkH2gR3VsP1zgQEYpmsZ2ztzr5nBiH7lJ4UYj06P+rUlC0lpNnj3H1 NkZV1NTAituV5hL8BwZ603iZ/PSGfiXHG89YKuv68l9EZsow6Uuw2ioXRG3ISeDRWPJR iVTcRDMKj2moEYcjN9uUscewA2AvSuDCPsXBiSEjEivOHaJWPG4sIFaspKE4PjSHlNIb DOaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MAn+gmY6; 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 d25si4095684edb.19.2019.11.08.02.58.51; Fri, 08 Nov 2019 02:59:15 -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=MAn+gmY6; 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 S1730144AbfKHK4l (ORCPT + 99 others); Fri, 8 Nov 2019 05:56:41 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:52825 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726149AbfKHK4l (ORCPT ); Fri, 8 Nov 2019 05:56:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573210600; 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=Z632feK0xo57emf6fFS5gwdIUzpWePHRoWFGwMcdBdg=; b=MAn+gmY6hP8+ZOLNyneH2SnM4CvRJCnKTzhfEu1THymRQ8I+PpZlAaeN2dfhNb9D5sNdUv hVNZG3wT8PJY6eVVt92td6/2YfpvniWHgmFwIjtflSZhnkllEAyjc9L1hfzrPKGzf+epBX zlh2fsawvlwtvZ97LzUNr8y2bPsdzYs= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-369-KXHTCg0MNHiIbK8_Z4h99A-1; Fri, 08 Nov 2019 05:56:37 -0500 Received: by mail-lj1-f198.google.com with SMTP id o20so1169535ljg.0 for ; Fri, 08 Nov 2019 02:56:36 -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=B9ScARlo/HyQ+QLgyEDozc6otjhcAwH0CJnAxZVp+qs=; b=JFFgZ1JRC02u4zfiZLZ5PFT0C/rUaI5anFEM7TYJtyP9oKjPb7AM/xeec2Pi8W3hqT 7CNwdn1JuPfPGrNz1CFKWoxHsNTHB3VqK0uKK3aD/LbzUSMsnZaWn4VN1Urh9K7q+5VD I0SsZBcKiEugHP0FA0EGt6nbFbrsp81DimSMt8xdbTWNaAIo9sXbA/N3uLPZ8wLzP4l6 qyT3ndPUF9etrNAehfWS2dqNZKkvbk+dXpOI+J2MAnxp1BHyzD4AqjZYFr96pE+faXKV MFW2c2Zb9mfIpL6E+oKJn99iDR58yRDjKgVuFxE5VUF3XChtC+HJcPF+fcvrsQTppA8J urpQ== X-Gm-Message-State: APjAAAWApZqoRp0JMzBOn3x6Zd5mcCTH2xKyNvY5Y6NuUtLQNMb6C/ES LgCdomaExXpjtjBkpaBEYd14RluyITlpAN3HWikie0iLJd5FVhjaXgQVEz6gL5vg3bskUpgTThb l+SEJaQmoXldqbtZ4bVav7Vv1594= X-Received: by 2002:a2e:481:: with SMTP id a1mr6439832ljf.209.1573210595635; Fri, 08 Nov 2019 02:56:35 -0800 (PST) X-Received: by 2002:a2e:481:: with SMTP id a1mr6439821ljf.209.1573210595508; Fri, 08 Nov 2019 02:56:35 -0800 (PST) Received: from alrua-x1.borgediget.toke.dk ([2a00:7660:6da:443::2]) by smtp.gmail.com with ESMTPSA id x23sm810347lfe.8.2019.11.08.02.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 02:56:34 -0800 (PST) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 39B381818B5; Fri, 8 Nov 2019 11:56:34 +0100 (CET) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= To: Johannes Berg Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, ath10k@lists.infradead.org, John Crispin , Lorenzo Bianconi , Felix Fietkau , Kan Yan , Rajkumar Manoharan , Kevin Hayes Subject: Re: [PATCH v6 3/4] mac80211: Implement Airtime-based Queue Limit (AQL) In-Reply-To: <1a2eb096119c9029e67caf797564d6511c8803a7.camel@sipsolutions.net> References: <157182473951.150713.7978051149956899705.stgit@toke.dk> <157182474287.150713.12867638269538730397.stgit@toke.dk> <1a2eb096119c9029e67caf797564d6511c8803a7.camel@sipsolutions.net> X-Clacks-Overhead: GNU Terry Pratchett Date: Fri, 08 Nov 2019 11:56:34 +0100 Message-ID: <87a796fxgd.fsf@toke.dk> MIME-Version: 1.0 X-MC-Unique: KXHTCg0MNHiIbK8_Z4h99A-1 X-Mimecast-Spam-Score: 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-10-23 at 11:59 +0200, Toke H=C3=B8iland-J=C3=B8rgensen wrote= : >>=20 >> =20 >> +void ieee80211_sta_update_pending_airtime(struct ieee80211_local *local= , >> +=09=09=09=09=09 struct sta_info *sta, u8 ac, >> +=09=09=09=09=09 u16 tx_airtime, bool tx_completed) >> +{ >> +=09spin_lock_bh(&local->active_txq_lock[ac]); >> +=09if (tx_completed) { >> +=09=09if (sta) { >> +=09=09=09if (WARN_ONCE(sta->airtime[ac].aql_tx_pending < tx_airtime, >> +=09=09=09=09 "TXQ pending airtime underflow: %u, %u", >> +=09=09=09=09 sta->airtime[ac].aql_tx_pending, tx_airtime)) > > Maybe add the STA/AC to the message? Can do. Any idea why we might be seeing underflows (as Kan reported)? -Toke