Re: [PATCH] b43: Fix QoS defaults

2008-09-11 Thread Michael Buesch
On Thursday 11 September 2008 05:37:48 Larry Finger wrote:
> Lorenzo Nava wrote:
> >> I'm not a reverse engineer, so I have no chance to check the original
> >> code to agree (or not) with you.
> >>
> > Ok, the mail has Johannes in Cc. I hope that he can tell me if me and  
> > Francesco are right or not.
> > Johannes please check it (I mean specs at 
> > http://bcm-v4.sipsolutions.net/802.11/QoS) 
> > , thank you.
> 
> It took me a while to find it, but the definitive statement is in the 
> structure that defines the EDCF Q info array. It contains 16 2-byte 
> words. The first 8 match the variables in the page mentioned above, 
> and the last 8 are padding. Lorenzo and Francesco are right.
> 
> I have modified the specs to conform to this finding.

Can somebody who cares please send a patch to John Linville,
for inclusion in the next merge window?

-- 
Greetings Michael.
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: [PATCH] b43: Fix QoS defaults

2008-09-10 Thread Larry Finger
Lorenzo Nava wrote:
>> I'm not a reverse engineer, so I have no chance to check the original
>> code to agree (or not) with you.
>>
> Ok, the mail has Johannes in Cc. I hope that he can tell me if me and  
> Francesco are right or not.
> Johannes please check it (I mean specs at 
> http://bcm-v4.sipsolutions.net/802.11/QoS) 
> , thank you.

It took me a while to find it, but the definitive statement is in the 
structure that defines the EDCF Q info array. It contains 16 2-byte 
words. The first 8 match the variables in the page mentioned above, 
and the last 8 are padding. Lorenzo and Francesco are right.

I have modified the specs to conform to this finding.

Larry


___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: [PATCH] b43: Fix QoS defaults

2008-09-10 Thread Lorenzo Nava
>
> I'm not a reverse engineer, so I have no chance to check the original
> code to agree (or not) with you.
>
Ok, the mail has Johannes in Cc. I hope that he can tell me if me and  
Francesco are right or not.
Johannes please check it (I mean specs at 
http://bcm-v4.sipsolutions.net/802.11/QoS) 
, thank you.

regards

Lorenzo
> -- 
> Greetings Michael.

___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: [PATCH] b43: Fix QoS defaults

2008-09-10 Thread Michael Buesch
On Wednesday 10 September 2008 22:11:53 Lorenzo Nava wrote:
> >>
> > The code is correct wrt specs. It says there are 0x16 words.
> > First fix specs, then fix code, please.
> >
> Yes you're right, but just above the table of the parameters reported  
> at http://bcm-v4.sipsolutions.net/802.11/QoS it says:
> 
> The EDCF Q Info array in SHM contains four structs of 16 16-bit words
> 
> So there is something that is not correct: as I said before I think  
> that the error is in the table, and I checked it within the firmware,  
> so I am quite sure of that.
> 
> Do you agree with me that there is an error in the specs?

I'm not a reverse engineer, so I have no chance to check the original
code to agree (or not) with you.

-- 
Greetings Michael.
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: [PATCH] b43: Fix QoS defaults

2008-09-10 Thread Lorenzo Nava
>>
> The code is correct wrt specs. It says there are 0x16 words.
> First fix specs, then fix code, please.
>
Yes you're right, but just above the table of the parameters reported  
at http://bcm-v4.sipsolutions.net/802.11/QoS it says:

The EDCF Q Info array in SHM contains four structs of 16 16-bit words

So there is something that is not correct: as I said before I think  
that the error is in the table, and I checked it within the firmware,  
so I am quite sure of that.

Do you agree with me that there is an error in the specs?

regards

Lorenzo

> -- 
> Greetings Michael.

___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: [PATCH] b43: Fix QoS defaults

2008-09-10 Thread Michael Buesch
Stay on list.
I'm not going to start another private thread for this.
In general, I avoid private threads most of the time and
barely answer them. There are so many people on the list
that can answer your questions.

On Wednesday 10 September 2008 17:50:33 Francesco Gringoli wrote:
> > The code is correct wrt specs. It says there are 0x16 words.
> > First fix specs, then fix code, please.
> I do not understand: those specs say that there are 16 words.

The table has 0x16 entries.

-- 
Greetings Michael.
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: [PATCH] b43: Fix QoS defaults

2008-09-10 Thread Michael Buesch
On Wednesday 10 September 2008 15:18:07 Francesco Gringoli wrote:
> Hi Michael,
> 
> we are collecting every kind of material about Broadcom board, too.  
> Could you please point out the document with such specifications?

http://bcm-v4.sipsolutions.net/802.11/QoS

> I confirm what Lorenzo wrote: there are 32 bytes for queue. If you  
> leave 22 then all the Qos mechanisms go wrong. Indeed, the bcm board  
> takes (quite) exclusive control of the channel as gap is always set to  
> zero.

The code is correct wrt specs. It says there are 0x16 words.
First fix specs, then fix code, please.

-- 
Greetings Michael.
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: [PATCH] b43: Fix QoS defaults

2008-09-10 Thread Francesco Gringoli
Hi Michael,

we are collecting every kind of material about Broadcom board, too.  
Could you please point out the document with such specifications?

I confirm what Lorenzo wrote: there are 32 bytes for queue. If you  
leave 22 then all the Qos mechanisms go wrong. Indeed, the bcm board  
takes (quite) exclusive control of the channel as gap is always set to  
zero.

Cheers,
-FG

On Sep 10, 2008, at 2:58 PM, Michael Buesch wrote:

> On Wednesday 10 September 2008 00:15:14 Lorenzo Nava wrote:
>> Hi everybody,
>>
>> I worked with the QoS parameters trying to understand why, checking
>> them within the firmware, they don't seems to have the correct values
>> even if they were set correctly by the driver.
>> I think that there could be an error in the b43.h file:
>>
>> /* SHM offsets to the QOS data structures for the 4 different  
>> queues. */
>> #define B43_QOS_PARAMS(queue)   (B43_SHM_SH_EDCFQ + \
>>  (B43_NR_QOSPARAMS * sizeof(u16) *
>> (queue)))
>> #define B43_QOS_BACKGROUND  B43_QOS_PARAMS(0)
>> #define B43_QOS_BESTEFFORT  B43_QOS_PARAMS(1)
>> #define B43_QOS_VIDEO   B43_QOS_PARAMS(2)
>> #define B43_QOS_VOICE   B43_QOS_PARAMS(3)
>>
>> /* QOS parameter hardware data structure offsets. */
>> #define B43_NR_QOSPARAMS22
>>
>> Each EDCF parameters set take up 32 byte (in the firmware the offset
>> between 2 EDCFQ is 0x010 that is equivalent to 0x020 if the offset  
>> was
>> expressed in byte). This means that the B43_NR_QOSPARAMS must be set
>> to 16.
>> With the value equal to 16 I can access correctly the aifs, cwcur,
>> cwmax, etc within the firmware.
>>
>> What do you think about that?
>
> The specifications says there are 22 (decimal) entries.
>
>
>
> -- 
> Greetings Michael.
> ___
> Bcm43xx-dev mailing list
> Bcm43xx-dev@lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: [PATCH] b43: Fix QoS defaults

2008-09-10 Thread Michael Buesch
On Wednesday 10 September 2008 00:15:14 Lorenzo Nava wrote:
> Hi everybody,
> 
> I worked with the QoS parameters trying to understand why, checking  
> them within the firmware, they don't seems to have the correct values  
> even if they were set correctly by the driver.
> I think that there could be an error in the b43.h file:
> 
> /* SHM offsets to the QOS data structures for the 4 different queues. */
> #define B43_QOS_PARAMS(queue)   (B43_SHM_SH_EDCFQ + \
>   (B43_NR_QOSPARAMS * sizeof(u16) *  
> (queue)))
> #define B43_QOS_BACKGROUND  B43_QOS_PARAMS(0)
> #define B43_QOS_BESTEFFORT  B43_QOS_PARAMS(1)
> #define B43_QOS_VIDEO   B43_QOS_PARAMS(2)
> #define B43_QOS_VOICE   B43_QOS_PARAMS(3)
> 
> /* QOS parameter hardware data structure offsets. */
> #define B43_NR_QOSPARAMS22
> 
> Each EDCF parameters set take up 32 byte (in the firmware the offset  
> between 2 EDCFQ is 0x010 that is equivalent to 0x020 if the offset was  
> expressed in byte). This means that the B43_NR_QOSPARAMS must be set  
> to 16.
> With the value equal to 16 I can access correctly the aifs, cwcur,  
> cwmax, etc within the firmware.
> 
> What do you think about that?

The specifications says there are 22 (decimal) entries.



-- 
Greetings Michael.
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: [PATCH] b43: Fix QoS defaults

2008-09-09 Thread Lorenzo Nava
Hi everybody,

I worked with the QoS parameters trying to understand why, checking  
them within the firmware, they don't seems to have the correct values  
even if they were set correctly by the driver.
I think that there could be an error in the b43.h file:

/* SHM offsets to the QOS data structures for the 4 different queues. */
#define B43_QOS_PARAMS(queue)   (B43_SHM_SH_EDCFQ + \
  (B43_NR_QOSPARAMS * sizeof(u16) *  
(queue)))
#define B43_QOS_BACKGROUND  B43_QOS_PARAMS(0)
#define B43_QOS_BESTEFFORT  B43_QOS_PARAMS(1)
#define B43_QOS_VIDEO   B43_QOS_PARAMS(2)
#define B43_QOS_VOICE   B43_QOS_PARAMS(3)

/* QOS parameter hardware data structure offsets. */
#define B43_NR_QOSPARAMS22

Each EDCF parameters set take up 32 byte (in the firmware the offset  
between 2 EDCFQ is 0x010 that is equivalent to 0x020 if the offset was  
expressed in byte). This means that the B43_NR_QOSPARAMS must be set  
to 16.
With the value equal to 16 I can access correctly the aifs, cwcur,  
cwmax, etc within the firmware.

What do you think about that?

regards.

Lorenzo.
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev