From nobody@FreeBSD.org  Sat Mar  7 19:57:50 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 66C78106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Mar 2009 19:57:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 49B3D8FC1A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  7 Mar 2009 19:57:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n27JvnBg062311
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 7 Mar 2009 19:57:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n27JvncT062310;
	Sat, 7 Mar 2009 19:57:49 GMT
	(envelope-from nobody)
Message-Id: <200903071957.n27JvncT062310@www.freebsd.org>
Date: Sat, 7 Mar 2009 19:57:49 GMT
From: Sylwester <freebsd@ext.no-route.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: isp(4) - bad underruns with QLogic qla2300 and amd64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132394
>Category:       amd64
>Synopsis:       [isp] - bad underruns with QLogic qla2300 and amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-scsi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 07 20:00:15 UTC 2009
>Closed-Date:    Fri Feb 05 19:55:07 UTC 2010
>Last-Modified:  Fri Feb 05 19:55:07 UTC 2010
>Originator:     Sylwester
>Release:        FreeBSD 7.1-RELEASE
>Organization:
>Environment:
FreeBSD amd64.test.no-route.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 08:58:24 UTC 2009     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
If you're using the QLogic ISP2300 Fibre Channel HBA with isp(4) on
FreeBSD 7.1-RELEASE amd64 you'll get a lot of bad underrun errors,
cam_periph_alloc, sesasync, and passasync. Anyway it's possible to
access the attached disks. A full description is attached below.

Relevant 'dmesg' output:
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked) (about 20 times)
ses0 at isp0 bus 0 target 5 lun 0
ses0: <SUN SENA 1.09> Fixed Enclosure Services SCSI-3 device 
ses0: 100.000MB/s transfers WWNN 0x508002000008c768 WWPN 0x508002000008c769 PortID 0xd2
ses0: SCSI-3 SES Device
da0 at isp0 bus 0 target 0 lun 0
da0: <HPQ ND25058238 HP04> Fixed Direct Access SCSI-3 device 
da0: 100.000MB/s transfers
da0: Command Queueing Enabled
da0: 239375MB (490240000 512 byte sectors: 255H 63S/T 30516C)
da1 at isp0 bus 0 target 1 lun 0
da1: <HPQ ND25058238 HP04> Fixed Direct Access SCSI-3 device 
da1: 100.000MB/s transfers WWNN 0x20000011c616c721 WWPN 0x21000011c616c721 PortID 0xe8
da1: Command Queueing Enabled
da1: 239375MB (490240000 512 byte sectors: 255H 63S/T 30516C)
da2 at isp0 bus 0 target 2 lun 0
da2: <HPQ NB50058855 HP03> Fixed Direct Access SCSI-3 device 
da2: 100.000MB/s transfers WWNN 0x2000001862b21a7e WWPN 0x2100001862b21a7e PortID 0xe4
da2: Command Queueing Enabled
da2: 476837MB (976562500 512 byte sectors: 255H 63S/T 60788C)
da3 at isp0 bus 0 target 3 lun 0
da3: <HPQ ND2505823A HP04> Fixed Direct Access SCSI-3 device 
da3: 100.000MB/s transfers WWNN 0x20000000877be6fb WWPN 0x21000000877be6fb PortID 0xe2
da3: Command Queueing Enabled
da3: 239375MB (490240000 512 byte sectors: 255H 63S/T 30516C)
SMP: AP CPU #1 Launched!
da4 at isp0 bus 0 target 4 lun 0
da4: <HPQ ND2505823A HP04> Fixed Direct Access SCSI-3 device 
da4: 100.000MB/s transfers WWNN 0x200000008771ebd9 WWPN 0x210000008771ebd9 PortID 0xe1
da4: Command Queueing Enabled
da4: 239375MB (490240000 512 byte sectors: 255H 63S/T 30516C)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
cam_periph_alloc: attempt to re-allocate valid device ses0 rejected
sesasync: Unable to probe new device due to status 0x6
cam_periph_alloc: attempt to re-allocate valid device pass5 rejected
passasync: Unable to attach new device due to status 0x6: CCB request was invalid
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
cam_periph_alloc: attempt to re-allocate valid device ses0 rejected
sesasync: Unable to probe new device due to status 0x6
cam_periph_alloc: attempt to re-allocate valid device pass5 rejected
passasync: Unable to attach new device due to status 0x6: CCB request was invalid
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
cam_periph_alloc: attempt to re-allocate valid device ses0 rejected
sesasync: Unable to probe new device due to status 0x6
cam_periph_alloc: attempt to re-allocate valid device pass5 rejected
passasync: Unable to attach new device due to status 0x6: CCB request was invalid
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
isp0: bad underrun for 5.0 (count 255, resid 127, status not marked)
cam_periph_alloc: attempt to re-allocate valid device ses0 rejected
sesasync: Unable to probe new device due to status 0x6
cam_periph_alloc: attempt to re-allocate valid device pass5 rejected
passasync: Unable to attach new device due to status 0x6: CCB request was invalid

Relevant 'pciconf -lv' output:
isp0@pci0:1:8:0:	class=0x0c0400 card=0x00091077 chip=0x23001077 rev=0x01 hdr=0x00
    vendor     = 'QLogic Corporation'
    device     = 'QLA2300 SANblade 2300 64-bit FC-AL Adapter'
    class      = serial bus
    subclass   = Fibre Channel


>How-To-Repeat:
Perform a basic FreeBSD 7.1-RELEASE installation
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-scsi 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Mar 9 20:38:45 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132394 
State-Changed-From-To: open->closed 
State-Changed-By: mjacob 
State-Changed-When: Fri Feb 5 19:54:04 UTC 2010 
State-Changed-Why:  
The old SUN SENA doesn't correctly send back residuals. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132394 
>Unformatted:
