All of lore.kernel.org
 help / color / mirror / Atom feed
* Review of moving all DFS parameters to userspace
@ 2011-02-01 16:38 Luis R. Rodriguez
  2011-02-01 17:32 ` John W. Linville
  0 siblings, 1 reply; 7+ messages in thread
From: Luis R. Rodriguez @ 2011-02-01 16:38 UTC (permalink / raw)
  To: linux-wireless

I though we had reviewed the possibility of moving DFS parameters to
userspace but it seems that's not the case. We now at least know we
can keep the DFS regions: US, JP, ETSI, the next step is to determine
if the DFS parameters for these regions will come from userspace or
kernelspace. I'm inclined to support starting off with moving this to
kernelspace just to let us move forward with this support, and once in
kernel, review the possibility to move this out to userspace.

Thoughts?

 Luis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Review of moving all DFS parameters to userspace
  2011-02-01 16:38 Review of moving all DFS parameters to userspace Luis R. Rodriguez
@ 2011-02-01 17:32 ` John W. Linville
  2011-02-14 15:39   ` Zefir Kurtisi
  0 siblings, 1 reply; 7+ messages in thread
From: John W. Linville @ 2011-02-01 17:32 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless

On Tue, Feb 01, 2011 at 08:38:05AM -0800, Luis R. Rodriguez wrote:
> I though we had reviewed the possibility of moving DFS parameters to
> userspace but it seems that's not the case. We now at least know we
> can keep the DFS regions: US, JP, ETSI, the next step is to determine
> if the DFS parameters for these regions will come from userspace or
> kernelspace. I'm inclined to support starting off with moving this to
> kernelspace just to let us move forward with this support, and once in
> kernel, review the possibility to move this out to userspace.
> 
> Thoughts?

Seems like a reasonable approach for the short term...better than
locking-in userland ABI...

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Review of moving all DFS parameters to userspace
  2011-02-01 17:32 ` John W. Linville
@ 2011-02-14 15:39   ` Zefir Kurtisi
  2011-02-15  0:48     ` Luis R. Rodriguez
  0 siblings, 1 reply; 7+ messages in thread
From: Zefir Kurtisi @ 2011-02-14 15:39 UTC (permalink / raw)
  To: John W. Linville; +Cc: Luis R. Rodriguez, linux-wireless

On 02/01/2011 06:32 PM, John W. Linville wrote:
> On Tue, Feb 01, 2011 at 08:38:05AM -0800, Luis R. Rodriguez wrote:
>> I though we had reviewed the possibility of moving DFS parameters to
>> userspace but it seems that's not the case. We now at least know we
>> can keep the DFS regions: US, JP, ETSI, the next step is to determine
>> if the DFS parameters for these regions will come from userspace or
>> kernelspace. I'm inclined to support starting off with moving this to
>> kernelspace just to let us move forward with this support, and once in
>> kernel, review the possibility to move this out to userspace.
>>
>> Thoughts?
> 
> Seems like a reasonable approach for the short term...better than
> locking-in userland ABI...
> 
> John

Sorry, I was not aware that the userspace DFS approach was already discussed 
and rejected. I missed two IRC meetings in January and reading [1] sounded 
to me that potential approaches are still evaluated.

Anyhow, I meanwhile posted both approaches (kernel vs. userspace) that are 
equivalent from functional point, assuming that a HW independent pattern 
matching is what we need to implement for DFS radar detection.

This in fact is still an open issue: Atheros claimed that detection is 
HW-dependent while we have got up and (maybe not-so-perfectly ;)) running 
HW-independen radar pattern detection. We are still waiting to get Atheros' 
pattern detector source code to evaluate detection performance and finally 
prove the benefit of a HW dependent implementation.

Until then (and since the DFS activities degraded lastly) we will continue 
fine-tuning our detectors based on the proposed design and move to the 
finally chosen architecture as soon as an agreement is reached.



Cheers
Zefir



[1] http://linuxwireless.org/en/developers/DFS/#DFS_events

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Review of moving all DFS parameters to userspace
  2011-02-14 15:39   ` Zefir Kurtisi
@ 2011-02-15  0:48     ` Luis R. Rodriguez
  2011-02-15  2:33       ` Felix Fietkau
  2011-02-15  9:23       ` Zefir Kurtisi
  0 siblings, 2 replies; 7+ messages in thread
From: Luis R. Rodriguez @ 2011-02-15  0:48 UTC (permalink / raw)
  To: Zefir Kurtisi, Mahboob Alem
  Cc: John W. Linville, linux-wireless, Brian Kevin Lee, Kathy Giori

On Mon, Feb 14, 2011 at 7:39 AM, Zefir Kurtisi
<zefir.kurtisi@neratec.com> wrote:
> On 02/01/2011 06:32 PM, John W. Linville wrote:
>> On Tue, Feb 01, 2011 at 08:38:05AM -0800, Luis R. Rodriguez wrote:
>>> I though we had reviewed the possibility of moving DFS parameters to
>>> userspace but it seems that's not the case. We now at least know we
>>> can keep the DFS regions: US, JP, ETSI, the next step is to determine
>>> if the DFS parameters for these regions will come from userspace or
>>> kernelspace. I'm inclined to support starting off with moving this to
>>> kernelspace just to let us move forward with this support, and once in
>>> kernel, review the possibility to move this out to userspace.
>>>
>>> Thoughts?
>>
>> Seems like a reasonable approach for the short term...better than
>> locking-in userland ABI...
>>
>> John
>
> Sorry, I was not aware that the userspace DFS approach was already discussed
> and rejected.

19:14 < *nbd> initially the pulse pattern matching will be somewhat hw specific
19:14 < *nbd> or at least driver specific

So ideally if we can generalize things great, I really did not think
we'd be able to get there on a first step.

> I missed two IRC meetings in January and reading [1] sounded
> to me that potential approaches are still evaluated.
>
> Anyhow, I meanwhile posted both approaches (kernel vs. userspace) that are
> equivalent from functional point, assuming that a HW independent pattern
> matching is what we need to implement for DFS radar detection.
>
> This in fact is still an open issue: Atheros claimed that detection is
> HW-dependent while we have got up and (maybe not-so-perfectly ;)) running
> HW-independen radar pattern detection

That's cool ! However I was told that for some parameters you might
see some values programmed into hw which won't immediately make sense
given that the programmed values are there in consideration for a
hardware quirk of some sort. Mahboob, what parameters were those?

> We are still waiting to get Atheros'
> pattern detector source code to evaluate detection performance and finally
> prove the benefit of a HW dependent implementation.

That's being baked with legal.

> Until then (and since the DFS activities degraded lastly) we will continue
> fine-tuning our detectors based on the proposed design

Driver or userspace?

> and move to the
> finally chosen architecture as soon as an agreement is reached.

Sorry for my delay on the first set of patches, I hope to send a v2
hopefully by tomorrow..

 Luis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Review of moving all DFS parameters to userspace
  2011-02-15  0:48     ` Luis R. Rodriguez
@ 2011-02-15  2:33       ` Felix Fietkau
  2011-02-15 12:16         ` Zefir Kurtisi
  2011-02-15  9:23       ` Zefir Kurtisi
  1 sibling, 1 reply; 7+ messages in thread
From: Felix Fietkau @ 2011-02-15  2:33 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Zefir Kurtisi, Mahboob Alem, John W. Linville, linux-wireless,
	Brian Kevin Lee, Kathy Giori

On 2011-02-15 1:48 AM, Luis R. Rodriguez wrote:
> On Mon, Feb 14, 2011 at 7:39 AM, Zefir Kurtisi
> <zefir.kurtisi@neratec.com> wrote:
>> On 02/01/2011 06:32 PM, John W. Linville wrote:
>>> On Tue, Feb 01, 2011 at 08:38:05AM -0800, Luis R. Rodriguez wrote:
>>>> I though we had reviewed the possibility of moving DFS parameters to
>>>> userspace but it seems that's not the case. We now at least know we
>>>> can keep the DFS regions: US, JP, ETSI, the next step is to determine
>>>> if the DFS parameters for these regions will come from userspace or
>>>> kernelspace. I'm inclined to support starting off with moving this to
>>>> kernelspace just to let us move forward with this support, and once in
>>>> kernel, review the possibility to move this out to userspace.
>>>>
>>>> Thoughts?
>>>
>>> Seems like a reasonable approach for the short term...better than
>>> locking-in userland ABI...
>>>
>>> John
>>
>> Sorry, I was not aware that the userspace DFS approach was already discussed
>> and rejected.
> 
> 19:14 < *nbd> initially the pulse pattern matching will be somewhat hw specific
> 19:14 < *nbd> or at least driver specific
> 
> So ideally if we can generalize things great, I really did not think
> we'd be able to get there on a first step.
It's good to have the pulse pattern matching code be as generic as
possible, but I would like to keep it in the ath module until we're sure
that there actually is non-Atheros hardware out there that it can be
used for (and preferably has been tested with).

I would strongly prefer if it stays in the kernel though, because
certainly not all drivers are going to need pulse pattern matching code
in the driver or stack (some will do this in firmware), and to have two
completely different reporting mechanisms for radar detection events
seems kind of pointless to me.

But even after moving it to the kernel, it would still be nice to have
the code structured in a way that it can alternatively be compiled with
some wrapper code for running user space tests.

- Felix

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Review of moving all DFS parameters to userspace
  2011-02-15  0:48     ` Luis R. Rodriguez
  2011-02-15  2:33       ` Felix Fietkau
@ 2011-02-15  9:23       ` Zefir Kurtisi
  1 sibling, 0 replies; 7+ messages in thread
From: Zefir Kurtisi @ 2011-02-15  9:23 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Mahboob Alem, John W. Linville, linux-wireless, Brian Kevin Lee,
	Kathy Giori

On 02/15/2011 01:48 AM, Luis R. Rodriguez wrote:
> On Mon, Feb 14, 2011 at 7:39 AM, Zefir Kurtisi
> <zefir.kurtisi@neratec.com> wrote:
>> On 02/01/2011 06:32 PM, John W. Linville wrote:
>>> On Tue, Feb 01, 2011 at 08:38:05AM -0800, Luis R. Rodriguez wrote:
>>>> I though we had reviewed the possibility of moving DFS parameters to
>>>> userspace but it seems that's not the case. We now at least know we
>>>> can keep the DFS regions: US, JP, ETSI, the next step is to determine
>>>> if the DFS parameters for these regions will come from userspace or
>>>> kernelspace. I'm inclined to support starting off with moving this to
>>>> kernelspace just to let us move forward with this support, and once in
>>>> kernel, review the possibility to move this out to userspace.
>>>>
>>>> Thoughts?
>>>
>>> Seems like a reasonable approach for the short term...better than
>>> locking-in userland ABI...
>>>
>>> John
>>
>> Sorry, I was not aware that the userspace DFS approach was already discussed
>> and rejected.
> 
> 19:14 < *nbd> initially the pulse pattern matching will be somewhat hw specific
> 19:14 < *nbd> or at least driver specific
> 
This discussion I most probably missed or forgot...

> So ideally if we can generalize things great, I really did not think
> we'd be able to get there on a first step.
> 
Let's see how far we would need to specialise our generalised approach to make 
it usable in real world environments.
>> I missed two IRC meetings in January and reading [1] sounded
>> to me that potential approaches are still evaluated.
>>
>> Anyhow, I meanwhile posted both approaches (kernel vs. userspace) that are
>> equivalent from functional point, assuming that a HW independent pattern
>> matching is what we need to implement for DFS radar detection.
>>
>> This in fact is still an open issue: Atheros claimed that detection is
>> HW-dependent while we have got up and (maybe not-so-perfectly ;)) running
>> HW-independen radar pattern detection
> 
> That's cool ! However I was told that for some parameters you might
> see some values programmed into hw which won't immediately make sense
> given that the programmed values are there in consideration for a
> hardware quirk of some sort. Mahboob, what parameters were those?
> 
For sure some parameters are HW dependent, e.g. the detection of chirping as 
defined for radar test signal #4 by ETSI 1.5.1. But this can be perfectly 
encapsuled in the driver: assume the HW detected a chirping pulse with 15us 
width. This width would be outside the valid range for pulse pattern #4, but 
since chirping was detected ath9k is quite sure that this was a type 4 pulse 
and reports a pulse event with a width of e.g. 25us. The pattern detector 
itself does not care about chirping - its criteria is solely the time stamp 
and the width of the pulse, so the last provided pulse event will be 
considered for pattern matching.

For the generic approach with pulse detection done in the driver and generic 
pattern matching we assume that HW-dependency will be used to increase the 
reliability of single pulse detections and that those detections are not 
inter-dependent. If otherwise there is a dependency, e.g. you need to know 
the last x pulse events to decide if the current one is also a pulse, then 
the whole DFS thing is for sure driver dependent.

This is what only you at Atheros definitely know.

>> We are still waiting to get Atheros'
>> pattern detector source code to evaluate detection performance and finally
>> prove the benefit of a HW dependent implementation.
> 
> That's being baked with legal.
> 
Does this legal checks include approval that the DFS source code might be 
integrated into ath9k?

>> Until then (and since the DFS activities degraded lastly) we will continue
>> fine-tuning our detectors based on the proposed design
> 
> Driver or userspace?
> 
Both are working on target, on host we are using the userspace one (since we 
still fail to write error-free kernel code ;))

>> and move to the
>> finally chosen architecture as soon as an agreement is reached.
> 
> Sorry for my delay on the first set of patches, I hope to send a v2
> hopefully by tomorrow..
> 
Thanks, see you all on Tuesday.

Zefir
>  Luis


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Review of moving all DFS parameters to userspace
  2011-02-15  2:33       ` Felix Fietkau
@ 2011-02-15 12:16         ` Zefir Kurtisi
  0 siblings, 0 replies; 7+ messages in thread
From: Zefir Kurtisi @ 2011-02-15 12:16 UTC (permalink / raw)
  To: Felix Fietkau
  Cc: Luis R. Rodriguez, Mahboob Alem, John W. Linville,
	linux-wireless, Brian Kevin Lee, Kathy Giori

On 02/15/2011 03:33 AM, Felix Fietkau wrote:
> On 2011-02-15 1:48 AM, Luis R. Rodriguez wrote:
>> On Mon, Feb 14, 2011 at 7:39 AM, Zefir Kurtisi
>> <zefir.kurtisi@neratec.com> wrote:
>>> On 02/01/2011 06:32 PM, John W. Linville wrote:
>>>> On Tue, Feb 01, 2011 at 08:38:05AM -0800, Luis R. Rodriguez wrote:
>>>>> I though we had reviewed the possibility of moving DFS parameters to
>>>>> userspace but it seems that's not the case. We now at least know we
>>>>> can keep the DFS regions: US, JP, ETSI, the next step is to determine
>>>>> if the DFS parameters for these regions will come from userspace or
>>>>> kernelspace. I'm inclined to support starting off with moving this to
>>>>> kernelspace just to let us move forward with this support, and once in
>>>>> kernel, review the possibility to move this out to userspace.
>>>>>
>>>>> Thoughts?
>>>>
>>>> Seems like a reasonable approach for the short term...better than
>>>> locking-in userland ABI...
>>>>
>>>> John
>>>
>>> Sorry, I was not aware that the userspace DFS approach was already discussed
>>> and rejected.
>>
>> 19:14 < *nbd> initially the pulse pattern matching will be somewhat hw specific
>> 19:14 < *nbd> or at least driver specific
>>
>> So ideally if we can generalize things great, I really did not think
>> we'd be able to get there on a first step.
> It's good to have the pulse pattern matching code be as generic as
> possible, but I would like to keep it in the ath module until we're sure
> that there actually is non-Atheros hardware out there that it can be
> used for (and preferably has been tested with).
> 
> I would strongly prefer if it stays in the kernel though, because
> certainly not all drivers are going to need pulse pattern matching code
> in the driver or stack (some will do this in firmware), and to have two
> completely different reporting mechanisms for radar detection events
> seems kind of pointless to me.
> 
> But even after moving it to the kernel, it would still be nice to have
> the code structured in a way that it can alternatively be compiled with
> some wrapper code for running user space tests.
> 
> - Felix

I understand your thoughts, but am still not clear on how you suggest to 
proceed with DFS implementation. Do you opt for taking DFS source code 
provided by Atheros (assumed we get it) and integrate it into ath9k, or 
take our proposal into ath9k as starting point?

In the latter case, would it be required to change the proposed interface 
to the detector with some Atheros specific parameters, or is it only to hide 
the (generic) detector from the outside world? With that latter case I 
personally would disagree, since - even if no other driver might ever use 
the generic detector - it does not hurt to make a generic module generally 
available.

We are circuiting this issue now for quite some time and we will continue so 
until we clarify its root cause, i.e. is pattern detection for radar pulse 
detecting chipsets HW-dependent or not. 
Hope we will get it resolved soon, now that Atheros DFS algorithm folks are 
included in the discussion.


See you at the meeting today.
Zefir


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-15 12:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-01 16:38 Review of moving all DFS parameters to userspace Luis R. Rodriguez
2011-02-01 17:32 ` John W. Linville
2011-02-14 15:39   ` Zefir Kurtisi
2011-02-15  0:48     ` Luis R. Rodriguez
2011-02-15  2:33       ` Felix Fietkau
2011-02-15 12:16         ` Zefir Kurtisi
2011-02-15  9:23       ` Zefir Kurtisi

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.