[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#280112: Certain IDE drivers need the help of ide-generic to recognize CD-ROMs



Package: kernel
Version: 2.6.7-1-686
Severety: minor

(This report has been sent because Marco d'Itri told me to do so on 
linux-hotplug-devel list. Feel free to say "not a bug".)

Marco d'Itri wrote the IDE hardware detection script for inclusion into the 
"hotplug" package: http://article.gmane.org/gmane.linux.hotplug.devel/6003

However, I reported that his script won't work on my old SCSI-based server. 
Hardware of my old server:

Full thread:

http://article.gmane.org/gmane.linux.hotplug.devel/6003
  http://article.gmane.org/gmane.linux.hotplug.devel/6013
    http://article.gmane.org/gmane.linux.hotplug.devel/6018
      http://article.gmane.org/gmane.linux.hotplug.devel/6025
    http://article.gmane.org/gmane.linux.hotplug.devel/6031
      http://article.gmane.org/gmane.linux.hotplug.devel/6032

This server has a LSI Logic SCSI adapter (with two hard disks attached) and a 
ServerWorks IDE adapter with one attached CD-ROM drive (that shoud appear 
as /dev/hda). For some strange reason, to use this CD-ROM, I must have both 
serverworks (loaded by hotplug), ide_generic (currently mentioned 
in /etc/modules) and ide_cd (to be loaded by the ide.rc script by Marco 
d'Itri, currently just mentioned in /etc/modules) modules loaded.

With all those modules loaded, I get:

ds:~# ls /proc/ide/*/media
/proc/ide/hda/media
ds:~# cat /proc/ide/hda/media
cdrom

Marco d'Itri said that it's a bug that I have to place ide-generic 
into /etc/modules in order to use the CD-ROM drive, that's why I mailed this 
report. This bug is specific to serverworks IDE module, cannot be reproduced 
on via82cxxx (i.e. there is no need to load ide-generic to use IDE CD-ROMs 
with VIA IDE controllers).

Solution proposed by Marco d'Itri: kernel-image-2.6.x packages should add the 
following line to /etc/modprobe.d/kernel-image-(version):

install serverworks /sbin/modprobe --ignore-install serverworks && 
{ /sbin/modprobe ide-generic; /sbin/modprobe ide-cd; }

(although I would rather omit  /sbin/modprobe ide-cd if Marco includes his 
ide.rc file into the hotplug package)

I am using Debian Sarge and the kernel is 2.6.7-1-686 on that server. Output 
of lspci:

0000:00:00.0 Host bridge: ServerWorks CNB20LE Host Bridge (rev 05)
0000:00:00.1 Host bridge: ServerWorks CNB20LE Host Bridge (rev 05)
0000:00:01.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
0000:00:0f.0 ISA bridge: ServerWorks OSB4 South Bridge (rev 4f)
0000:00:0f.1 IDE interface: ServerWorks OSB4 IDE Controller
0000:01:04.0 SCSI storage controller: LSI Logic / Symbios Logic 53c895a (rev 
01)
0000:01:05.0 Ethernet controller: Intel Corp. 82557/8/9 [Ethernet Pro 100] 
(rev08)
0000:01:06.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
0000:01:07.0 System peripheral: Compaq Computer Corporation Advanced System 
Management Controller

Output of lspci -n:

0000:00:00.0 0600: 1166:0009 (rev 05)
0000:00:00.1 0600: 1166:0009 (rev 05)
0000:00:01.0 0604: 1011:0024 (rev 03)
0000:00:0f.0 0601: 1166:0200 (rev 4f)
0000:00:0f.1 0101: 1166:0211
0000:01:04.0 0100: 1000:0012 (rev 01)
0000:01:05.0 0200: 8086:1229 (rev 08)
0000:01:06.0 0300: 1002:4752 (rev 27)
0000:01:07.0 0880: 0e11:a0f0

Contents of /proc/interrupts:

           CPU0
  0:  869534291    IO-APIC-edge  timer
  1:        177    IO-APIC-edge  i8042
  2:          0          XT-PIC  cascade
  7:      11706    IO-APIC-edge  parport0
  8:          4    IO-APIC-edge  rtc
 12:         68    IO-APIC-edge  i8042
 14:      10883    IO-APIC-edge  ide0
 22:     732129   IO-APIC-level  sym53c8xx
 23:   14525128   IO-APIC-level  eth0
NMI:          0
LOC:  869568715
ERR:          0
MIS:          0

Contents of /proc/ioports:

0000-001f : dma1
0020-0021 : pic1
0040-005f : timer
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
0208-020f : pnp 00:10
02f8-02ff : serial
0378-037a : parport0
037b-037f : parport0
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial
04d0-04d1 : pnp 00:10
0778-077a : parport0
0c00-0c01 : pnp 00:10
0cf8-0cff : PCI conf1
1000-1fff : PCI Bus #01
  1000-10ff : 0000:01:04.0
    1000-10ff : sym53c8xx
  1400-14ff : 0000:01:06.0
  1800-18ff : 0000:01:07.0
  1c00-1c3f : 0000:01:05.0
    1c00-1c3f : eepro100
2000-200f : 0000:00:0f.1
  2008-200f : ide1
f800-f81f : pnp 00:11
f820-f83f : pnp 00:11
f840-f85f : pnp 00:11
f860-f87f : pnp 00:11
fa00-fa1f : pnp 00:11
fa20-fa3f : pnp 00:11
fc00-fc0f : pnp 00:11
fe00-fe1f : pnp 00:11

-- 
Alexander E. Patrakov



Reply to: