From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 31ECD3B2D3 for ; Fri, 10 Jun 2016 11:52:52 -0400 (EDT) Received: by mail-it0-x234.google.com with SMTP id a5so68355065ita.1 for ; Fri, 10 Jun 2016 08:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=piYI0tEcXGxac9E9DnpBtfPW47JRFL/kPo9GWN5TTcA=; b=gyIo4xNVLir6CH53uDxrwBi29C6r6r+U3kDuhVmjxgP/js56BPXlES9bhg2LmXlsBs 7sRvaZmj0X1SS1z1td1MAhQolQZJnk/GStqlwHQ823jtnHGkBxRUk2mtVw75tx4QXp3G bswgyTZnCZKwhKeiedHAbDZwn58SNHZbNLd7MkK67bRZ8eoWZg2+TjofI2ZHMifnyBOC ZCwV1iAQjx9NMI/wSxGTlnFzaF65ngFwnhKevqrAku1SzgAQcJdXnhOZUiwFDxzgvZek d0yP2L/9J8Okp/8Cr3IycYjWPV2zRnncgj5b7ewkodwN+5M0QSSxupjqM8DjzdZ0fvrQ Tdrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=piYI0tEcXGxac9E9DnpBtfPW47JRFL/kPo9GWN5TTcA=; b=mHGp0zdUjYFU+F/EPGSq9yzwdCo5eU0OE65k+34sOpjOHTINGhDmOelG0b+d5gS/mJ G8frWbX60pKJiRgFYKWTTmZC/WI6+wZerRPbDO3ns0ysRoC0f0EduwTEhJsTs3Huv5ze aX8shEpfT9Tx2P2S04RS0bFR9qUgT3SOfQqPeVVXlmj09qYFT87KItAWVyacmf15IWen ZNeTN/wexS7Yx/4IQZHQsuOZ3gRC3KcvQvX5WP8TIIPY9DC4hh4xseYvqN9K9jUWPpU0 Zv2FYG3uvN+CqUWWiEt46Nc81d4b3j46O4FuT5VZzqXwgSyzfTuTxxwpfNzfeQYknPTy cGGw== X-Gm-Message-State: ALyK8tI1hh+GPCin00lYV7CPPDMQ0xI6YslsvCAjY0Cf3CT6INVWHET6UfWGNVHdj8Ja3Kd8aA2StXS+x0Qq8Q== X-Received: by 10.36.200.131 with SMTP id w125mr4933230itf.80.1465573971686; Fri, 10 Jun 2016 08:52:51 -0700 (PDT) MIME-Version: 1.0 Sender: adrian.chadd@gmail.com Received: by 10.36.113.3 with HTTP; Fri, 10 Jun 2016 08:52:50 -0700 (PDT) In-Reply-To: <87wplxawjx.fsf@toke.dk> References: <20160603165144.17356-1-toke@toke.dk> <20160603165144.17356-6-toke@toke.dk> <8737orucq4.fsf@toke.dk> <87k2i1ml43.fsf@toke.dk> <87wpm1b6bu.fsf@toke.dk> <87inxhl90y.fsf@toke.dk> <877fdxl8cu.fsf@toke.dk> <8737oll6fu.fsf@toke.dk> <87wplxawjx.fsf@toke.dk> From: Adrian Chadd Date: Fri, 10 Jun 2016 08:52:50 -0700 X-Google-Sender-Auth: 476VQfTru7MOo_rNFaqwN_ACS6c Message-ID: To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= Cc: Michal Kazior , make-wifi-fast@lists.bufferbloat.net, ath9k-devel , "linux-wireless@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Subject: Re: [Make-wifi-fast] [RFC/RFT 5/5] ath9k: Count RX airtime in airtime deficit X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2016 15:52:52 -0000 [picking a random email to reply to] I /think/ the TSF is only valid for the last frame of an aggregate. 'more' means "this RX frame is split across multiple RX descriptors" "moreaggr" means "there's more subframes in this RX'ed A-MPDU" If you get a TSF in the first frame, it's whatever was left over at that point in the RX FIFO when it was last updated; it isn't an actual timestamp timestamp. The logic for populating the descriptor contents just takes stuff out of certain offsets in the RX FIFO, and sometimes that contains stale/wrong data. I'll go and double/triple check this (as well as where the TSF is actually stamped - I think it's actually stamped at the leading edge of a packet, but stamped at the /end/ of it.) -adrian