On Oct 22, 2008, at 4:49 PM, Alexey Suslikov wrote:

On Wed, Oct 22, 2008 at 9:15 AM, Stephane Lapie <[EMAIL PROTECTED] is.co.jp> wrote:
On Oct 21, 2008, at 8:01 PM, Alexey Suslikov wrote:

Stephane Lapie wrote:

Hello,
I am currently working with a Portwell NAR-5530 (network appliance
running off Intel hardware, can use regular HDs or CF cards as boot
device).
We want to use this at work for network appliances, but end up
bumping in the following problem : the kernel detects any device
plugged to the controller (SATA or CF) as UltraDMA-5, even though the
BIOS specifies otherwise clearly.

You definitely should try to install recent snapshot on a CF
card and boot GENERIC.MP with APM disabled since that
box may mis-behave on interrupts without APCI.
Issue "bsd.mp -c" in UKC than "disable apm" and "exit".

Since the Intel controller got two modes (Enhanced, which successfully
activates, but provokes issues with wd0 being recognized as UDMA5 ;
Compatible, which can't allocate properly an IRQ, probably due to an ACPI
issue), I tried booting with both modes :
Here is the dmesg trace for a bsd.mp kernel (I'll build a full fledged MP
based ramdisk once I confirm this works) in Enhanced mode :

You need to sendbug about this (including your researches)
if you want this to be fixed in tree.

FYI, I filed the bug under kernel/5961.

On another note, simply detecting proper mode for the disk doesn't fix all of the issues ; it still seems there is a problem with the pciide driver, as I have confirmed the following error :

wd0(pciide0:0:0): timeout
        type: ata
        c_bcount: 16384
        c_skip: 0
pciide0:0:0: bus-master DMA error: status=0x22
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22
wd0a: device timeout reading fsbn 1244032 of 1244032-1244063 (wd0 bn 1244095; cn 308 tn 35 sn 34), retrying
wd0(pciide0:0:0): timeout
        type: ata
        c_bcount: 16384
        c_skip: 0
pciide0:0:0: bus-master DMA error: status=0x22
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x22
wd0: transfer error, downgrading to PIO mode 4
wd0(pciide0:0:0): using PIO mode 4
wd0a: device timeout reading fsbn 1244032 of 1244032-1244063 (wd0 bn 1244095; cn 308 tn 35 sn 34), retrying
wd0: soft error (corrected)

Here is the preceding dmesg trace (kernel has apm disabled) :

OpenBSD 4.3 (RAMDISK_CD.MP) #1: Wed Oct 22 16:05:57 JST 2008
[EMAIL PROTECTED]:/var/work/src-portwell/sys/ arch/i386/compile/RAMDISK_CD.MP cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz ("GenuineIntel" 686- class) 2.40 GHz cpu0: FPU,V86,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,SSE3,MWAIT,DS- CPL,VMX,EST,TM2,CX16,xTPR
real mem  = 2138324992 (2039MB)
avail mem = 2061094912 (1965MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/15/07, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.4 @ 0xfbc30 (27 entries)
bios0: vendor American Megatrends Inc. version "080014" date 03/15/2007
acpi0 at bios0: rev 2, can't enable ACPI
bios0: ROM list: 0xc0000/0xb000! 0xcb000/0x1000
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz ("GenuineIntel" 686- class) 2.40 GHz cpu1: FPU,V86,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,SSE3,MWAIT,DS- CPL,VMX,EST,TM2,CX16,xTPR
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz ("GenuineIntel" 686- class) 2.40 GHz cpu2: FPU,V86,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,SSE3,MWAIT,DS- CPL,VMX,EST,TM2,CX16,xTPR
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz ("GenuineIntel" 686- class) 2.40 GHz cpu3: FPU,V86,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,SSE3,MWAIT,DS- CPL,VMX,EST,TM2,CX16,xTPR
mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type PCI
mainbus0: bus 3 is type PCI
mainbus0: bus 4 is type PCI
mainbus0: bus 5 is type PCI
mainbus0: bus 6 is type PCI
mainbus0: bus 7 is type PCI
mainbus0: bus 8 is type ISA
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82Q965 Host" rev 0x02
agp at pchb0 not configured
vga1 at pci0 dev 2 function 0 "Intel 82Q965 Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x02: apic 4 int 16 (irq 10)
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: apic 4 int 16 (irq 10), address 00:90:fb:12:b4:6d ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x02: apic 4 int 17 (irq 11)
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: apic 4 int 17 (irq 11), address 00:90:fb:12:b4:6e ppb2 at pci0 dev 28 function 2 "Intel 82801H PCIE" rev 0x02: apic 4 int 18 (irq 5)
pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: apic 4 int 18 (irq 5), address 00:90:fb:12:b4:6f ppb3 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev 0x02: apic 4 int 19 (irq 15)
pci4 at ppb3 bus 4
em3 at pci4 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: apic 4 int 19 (irq 15), address 00:90:fb:12:b4:70 ppb4 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x02: apic 4 int 16 (irq 10)
pci5 at ppb4 bus 5
em4 at pci5 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: apic 4 int 16 (irq 10), address 00:90:fb:12:b4:71 ppb5 at pci0 dev 28 function 5 "Intel 82801H PCIE" rev 0x02: apic 4 int 17 (irq 11)
pci6 at ppb5 bus 6
em5 at pci6 dev 0 function 0 "Intel PRO/1000MT (82573L)" rev 0x00: apic 4 int 17 (irq 11), address 00:90:fb:12:b4:72 uhci0 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x02: apic 4 int 23 (irq 14) uhci1 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x02: apic 4 int 19 (irq 15) ehci0 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x02: apic 4 int 23 (irq 14)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb6 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xf2
pci7 at ppb6 bus 7
em6 at pci7 dev 12 function 0 "Intel PRO/1000MT (82541GI)" rev 0x05: apic 4 int 16 (irq 10), address 00:90:fb:12:b4:73 em7 at pci7 dev 13 function 0 "Intel PRO/1000MT (82541GI)" rev 0x05: apic 4 int 17 (irq 11), address 00:90:fb:12:b4:74 em8 at pci7 dev 14 function 0 "Intel PRO/1000MT (82541GI)" rev 0x05: apic 4 int 18 (irq 5), address 00:90:fb:12:b4:75 ichpcib0 at pci0 dev 31 function 0 "Intel 82801H LPC" rev 0x02: PM disabled pciide0 at pci0 dev 31 function 2 "Intel 82801H SATA" rev 0x02: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 4 int 19 (irq 15) for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFH2-002G>
wd0: 4-sector PIO, LBA, 1953MB, 4001760 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
"Intel 82801H SMBus" rev 0x02 at pci0 dev 31 function 3 not configured
pciide1 at pci0 dev 31 function 5 "Intel 82801H SATA" rev 0x02: DMA, channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using apic 4 int 19 (irq 15) for native-PCI interrupt
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
rd0: fixed, 3800 blocks
uhub3 at uhub1 port 2 "Mitsumi Electric Hub in Apple Extended USB Keyboard" rev 1.10/4.10 addr 2 uhidev0 at uhub3 port 3 configuration 1 interface 0 "Mitsumi Electric Apple Extended USB Keyboard" rev 1.10/4.10 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub3 port 3 configuration 1 interface 1 "Mitsumi Electric Apple Extended USB Keyboard" rev 1.10/4.10 addr 3
uhidev1: iclass 3/0, 3 report ids
uhid at uhidev1 reportid 2 not configured
uhid at uhidev1 reportid 3 not configured
uhidev2 at uhub3 port 2 configuration 1 interface 0 "Mitsumi Electric Apple Optical USB Mouse" rev 1.10/1.08 addr 4
uhidev2: iclass 3/1
uhid at uhidev2 not configured
PXE boot MAC address 00:90:fb:12:b4:6d, interface em0
root on rd0a swap on rd0b dump on rd0b
--
Stephane LAPIE
Email: [EMAIL PROTECTED]
Phone: +81 (0)42 319 5164

Reply via email to