Re: [zd1211-devs] Porting zd1211 (not rw) to SPARC64

2006-08-14 Thread Patrick Simmons
I've made quite a bit of progress debugging and have narrowed down the 
(current) problem to a single statement:

set_bit(ZD1211_RUNNING, macp-flags);

My initial attempt at solving this problem was to change this line to 
the following:

set_bit(ZD1211_RUNNING, get_unaligned((macp-flags)));

This didn't work, but the kernel failed in a different way, claiming it 
was unable to handle a null pointer dereference.  So, I added a printk 
statement to log the value of macp directly before that statement.  It 
was not NULL.

Googling for set_bit problems, I disovered this lkml thread: 
http://lkml.org/lkml/2006/1/21/112

I am using kernel 2.4.33, and my compiler is GCC 3.4.4.  While I suppose 
it's possbile that my kernel or GCC version is buggy with regard to the 
set_bit function, I think it's more likely my fix above is wrong.  I'm 
just mentioning what I found about that because I don't want to rule it out.

Does anyone have any suggestions on how to fix this?

-- 
The mind is its own place, and in itself, can make a Heaven of Hell, a Hell of 
Heaven.
--Satan,
  in _Paradise Lost_ by Milton


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Zd1211-devs mailing list - http://zd1211.ath.cx/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs


Re: [zd1211-devs] BUG kernel/workqueue.c:149 with linux-2.6.18-rc4 and WPA/PSK

2006-08-14 Thread Maxime
On Sun, Aug 13, 2006 at 10:25:12AM +0200, Ulrich Kunitz wrote:
 On 06-08-12 20:58 Maxime wrote:
 
  
  I connected a computer using a usb dongle (0ace:1215) to my access point
  (WPA/PSK), and the system hit a BUG over night.  
  Let me know what I can do to help,
  
  Max
  
  if (!test_and_set_bit(0, work-pending)) {
  BUG_ON(timer_pending(timer));  --- XXX
  BUG_ON(!list_empty(work-entry));
 
 Looks like a bug in softmac, where a delayed work item is
 scheduled again, without canceling the old on. The work queue
 stuff is not very tolerant against such things. You shouldn't also
 try to cancel a work item, if no work item has been scheduled
 before.
 
 Honestly I've never worked on softmac. I put it on my TODO list,
 but I make no promises. Maybe Daniel looks into it. If you want
 you could start to look into it.

I'll send this to [EMAIL PROTECTED] I unfortunately don't
have time to look into it. Thanks Ulrich,

Max

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Zd1211-devs mailing list - http://zd1211.ath.cx/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs