Re: [ath5k-devel] tracing ANI

2008-09-25 Thread Geoffrey McRae
I agree, was just pointing out what seemed to be the problem with the code. On Thu, 2008-09-25 at 22:39 -0400, Bob Copeland wrote: > On Fri, Sep 26, 2008 at 09:26:10AM +1000, Geoffrey McRae wrote: > > I can see the reason why this seg faults... > > > > ani_state = kzalloc(sizeof(struct ath5k_ani_

Re: [ath5k-devel] tracing ANI

2008-09-25 Thread Bob Copeland
On Fri, Sep 26, 2008 at 09:26:10AM +1000, Geoffrey McRae wrote: > I can see the reason why this seg faults... > > ani_state = kzalloc(sizeof(struct ath5k_ani_state), GFP_KERNEL); > > shoud be > > *ani_state = kzalloc(sizeof(struct ath5k_ani_state), GFP_KERNEL); That's still a strange way to wri

Re: [ath5k-devel] tracing ANI

2008-09-25 Thread Geoffrey McRae
I can see the reason why this seg faults... ani_state = kzalloc(sizeof(struct ath5k_ani_state), GFP_KERNEL); shoud be *ani_state = kzalloc(sizeof(struct ath5k_ani_state), GFP_KERNEL); On Wed, 2008-09-24 at 08:49 -0400, Bob Copeland wrote: > > b) During attach i do a bad memory allocation > >

Re: [ath5k-devel] tracing ANI

2008-09-24 Thread Nick Kossifidis
2008/9/24 Bob Copeland <[EMAIL PROTECTED]>: >> 2008/9/24 Bob Copeland <[EMAIL PROTECTED]>: >> > Shouldn't this be something like: >> > >> >ah->ah_ai_state = kzalloc()... >> > >> > Otherwise ath5k_hw_ani_set_min_immunity segfaults immediately. >> >> Already tested that and it doesn't segfaul

Re: [ath5k-devel] tracing ANI

2008-09-24 Thread Bob Copeland
> 2008/9/24 Bob Copeland <[EMAIL PROTECTED]>: > > Shouldn't this be something like: > > > >ah->ah_ai_state = kzalloc()... > > > > Otherwise ath5k_hw_ani_set_min_immunity segfaults immediately. > > Already tested that and it doesn't segfault, we set ah_ani_state before > that... > struct at

Re: [ath5k-devel] tracing ANI

2008-09-24 Thread Nick Kossifidis
2008/9/24 Bob Copeland <[EMAIL PROTECTED]>: >> b) During attach i do a bad memory allocation >> ani_stats = kzalloc(sizeof(struct ath5k_ani_state), GFP_KERNEL); >> just change it to >> ani_stats = kzalloc(sizeof(struct ath5k_ani_stats), GFP_KERNEL); > > Looks like more is wrong with that: > >> int

Re: [ath5k-devel] tracing ANI

2008-09-24 Thread Bob Copeland
> b) During attach i do a bad memory allocation > ani_stats = kzalloc(sizeof(struct ath5k_ani_state), GFP_KERNEL); > just change it to > ani_stats = kzalloc(sizeof(struct ath5k_ani_stats), GFP_KERNEL); Looks like more is wrong with that: > int ath5k_hw_ani_attach(struct ath5k_hw *ah){ > str

Re: [ath5k-devel] tracing ANI

2008-09-22 Thread Nick Kossifidis
2007/12/18 bruno randolf <[EMAIL PROTECTED]>: > On Tuesday 18 December 2007 01:24:07 Nick Kossifidis wrote: >> 2007/12/17, bruno randolf <[EMAIL PROTECTED]>: >> > hi nick! >> > >> > thanks for the explanations, that makes it a bit more transparent how you >> > figure that stuff out... >> > >> > On

Re: [ath5k-devel] tracing ANI

2007-12-20 Thread bruno randolf
On Thursday 20 December 2007 02:36:46 Nick Kossifidis wrote: > 2007/12/17, Nick Kossifidis <[EMAIL PROTECTED]>: > > 2007/12/13, Pavel Roskin <[EMAIL PROTECTED]>: > > > Hello! > > > > > > On Thu, 2007-12-13 at 19:36 +0200, Nick Kossifidis wrote: > > > > So what we really have to rev.engineer is ani_

Re: [ath5k-devel] tracing ANI

2007-12-19 Thread Nick Kossifidis
2007/12/17, Nick Kossifidis <[EMAIL PROTECTED]>: > 2007/12/13, Pavel Roskin <[EMAIL PROTECTED]>: > > Hello! > > > > On Thu, 2007-12-13 at 19:36 +0200, Nick Kossifidis wrote: > > > > > So what we really have to rev.engineer is ani_control function. > > > > Can we somehow counteract whatever the new

Re: [ath5k-devel] tracing ANI

2007-12-17 Thread bruno randolf
On Tuesday 18 December 2007 01:24:07 Nick Kossifidis wrote: > 2007/12/17, bruno randolf <[EMAIL PROTECTED]>: > > hi nick! > > > > thanks for the explanations, that makes it a bit more transparent how you > > figure that stuff out... > > > > On Monday 17 December 2007 15:02:05 Nick Kossifidis wrote:

Re: [ath5k-devel] tracing ANI

2007-12-17 Thread Nick Kossifidis
2007/12/13, Pavel Roskin <[EMAIL PROTECTED]>: > Hello! > > On Thu, 2007-12-13 at 19:36 +0200, Nick Kossifidis wrote: > > > So what we really have to rev.engineer is ani_control function. > > Can we somehow counteract whatever the new HAL is doing with ANI without > reverse engineering, just by writ

Re: [ath5k-devel] tracing ANI

2007-12-17 Thread Nick Kossifidis
2007/12/17, Nick Kossifidis <[EMAIL PROTECTED]>: > 2007/12/17, bruno randolf <[EMAIL PROTECTED]>: > > hi nick! > > > > thanks for the explanations, that makes it a bit more transparent how you > > figure that stuff out... > > > > On Monday 17 December 2007 15:02:05 Nick Kossifidis wrote: > > > Brun

Re: [ath5k-devel] tracing ANI

2007-12-17 Thread Nick Kossifidis
2007/12/17, bruno randolf <[EMAIL PROTECTED]>: > hi nick! > > thanks for the explanations, that makes it a bit more transparent how you > figure that stuff out... > > On Monday 17 December 2007 15:02:05 Nick Kossifidis wrote: > > Bruno can you redo this dump with 802.11b link (CCK) ? It might be >

Re: [ath5k-devel] tracing ANI

2007-12-17 Thread bruno randolf
hi nick! thanks for the explanations, that makes it a bit more transparent how you figure that stuff out... On Monday 17 December 2007 15:02:05 Nick Kossifidis wrote: > Bruno can you redo this dump with 802.11b link (CCK) ? It might be > easier to spot what these registers do (and verify if i'm

Re: [ath5k-devel] tracing ANI

2007-12-16 Thread Nick Kossifidis
This is what i've found so far (for more infos check out patent doc and code that was inside if_ath.c -> http://madwifi.org/browser/cvs-import/trunk/driver/if_ath.c?rev=135#L2291 )... This part seems to reset counters in mac... > 1020: R: 0x8090 = 0x - AR5K_ACK_FAIL_5211 > 1021: R: 0x808c

Re: [ath5k-devel] tracing ANI

2007-12-13 Thread Pavel Roskin
Hello! On Thu, 2007-12-13 at 19:36 +0200, Nick Kossifidis wrote: > So what we really have to rev.engineer is ani_control function. Can we somehow counteract whatever the new HAL is doing with ANI without reverse engineering, just by writing to the registers what the old HAL would do at the strat

Re: [ath5k-devel] tracing ANI

2007-12-13 Thread Nick Kossifidis
2007/12/13, bruno randolf <[EMAIL PROTECTED]>: > hi! > > since turning interference mitigation (ANI) on and off seems to have an > important impact on performance, i traced it down, with both the "old" HAL > v0.9.18.0 and the "new" HAL v0.9.30.13. superficially both do the same thing, > but the new

[ath5k-devel] tracing ANI

2007-12-13 Thread bruno randolf
hi! since turning interference mitigation (ANI) on and off seems to have an important impact on performance, i traced it down, with both the "old" HAL v0.9.18.0 and the "new" HAL v0.9.30.13. superficially both do the same thing, but the new HAL ignores setting "intmit" to 0. well, for ath5k it