Re: OpenBSD (current as of 20111018) fails to boot on dell poweredge R710

2011-10-19 Thread Laurent CARON

On 19/10/2011 11:45, Mike Belopuhov wrote:

So i've finally have taken a look at this and i've found out
that Reply Post Queue depth is calculated incorrectly.
Laurent, can you please try this patch with -current:

Index: mpii.c
===
RCS file: /home/cvs/src/sys/dev/pci/mpii.c,v
retrieving revision 1.49
diff -u -p -u -p -r1.49 dev/pci/mpii.c
--- dev/pci/mpii.c  12 Sep 2011 12:33:26 -  1.49
+++ dev/pci/mpii.c  19 Oct 2011 09:49:52 -
@@ -2926,9 +2926,8 @@ mpii_iocfacts(struct mpii_softc *sc)
/* must be multiple of 16 */
sc-sc_reply_free_qdepth = sc-sc_num_reply_frames +
(16 - (sc-sc_num_reply_frames % 16));
-
-   sc-sc_reply_post_qdepth = sc-sc_request_depth +
-   sc-sc_num_reply_frames + 1;
+   sc-sc_reply_post_qdepth = ((sc-sc_request_depth +
+   sc-sc_num_reply_frames + 1 + 15) / 16) * 16;

if (sc-sc_reply_post_qdepth
ifp.max_reply_descriptor_post_queue_depth)



Hi,

Works fine.

Thanks for your help.

Laurent



Re: OpenBSD (current as of 20111018) fails to boot on dell poweredge R710

2011-10-18 Thread Laurent CARON
On Tue, Oct 18, 2011 at 02:20:48PM +0200, Laurent CARON wrote:
 Hi,
 
 Just updated to current.
 
 The system fails to boot with: 
 
 mpii_scsi_cmd_tmo
 
 System is fine using kernel from Aug 8th 2011
 
 Regards,
 
 Laurent




The dmesg of working kernel is:

OpenBSD 5.0 (GENERIC.MP) #57: Mon Aug  8 14:58:00 MDT 2011
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4280782848 (4082MB)
avail mem = 4152713216 (3960MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xcf49c000 (84 entries)
bios0: vendor Dell Inc. version 3.0.0 date 01/31/2011
bios0: Dell Inc. PowerEdge R710
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC SPCR HPET DMAR MCFG WD__ SLIC ERST HEST BERT EINJ 
SRAT TCPA SSDT
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 32 (boot processor)
cpu0: Intel(R) Xeon(R) CPU L5630 @ 2.13GHz, 2128.30 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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 34 (application processor)
cpu1: Intel(R) Xeon(R) CPU L5630 @ 2.13GHz, 2128.00 MHz
cpu1: 
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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 50 (application processor)
cpu2: Intel(R) Xeon(R) CPU L5630 @ 2.13GHz, 2128.00 MHz
cpu2: 
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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 52 (application processor)
cpu3: Intel(R) Xeon(R) CPU L5630 @ 2.13GHz, 2128.00 MHz
cpu3: 
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,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG
cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0: apid 1 pa 0xfec8, version 20, 24 pins
ioapic1: misconfigured as apic 0, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEX1)
acpiprt2 at acpi0: bus 2 (PEX3)
acpiprt3 at acpi0: bus 3 (PEX4)
acpiprt4 at acpi0: bus 4 (PEX5)
acpiprt5 at acpi0: bus 5 (PEX6)
acpiprt6 at acpi0: bus 9 (PEX7)
acpiprt7 at acpi0: bus 10 (PEX9)
acpiprt8 at acpi0: bus -1 (PEXA)
acpiprt9 at acpi0: bus -1 (SBEX)
acpiprt10 at acpi0: bus 11 (COMP)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2128 MHz: speeds: 2129, 2128, 1995, 1862, 1729, 1596 
MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel 5520 Host rev 0x13
ppb0 at pci0 dev 1 function 0 Intel X58 PCIE rev 0x13
pci1 at ppb0 bus 1
bnx0 at pci1 dev 0 function 0 Broadcom BCM5709 rev 0x20: apic 1 int 4
bnx1 at pci1 dev 0 function 1 Broadcom BCM5709 rev 0x20: apic 1 int 16
ppb1 at pci0 dev 3 function 0 Intel X58 PCIE rev 0x13
pci2 at ppb1 bus 2
bnx2 at pci2 dev 0 function 0 Broadcom BCM5709 rev 0x20: apic 1 int 0
bnx3 at pci2 dev 0 function 1 Broadcom BCM5709 rev 0x20: apic 1 int 10
ppb2 at pci0 dev 4 function 0 Intel X58 PCIE rev 0x13
pci3 at ppb2 bus 3
mpii0 at pci3 dev 0 function 0 Symbios Logic SAS2008 rev 0x03: msi
scsibus0 at mpii0: 42 targets
sd0 at scsibus0 targ 1 lun 0: Dell, Virtual Disk, 1028 SCSI4 0/direct fixed 
naa.600508e0da5d95df161ba600
sd0: 476416MB, 512 bytes/sector, 975699968 sectors
ses0 at scsibus0 targ 10 lun 0: DP, BACKPLANE, 1.07 SCSI3 13/enclosure 
services fixed t10.DP_BACKPLANE00
ppb3 at pci0 dev 5 function 0 Intel X58 PCIE rev 0x13: msi
pci4 at ppb3 bus 4
ppb4 at pci0 dev 6 function 0 Intel X58 PCIE rev 0x13: msi
pci5 at ppb4 bus 5
ppb5 at pci5 dev 0 function 0 IDT 89HPES12N3A rev 0x0e
pci6 at ppb5 bus 6
ppb6 at pci6 dev 2 function 0 IDT 89HPES12N3A rev 0x0e
pci7 at ppb6 bus 7
em0 at pci7 dev 0 function 0 Intel PRO/1000 QP (82576) rev 0x01: msi, address 
00:1b:21:b5:2d:d8
em1 at pci7 dev 0 function 1 Intel PRO/1000 QP (82576) rev 0x01: msi, address 
00:1b:21:b5:2d:d9
ppb7 at pci6 dev 4 function 0 IDT 89HPES12N3A rev 0x0e
pci8 at ppb7 bus 8
em2 at pci8 dev 0 function 0 Intel PRO/1000 QP (82576) rev 0x01: msi, address 
00:1b:21:b5:2d:dc
em3 at pci8 dev 0 function 1 Intel PRO/1000 QP (82576) rev 0x01: msi, address 
00:1b:21:b5:2d:dd
ppb8 at pci0 dev 7 function 0 Intel X58