USB problems and 2.4.0 hangs

2000-09-02 Thread John Coppens


Hi all.

I'd installed the backport of the USB patch (to 2.2.16) and had the 
following problem:

After a few inches of printing a graphics page (ghostscript output), the
whole printing job would just hang. Only exit was switching the printer
on/off and removing the print job. The printer is an HP810C and (I suspect)
the problem is at the VIA chipset (VT82C586).

After a few frustrating tries, I moved to kernel 2.4.0-test7, suspecting
that maybe there was a problem with the backport. Results:

Exactly the same print problem: hangs after 5 - 10 cm of printing a
graphics page (text mode works ok).
But, after installing 2.4.0, yesterday, I had two misterious hangs of the
operating system - apparently nothing to do with the tasks that were
running - they were completely different.

Just in case: the printer is driven by the apsfilter, which works fine
when using the parallel port.

Thanks on beforehand!

John

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: USB problems and 2.4.0 hangs

2000-10-04 Thread John Coppens

Hi Randy.

Sorry I didn't catch your reply, for some reason my mailclient didn't order
it correctly.

Anyway, I'm no kernel guru. I hope this is what you wanted:

- I started with boot: Linux debug
- The var/log/messages file did not register anything strange, just 
  the correct registering of the printer
- the var/log/syslog says:

Oct  4 11:21:14 on6jc kernel: hub.c: already running port 2 disabled by hub (EMI
Oct  4 11:21:25 on6jc kernel: hub.c: already running port 2 disabled by hub (EMI
Oct  4 11:21:25 on6jc kernel: printer.c: failed reading usblp status

I have the impression that the EMI message is wrong. I get this message each
time I boot (In fact, the first line - at 11:21:14 - was the message at boot.
The second line is when the print daemon awakens)

- var/log/debug says:

Oct  4 11:21:14 on6jc kernel: usb.c: kmalloc IF c3ff9420, numif 1
Oct  4 11:21:14 on6jc kernel: usb.c: new device strings: Mfr=0, Product=2, 
SerialNumber=1
Oct  4 11:21:14 on6jc kernel: usb.c: USB device number 1 default language ID 0x0
Oct  4 11:21:14 on6jc kernel: hub.c: ganged power switching
Oct  4 11:21:14 on6jc kernel: hub.c: standalone hub
Oct  4 11:21:14 on6jc kernel: hub.c: global over-current protection
Oct  4 11:21:14 on6jc kernel: hub.c: power on to power good time: 2ms
Oct  4 11:21:14 on6jc kernel: hub.c: hub controller current requirement: 0mA
Oct  4 11:21:14 on6jc kernel: hub.c: port 1 is removable
Oct  4 11:21:14 on6jc kernel: hub.c: port 2 is removable
Oct  4 11:21:14 on6jc kernel: hub.c: local power source is good
Oct  4 11:21:14 on6jc kernel: hub.c: no over-current condition exists
Oct  4 11:21:14 on6jc kernel: hub.c: enabling power on all ports
Oct  4 11:21:14 on6jc kernel: usb.c: hub driver claimed interface c3ff9420
Oct  4 11:21:14 on6jc kernel: hub.c: port 1 connection change
Oct  4 11:21:14 on6jc kernel: hub.c: portstatus 100, change 3, 12 Mb/s
Oct  4 11:21:14 on6jc kernel: hub.c: port 1 enable change, status 100
Oct  4 11:21:14 on6jc kernel: hub.c: port 2 connection change
Oct  4 11:21:14 on6jc kernel: hub.c: portstatus 101, change 3, 12 Mb/s
Oct  4 11:21:14 on6jc kernel: hub.c: portstatus 103, change 0, 12 Mb/s
Oct  4 11:21:14 on6jc kernel: usb.c: kmalloc IF c3ee1980, numif 1
Oct  4 11:21:14 on6jc kernel: usb.c: new device strings: Mfr=1, Product=2, 
SerialNumber=3
Oct  4 11:21:14 on6jc kernel: usb.c: USB device number 2 default language ID 0x409
Oct  4 11:21:14 on6jc kernel: printer.c: usblp_control_msg: rq: 0x00 dir: 1 recip: 1 
value: 0 len: 0x3ff result: 161
Oct  4 11:21:14 on6jc kernel: printer.c: usblp0 Device ID string 
[161]=MFG:HEWLETT-PACKARD;MDL:DESKJET 
810C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard DeskJet 
810C;SERN:BR98R1S0B5FY;VSTATUS:$HB0$FC0,ff,DN,IDLE,CUT; 
Oct  4 11:21:14 on6jc kernel: printer.c: usblp_control_msg: rq: 0x01 dir: 1 recip: 1 
value: 0 len: 0x1 result: 1
Oct  4 11:21:14 on6jc kernel: usb.c: usblp driver claimed interface c3ee1980
Oct  4 11:21:14 on6jc kernel: hub.c: port 2 enable change, status 101
Oct  4 11:21:14 on6jc kernel: hub.c: portstatus 103, change 0, 12 Mb/s
Oct  4 11:21:14 on6jc kernel: hub.c: portstatus 103, change 0, 12 Mb/s
Oct  4 11:21:14 on6jc kernel: usb.c: kmalloc IF c3ee1940, numif 1
Oct  4 11:21:14 on6jc kernel: usb.c: new device strings: Mfr=1, Product=2, 
SerialNumber=3
Oct  4 11:21:14 on6jc kernel: usb.c: USB device number 2 default language ID 0x409
Oct  4 11:21:14 on6jc kernel: printer.c: usblp_control_msg: rq: 0x00 dir: 1 recip: 1 
value: 0 len: 0x3ff result: 161
Oct  4 11:21:14 on6jc kernel: printer.c: usblp0 Device ID string 
[161]=MFG:HEWLETT-PACKARD;MDL:DESKJET 
810C;CMD:MLC,PCL,PML;CLASS:PRINTER;DESCRIPTION:Hewlett-Packard DeskJet 
810C;SERN:BR98R1S0B5FY;VSTATUS:$HB0$FC0,ff,DN,IDLE,CUT; 
Oct  4 11:21:14 on6jc kernel: printer.c: usblp_control_msg: rq: 0x01 dir: 1 recip: 1 
value: 0 len: 0x1 result: 1
Oct  4 11:21:14 on6jc kernel: usb.c: usblp driver claimed interface c3ee1940
Oct  4 11:21:14 on6jc kernel: VFS: Disk change detected on device sr(11,0)
Oct  4 11:21:14 on6jc kernel: ISO 9660 Extensions: Microsoft Joliet Level 3
Oct  4 11:21:14 on6jc kernel: ISOFS: changing to secondary root
Oct  4 11:21:14 on6jc kernel: VFS: Disk change detected on device sr(11,8)
Oct  4 11:21:14 on6jc kernel: ISO 9660 Extensions: Microsoft Joliet Level 3
Oct  4 11:21:14 on6jc kernel: ISOFS: changing to secondary root
Oct  4 11:21:14 on6jc kernel: VFS: Disk change detected on device fd(2,0)
Oct  4 11:21:14 on6jc kernel: printer.c: usblp_control_msg: rq: 0x01 dir: 1 recip: 1 
value: 0 len: 0x1 result: 1
Oct  4 11:21:25 on6jc kernel: hub.c: port 2 enable change, status 101
Oct  4 11:21:25 on6jc kernel: printer.c: usblp_control_msg: rq: 0x01 dir: 1 recip: 1 
value: 0 len: 0x1 result: -84
Oct  4 11:21:25 on6jc kernel: hub.c: portstatus 101, change 0, 12 Mb/s
Oct  4 11:21:26 on6jc kernel: hub.c: portstatus 103, change 0, 12 Mb/s
Oct  4 11:21:26 on6jc kernel: usb.c: kmalloc IF c29aba80, numif 1
Oct  4 11:21:26 on6jc kernel: usb.c: new device str

Segfaults using xawtv

2000-10-10 Thread John Coppens

Hi...

I _hate_ to do this, but I couldn't find (except for a reference to 
"others who have segfaults using glibc") no reference to this problem. 
Insmod of i2c, videodev and bttv succeed without problems or any message 
in /var/log/debug, messages or syslog.

Also, though I'm surely no expert, I tested a bit with gdb & such, and
suspect there may be a problem that's not directly xawtv/bttv related.

Any suggestions?

John

---insmod

insmod i2c
insmod videodev
(insmod tuner type=4)
insmod bttv card=30

---dmesg:

i2c: initialized
Linux video capture interface: v1.00
bttv0: Brooktree Bt878 (rev 2) bus: 0, devfn: 80, irq: 5, memory: 0xe700.
PCI: Enabling bus mastering for device 00:50
bttv: 1 Bt8xx card(s) found.
bttv0: NO fader chip: TEA6300
bttv0: model: BT878

---lsmod:

Module  Size  Used by
tuner   2180   1
bttv   33824   0
videodev2592   2  [bttv]
i2c 3488   2  [tuner bttv]
ppp_deflate40800   0  (autoclean)
ide-cd 23924   1  (autoclean)
cdrom  27324   0  (autoclean) [ide-cd]
bsd_comp3816   0
lp  4728   0  (unused)

---Versions:

xawtv: 3.21
bttv: 0.7.44
kernel: 2.2.16, with USB and I2C patches
TV norm here: PAL/N, which is US channel spacing, Euro-50Hz PAL image.
  but I'm testing with a PAL-B camera.
board: Flyvideo 98
error messages: see below

---Backtrace:

(I recompiled with -ggdb, to get more info. The error messages are the same
 using -g or -ggdb)

Starting program: /usr/local/src/multimedia/xawtv-3.21/src/xawtv
This is xawtv-3.21, running on Linux/i586 (2.2.16)
visual: id=0x22 class=4 (TrueColor), depth=24
x11: 1024x768, 32 bit/pixel, 4096 byte/scanline, DGA
waitpid: No child processes
waitpid: No child processes
Program received signal SIGSEGV, Segmentation fault.
0x4021c27d in memset () from /lib/libc.so.6
(gdb) bt
#0  0x4021c27d in memset () from /lib/libc.so.6
#1  0x806f8e6 in capability ()
#2  0x8055fb7 in grabber_open (device=0x8061cd1 "/dev/video", sw=1024, sh=768,
base=0xe540, format=8, width=4096) at grab.c:111
#3  0x8050c88 in grabber_init () at xt.c:303
#4  0x8050579 in main (argc=1, argv=0xb784) at main.c:2365


--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: Segfaults using xawtv

2000-10-11 Thread John Coppens

On 10 Oct 2000 20:33:59 EST Gnea <[EMAIL PROTECTED]> wrote/El > 
> You may want to, if you have Gnome installed, try out an app called
> Zapping.  I had some weird problems with newer version of xawtv too (my
> bad for not testing it further and sending bug reports to the xawtv
> author(s), i've been pretty busy and i needed a quick fix at the time,
> i'll get off my ass and do something about this soon i hope) but
> zapping works really well and does a better job of syncing frames in a
> larger window, it's at http://zapping.sourceforge.net (this is also a
> good idea so u can see if it's xawtv that has problems, or if the
> problem is kernel-level)
> 
> -- 
>   .oO gnea at rochester dot rr dot com Oo.
>   .oO url: http://garson.org/~gnea Oo.
> 
> "You can tune a filesystem, but you can't tuna fish" -unknown

Hi Gnea... (only name I found in your message)

Thanks for the info! I just downloaded, compiled (no errors) and installed
zapping, but no luck. The moment I enabled the composite input, the system
crashes. It doesn't crash before, I guess, because by default the program
is receiving TV, and no cables is connected - hence no image.

This _does_ help to point to bttv (or the new i2c stack?) instead of xawtv as the 
culprit of the situation. Some time ago I tested a webcam from the university here
and ran successfully an older version of bttv (with xawtv). I'll try to reinstall
those next. But then I've also seen some rumors about differences in the kernels
being the cause, and I'm not quite ready to go back to  2.2.10 or so.

Anyway, thanks again, any suggestions welcome.
John

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Conflict between ide and usb?

2007-03-16 Thread John Coppens
Hi all.

I installed ueagle-atm, which, by itself, is working fine with an 
MT-810 modem.

The problem I have, is that when I copy a file from a DVD to harddisk,
the internet connection almost dies (it slows down terribly, so much so
that established connections actually disconnect, ping looses packets,
DNS lookup fails, etc). After copy ends, all returns to normal.

The machine is an AMD64, still in x86 mode though. CPU activity is very
low during the copy, so it's not a CPU problem. Kernel is 2.6.20.2. APIC
is enabled. No error message found in either /var/log/messages or syslog.
DVD and HD are on different IDE interfaces.

Can anyone suggest where to start looking for a solution?

Cheers,
John

$ cat interrupts
   CPU0   CPU1   
  0:   584283506031800XT-PIC-XTtimer
  1: 204337  9   IO-APIC-edge  i8042
  6:  0  3   IO-APIC-edge  floppy
  7:6031308   58426101   IO-APIC-edge  parport0
  9:  0  0   IO-APIC-fasteoi   acpi
 12: 2110415153326   IO-APIC-edge  i8042
 14:  93535 316012   IO-APIC-edge  ide0
 15: 246534 40   IO-APIC-edge  ide1
 16:   25911737056   IO-APIC-fasteoi   libata, HDA Intel
 17: 41  1   IO-APIC-fasteoi   libata, ehci_hcd:usb2
 18:7717494   19142555   IO-APIC-fasteoi   eth0
 19:  0  0   IO-APIC-fasteoi   eth1
 20:   908337923057782   IO-APIC-fasteoi   ohci_hcd:usb1
 21:   22135804  1   IO-APIC-fasteoi   nvidia
 22:  0  0   IO-APIC-fasteoi   saa7130[0]
NMI:  0  0 
LOC:   64460593   64460595 
ERR:  1
MIS:  0

$ lsmod
Module  Size  Used by
pppoe   9792  2 
pppox   3016  1 pppoe
ppp_generic21396  6 pppoe,pppox
slhc5440  1 ppp_generic
br2684  6596  1 
i2c_viapro  7380  0 
w83627ehf  16140  0 
i2c_isa 4096  1 w83627ehf
snd_seq_oss26368  0 
snd_seq_midi_event  5952  1 snd_seq_oss
snd_seq41232  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device  6284  2 snd_seq_oss,snd_seq
snd_pcm_oss34912  0 
snd_mixer_oss  13376  4 snd_pcm_oss
ipt_REJECT  3648  1 
ipt_MASQUERADE  2944  1 
ipt_LOG 5760  1 
xt_limit2560  1 
xt_state2368  3 
iptable_filter  2688  1 
iptable_nat 6020  1 
nf_nat 13740  2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4  11980  5 iptable_nat
nf_conntrack   44168  5
ipt_MASQUERADE,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
ip_tables   9700  2 iptable_filter,iptable_nat
ueagle_atm 21032  0 firmware_class  7360  1 ueagle_atm
usbatm 14464  2 ueagle_atm
atm33716  4 br2684,usbatm
usblp  11136  0 
ide_scsi   13128  0 
tuner  55272  0 
saa7134   105952  0 
snd_hda_intel  15192  3 
snd_hda_codec 149120  1 snd_hda_intel
video_buf  18500  1 saa7134
compat_ioctl32  1536  1 saa7134
ir_kbd_i2c  6928  1 saa7134
ir_common  26372  2 saa7134,ir_kbd_i2c
ehci_hcd   24332  0 
ohci_hcd   16708  0 
videodev   23488  1 saa7134
snd_pcm61124  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer  16836  2 snd_seq,snd_pcm
snd39268  9
snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
snd_page_alloc  7368  2 snd_hda_intel,snd_pcm
sg 19032  0 i2c_nforce2 4800  0 
nvidia   6817908  22 
v4l2_common21312  3 tuner,saa7134,videodev
v4l1_compat12036  2 saa7134,videodev
k8temp  4544  0 
usbcore   101768  6 ueagle_atm,usbatm,usblp,ehci_hcd,ohci_hcd
ne2k_pci8736  0 
83907808  1 ne2k_pci
forcedeth  37192  0 
parport_pc 22628  0 
parport30728  1 parport_pc
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: Conflict between ide and usb?

2007-03-16 Thread John Coppens
On Fri, 16 Mar 2007 15:52:12 -0400
"Lee Revell" <[EMAIL PROTECTED]> wrote:

> On 3/16/07, John Coppens <[EMAIL PROTECTED]> wrote:
> > The problem I have, is that when I copy a file from a DVD to harddisk,
> > the internet connection almost dies (it slows down terribly, so much
> > so that established connections actually disconnect, ping looses
> > packets, DNS lookup fails, etc). After copy ends, all returns to
> > normal.
> 
> Sounds like DMA starvation, it's been seen in the past with some SATA
> controllers.  Presumably vendors do it to improve benchmark scores.

Hi Lee.

In this case SATA isn't used, as the copy is from IDE to IDE. But I
doubt bandwidth has anything to do with it. The DVD transfer rate rarely 
reaches 3.3 MB/s - which by itself isn't normal.

> You can confirm it by forcing the hard drive and/or DVD drive to a
> lower speed if your BIOS allows it.

No... I didn't find any way to lower the speed.

Thanks
John
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: Conflict between ide and usb?

2007-03-16 Thread John Coppens
On Fri, 16 Mar 2007 16:34:15 -0400
[EMAIL PROTECTED] (Lennart Sorensen) wrote:

> Do you even have DMA enabled for the DVD drive?  Without it it will be
> very slow and painful for the CPU.  I also have noticed that many fast
> (16x) DVD writers must have an 80 wire cable or they won't work
> correctly and do nasty things to the system.
> 
> Check /proc/ide/hdX/settings|grep dma and see if it says 1 0 1 or 0 0 1.

I _knew_ I enabled the DMA, but it seems that is switches off when I start
the transfer:

hdc: DMA disabled
hdc: ide_intr: huh? expected NULL handler on exit
hdc: ATAPI reset complete
ISO 9660 Extensions: RRIP_1991A
VFS: busy inodes on changed media.

This is on hdc, which is the DVD. Harddisk has DMA on.

John
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: Conflict between ide and usb?

2007-03-17 Thread John Coppens
On Fri, 16 Mar 2007 16:34:15 -0400
[EMAIL PROTECTED] (Lennart Sorensen) wrote:

> I also have noticed that many fast
> (16x) DVD writers must have an 80 wire cable or they won't work
> correctly and do nasty things to the system.

That was the problem! This is the first machine I bought assembled, 
and I hadn't noticed that the CD/DVD cables were the old 40 wire
cables. I do hope this is the last of the problems.

Thanks guys! Changed the cable, and speed went up from 3.3 to 19MB/s
(probably limited by the older harddrive too)... Thas was spectacular!
Of course, now DMA didn't switch off either.

Cheers,
John
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/