isp(4) broken in RELENG_9
Joerg Pulz
Joerg.Pulz at frm2.tum.de
Thu Nov 1 10:09:12 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 31 Oct 2012, Matthew Jacob wrote:
> On 10/31/2012 8:25 AM, Joerg Pulz wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>> Hi,
>>
>> somewhere on the road between RELENG_9_1 and RELENG_9 changes to isp(4)
>> make the driver unable to attach to the device.
>>
>> Here is the boot output of the failing RELENG_9:
>>
>> isp0: <Qlogic ISP 2532 PCI FC-AL Adapter> port 0x3000-0x30ff mem
>> 0xf7140000-0xf7143fff,0xf7200000-0xf72fffff irq 16 at device 0.0 on pci3
>> isp0: error 22 loading dma map for control areas
>> isp0: Cannot setup DMA
>> device_attach: isp0 attach returned 6
>> isp0: <Qlogic ISP 2532 PCI FC-AL Adapter> port 0x3400-0x34ff mem
>> 0xf7144000-0xf7147fff,0xf7300000-0xf73fffff irq 17 at device 0.1 on pci3
>> isp0: error 22 loading dma map for control areas
>> isp0: Cannot setup DMA
>> device_attach: isp0 attach returned 6
> Can we get a bit more info about the system you are running on? The only way
> this seems that it can happen is if more than one segment is created for the
> DMA maps of the queues, which, err, umm, would be wrong. The code is actually
> incorrect in an assumption it's making. It might have worked in previous
> releases, but the underlying mapping stuff may have changed and uncovered an
> issue.
Hi,
sorry for not providing more informations earlier.
The controller is a QLogic QLE2562 dual 8Gb FC.
Out of my mind controller BIOS is 3.00 and firmware is 5.04.01 or 5.04.02.
Below is the complete dmesg of booting a working RELENG_9_1.
RELENG_9 is not working with the above mentioned error where it makes no
difference if i use any of the available hints or use the controllers
firmware or the one of ispfw(4).
The isp(4) driver is compiled into the kernel for both RELENG_9_1 and
RELENG_9.
I already tried to roll back "MFC of 239502: Remove dependence on
MAXPHYS." with no difference.
Let me know if there is anything else i could try to track this down.
Kind regards
Joerg
### dmesg-RELENG_9_1
Copyright (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.1-RC3 #0: Mon Oct 29 22:25:58 CET 2012
admin at perseus.admin.frm2:/usr/obj/usr/src/sys/FILER amd64
CPU: Intel(R) Xeon(R) CPU E5420 @ 2.50GHz (2493.80-MHz K8-class CPU)
Origin = "GenuineIntel" Id = 0x1067a Family = 6 Model = 17 Stepping = 10
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0xc0ce3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,XSAVE,OSXSAVE>
AMD Features=0x20100800<SYSCALL,NX,LM>
AMD Features2=0x1<LAHF>
TSC: P-state invariant, performance statistics
real memory = 8589934592 (8192 MB)
avail memory = 8232357888 (7850 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <PTLTD APIC >
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 2 package(s) x 4 core(s)
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
cpu2 (AP): APIC ID: 2
cpu3 (AP): APIC ID: 3
cpu4 (AP): APIC ID: 4
cpu5 (AP): APIC ID: 5
cpu6 (AP): APIC ID: 6
cpu7 (AP): APIC ID: 7
ioapic0 <Version 2.0> irqs 0-23 on motherboard
ioapic1 <Version 2.0> irqs 24-47 on motherboard
kbd1 at kbdmux0
ctl: CAM Target Layer loaded
acpi0: <PTLTD XSDT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
cpu4: <ACPI CPU> on acpi0
cpu5: <ACPI CPU> on acpi0
cpu6: <ACPI CPU> on acpi0
cpu7: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 450
Event timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" frequency 14318180 Hz quality 440
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf008-0xf00b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 0.0 on pci1
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 16 at device 0.0 on pci2
pci3: <ACPI PCI bus> on pcib3
isp0: <Qlogic ISP 2532 PCI FC-AL Adapter> port 0x3000-0x30ff mem 0xf7140000-0xf7143fff,0xf7200000-0xf72fffff irq 16 at device 0.0 on pci3
isp1: <Qlogic ISP 2532 PCI FC-AL Adapter> port 0x3400-0x34ff mem 0xf7144000-0xf7147fff,0xf7300000-0xf73fffff irq 17 at device 0.1 on pci3
pcib4: <ACPI PCI-PCI bridge> irq 17 at device 1.0 on pci2
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> at device 0.3 on pci1
pci5: <ACPI PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> at device 3.0 on pci0
pci6: <ACPI PCI bus> on pcib6
pcib7: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci11: <ACPI PCI bus> on pcib7
em0: <Intel(R) PRO/1000 Network Connection 7.3.2> port 0x4000-0x401f mem 0xf7440000-0xf745ffff,0xf7420000-0xf743ffff irq 16 at device 0.0 on pci11
em0: Using an MSI interrupt
em0: Ethernet address: 00:15:17:ab:6e:bc
em1: <Intel(R) PRO/1000 Network Connection 7.3.2> port 0x4400-0x441f mem 0xf74a0000-0xf74bffff,0xf7480000-0xf749ffff irq 17 at device 0.1 on pci11
em1: Using an MSI interrupt
em1: Ethernet address: 00:15:17:ab:6e:bd
pcib8: <ACPI PCI-PCI bridge> at device 5.0 on pci0
pci12: <ACPI PCI bus> on pcib8
pcib9: <ACPI PCI-PCI bridge> at device 6.0 on pci0
pci17: <ACPI PCI bus> on pcib9
mpt0: <LSILogic SAS/SATA Adapter> port 0x5000-0x50ff mem 0xf7510000-0xf7513fff,0xf7500000-0xf750ffff irq 16 at device 0.0 on pci17
mpt0: MPI Version=1.5.19.0
pcib10: <ACPI PCI-PCI bridge> at device 7.0 on pci0
pci18: <ACPI PCI bus> on pcib10
pci0: <base peripheral> at device 8.0 (no driver attached)
pcib11: <ACPI PCI-PCI bridge> irq 17 at device 28.0 on pci0
pci23: <ACPI PCI bus> on pcib11
pcib12: <ACPI PCI-PCI bridge> at device 0.0 on pci23
pci24: <ACPI PCI bus> on pcib12
bce0: <Broadcom NetXtreme II BCM5708 1000Base-T (B2)> mem 0xf8000000-0xf9ffffff irq 16 at device 0.0 on pci24
bce0: /usr/src/sys/dev/bce/if_bce.c(1258): Management firmware enabled but not running!
miibus0: <MII bus> on bce0
brgphy0: <BCM5708C 1000BASE-T media interface> PHY 1 on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
bce0: Ethernet address: 00:0a:e4:89:46:24
bce0: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); B/C (3.4.4); Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI|MFW); MFW (NOT RUNNING!)
Coal (RX:6,6,18,18; TX:20,20,80,80)
pcib13: <ACPI PCI-PCI bridge> irq 16 at device 28.1 on pci0
pci25: <ACPI PCI bus> on pcib13
pcib14: <ACPI PCI-PCI bridge> at device 0.0 on pci25
pci26: <ACPI PCI bus> on pcib14
bce1: <Broadcom NetXtreme II BCM5708 1000Base-T (B2)> mem 0xfa000000-0xfbffffff irq 17 at device 0.0 on pci26
miibus1: <MII bus> on bce1
brgphy1: <BCM5708C 1000BASE-T media interface> PHY 1 on miibus1
brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
bce1: Ethernet address: 00:0a:e4:89:46:26
bce1: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); B/C (3.4.4); Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI)
Coal (RX:6,6,18,18; TX:20,20,80,80)
pcib15: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
pci27: <ACPI PCI bus> on pcib15
vgapci0: <VGA-compatible display> mem 0xf6000000-0xf6ffffff,0xfc000000-0xfc003fff,0xfc800000-0xfcffffff irq 18 at device 0.0 on pci27
uhci0: <Intel 631XESB/632XESB/3100 USB controller USB-1> port 0x1000-0x101f irq 23 at device 29.0 on pci0
uhci0: LegSup = 0x2f00
usbus0 on uhci0
uhci1: <Intel 631XESB/632XESB/3100 USB controller USB-2> port 0x1400-0x141f irq 22 at device 29.1 on pci0
uhci1: LegSup = 0x2f00
usbus1 on uhci1
uhci2: <Intel 631XESB/632XESB/3100 USB controller USB-3> port 0x1800-0x181f irq 21 at device 29.2 on pci0
uhci2: LegSup = 0x2f00
usbus2 on uhci2
uhci3: <Intel 631XESB/632XESB/3100 USB controller USB-4> port 0x1c00-0x1c1f irq 20 at device 29.3 on pci0
uhci3: LegSup = 0x2f00
usbus3 on uhci3
ehci0: <Intel 63XXESB USB 2.0 controller> mem 0xf7000400-0xf70007ff irq 23 at device 29.7 on pci0
usbus4: EHCI version 1.0
usbus4 on ehci0
pcib16: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci28: <ACPI PCI bus> on pcib16
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
ahci0: <Intel ESB2 AHCI SATA controller> port 0x2430-0x2437,0x2424-0x2427,0x2428-0x242f,0x2420-0x2423,0x2400-0x241f mem 0xf7000800-0xf7000bff irq 19 at device 31.2 on pci0
ahci0: AHCI v1.10 with 6 3Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
ichsmb0: <Intel 631xESB/6321ESB (ESB2) SMBus controller> port 0x2000-0x201f irq 19 at device 31.3 on pci0
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus generic I/O> on smbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
ichwd0 on isa0
ichwd0: ICH WDT present but disabled in BIOS or hardware
device_attach: ichwd0 attach returned 6
ichwd0 at port 0x7030-0x7037,0x7060-0x707f on isa0
ichwd0: ICH WDT present but disabled in BIOS or hardware
device_attach: ichwd0 attach returned 6
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
coretemp2: <CPU On-Die Thermal Sensors> on cpu2
est2: <Enhanced SpeedStep Frequency Control> on cpu2
p4tcc2: <CPU Frequency Thermal Control> on cpu2
coretemp3: <CPU On-Die Thermal Sensors> on cpu3
est3: <Enhanced SpeedStep Frequency Control> on cpu3
p4tcc3: <CPU Frequency Thermal Control> on cpu3
coretemp4: <CPU On-Die Thermal Sensors> on cpu4
est4: <Enhanced SpeedStep Frequency Control> on cpu4
p4tcc4: <CPU Frequency Thermal Control> on cpu4
coretemp5: <CPU On-Die Thermal Sensors> on cpu5
est5: <Enhanced SpeedStep Frequency Control> on cpu5
p4tcc5: <CPU Frequency Thermal Control> on cpu5
coretemp6: <CPU On-Die Thermal Sensors> on cpu6
est6: <Enhanced SpeedStep Frequency Control> on cpu6
p4tcc6: <CPU Frequency Thermal Control> on cpu6
coretemp7: <CPU On-Die Thermal Sensors> on cpu7
est7: <Enhanced SpeedStep Frequency Control> on cpu7
p4tcc7: <CPU Frequency Thermal Control> on cpu7
Timecounters tick every 1.000 msec
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 480Mbps High Speed USB v2.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
bce0: bce_pulse(): Warning: bootcode thinks driver is absent! (bc_state = 0x00000006)
bce1: bce_pulse(): Warning: bootcode thinks driver is absent! (bc_state = 0x00000006)
uhub4: 8 ports with 8 removable, self powered
ada0 at ahcich0 bus 0 scbus3 target 0 lun 0
ada0: <ST31000340NS FSC6> ATA-8 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad4
ada1 at ahcich1 bus 0 scbus4 target 0 lun 0
ada1: <WDC WD1002FBYS-50A6B1 03.00C09> ATA-8 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C)
ada1: Previously was known as ad6
ses0 at isp1 bus 0 scbus1 target 0 lun 1
ses0: <IFT DS S24F-G2840-4 388A> Fixed Enclosure Services SCSI-4 device
ses0: 800.000MB/s transfers WWNN 0x200000d0230c9c10 WWPN 0x210000d0230c9c10 PortID 0x1
ses0: Command Queueing enabled
ses0: SCSI-3 SES Device
da1 at mpt0 bus 0 scbus2 target 8 lun 0
da1: <transtec PV610A24R1A 373I> Fixed Direct Access SCSI-5 device
da1: 300.000MB/s transfers
da1: Command Queueing enabled
da1: 20025789MB (41012815872 512 byte sectors: 255H 63S/T 2552929C)
da0 at isp1 bus 0 scbus1 target 0 lun 0
da0: <IFT DS S24F-G2840-4 388A> Fixed Direct Access SCSI-5 device
da0: 800.000MB/s transfers WWNN 0x200000d0230c9c10 WWPN 0x210000d0230c9c10cd0 at ahcich2 bus 0 scbus5 target 0 lun 0
cd0: <HL-DT-ST RW/DVD GCC-T20N 1.01> Removable CD-ROM SCSI-0 device
cd0: 150.000MB/s transfers (SATA 1.x, UDMA2, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
PortID 0x1
da0: Command Queueing enabled
da0: 66758041MB (136720467968 512 byte sectors: 255H 63S/T 8510455C)
SMP: AP CPU #6 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #5 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
Timecounter "TSC-low" frequency 9741419 Hz quality 1000
GEOM_MIRROR: Device mirror/gm0 launched (2/2).
Trying to mount root from ufs:/dev/mirror/gm0s1a [rw]...
ZFS filesystem version 5
ZFS storage pool version 28
bce0: Gigabit link up!
bce1: Gigabit link up!
- --
The beginning is the most important part of the work.
-Plato
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iD8DBQFQkko2SPOsGF+KA+MRAuwQAJ9VNJYRyy73tPkAEycEsF/bmKKd+wCfUjpz
2xJlZ5Yx2iFSq1HIK9lfQYY=
=GAOF
-----END PGP SIGNATURE-----
More information about the freebsd-scsi
mailing list