From: Johannes Berg <johannes@sipsolutions.net>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH 1/3] mac80211: move mesh sync beacon handler into neighbour_update
Date: Mon, 18 Feb 2013 16:20:01 +0100 [thread overview]
Message-ID: <1361200801.8555.29.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <512243AB.6000801@cozybit.com> (sfid-20130218_160727_852714_70BEB0A2)
On Mon, 2013-02-18 at 16:07 +0100, Marco Porsch wrote:
> > I guess you can tell I'm not in a good mood today. I think any use of
> > get_tsf() for operation is a complete waste of time, there's no way you
> > can get the timings correct. You could be preempted, and suddenly sleep
> > for a few tens or hundreds milliseconds, so none of this makes any
> > sense... To properly do it you have to do calculations in relative times
> > and let the device apply them.
>
> I don't get your last sentence here. Maybe you can elaborate?
I'm saying what could happens is this:
tsf = drv_get_tsf()
[be preempted, 100ms later]
do_something_with(tsf)
so I think using drv_get_tsf() is pretty much always wrong.
> Concerning timestamp vs. TSF usage; wow - I tested it when using the
> timestamp value for TBTT scheduling. Works fine. Works even better than
> TSF as it slightly reduces the measured wakeup overhead.
>
> Hm, I was sure the TSF as in *now* would be more appropriate than the
> TSF at receipt time... But either way, if it works better and is less
> ugly, it is a win-win =)
>
> I'll send an updated patch with the more intuitive API.
:)
johannes
WARNING: multiple messages have this Message-ID (diff)
From: Johannes Berg <johannes@sipsolutions.net>
To: Marco Porsch <marco@cozybit.com>
Cc: mcgrof@qca.qualcomm.com, jouni@qca.qualcomm.com,
vthiagar@qca.qualcomm.com, senthilb@qca.qualcomm.com,
linux-wireless@vger.kernel.org, devel@lists.open80211s.org,
ath9k-devel@lists.ath9k.org
Subject: Re: [PATCH 1/3] mac80211: move mesh sync beacon handler into neighbour_update
Date: Mon, 18 Feb 2013 16:20:01 +0100 [thread overview]
Message-ID: <1361200801.8555.29.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <512243AB.6000801@cozybit.com> (sfid-20130218_160727_852714_70BEB0A2)
On Mon, 2013-02-18 at 16:07 +0100, Marco Porsch wrote:
> > I guess you can tell I'm not in a good mood today. I think any use of
> > get_tsf() for operation is a complete waste of time, there's no way you
> > can get the timings correct. You could be preempted, and suddenly sleep
> > for a few tens or hundreds milliseconds, so none of this makes any
> > sense... To properly do it you have to do calculations in relative times
> > and let the device apply them.
>
> I don't get your last sentence here. Maybe you can elaborate?
I'm saying what could happens is this:
tsf = drv_get_tsf()
[be preempted, 100ms later]
do_something_with(tsf)
so I think using drv_get_tsf() is pretty much always wrong.
> Concerning timestamp vs. TSF usage; wow - I tested it when using the
> timestamp value for TBTT scheduling. Works fine. Works even better than
> TSF as it slightly reduces the measured wakeup overhead.
>
> Hm, I was sure the TSF as in *now* would be more appropriate than the
> TSF at receipt time... But either way, if it works better and is less
> ugly, it is a win-win =)
>
> I'll send an updated patch with the more intuitive API.
:)
johannes
next prev parent reply other threads:[~2013-02-18 15:20 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-15 11:40 [ath9k-devel] [PATCH 1/3] mac80211: move mesh sync beacon handler into neighbour_update Marco Porsch
2013-02-15 11:40 ` Marco Porsch
2013-02-15 11:40 ` [ath9k-devel] [PATCH 2/3] mac80211: mesh power save doze scheduling Marco Porsch
2013-02-15 11:40 ` Marco Porsch
2013-02-15 11:40 ` [ath9k-devel] [PATCH 3/3] ath9k: mesh powersave support Marco Porsch
2013-02-15 11:40 ` Marco Porsch
2013-02-15 12:14 ` [ath9k-devel] [PATCH 1/3] mac80211: move mesh sync beacon handler into neighbour_update Johannes Berg
2013-02-15 12:14 ` Johannes Berg
2013-02-15 12:40 ` [ath9k-devel] " Bob Copeland
2013-02-15 12:40 ` Bob Copeland
2013-02-15 12:42 ` [ath9k-devel] " Bob Copeland
2013-02-15 12:42 ` Bob Copeland
2013-02-15 13:30 ` [ath9k-devel] " Marco Porsch
2013-02-15 13:30 ` Marco Porsch
2013-02-15 12:40 ` [ath9k-devel] " marco at cozybit.com
2013-02-15 12:40 ` marco
2013-02-15 12:46 ` [ath9k-devel] " Johannes Berg
2013-02-15 12:46 ` Johannes Berg
2013-02-15 13:31 ` [ath9k-devel] " Marco Porsch
2013-02-15 13:31 ` Marco Porsch
2013-02-15 13:37 ` [ath9k-devel] " Johannes Berg
2013-02-15 13:37 ` Johannes Berg
2013-02-15 13:48 ` [ath9k-devel] " Marco Porsch
2013-02-15 13:48 ` Marco Porsch
2013-02-15 13:58 ` [ath9k-devel] " Johannes Berg
2013-02-15 13:58 ` Johannes Berg
2013-02-18 15:07 ` [ath9k-devel] " Marco Porsch
2013-02-18 15:07 ` Marco Porsch
2013-02-18 15:20 ` Johannes Berg [this message]
2013-02-18 15:20 ` Johannes Berg
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=1361200801.8555.29.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=ath9k-devel@lists.ath9k.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.