Re: usb lpt borked?

2002-04-07 Thread Michael Reifenberger

On Sat, 6 Apr 2002, Scott Long wrote:

> > Go for it ("Tested by:  netchild"), the system now doesn't hangs
> > anymore at shutdown.
Me too :-)
> Given the number of 'me too' responses to the usb mouse problem, maybe
> you should check in this patch, and then track down the printing
> problems later.
Yes please.

Bye!

Michael Reifenberger
^.*Plaut.*$, IT, R/3 Basis, GPS


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-06 Thread Alexander Leidinger

On  6 Apr, Julian Elischer wrote:
> As I mentionned before.. usb printing worked fine for me with a December
> kernel (and I think January)
> in March it broke so that it printed, but crashed the machine at the final
> close(). Now it hangs forever on teh initial open().

I had problems with earlier and later kernels too, but did you tried a
Mar 12 kernel? It worked for me (HP Deskjet 895Cxi).

> On Sat, 6 Apr 2002, Scott Long wrote:
> 
>> On Sat, Apr 06, 2002 at 03:10:47PM +0200, Alexander Leidinger wrote:
>> > On  6 Apr, Josef Karthauser wrote:
>> > 
>> > [...]
>> > 
>> > Go for it ("Tested by: netchild"), the system now doesn't hangs
>> > anymore at shutdown.
>> > 
>> > But now the printer hangs the system with:
>> >  usb_detach_wait: ulpt0 didn't detach
>> >  ulpt0: detached
>> > when I turn it off (I tried if this fix also solved the ulpt problem,
>> > even if the patch didn't looked so to me).
>> 
>> Did usb printing work before this patch?  USB printing has never worked
>> for me, so when I developed this patch I didn't take it into consideration.

Yes, see above.

>> Joe,
>> Given the number of 'me too' responses to the usb mouse problem, maybe 
>> you should check in this patch, and then track down the printing 
>> problems later.
>> 
>> Scott

Yes, this would be nice.

Bye,
Alexander.

-- 
   Press every key to continue.

http://www.Leidinger.net   Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-06 Thread Julian Elischer

As I mentionned before.. usb printing worked fine for me with a December
kernel (and I think January)
in March it broke so that it printed, but crashed the machine at the final
close(). Now it hangs forever on teh initial open().



On Sat, 6 Apr 2002, Scott Long wrote:

> On Sat, Apr 06, 2002 at 03:10:47PM +0200, Alexander Leidinger wrote:
> > On  6 Apr, Josef Karthauser wrote:
> > 
> > [...]
> > 
> > Go for it ("Tested by:  netchild"), the system now doesn't hangs
> > anymore at shutdown.
> > 
> > But now the printer hangs the system with:
> >  usb_detach_wait: ulpt0 didn't detach
> >  ulpt0: detached
> > when I turn it off (I tried if this fix also solved the ulpt problem,
> > even if the patch didn't looked so to me).
> 
> Did usb printing work before this patch?  USB printing has never worked
> for me, so when I developed this patch I didn't take it into consideration.
> 
> Joe,
> Given the number of 'me too' responses to the usb mouse problem, maybe 
> you should check in this patch, and then track down the printing 
> problems later.
> 
> Scott
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-06 Thread Julian Elischer

this with an April 4 kernel.
March 4 kernel had problem(2)

On Sat, 6 Apr 2002, Alexander Leidinger wrote:

> On  5 Apr, Julian Elischer wrote:
> > 
> > ok guys we seem to be going backwards on this one..
> > 
> > 3 months ago this worked perfectly
> > 2 months ago it crashed after each document (on close())
> > now it crashes on open().. at least in the old kernel
> > I could get my printouts :-)
> 
> A Mar 12 kernel should work ok.
> 
> > ps shows the lpd daemon sleeping 'usbsyn' just before the crash..
> > no crashdumps yet.. will try, though I don't know if
> > the new crashdump code produces usable dumps yet..
> > (I guess I'm going to find out :-)
> 
> I've seen no ulpt related panics, it just doesn't print (VIA KT133A).
> Only my USB mice does something bad, it hangs the system hard on
> shutdown.
> 
> Bye,
> Alexander.
> 
> -- 
>It's not a bug, it's tradition!
> 
> http://www.Leidinger.net   Alexander @ Leidinger.net
>   GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
> 
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-06 Thread Matthias Schuendehuette

Am Samstag, 6. April 2002 15:10 schrieb Alexander Leidinger:
> On  6 Apr, Josef Karthauser wrote:
> >> Only my USB mice does something bad, it hangs the system hard on
> >> shutdown.
> >
> > Try this which Scott Long submitted a few days ago:
> >
> > Index: uhci.c
> > ===
> > RCS file: /usr/home/ncvs/src/sys/dev/usb/uhci.c,v
> > retrieving revision 1.104
> > diff -u -r1.104 uhci.c
> > --- uhci.c  1 Apr 2002 22:03:37 -   1.104
> > +++ uhci.c  5 Apr 2002 08:17:03 -
> > @@ -2051,6 +2051,7 @@
> > xfer->pipe->intrxfer = 0;
> > }
> > uhci_abort_xfer(xfer, USBD_CANCELLED);
> > +   usb_transfer_complete(xfer);
> >  }
> >
> >  /* Close a device interrupt pipe. */

Works for me as well. I can't say nothing about usb-printing but the 
mouse issue seems to be solved with this patch.

I someone asks me - please commit it ASAP
-- 
Ciao/BSD - Matthias

Matthias Schuendehuette <[EMAIL PROTECTED]>, Berlin (Germany)
Powered by FreeBSD 4.5-STABLE

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-06 Thread Scott Long

On Sat, Apr 06, 2002 at 03:10:47PM +0200, Alexander Leidinger wrote:
> On  6 Apr, Josef Karthauser wrote:
> 
> [...]
> 
> Go for it ("Tested by:netchild"), the system now doesn't hangs
> anymore at shutdown.
> 
> But now the printer hangs the system with:
>  usb_detach_wait: ulpt0 didn't detach
>  ulpt0: detached
> when I turn it off (I tried if this fix also solved the ulpt problem,
> even if the patch didn't looked so to me).

Did usb printing work before this patch?  USB printing has never worked
for me, so when I developed this patch I didn't take it into consideration.

Joe,
Given the number of 'me too' responses to the usb mouse problem, maybe 
you should check in this patch, and then track down the printing 
problems later.

Scott

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-06 Thread Poul-Henning Kamp


This does not solve the "usbsyn" hang for me.

Poul-Henning

In message <[EMAIL PROTECTED]>, Josef Karthauser writes:
>
>Try this which Scott Long submitted a few days ago:
>
>Index: uhci.c
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>RCS file: /usr/home/ncvs/src/sys/dev/usb/uhci.c,v
>retrieving revision 1.104
>diff -u -r1.104 uhci.c
>--- uhci.c  1 Apr 2002 22:03:37 -   1.104
>+++ uhci.c  5 Apr 2002 08:17:03 -
>@@ -2051,6 +2051,7 @@
>   xfer->pipe->intrxfer =3D 0;
>   } =
>   =20
>   uhci_abort_xfer(xfer, USBD_CANCELLED);
>+  usb_transfer_complete(xfer);
> } =
>  =20
>
> /* Close a device interrupt pipe. */
>
>
>
>Joe
>
>--5mCyUwZo2JvN/JJP
>Content-Type: application/pgp-signature
>Content-Disposition: inline
>
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.0.6 (FreeBSD)
>Comment: For info see http://www.gnupg.org
>
>iEYEARECAAYFAjyu3KcACgkQXVIcjOaxUBZIagCdHKJRbLmQsWMMptnp6fpU+oMA
>ri4AoMlMKEWJcJyo1N45a78glGOjiZQa
>=y8rs
>-END PGP SIGNATURE-
>
>--5mCyUwZo2JvN/JJP--
>
>To Unsubscribe: send mail to [EMAIL PROTECTED]
>with "unsubscribe freebsd-current" in the body of the message
>

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-06 Thread Andrew Bliznak


On Sat, 6 Apr 2002, Josef Karthauser wrote:

After this patch my usb mouse work again in console and X !!!

> On Sat, Apr 06, 2002 at 09:28:26AM +0200, Alexander Leidinger wrote:
> > On  5 Apr, Julian Elischer wrote:
> > > 
> > > ok guys we seem to be going backwards on this one..
> > > 
> > > 3 months ago this worked perfectly
> > > 2 months ago it crashed after each document (on close())
> > > now it crashes on open().. at least in the old kernel
> > > I could get my printouts :-)
> > 
> > A Mar 12 kernel should work ok.
> > 
> > > ps shows the lpd daemon sleeping 'usbsyn' just before the crash..
> > > no crashdumps yet.. will try, though I don't know if
> > > the new crashdump code produces usable dumps yet..
> > > (I guess I'm going to find out :-)
> > 
> > I've seen no ulpt related panics, it just doesn't print (VIA KT133A).
> > Only my USB mice does something bad, it hangs the system hard on
> > shutdown.
> 
> Try this which Scott Long submitted a few days ago:
> 
> Index: uhci.c
> ===
> RCS file: /usr/home/ncvs/src/sys/dev/usb/uhci.c,v
> retrieving revision 1.104
> diff -u -r1.104 uhci.c
> --- uhci.c  1 Apr 2002 22:03:37 -   1.104
> +++ uhci.c  5 Apr 2002 08:17:03 -
> @@ -2051,6 +2051,7 @@
>   xfer->pipe->intrxfer = 0;
>   }  
>   
>   uhci_abort_xfer(xfer, USBD_CANCELLED);
> + usb_transfer_complete(xfer);
>  }   
> 
> 
>  /* Close a device interrupt pipe. */
> 
> 
> 
> Joe
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-06 Thread Alexander Leidinger

On  6 Apr, Josef Karthauser wrote:

>> Only my USB mice does something bad, it hangs the system hard on
>> shutdown.
> 
> Try this which Scott Long submitted a few days ago:
> 
> Index: uhci.c
> ===
> RCS file: /usr/home/ncvs/src/sys/dev/usb/uhci.c,v
> retrieving revision 1.104
> diff -u -r1.104 uhci.c
> --- uhci.c  1 Apr 2002 22:03:37 -   1.104
> +++ uhci.c  5 Apr 2002 08:17:03 -
> @@ -2051,6 +2051,7 @@
>   xfer->pipe->intrxfer = 0;
>   }  
>   
>   uhci_abort_xfer(xfer, USBD_CANCELLED);
> + usb_transfer_complete(xfer);
>  }   
> 
> 
>  /* Close a device interrupt pipe. */

Go for it ("Tested by:  netchild"), the system now doesn't hangs
anymore at shutdown.

But now the printer hangs the system with:
 usb_detach_wait: ulpt0 didn't detach
 ulpt0: detached
when I turn it off (I tried if this fix also solved the ulpt problem,
even if the patch didn't looked so to me).

Savecore gives me a "Parity error on last dump header", so no backtrace.

Bye,
Alexander.

-- 
Secret hacker rule #11: hackers read manuals.

http://www.Leidinger.net   Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-06 Thread Josef Karthauser

On Sat, Apr 06, 2002 at 09:28:26AM +0200, Alexander Leidinger wrote:
> On  5 Apr, Julian Elischer wrote:
> > 
> > ok guys we seem to be going backwards on this one..
> > 
> > 3 months ago this worked perfectly
> > 2 months ago it crashed after each document (on close())
> > now it crashes on open().. at least in the old kernel
> > I could get my printouts :-)
> 
> A Mar 12 kernel should work ok.
> 
> > ps shows the lpd daemon sleeping 'usbsyn' just before the crash..
> > no crashdumps yet.. will try, though I don't know if
> > the new crashdump code produces usable dumps yet..
> > (I guess I'm going to find out :-)
> 
> I've seen no ulpt related panics, it just doesn't print (VIA KT133A).
> Only my USB mice does something bad, it hangs the system hard on
> shutdown.

Try this which Scott Long submitted a few days ago:

Index: uhci.c
===
RCS file: /usr/home/ncvs/src/sys/dev/usb/uhci.c,v
retrieving revision 1.104
diff -u -r1.104 uhci.c
--- uhci.c  1 Apr 2002 22:03:37 -   1.104
+++ uhci.c  5 Apr 2002 08:17:03 -
@@ -2051,6 +2051,7 @@
xfer->pipe->intrxfer = 0;
}  
   
uhci_abort_xfer(xfer, USBD_CANCELLED);
+   usb_transfer_complete(xfer);
 } 
   

 /* Close a device interrupt pipe. */



Joe



msg37022/pgp0.pgp
Description: PGP signature


Re: usb lpt borked?

2002-04-05 Thread Michael Reifenberger

On Sat, 6 Apr 2002, Alexander Leidinger wrote:
...
> Only my USB mice does something bad, it hangs the system hard on
> shutdown.
Me too.

Bye!

Michael Reifenberger
^.*Plaut.*$, IT, R/3 Basis, GPS


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: usb lpt borked?

2002-04-05 Thread Alexander Leidinger

On  5 Apr, Julian Elischer wrote:
> 
> ok guys we seem to be going backwards on this one..
> 
> 3 months ago this worked perfectly
> 2 months ago it crashed after each document (on close())
> now it crashes on open().. at least in the old kernel
> I could get my printouts :-)

A Mar 12 kernel should work ok.

> ps shows the lpd daemon sleeping 'usbsyn' just before the crash..
> no crashdumps yet.. will try, though I don't know if
> the new crashdump code produces usable dumps yet..
> (I guess I'm going to find out :-)

I've seen no ulpt related panics, it just doesn't print (VIA KT133A).
Only my USB mice does something bad, it hangs the system hard on
shutdown.

Bye,
Alexander.

-- 
   It's not a bug, it's tradition!

http://www.Leidinger.net   Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message