From wollman@nfs-prod-0.csail.mit.edu  Fri Sep 28 23:06:51 2012
Return-Path: <wollman@nfs-prod-0.csail.mit.edu>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 41C4D106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Sep 2012 23:06:51 +0000 (UTC)
	(envelope-from wollman@nfs-prod-0.csail.mit.edu)
Received: from nfs-prod-0.csail.mit.edu (nfs-prod-0.csail.mit.edu [128.30.113.117])
	by mx1.freebsd.org (Postfix) with ESMTP id 05CE88FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Sep 2012 23:06:50 +0000 (UTC)
Received: from nfs-prod-0.csail.mit.edu (localhost [127.0.0.1])
	by nfs-prod-0.csail.mit.edu (8.14.5/8.14.5) with ESMTP id q8SN4Hko057136
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 28 Sep 2012 19:04:17 -0400 (EDT)
	(envelope-from wollman@nfs-prod-0.csail.mit.edu)
Received: (from wollman@localhost)
	by nfs-prod-0.csail.mit.edu (8.14.5/8.14.5/Submit) id q8SN4G6Q057135;
	Fri, 28 Sep 2012 19:04:16 -0400 (EDT)
	(envelope-from wollman)
Message-Id: <201209282304.q8SN4G6Q057135@nfs-prod-0.csail.mit.edu>
Date: Fri, 28 Sep 2012 19:04:16 -0400 (EDT)
From: Garrett Wollman <wollman@csail.mit.edu>
Reply-To: Garrett Wollman <wollman@csail.mit.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: SCSI bus scan on mps(4) spews thousands of lines on console
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         172150
>Category:       kern
>Synopsis:       SCSI bus scan on mps(4) spews thousands of lines on console
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 28 23:10:04 UTC 2012
>Closed-Date:    Wed Oct 10 15:46:19 UTC 2012
>Last-Modified:  Wed Oct 10 15:46:19 UTC 2012
>Originator:     Garrett Wollman
>Release:        FreeBSD 9.0-STABLE amd64
>Organization:
MIT Computer Science & Artificial Intelligence Laboratory
>Environment:
System: FreeBSD nfs-prod-0.csail.mit.edu 9.0-STABLE FreeBSD 9.0-STABLE #7 r237562M: Tue Jun 26 22:14:57 EDT 2012 wollman@xyz.csail.mit.edu:/usr/obj/usr/src/sys/CSAIL amd64

>Description:

Anything that causes a bus scan on mps(4) devices results in many
thousands of lines of junk being spewed to the console, with the
system unresponsive.

The junk looks like this:

(probe719:mps1:0:720:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe719:mps1:0:720:0): CAM status: Invalid Target ID
(probe719:mps1:0:720:0): Error 22, Unretryable error
(probe720:mps1:0:721:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe720:mps1:0:721:0): CAM status: Invalid Target ID
(probe720:mps1:0:721:0): Error 22, Unretryable error
(probe721:mps1:0:722:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe721:mps1:0:722:0): CAM status: Invalid Target ID
(probe721:mps1:0:722:0): Error 22, Unretryable error
(probe722:mps1:0:723:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe722:mps1:0:723:0): CAM status: Invalid Target ID
(probe722:mps1:0:723:0): Error 22, Unretryable error
(probe723:mps1:0:724:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe723:mps1:0:724:0): CAM status: Invalid Target ID
(probe723:mps1:0:724:0): Error 22, Unretryable error
(probe724:mps1:0:725:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe724:mps1:0:725:0): CAM status: Invalid Target ID
(probe724:mps1:0:725:0): Error 22, Unretryable error
(probe725:mps1:0:726:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe725:mps1:0:726:0): CAM status: Invalid Target ID
(probe725:mps1:0:726:0): Error 22, Unretryable error
(probe726:mps1:0:727:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe726:mps1:0:727:0): CAM status: Invalid Target ID
(probe726:mps1:0:727:0): Error 22, Unretryable error
(probe727:mps1:0:728:0): INQUIRY. CDB: 12 0 0 0 24 0 
(probe727:mps1:0:728:0): CAM status: Invalid Target ID

This sequence is repeated many times (I haven't tried to count) until
eventually it gives up.

>How-To-Repeat:

Build a fileserver with a pair of SAS2116 cards.  Plug something in.
Wait fifteen minutes for the new device to finally get attached.

>Fix:

1) Don't output these messages unless debugging is turned on.
2) If CAM already knows that they target ID is invalid, then it should
terminate the probe for that target rather than retrying a huge number
of times.

>Release-Note:
>Audit-Trail:

From: "Delsey, Carl R" <carl.r.delsey@intel.com>
To: "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>,
	"wollman@csail.mit.edu" <wollman@csail.mit.edu>
Cc:  
Subject: Re: kern/172150: SCSI bus scan on mps(4) spews thousands of lines
 on console
Date: Sat, 29 Sep 2012 00:46:19 +0000

 I talked to jimharris@ and it looks like this was fixed in commit 237683 (h=
 ttp://svnweb.freebsd.org/base?view=3Drevision&revision=3D237683). See item =
 13 in the log message.
 
 This is related to commit 240901 (http://svnweb.freebsd.org/base?view=3Drev=
 ision&revision=3D240901) that Jim made in the tws driver.
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Wed Oct 10 15:45:36 UTC 2012 
State-Changed-Why:  
Fixed as of 9.1-RC2. 

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