[linux-usb-devel] Re: Linux 2.6.0-test3

2003-08-14 Thread Jacek Kawa
Linus Torvalds wrote:

[...]

 Oliver Neukum:
   o USB: error return codes in usblp
   o USB: cleanup of usblp (release and poll)
   o USB: fix race condition in usblp_write

[...]

Well, I cannot finish printing anything now and I believe, that one of
above is responsible. 
It looks as if printer gets some amount of data but then communication 
'stops' and printer waits for more data (usually I have about 2cm 
of page printed, paper locked and later printer error leds start
blinking happily :)

Not sure, if it's directly related, but system seems to be less 
responsive later.

Version of usblp.c from 2.6.0-test2 compiled with 2.6.0-test3 does
not work as I expected (I can load module, but printer is not 
detected - no usual 'usblp0: USB Unidirectional printer dev 3 if 0 alt 1
proto 2 vid 0x03F0 pid' message in logs).

I traced my problem down to -test2-bk2 (with bk1 everything works
correctly).

o Printer is connected to /dev/usb/lp0; it's HP840c
o ver_linux output: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/ver_linux
o config: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/config
o dmesg: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/dmesg
o /proc/bus/usb/devices: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/devices
o some related logs: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/logs

Any suggestions are welcome :)

jk

-- 
Jacek Kawa


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] Re: Linux 2.6.0-test3

2003-08-14 Thread Jacek Kawa
I wrote:

 o Printer is connected to /dev/usb/lp0; it's HP840c
 o ver_linux output: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/ver_linux
 o config: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/config
 o dmesg: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/dmesg
 o /proc/bus/usb/devices: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/devices
 o some related logs: http://zeus.polsl.gliwice.pl/kernel/2.6.0-test3/logs

aieee:
http://zeus.polsl.gliwice.pl/~jfk/kernel/2.6.0-test3/config
http://zeus.polsl.gliwice.pl/~jfk/kernel/2.6.0-test3/devices
http://zeus.polsl.gliwice.pl/~jfk/kernel/2.6.0-test3/dmesg
http://zeus.polsl.gliwice.pl/~jfk/kernel/2.6.0-test3/logs
http://zeus.polsl.gliwice.pl/~jfk/kernel/2.6.0-test3/ver_linux

and one more thing:

PID  USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND   
2788 root  25   0  2096  576 1888 R 97.7  0.2  22:32.75 usb

 Any suggestions are welcome :)

Sorry!

-- 
Jacek Kawa


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] Re: [PATCH]return to old timeout handling

2003-08-14 Thread Jacek Kawa
Oliver Neukum wrote:

 it seems that I've broken usblp. This reverts to the old
 behaviour. Please apply.

I can confirm, that it works OK now. 

Thanks!

Regards

-- 
Jacek Kawa  


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


[linux-usb-devel] Re: Linux 2.6.0-test3

2003-08-10 Thread Jacek Kawa
Oliver Neukum wrote:

   Is this error
   drivers/usb/class/usblp.c: usblp0: nonzero read/write bulk status received: -104
   repeatable?
  Yes. Looks as if once/reboot (I've just checked my logs); with
  -test2-bk2 and -test3.
   Were you the whom I sent the diagnostic which which gave no results?
  No, any problems with usblp previously. :)
 Does this help?

@@ -629,6 +629,7 @@
   if (!timeout) {
   /* we timed out and need to bail out cleanly */
   usb_unlink_urb(usblp-writeurb);
 + usblp-writeurb-status = 0;
   return writecount ? writecount : -EIO;

Well, behaviour is different now - after printing those 2cm
printer doesn't wait anymore, but feeds page and then print
some garbage, which seems to be some random part of memory - once
for example something that appears to be HTTP negotiation.

No more CPU-hungry usb process, so cups could probably send
all he wanted to send...

jk

-- 
Jacek Kawa


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel