From nobody@FreeBSD.org  Mon Sep 11 09:44:50 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 431B516A407
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Sep 2006 09:44:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0FF2543D45
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Sep 2006 09:44:50 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8B9in6g081349
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Sep 2006 09:44:49 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k8B9inEZ081348;
	Mon, 11 Sep 2006 09:44:49 GMT
	(envelope-from nobody)
Message-Id: <200609110944.k8B9inEZ081348@www.freebsd.org>
Date: Mon, 11 Sep 2006 09:44:49 GMT
From: Shusuke SHINOMIYA <shino@fornext.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: reenable tagged queueing of VMware virtual SCSI disk.
X-Send-Pr-Version: www-2.3

>Number:         103130
>Category:       kern
>Synopsis:       [cam] [patch] reenable tagged queueing of VMware virtual SCSI disk.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    mjacob
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 11 09:50:26 GMT 2006
>Closed-Date:    Mon Sep 11 21:56:33 GMT 2006
>Last-Modified:  Mon Sep 11 21:56:33 GMT 2006
>Originator:     Shusuke SHINOMIYA
>Release:        FreeBSD 5.5-STABLE
>Organization:
Tokyo Institute of Technology
>Environment:
FreeBSD attacker.noc.titech.ac.jp 5.5-STABLE FreeBSD 5.5-STABLE #16: Fri Sep  8 17:45:56 JST 2006     root@attacker.noc.titech.ac.jp:/usr/obj/usr/src/sys/VMWARE_FREEBSD5  i386

>Description:
 Tagged queueing feature of a VMware virtual disk connected with SCSI
has been disabled since the cam quirk was added at Jun 26 05:42:26 2006 in RELENG_5 branch.
# this quirk is needed to find the drive by SCSI HA.
>How-To-Repeat:
boot up a FreeBSD on a VMware Virtual Machine of which hard drive is connected with SCSI.

Tagged queueing feature is not available as shown the following.

da0 at mpt0 bus 0 target 0 lun 0
da0: <VMware Virtual disk 1.0> Fixed Direct Access SCSI-2 device
da0: 80.000MB/s transfers (40.000MHz, offset 127, 16bit)
da0: 8192MB (16777216 512 byte sectors: 255H 63S/T 1044C)

>Fix:
apply following patch to sys/cam/cam_xpt.c. this patch is for RELENG_5.

--- sys/cam/cam_xpt.c.orig      Fri Sep  8 18:10:14 2006
+++ sys/cam/cam_xpt.c   Fri Sep  8 17:43:57 2006
@@ -359,7 +359,7 @@
        {
                /* Does not support other than LUN 0 */
                { T_DIRECT, SIP_MEDIA_FIXED, "VMware*", "*", "*" },
-               CAM_QUIRK_NOLUNS, /*mintags*/0, /*maxtags*/0
+               CAM_QUIRK_NOLUNS, /*mintags*/2, /*maxtags*/255
        },


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mjacob 
Responsible-Changed-By: mjacob 
Responsible-Changed-When: Mon Sep 11 17:35:03 UTC 2006 
Responsible-Changed-Why:  
Sorry- thanks for the patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103130 
State-Changed-From-To: open->closed 
State-Changed-By: mjacob 
State-Changed-When: Mon Sep 11 21:56:05 UTC 2006 
State-Changed-Why:  
Integrating and awaiting MFC approval. 

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