From owner-freebsd-scsi@FreeBSD.ORG Thu Nov 1 10:09:12 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F380BD30; Thu, 1 Nov 2012 10:09:11 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.freebsd.org (Postfix) with ESMTP id 2576C8FC0C; Thu, 1 Nov 2012 10:09:10 +0000 (UTC) Received: from mailhost.frm2.tum.de (localhost [127.0.0.1]) by mailhost.frm2.tum.de (8.14.4/8.14.4) with ESMTP id qA1A99HD085007; Thu, 1 Nov 2012 11:09:09 +0100 (CET) (envelope-from Joerg.Pulz@frm2.tum.de) X-Virus-Scanned: at mailhost.frm2.tum.de Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) (authenticated bits=0) by mailhost.frm2.tum.de (8.14.4/8.14.4) with ESMTP id qA1A8sh3085000 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 1 Nov 2012 11:08:58 +0100 (CET) (envelope-from Joerg.Pulz@frm2.tum.de) Date: Thu, 1 Nov 2012 11:08:49 +0100 (CET) From: Joerg Pulz To: Matt Jacob Subject: Re: isp(4) broken in RELENG_9 In-Reply-To: <50915CC0.1090207@feral.com> Message-ID: References: <50915CC0.1090207@feral.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mailhost.frm2.tum.de [129.187.179.12]); Thu, 01 Nov 2012 11:08:58 +0100 (CET) Cc: freebsd-scsi@freebsd.org X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2012 10:09:12 -0000 -----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: 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: 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@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 Features2=0xc0ce3bd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant, performance statistics real memory = 8589934592 (8192 MB) avail memory = 8232357888 (7850 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: 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 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard kbd1 at kbdmux0 ctl: CAM Target Layer loaded acpi0: on motherboard acpi0: Power Button (fixed) cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 cpu4: on acpi0 cpu5: on acpi0 cpu6: on acpi0 cpu7: on acpi0 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 hpet0: 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: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 pcib2: irq 16 at device 0.0 on pci1 pci2: on pcib2 pcib3: irq 16 at device 0.0 on pci2 pci3: on pcib3 isp0: port 0x3000-0x30ff mem 0xf7140000-0xf7143fff,0xf7200000-0xf72fffff irq 16 at device 0.0 on pci3 isp1: port 0x3400-0x34ff mem 0xf7144000-0xf7147fff,0xf7300000-0xf73fffff irq 17 at device 0.1 on pci3 pcib4: irq 17 at device 1.0 on pci2 pci4: on pcib4 pcib5: at device 0.3 on pci1 pci5: on pcib5 pcib6: at device 3.0 on pci0 pci6: on pcib6 pcib7: at device 4.0 on pci0 pci11: on pcib7 em0: 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: 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: at device 5.0 on pci0 pci12: on pcib8 pcib9: at device 6.0 on pci0 pci17: on pcib9 mpt0: port 0x5000-0x50ff mem 0xf7510000-0xf7513fff,0xf7500000-0xf750ffff irq 16 at device 0.0 on pci17 mpt0: MPI Version=1.5.19.0 pcib10: at device 7.0 on pci0 pci18: on pcib10 pci0: at device 8.0 (no driver attached) pcib11: irq 17 at device 28.0 on pci0 pci23: on pcib11 pcib12: at device 0.0 on pci23 pci24: on pcib12 bce0: 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: on bce0 brgphy0: 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: irq 16 at device 28.1 on pci0 pci25: on pcib13 pcib14: at device 0.0 on pci25 pci26: on pcib14 bce1: mem 0xfa000000-0xfbffffff irq 17 at device 0.0 on pci26 miibus1: on bce1 brgphy1: 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: irq 18 at device 28.2 on pci0 pci27: on pcib15 vgapci0: mem 0xf6000000-0xf6ffffff,0xfc000000-0xfc003fff,0xfc800000-0xfcffffff irq 18 at device 0.0 on pci27 uhci0: port 0x1000-0x101f irq 23 at device 29.0 on pci0 uhci0: LegSup = 0x2f00 usbus0 on uhci0 uhci1: port 0x1400-0x141f irq 22 at device 29.1 on pci0 uhci1: LegSup = 0x2f00 usbus1 on uhci1 uhci2: port 0x1800-0x181f irq 21 at device 29.2 on pci0 uhci2: LegSup = 0x2f00 usbus2 on uhci2 uhci3: port 0x1c00-0x1c1f irq 20 at device 29.3 on pci0 uhci3: LegSup = 0x2f00 usbus3 on uhci3 ehci0: mem 0xf7000400-0xf70007ff irq 23 at device 29.7 on pci0 usbus4: EHCI version 1.0 usbus4 on ehci0 pcib16: at device 30.0 on pci0 pci28: on pcib16 isab0: at device 31.0 on pci0 isa0: on isab0 ahci0: 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: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ahcich2: at channel 2 on ahci0 ahcich3: at channel 3 on ahci0 ahcich4: at channel 4 on ahci0 ahcich5: at channel 5 on ahci0 ichsmb0: port 0x2000-0x201f irq 19 at device 31.3 on pci0 smbus0: on ichsmb0 smb0: on smbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: 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: at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range coretemp0: on cpu0 est0: on cpu0 p4tcc0: on cpu0 coretemp1: on cpu1 est1: on cpu1 p4tcc1: on cpu1 coretemp2: on cpu2 est2: on cpu2 p4tcc2: on cpu2 coretemp3: on cpu3 est3: on cpu3 p4tcc3: on cpu3 coretemp4: on cpu4 est4: on cpu4 p4tcc4: on cpu4 coretemp5: on cpu5 est5: on cpu5 p4tcc5: on cpu5 coretemp6: on cpu6 est6: on cpu6 p4tcc6: on cpu6 coretemp7: on cpu7 est7: on cpu7 p4tcc7: 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: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: 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: 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: 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: 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: 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: 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: 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-----