I have posted on this issue before, but I had little response so I have 
started a new post with all the information I have gathered in the hope 
that I can get the attention of someone who can help me.
I apologize to anyone this inconveniences.

I am attempting to create a cd-bootable email firewall using openbsd. 
The hardware I am using is IBM xSeries 336, which uses the INTEL 
82801EB/ER IDE interface.

I have tried the following with OpenBSD 3.7, 3.8, and current.

OpenBSD can boot from cd and install from ftp successfully. However, I 
cannot access the CDROM drive during the install process or from the 
installed os.
If I attempt to do this via disklabel or mount, I get the following error:

cd0(pciide0:0:0): timeout
   type: atapi
   type: atapi
   c_bcount: 32
   c_bcount: 32
   c_skip: 0
   c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, 
status=0x58<DRDY,DSC,DRQ>, ireason=0x2

This error repeats several times before the kernel gives up and I am 
returned to the shell.

I have found a PR with the same symptoms: PR4570. Interestingly, this 
was with an nVidia nforce chipset. I am not sure if this is the same 
problem, I have added a note to the PR with my own dmesg.

I am sure that the problem is in software, not hardware. I have 
confirmed this problem on another machine, and I have tested this 
machine with NetBSD, Linux, and Windows, all of which can use the cdrom 
without problems.

On the suggestion of others, I have disabled UDMA and DMA, which no change.

I have done the best I can to find out what is cause of this error. I 
can program in c, but I am not familiar with the OpenBSD kernel, or 
kernels in general.
As far as I can determine, the error occurs when the kernel tries to 
read from the device, seeking completes successfully, the kernel 
requests the data, and then nothing happens, causing the kernel to jump 
to the timeout routine.

I would greatly appreciate help with this. It is an important project 
for our company, and if it would help solve the problem we may be able 
to offer a bounty to get this hardware working.
There is a someone at IBM who is willing to provide documentation to 
help solve this problem.

Please let me know if there is any information that I haven't provided 
that would be useful.

Thanks,

Stephen Nelson

[dmesg attached]
OpenBSD 3.7-stable (GENERIC.MP) #0: Tue Nov  1 10:00:27 NZDT 2005
    [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1073123328 (1047972K)
avail mem = 909103104 (887796K)
using 22937 buffers containing 107520000 bytes (105000K) of memory
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (IBM ENSW X336 SMP    )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(TM) CPU 3.00GHz, 3000.58 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,LONG
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 200007032Hz
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type PCI   
mpbios: bus 2 is type PCI   
mpbios: bus 3 is type PCI   
mpbios: bus 4 is type PCI   
mpbios: bus 5 is type PCI   
mpbios: bus 6 is type PCI   
mpbios: bus 7 is type PCI   
mpbios: bus 8 is type ISA   
ioapic0 at mainbus0 apid 14: pa 0xffff800001cc7f24, version 20, 24 pins
ioapic1 at mainbus0 apid 13: pa 0xffff800001cc7e24, version 20, 24 pins
ioapic2 at mainbus0 apid 12: pa 0xffff800001cc7d24, version 20, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "Intel E7710 SMCH" rev 0x0c
"Intel E7710 MCH ERR" rev 0x0c at pci0 dev 0 function 1 not configured
ppb0 at pci0 dev 2 function 0 "Intel E7710 MCH PCIE" rev 0x0c
pci1 at ppb0 bus 2
ppb1 at pci0 dev 4 function 0 "Intel E7710 MCH PCIE" rev 0x0c
pci2 at ppb1 bus 3
ppb2 at pci2 dev 0 function 0 "Intel PCIE-PCIE" rev 0x09
pci3 at ppb2 bus 4
mpt0 at pci3 dev 1 function 0 "Symbios Logic 53c1030" rev 0x08: apic 13 int 4 
(irq 11)
mpt0: sending FW Upload request to IOC (size: 36, img size: 69956)
mpt0: IM support: 4
scsibus0 at mpt0: 16 targets
sd0 at scsibus0 targ 0 lun 0: <LSILOGIC, 1030 IM, 1000> SCSI2 0/direct fixed
sd0: 70006MB, 70006 cyl, 16 head, 128 sec, 512 bytes/sec, 143372288 sec total
mpt0: target 0 Asynchronous at 0MHz width 8bit offset 0 QAS 0 DT 0 IU 0
ppb3 at pci2 dev 0 function 2 "Intel PCIE-PCIE" rev 0x09
pci4 at ppb3 bus 5
ppb4 at pci0 dev 6 function 0 "Intel E7710 MCH PCIE" rev 0x0c
pci5 at ppb4 bus 6
bge0 at pci5 dev 0 function 0 "Broadcom BCM5721" rev 0x11, unknown BCM5750 
(0x4101): apic 14 int 16 (irq 11) address 00:14:5e:30:3e:fc
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb5 at pci0 dev 7 function 0 "Intel E7710 MCH PCIE" rev 0x0c
pci6 at ppb5 bus 7
bge1 at pci6 dev 0 function 0 "Broadcom BCM5721" rev 0x11, unknown BCM5750 
(0x4101): apic 14 int 16 (irq 11) address 00:14:5e:30:3e:fd
brgphy1 at bge1 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
vendor "Intel", unknown product 0x359b (class system subclass miscellaneous, 
rev 0x0c) at pci0 dev 8 function 0 not configured
uhci0 at pci0 dev 29 function 0 "Intel 82801EB/ER USB" rev 0x02: apic 14 int 16 
(irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801EB/ER USB" rev 0x02: apic 14 int 19 
(irq 3)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801EB/ER USB" rev 0x02: apic 14 int 23 
(irq 5)
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: single transaction translator
uhub2: 4 ports with 4 removable, self powered
ppb6 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xc2
pci7 at ppb6 bus 1
vga1 at pci7 dev 1 function 0 "ATI Radeon VE QY" rev 0x00
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82801EB/ER LPC" rev 0x02 at pci0 dev 31 function 0 not configured
pciide0 at pci0 dev 31 function 2 "Intel 82801EB SATA" rev 0x02: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8083N, 0L02> SCSI0 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
"Intel 82801EB/ER SMBus" rev 0x02 at pci0 dev 31 function 3 not configured
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
dkcsum: sd0 matched BIOS disk 80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
arp: attempt to overwrite entry for 0.0.0.0 on lo0 by 00:14:5e:30:56:04 on bge0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 0
        c_skip: 0
cd0(pciide0:0:0): timeout
        type: atapi
        c_bcount: 32
        c_skip: 0
pciide0:0:0: device timeout, c_bcount=32, c_skip=0, status=0x58<DRDY,DSC,DRQ>, 
ireason=0x2

Reply via email to