Comtrol Rocketport UNIVERSAL PCI 32-port

Vitaliy Skakun vit.ska at gmail.com
Thu Jan 26 10:07:27 PST 2006


tried this patch

echo "~WC" > /dev/cuaR00

worked ok when I tried this a lot of times quickly, but when I try to send
larger files, it panics again :

root at pl2:~ [0]# cat 1.txt > /dev/cuaR00
root at pl2:~ [0]# cat 1.txt > /dev/cuaR00

^^^^ after this the same panic occured

the size of file is 194 bytes. same thing occured when I sent only once the
file of size=1164

after reboot:

root at pl2:~ [0]# grep panic /var/log/messages
Jan 26 17:38:49 pl2 savecore: reboot after panic: device_unbusy: called for
non-busy device rp0

also noticed the following :
when trying

root at pl2:~ [0]# cat /root/1.txt|cu -lcuaR00
Connected
~.
~.^C
^^^ cu hang

root at pl2:~ [1]# ps xau|grep cu
root    733  0.0  0.0  1284   972  p0- I     5:55PM   0:00.00 cu -lcuaR00

root at pl2:~ [0]# killall cu

And cu is killed, with no panic.

Cheers
Vit

2006/1/26, John Baldwin <jhb at freebsd.org>:
>
> On Thursday 26 January 2006 05:54, Vitaliy Skakun wrote:
> > Hi everybody!
> >
> > One problem arised:
> >
> > when doing in the shell
> > echo "~WS" > /dev/cuaR00
> >
> > for several times as quick as I can, I get panic with the following
> > message: panic: device_unbusy: called for non-busy device rp0
> >
> > same thing when trying to send data to /dev/cuaR00 via JDK File streams
> ...
> >
> > :(((
> >
> > (Some kind of barcode printers are attached to this multiport card)
> >
> > Any help will be kindly accepted.
> >
> > Cheers
> > Vit
>
> Try the attached patch.  tty's don't use D_TRACKCLOSE but rp(4) was
> expecting
> that rpclose() was called on every close, not just the last close.
>
> --
> John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
> "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
>
>
>


More information about the freebsd-hackers mailing list