From: Johannes Berg <johannes@sipsolutions.net>
To: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Cc: "linville@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH 15/22] wl1271: Aggregate RX acknowledgements to FW
Date: Mon, 22 Feb 2010 11:44:47 +0100 [thread overview]
Message-ID: <1266835487.5609.8.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1266834820.10120.163.camel@wimaxnb.nmp.nokia.com>
On Mon, 2010-02-22 at 12:33 +0200, Juuso Oikarinen wrote:
> > > wl->rx_counter++;
> > > drv_rx_counter = wl->rx_counter & NUM_RX_PKT_DESC_MOD_MASK;
> > > - wl1271_write32(wl, RX_DRIVER_COUNTER_ADDRESS, wl->rx_counter);
> > > }
> > > +
> > > + wl1271_write32(wl, RX_DRIVER_COUNTER_ADDRESS, wl->rx_counter);
> > > }
> >
> > What if the counter overflows and you got the & to change it?
> >
> > johannes
> >
>
> The rx_counter itself is never changed with & - it's just incremented
> for each frame. It's supposed to overflow when the u32 is full - it
> will
> then still behave sane when a delta is calculated inside the firmware
> against its corresponding counter. That's a very common way to handle
> counters for this particular chipset.
Ok.
> Did I miss the point?
No ... I did. I thought the second quoted line was the same counter,
didn't see it was a different variable because it looked so similar.
That and I wasn't sure the firmware would really do the right thing when
an overflow happened since it looked like before it wouldn't have to :)
johannes
next prev parent reply other threads:[~2010-02-22 10:44 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 6:38 [PATCH 00/22] wl1271: driver implementation patch blast (2/3) Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 01/22] wl1271: Moved module basics to wl1271_spi.c Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 02/22] wl1271: Added functions to enable/disable interrupt handling Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 03/22] wl1271: Implemented abstraction of IO functions Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 04/22] wl1271: Inlined " Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 05/22] wl1271: Removed wl1271_spi.h and made some functions static Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 06/22] wl1271: Divided driver to two separate modules Juuso Oikarinen
2010-02-22 18:05 ` Luis R. Rodriguez
2010-02-22 18:42 ` Johannes Berg
2010-02-22 18:57 ` Luis R. Rodriguez
2010-02-22 6:38 ` [PATCH 07/22] wl1271: Initial SDIO implementation Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 08/22] wl1271: Changed access to fw status register to use raw read Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 09/22] wl1271: Fixed unloading of the wl1271_sdio module Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 10/22] wl1271: don't get received frames from hardware in PLT mode Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 11/22] wl1271: Improvements to the TX path Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 12/22] wl1271: Fix ad-hoc mode neighborhood detection Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 13/22] wl1271: Fix queue stopping/waking for TX path Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 14/22] wl1271: Remove annoying PSM entry/exit kernel traces Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 15/22] wl1271: Aggregate RX acknowledgements to FW Juuso Oikarinen
2010-02-22 8:35 ` Johannes Berg
2010-02-22 10:33 ` Juuso Oikarinen
2010-02-22 10:44 ` Johannes Berg [this message]
2010-02-22 6:38 ` [PATCH 16/22] wl1271: Don't mask interrupts while handling interrupt Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 17/22] wl1271: Implement looped IRQ handling Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 18/22] wl1271: Update TX packet life time handling with higher resolution time Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 19/22] wl1271: Clean up firmware block allocation calculation Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 20/22] wl1271: Clean up TX security sequence number handling Juuso Oikarinen
2010-03-09 20:45 ` Kalle Valo
2010-03-10 5:47 ` Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 21/22] wl1271: Disable host TX rate control Juuso Oikarinen
2010-02-22 6:38 ` [PATCH 22/22] wl1271: Remove tx-power level workaround Juuso Oikarinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1266835487.5609.8.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=juuso.oikarinen@nokia.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox