Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2012 15:57:09 GMT
From:      Anton Shterenlikht <mexas@bristol.ac.uk>
To:        freebsd-scsi@freebsd.org, Joerg.Pulz@frm2.tum.de
Subject:   Re: isp(4) broken in RELENG_9
Message-ID:  <201210311557.q9VFv9Vh001186@mech-cluster241.men.bris.ac.uk>
In-Reply-To: <alpine.BSF.2.00.1210311616350.1938@unqrf.nqzva.sez2>

next in thread | previous in thread | raw e-mail | index | archive | help
	Date: Wed, 31 Oct 2012 16:25:17 +0100 (CET)
	From: Joerg Pulz <Joerg.Pulz@frm2.tum.de>

	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

	Here is the boot output of the still working RELENG_9_1:

	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

	I've taken a quick look at the changes, but could not find anything 
	obvious that causes that error.

	Thanks for any hints on how to fix this.

	As the isp(4) code base for CURRENT and RELENG_9 is the same, it should 
	fail in current too, but i can't verify as i don't have a spare card for 
	testing.

I'm on -current r235474 ia64.
isp(4) works for me:

$ dmesg|grep isp0
isp0: <Qlogic ISP 2422 PCI FC-AL Adapter> port 0xc000-0xc0ff mem 0xe0040000-0xe0040fff irq 71 at device 1.0 on pci192
(probe2:isp0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe2:isp0:0:0:0): CAM status: SCSI Status Error
(probe2:isp0:0:0:0): SCSI status: Check Condition
(probe2:isp0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, reset, or bus device reset occurred)
pass3 at isp0 bus 0 scbus2 target 0 lun 0
da3 at isp0 bus 0 scbus2 target 0 lun 1
da4 at isp0 bus 0 scbus2 target 0 lun 2
da5 at isp0 bus 0 scbus2 target 0 lun 5
$

Anton




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210311557.q9VFv9Vh001186>