[Linux-parport] using backpack with paride and starting k3b causes 100% CPU until reboot

Jason Winzenried myPublicListAddress at bresnan.net
Thu Apr 20 21:54:31 EDT 2006


I can load up the backpack drivers for my parallel port cd drive.  Can mount 
and read from a CD just fine.

The problem is when I run k3b.  If there is a disk in the drive, k3b never 
starts (goes into disk sleep), and events/0 chews up 100% CPU until I reboot.  
If no disk is in the drive, k3b starts but as soon as I do 
settings->configure k3b->devices->refresh it goes into disk sleep and 
events/0 does its CPU thing.

Obvious answer is not to do that.  I don't need that drive for burning (would 
rather use the built in DVD/CD burner than the max 2 speed the burnfree-less 
backpack drive offers).  

Nonetheless, it is not ideal to either reboot or watch my CPU burn if I ever 
forget to remove any disk from the backpack before starting k3b.  What could 
be going on?  Is there perhaps a convenient way to have k3b ignore the 
backpack drive?

Not loading pg makes no difference.  Only skipping or unloading pcd can 
prevent it.  Of course then I can't use the drive for reading.

I'm using debian testing.  Same results with Ubuntu Dapper (not entirely 
surprising). 

#uname -a
Linux Otome-Kairo 2.6.15-ck4 #1 PREEMPT Mon Feb 20 00:30:22 MST 2006 i686 
GNU/Linux
(same results with ubuntu, using their kernel 2.6.15-20-386)


(just to show what versions of udev etc. are running)
# apt-get -s remove udev dbus k3b
Remv hal [0.5.7-1]
Remv dbus [0.61-5]
Remv udev [0.089-1]
Remv k3b [0.12.12-1]


#top
PID  USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
3    root      22  -5     0    0    0 R 96.3  0.0   3:17.73 events/0
4254 Winzenri   0   0 40056  22m  17m D  0.0  2.2   0:05.10 k3b 
(k3b is in disk sleep)


#lsmod
Module                  Size  Used by
pcd                    17508  1
pg                     10628  0
bpck6                   6788  2
paride                  8128  3 pcd,pg,bpck6
parport_pc             32644  1
parport                32712  2 paride,parport_pc

#cdrdao scanbus
Cdrdao version 1.2.1 - (C) Andreas Mueller <andreas at daneb.de>
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty

Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

Using libscg version 'schily-0.8'

0,0,0 : TEAC    , CD-W54E         , 1.1B
ATA:1,0,0            PIONEER , DVD-ROM DVD-106 , 1.22
ATA:1,1,0            HL-DT-ST, DVDRRW GCA-4164B, E.D0


#cdrecord -scanbus
Cdrecord-Clone 2.01.01a03 (i686-pc-linux-gnu) Copyright (C) 1995-2005 Joerg 
Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
      and thus may have bugs that are not present in the original version.
      Please send bug reports and support requests to 
<cdrtools at packages.debian.org>.
      The original author should not be bothered with problems of this 
version.

cdrecord: Warning: Running on Linux-2.6.15-ck4
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Using libscg version 'debian-0.8debian2'.
cdrecord: Warning: using inofficial version of libscg 
(debian-0.8debian2 '@(#)scsitransp.c      1.91 04/06/17 Copyright 
1988,1995,2000-2004 J. Schilling').
scsibus0:
        0,0,0     0) 'TEAC    ' 'CD-W54E         ' '1.1B' Removable CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *


#ls -l /dev/pcd0
brw-rw---- 1 root cdrom 46, 0 2006-04-20 08:12 ./pcd0

ls -l /dev/pg0
crw-rw---- 1 root cdrom 97, 0 2006-04-20 08:00 ./pg0
pcd0 was in group disk.  pg0 was in group root.  They each revert to that 
after rebooting.  Same results though.


#nano /var/log/syslog
Apr 20 08:01:04 Otome-Kairo kernel: parport_pc: VIA 686A/8231 detected
Apr 20 08:01:04 Otome-Kairo kernel: parport_pc: probing current configuration
Apr 20 08:01:04 Otome-Kairo kernel: parport_pc: Current parallel port base: 
0x378
Apr 20 08:01:04 Otome-Kairo kernel: parport0: PC-style at 0x378 (0x778), irq 
7, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]

Apr 20 08:01:04 Otome-Kairo kernel: parport_pc: VIA parallel port: io=0x378, 
irq=7

Apr 20 08:01:04 Otome-Kairo kernel: bpck6: BACKPACK Protocol Driver V2.0.2
Apr 20 08:01:04 Otome-Kairo kernel: bpck6: Copyright 2001 by Micro Solutions, 
Inc., DeKalb IL. USA
Apr 20 08:01:04 Otome-Kairo kernel: paride: bpck6 registered as protocol 0
Apr 20 08:01:04 Otome-Kairo kernel: pcd: pcd version 1.07, major 46, nice 0
Apr 20 08:01:04 Otome-Kairo kernel: pcd0: Sharing parport0 at 0x378
Apr 20 08:01:04 Otome-Kairo kernel: pcd0: BACKPACK Protocol Driver V2.0.2
Apr 20 08:01:04 Otome-Kairo kernel: pcd0: Copyright 2001 by Micro Solutions, 
Inc., DeKalb IL.
Apr 20 08:01:04 Otome-Kairo kernel: pcd0: BACKPACK 2.0.2, Micro Solutions 
BACKPACK Drive at 0x378
Apr 20 08:01:04 Otome-Kairo kernel: pcd0: Unit: 31 Mode:1 (8-bit) Delay 0
Apr 20 08:01:04 Otome-Kairo kernel: pcd0: Master: CD-W54E
Apr 20 08:01:04 Otome-Kairo kernel: pcd0: mode sense capabilities completion: 
alt=0x51 stat=0x51 err=0x64 loop=0 phase=3
Apr 20 08:01:04 Otome-Kairo kernel: pcd0: mode sense capabilities: Sense key: 
6, ASC: 29, ASQ: 0
Apr 20 08:01:04 Otome-Kairo kernel: cdrom: open failed.
Apr 20 08:01:04 Otome-Kairo kernel: pg: pg version 1.02, major 97
Apr 20 08:01:04 Otome-Kairo kernel: pga: Sharing parport0 at 0x378
Apr 20 08:01:04 Otome-Kairo kernel: pga: BACKPACK Protocol Driver V2.0.2
Apr 20 08:01:04 Otome-Kairo kernel: pga: Copyright 2001 by Micro Solutions, 
Inc., DeKalb IL.
Apr 20 08:01:04 Otome-Kairo kernel: pga: BACKPACK 2.0.2, Micro Solutions 
BACKPACK Drive at 0x378
Apr 20 08:01:04 Otome-Kairo kernel: pga: Unit: 31 Mode:1 (8-bit) Delay 0
Apr 20 08:01:04 Otome-Kairo kernel: pga: TEAC CD-W54E, master

Apr 20 08:12:24 Otome-Kairo k3b: resmgr: communication failure: No such file 
or directory



More information about the Linux-parport mailing list