From nobody@FreeBSD.org  Sat May 22 08:06:29 2004
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 BCD6D16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 May 2004 08:06:29 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A0B3743D2D
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 May 2004 08:06:29 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i4MF5bjq034394
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 22 May 2004 08:05:37 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i4MF5bIg034393;
	Sat, 22 May 2004 08:05:37 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200405221505.i4MF5bIg034393@www.freebsd.org>
Date: Sat, 22 May 2004 08:05:37 -0700 (PDT)
From: JD Bronson <jd@aurora.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mpt driver does not recognize messages from LSI card
X-Send-Pr-Version: www-2.3

>Number:         67047
>Category:       i386
>Synopsis:       [mpt] mpt driver does not recognize messages from LSI card
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 22 08:10:05 PDT 2004
>Closed-Date:    Mon Sep 11 10:04:01 GMT 2006
>Last-Modified:  Mon Sep 11 10:04:01 GMT 2006
>Originator:     JD Bronson
>Release:        5.2.1
>Organization:
Aurora Health Care
>Environment:
FreeBSD shadow 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Thu May 20 18:55:53 CDT 2004     jbronson@shadow:/usr/src/sys/i386/compile/SHADOW  i386
>Description:
When RAID is setup on the LSI 20320-R card, and the mirrors start to resync, freebsd is told, but does not understand the error/status message. I am concerned that if a mirror failed, freebsd would not be able to report this as well:

mpt0: <LSILogic 1030 Ultra4 Adapter> port 0x5400-0x54ff mem 0xedaa0000-0xedaaffff,0xedab0000-0xedabffff irq 20 at device 3.0 on pci1
..
Timecounters tick every 10.000 msec
Waiting 10 seconds for SCSI devices to settle
mpt0: Unknown event 0xb

mpt0: Unknown event 0xb

GEOM: create disk da0 dp=0xc7b72050
..
da0 at mpt0 bus 0 target 0 lun 0
da0: <LSILOGIC 1030          IM 1000> Fixed Direct Access SCSI-2 device 
da0: 320.000MB/s transfers (160.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 35000MB (71682030 512 byte sectors: 255H 63S/T 4462C)
>How-To-Repeat:
      
>Fix:
add support to driver to reflect RAID status/changes - something like this under solaris:

May 19 19:40:10 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 19:40:10 shadow  Rev. 7 LSI, Inc. 1030 found.
May 19 19:40:10 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 19:40:10 shadow  mpt0 supports power management.
May 19 19:40:23 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 19:40:23 shadow  mpt0 Firmware version v1.3.24.0
May 19 19:40:23 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 19:40:23 shadow  mpt0: IOC Operational.
May 19 19:40:35 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 19:40:35 shadow  Volume 0 is optimal
May 19 19:40:37 shadow unix: PCI-device: pci1000,1060 at 3, mpt0
May 19 19:40:37 shadow unix: mpt0 is /pci at 1,0/pci1000,1060 at 3



I can tell that the RAID is fine (optimal) and if it is not, I would see this:

May 19 16:46:51 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 16:46:51 shadow  Rev. 7 LSI, Inc. 1030 found.
May 19 16:46:51 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 16:46:51 shadow  mpt0 supports power management.
May 19 16:47:04 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 16:47:04 shadow  mpt0 Firmware version v1.3.24.0
May 19 16:47:04 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 16:47:04 shadow  mpt0: IOC Operational.
May 19 16:47:16 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 16:47:16 shadow  Volume 0 is resyncing
May 19 16:47:16 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 16:47:16 shadow  Volume 0 is degraded
May 19 16:47:18 shadow unix: PCI-device: pci1000,1060 at 3, mpt0
May 19 16:47:18 shadow unix: mpt0 is /pci at 1,0/pci1000,1060 at 3
May 19 16:47:19 shadow unix: /pci at 1,0/pci1000,1060 at 3 (mpt0):
May 19 16:47:19 shadow  Volume 0 is |enabled||resyncing||degraded|

>Release-Note:
>Audit-Trail:

From: "J.D. Bronson" <jd@aurora.org>
To: freebsd-gnats-submit@FreeBSD.org, jd@aurora.org
Cc:  
Subject: Re: i386/67047: mpt driver does not recognize messages from
  LSI card
Date: Sun, 23 May 2004 07:15:30 -0500

 The card does seem to work fine UNTIL IM is enabled (mirroring).
 
 Not only did the RAID take 2x longer to build than when running on a 
 different OS, but performance became very poor once the RAID was built 
 (1-2MB/sec transfer rates in/out).
 
 jd@aurora.org
 

From: Deomid Ryabkov <rojer@rbc.ru>
To: bug-followup@FreeBSD.org,  jd@aurora.org
Cc:  
Subject: Re: i386/67047: mpt driver does not recognize messages from LSI card
Date: Fri, 01 Jul 2005 22:30:02 +0400

 I think I have fixed both of the issues.
 performance issue (which was due to improper scsi settings for hidden 
 physical drives) has been addressed.
 and the driver now provides verbose information on raid configuration 
 and events.
 
 you can get the patch from here:
 http://free.pizza.rbc.ru/mpt/mpt-raid-20050701.patch
 should be applied to latest -STABLE.
 in case patch fails to apply cleanly, an archive of sys/dev/mpt/ is also 
 available:
 http://free.pizza.rbc.ru/mpt/mpt-20050701.tar.bz2
 
 example ouput of driver initialization:
 
 Jul  1 14:13:52 pizza kernel: mpt0: <LSILogic 1030 Ultra4 Adapter> port 
 0xc400-0xc4ff mem 0xfceb0000-0xfcebffff,0xfcec0000-0xfcecffff irq 26 at 
 device 5.0 on pci2
 Jul  1 14:13:52 pizza kernel: mpt0: RAID Vol 0: type IM, disks 2, state 
 (Degraded; Enabled,Inactive)
 Jul  1 14:13:52 pizza kernel: mpt0: RAID Vol 0 Disk 0 (bus 0 tgt 1), 
 Pri: <SEAGATE ST39204LC       0005>, status (Online)
 Jul  1 14:13:52 pizza kernel: mpt0: RAID Vol 0 Disk 1 (bus 0 tgt 0), 
 Sec: <SEAGATE ST336607LC      0007>, status (OutOfSync; Online)
 Jul  1 14:13:52 pizza kernel: mpt0: RAID Vol 1: type IME, disks 3, state 
 (Degraded; Enabled,Resyncing)
 Jul  1 14:13:52 pizza kernel: mpt0: RAID Vol 1 Disk 0 (bus 0 tgt 2), 
 Sec: <COMPAQ  BD036863AC      HPB5>, status (Online)
 Jul  1 14:13:52 pizza kernel: mpt0: RAID Vol 1 Disk 1 (bus 0 tgt 3), 
 Pri: <SEAGATE ST336607LC      0007>, status (Online)
 Jul  1 14:13:52 pizza kernel: mpt0: RAID Vol 1 Disk 2 (bus 0 tgt 4), 
 Sec: <MAXTOR  ATLAS10K5_73SCA JNZ3>, status (Online)
 
 example of output produced by taking out one of the disks:
 
 Jun 29 12:34:45 pizza kernel: mpt0: RAID vol 0: physical disk 0 status 
 changed to (OutOfSync; Missing)
 Jun 29 12:34:45 pizza kernel: mpt0: RAID vol 0: state changed to 
 (Degraded; Enabled)
 Jun 29 12:34:45 pizza kernel: mpt0: RAID vol 0: physical disk 0 status 
 changed to (Missing)
 Jun 29 12:35:10 pizza kernel: mpt0: IOC Bus Reset Port: 0
 Jun 29 12:35:11 pizza kernel: mpt0: IOC Bus Reset Port: 0
 Jun 29 12:36:05 pizza kernel: mpt0: Ext Bus Reset
 Jun 29 12:36:27 pizza kernel: mpt0: RAID vol 0: physical disk 0 status 
 changed to (OutOfSync; Initializing)
 Jun 29 12:36:27 pizza kernel: mpt0: RAID vol 0: physical disk 0 status 
 changed to (OutOfSync; Online)
 Jun 29 12:36:28 pizza kernel: mpt0: RAID vol 0: physical disk 0 status 
 changed to (OutOfSync; Online)
 Jun 29 12:36:29 pizza kernel: mpt0: RAID vol 0: state changed to 
 (Degraded; Enabled,Resyncing)
 
 any feedback is appreciated.
 
 
 --
 WBR
 Deomid Ryabkov aka Rojer
 myself@rojer.pp.ru
 ICQ: 8025844
 
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Sun Sep 3 17:16:47 UTC 2006 
State-Changed-Why:  
Hello, 

Can you tell me whether the current problem still persists 
in later FreeBSD releases? I know that there had been 
a lot of changes in the mpt code so this might have been 
resolved already. 

Thanks in advance! 


Responsible-Changed-From-To: freebsd-i386->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sun Sep 3 17:16:47 UTC 2006 
Responsible-Changed-Why:  
Grab the PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=67047 
State-Changed-From-To: feedback->closed 
State-Changed-By: remko 
State-Changed-When: Mon Sep 11 10:04:00 UTC 2006 
State-Changed-Why:  
feedback timeout 

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