From owner-freebsd-bugs@FreeBSD.ORG Mon Sep 11 09:50:28 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 854CD16A4E7 for ; Mon, 11 Sep 2006 09:50:28 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D95D343D4C for ; Mon, 11 Sep 2006 09:50:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8B9oRnM051895 for ; Mon, 11 Sep 2006 09:50:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8B9oRtC051892; Mon, 11 Sep 2006 09:50:27 GMT (envelope-from gnats) Resent-Date: Mon, 11 Sep 2006 09:50:27 GMT Resent-Message-Id: <200609110950.k8B9oRtC051892@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Shusuke SHINOMIYA Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 431B516A407 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/103130: reenable tagged queueing of VMware virtual SCSI disk. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 09:50:28 -0000 >Number: 103130 >Category: kern >Synopsis: reenable tagged queueing of VMware virtual SCSI disk. >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Sep 11 09:50:26 GMT 2006 >Closed-Date: >Last-Modified: >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: 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: >Unformatted: