From nobody@FreeBSD.org  Mon Jul 25 07:47:41 2005
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 85C5816A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jul 2005 07:47:41 +0000 (GMT)
	(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 4C3E843D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jul 2005 07:47:41 +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 j6P7leJ0041447
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Jul 2005 07:47:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j6P7leKf041446;
	Mon, 25 Jul 2005 07:47:40 GMT
	(envelope-from nobody)
Message-Id: <200507250747.j6P7leKf041446@www.freebsd.org>
Date: Mon, 25 Jul 2005 07:47:40 GMT
From: Henri Hennebert <hlh@ciger.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 6.0-BETA1 mpt driver not working under VMware ESX 2.5.1
X-Send-Pr-Version: www-2.3

>Number:         84040
>Category:       kern
>Synopsis:       [mpt] 6.0-BETA1 mpt driver not working under VMware ESX 2.5.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mjacob
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 25 07:50:15 GMT 2005
>Closed-Date:    Sun Jun 25 04:26:57 GMT 2006
>Last-Modified:  Sun Jun 25 04:26:57 GMT 2006
>Originator:     Henri Hennebert
>Release:        FreeBSD-6.0-BETA1
>Organization:
CIGER sa
>Environment:
Not available - FreeBSD can't complete boot 
>Description:

[ Fri Apr 14 00:55:30 UTC 2006 mjacob ]
Can you try the most recent -current snapshot?
None of the mpt changes has made it back to RELENG_6 yet.


---------------------------------
Under VMware ESX server 2.5.1 with scsi disk controller vmilsilogic, during boot the following error appears:
..
mpt0: <LSILogic 1030 Ultra4 Adapter> port 0x1080-0x10ff mem 0xf4000000-0xf4000fff irq 9 at device 16.0 on pci0
mpt0: [GIANT-LOCKED]
mpt0: MPI Version=1.2.0.0
mpt0: Unhandled Event Notify Frame. Event 0xa.
..
Waiting 5 seconds for SCSI devices to settle
Trying to mount root from ufs:/dev/da0s1a

Manual root filesystem specification:
  <fstype>:<device>  Mount <device> using filesystem <fstype>
                       eg. ufs:da0s1a
  ?                  List valid disk boot devices
  <empty line>       Abort manual input

:-(

Under 5.4-RC4 all was running fine:
..
mpt0: <LSILogic 1030 Ultra4 Adapter> port 0x1080-0x10ff mem 0xf4000000-0xf4000fff irq 9 at device 16.0 on pci0
..
Waiting 5 seconds for SCSI devices to settle
da0 at mpt0 bus 0 target 0 lun 0
da0: <VMware Virtual disk 1.0> Fixed Direct Access SCSI-2 device
da0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged Queueing Enabled
da0: 6000MB (12288000 512 byte sectors: 255H 63S/T 764C)
Mounting root from ufs:/dev/da0s1a

Henri


>How-To-Repeat:
      
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Henri Hennebert <hlh@cigersoft.be>
To: bug-followup@FreeBSD.org, hlh@ciger.be
Cc:  
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under
	VMware ESX 2.5.1
Date: Wed, 12 Oct 2005 14:35:05 +0000

 With FreeBSD-6.0-RC1 the problem is still the same.
 
 I try defining the scsi controler as vmxbuslogic. bt0 is detected but no
 disk is found and the boot stop with the same error.
 
 Henri

From: Henri Hennebert <hlh@ciger.be>
To: bug-followup@FreeBSD.org, hlh@ciger.be, freebsd-stable@FreeBSD.org
Cc:  
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under VMware
 ESX 2.5.1
Date: Fri, 10 Feb 2006 10:35:37 +0100

 I cvsup to RELENG_6 at 2006-02-10 05:03:20 UTC ~ 6.1-BETA1
 
 The mpt driver can't find the disk under VMWARE ESX 2.5.2.
 
 Henri
Responsible-Changed-From-To: freebsd-bugs->mjacob@freebsd.org 
Responsible-Changed-By: mjacob 
Responsible-Changed-When: Sun Feb 26 03:30:03 UTC 2006 
Responsible-Changed-Why:  
Taking ownership of MPT bugs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84040 

From: "Patrick" <patrick@patrickharlan.com>
To: <bug-followup@FreeBSD.org>,
	<hlh@ciger.be>
Cc:  
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under VMware ESX 2.5.1
Date: Thu, 13 Apr 2006 15:44:51 -0700

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0001_01C65F11.37E27AB0
 Content-Type: text/plain;
 	charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 Problem exists with VMWare Workstation 5.5 on a WindowsXP Host so you
 could presumably test / develop on the latest VMWare Server (free) Beta.
 I've had the same problem with 6.0-RELEASE, 6.1-BETA1, and 6.1-RC1 and
 have tried a variety of custom kernels with no success.  This works fine
 in 5.4-RELEASE.
  
 The biggest effect of this is that virtual IDE drives are limited to 4
 (minus 1 for the CD-ROM drive), so not being able to use SCSI drives
 limits testing or prototyping of various GEOM / GVINUM configurations.
 
 ------=_NextPart_000_0001_01C65F11.37E27AB0
 Content-Type: text/html;
 	charset="us-ascii"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
 charset=3Dus-ascii">
 <TITLE>Message</TITLE>
 
 <META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR></HEAD>
 <BODY>
 <DIV><FONT face=3DArial size=3D2><SPAN =
 class=3D706473722-13042006>Problem exists with=20
 VMWare Workstation 5.5 on a WindowsXP Host so you could presumably test =
 /=20
 develop on the latest VMWare Server (free) Beta.&nbsp; I've had the same =
 problem=20
 with 6.0-RELEASE, 6.1-BETA1, and 6.1-RC1 and have tried a variety of =
 custom=20
 kernels with no success.&nbsp; This works fine in=20
 5.4-RELEASE.</SPAN></FONT></DIV>
 <DIV><FONT face=3DArial size=3D2><SPAN=20
 class=3D706473722-13042006></SPAN></FONT>&nbsp;</DIV>
 <DIV><FONT face=3DArial size=3D2><SPAN class=3D706473722-13042006>The =
 biggest effect=20
 of this is that virtual IDE drives are limited to 4 (minus 1 for the =
 CD-ROM=20
 drive), so not being able to use SCSI drives limits testing or =
 prototyping of=20
 various GEOM / GVINUM configurations.</SPAN></FONT></DIV></BODY></HTML>
 
 ------=_NextPart_000_0001_01C65F11.37E27AB0--
 

 
State-Changed-From-To: open->feedback 
State-Changed-By: mjacob 
State-Changed-When: Fri Apr 14 00:46:40 UTC 2006 
State-Changed-Why:  
Asking the use to try something. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84040 

From: Matt Jacob <mjacob@FreeBSD.org>
To: bug-followup@freebsd.org, hlh@ciger.be
Cc:  
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under VMware ESX 2.5.1
Date: Fri, 14 Apr 2006 00:58:13 GMT

 [ having trouble with edit-pr :-( ]
 
 Can you try one of the more recent snapshots? (March 10)
 
 None of the mpt changes has made it back to the RELENG_6 stream yet.

From: Henri Hennebert <hlh@ciger.be>
To: patrick@patrickharlan.com
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under VMware
 ESX 2.5.1
Date: Fri, 14 Apr 2006 08:42:26 +0200

 Patrick wrote:
 > Problem exists with VMWare Workstation 5.5 on a WindowsXP Host so you 
 
 VMWare Workstation 5.5 and 5.5.1 on CentOS 4.2 / 4.3 with SCSI disk in
 VM work fine for 5.4 / 6.0 and 6.1RC
 
 > could presumably test / develop on the latest VMWare Server (free) 
 > Beta.  I've had the same problem with 6.0-RELEASE, 6.1-BETA1, and 
 > 6.1-RC1 and have tried a variety of custom kernels with no success.  
 > This works fine in 5.4-RELEASE.

From: Henri Hennebert <hlh@ciger.be>
To: Matt Jacob <mjacob@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under VMware
 ESX 2.5.1
Date: Fri, 14 Apr 2006 11:58:14 +0200

 Matt Jacob wrote:
 > [ having trouble with edit-pr :-( ]
 > 
 > Can you try one of the more recent snapshots? (March 10)
 
 I download 7.0-CURRENT-SNAP013-i386-disc1.iso and boot
 
 I get:
 
 mpt0: [GIANT-LOCKED]
 mpt0: soft reset failed: device not running
 mpt0: mpt_reset: failed hard reset (0:0)
 mpt0: mpt_reset: failed hard reset (0:1)
 mpt0: mpt_reset: failed hard reset (0:2)
 mpt0: mpt_reset: failed hard reset (0:3)
 mpt0: mpt_reset: failed hard reset (0:4)
 mpt0: soft reset failed: device not running
 mpt0: mpt_reset: failed hard reset (1:0)
 mpt0: mpt_reset: failed hard reset (1:1)
 mpt0: mpt_reset: failed hard reset (1:2)
 mpt0: mpt_reset: failed hard reset (1:3)
 mpt0: mpt_reset: failed hard reset (1:4)
 mpt0: soft reset failed: device not running
 mpt0: mpt_reset: failed hard reset (2:0)
 mpt0: mpt_reset: failed hard reset (2:1)
 
 ...

From: John Nielsen <john@jnielsen.net>
To: bug-followup@freebsd.org, hlh@ciger.be
Cc:  
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under VMware ESX 2.5.1
Date: Thu, 11 May 2006 11:56:33 -0400

 I saw the same results as Henri booting a 7-CURRENT kernel from yesterday's 
 (11 May 2006) sources under VMware ESX Server 2.5.3 build-22981.  With the 
 mpt0 virtual scsi device the kernel probe doesn't get past mpt0, and (very 
 slowly) repeats the "reset failed" messages ad infinitum.
 
 With the bt0 virtual scsi device the kernel probe completes, but da0 is not 
 detected so the system cannot boot (or install, in the case of a CD boot).
 
 Under 6.1-RELEASE, the kernel probe completes with both virtual scsi devices, 
 but da0 is not detected under either one.  Under 5.4-RELEASE, both virtual 
 scsi devices work fine.
 
 JN

From: Arjan Koole <arjan@blackoak.net>
To: bug-followup@FreeBSD.org, hlh@ciger.be
Cc:  
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under VMware
 ESX 2.5.1
Date: Sat, 17 Jun 2006 02:26:36 +0200

 Hi,
 
 I tested it earlier today with the 7.0 Snapshot from may, still no dice
 I'm afraid. the ESX version is 2.5.2.
 
 cheers,
 -- 
 Arjan Koole
 Hoorn, The Netherlands

From: "orantaria" <or@antaria.net>
To: <bug-followup@FreeBSD.org>,
	<hlh@ciger.be>
Cc:  
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under VMware ESX 2.5.1
Date: Tue, 20 Jun 2006 12:37:28 +0200

 Some information regarding this "bug".
 
 >On ESX, there is a problem with the virtual device controller
 emulation.
 >We don't respond correctly to commands to non-zero LUNs and FreeBSD
 >assumes that the target is dead. That's why no disks appear in the
 guest.=20
 
 I was able to get FreeBSD 6.1 running on ESX 2.53 by modifying the mpt
 driver
 to only use LUN zero.
 
 See http://www.vmware.com/community/thread.jspa?threadID=3D40606 for =
 more
 details.
 
 

From: "orantaria" <or@antaria.net>
To: <bug-followup@FreeBSD.org>,
	<hlh@ciger.be>
Cc:  
Subject: Re: kern/84040: [mpt] 6.0-BETA1 mpt driver not working under VMware ESX 2.5.1
Date: Tue, 20 Jun 2006 15:32:15 +0200

 the Link got messed up :-(
 
 the correct threadID is 40606
 
State-Changed-From-To: feedback->closed 
State-Changed-By: mjacob 
State-Changed-When: Sun Jun 25 04:24:22 UTC 2006 
State-Changed-Why:  

I believe that this is now fixed (although I couldn't get ESX 
to work for me well enough to test). Two changes had to occur- 
cam_xpt had to not scan past LUN 0 for VMware volumes, and 
disabling I/O space should only be done for SAS adapters. 

I was able to successfully use the lsilogic hba for VMware WS 4.5- 
somebody should reopen this bug if it still is broken on ESX. 
It'll MFC in about a week. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84040 
>Unformatted:
 ---------------------------------
 [ mjacob Fri Apr 14 00:49:45 UTC 2006 ]
 
 Would it be possible for you to try a recent -current snapshot? The most
 recent was March 10. 
 
 None of the recent changes for mpt have been pushed back to RELENG_6 yet.
 
