From nobody@FreeBSD.org  Wed Dec 22 00:10:49 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A2CDD106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Dec 2010 00:10:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 922CB8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Dec 2010 00:10:49 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oBM0Anqf007517
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Dec 2010 00:10:49 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oBM0AnB8007516;
	Wed, 22 Dec 2010 00:10:49 GMT
	(envelope-from nobody)
Message-Id: <201012220010.oBM0AnB8007516@red.freebsd.org>
Date: Wed, 22 Dec 2010 00:10:49 GMT
From: Alexander Kirpa <freebsd-bug@kirpa.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ciss driver: Smart Array 5300 boot/detect drive problem
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         153361
>Category:       kern
>Synopsis:       [ciss] Smart Array 5300 boot/detect drive problem
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    sbruno
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 22 00:20:09 UTC 2010
>Closed-Date:    Thu Apr 04 15:15:48 UTC 2013
>Last-Modified:  Thu Apr 04 15:15:48 UTC 2013
>Originator:     Alexander Kirpa
>Release:        >= 8.0
>Organization:
Private
>Environment:
Any with release >= 8.0
>Description:
Smart Array 6400 work with all latest release without problem.
=============
During boot with bootonly.iso (Release 7.3 and below) detect drives on Smart Array 5300.
-------------
Release 8.1 and 8.2beta1 bootonly.iso:
ciss0: error sending 195 LUN command (35)
device_attach: ciss0 attach returned 6

and continue w/o attach drives
-------------
Release 8.0 bootonly.iso:

ciss0: error sending 195 LUN command (35) and Fatal trap 12: page fault while 

on screen:
ciss0: <Compaq Smart Array 5300> port 0x3000-0x30ff mem 0xf9800000-0xf983ffff,0xf9900000-0xf99fffff irq 23 at device 9.0 on pci3
ciss0: PERFORMANT Transport
ciss0: [ITHREAD]
ciss0: error sending 195 LUN command (35)
kernel trap 12 with interrupts disabled

Fatal trap 12: page fault while in kernel mode:
cpuid = 0; apic id = 00
fatal virtual address   = 0xf0009bd0
fault code              = supervisor write, page not present
instruction pointer     = 0x20:0xc08b6e99
stack poointer          = 0x28:0xc142062c
frame pointer           = 0x28:0xc1420648
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1 def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 0 (swapper)
trap number             = 12
panic: page fault
cpuid = 0
Uptime: 1s

>How-To-Repeat:
Boot from CDROM using bootonly.iso with release > 8.0 on machine with Smart Array 5300 inserted in PCI or PCI-X slot.
Test machine: Intel SR1300, HP W8000, HP VL-420 and some other.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Dec 22 08:46:54 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153361 
Responsible-Changed-From-To: freebsd-scsi->sbruno 
Responsible-Changed-By: sbruno 
Responsible-Changed-When: Sat Jan 12 01:33:57 UTC 2013 
Responsible-Changed-Why:  
Taking ticket for monitoring and feedback 

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

From: Sean Bruno <seanbru@yahoo-inc.com>
To: bug-followup@FreeBSD.org, freebsd-bug@kirpa.com
Cc:  
Subject: Re: kern/153361: [ciss] Smart Array 5300 boot/detect drive problem
Date: Fri, 11 Jan 2013 17:33:17 -0800

 Did you have many logical volumes?  More than 16?
 
 Sean
 

From: "Alexander Kirpa" <freebsd-bug@kirpa.com>
To: bug-followup@FreeBSD.org, sbruno@FreeBSD.org
Cc:  
Subject: Re: kern/153361: [ciss] Smart Array 5300 boot/detect drive problem
Date: Tue, 12 Feb 2013 20:26:54 +0200

 At test time I use 1 logical volume.
 
 Please see below partial dmesg.boot under FreeBSD 9.1 (cd boot)
 Hardware: Intel SE7210TP1 - both SmartArray in PCI-X slots
 -----
 pcib3: slot 4 INTA is routed to irq 25
 ciss0: <HP Smart Array 6400> port 0xa800-0xa8ff mem 0xfc0fe000-0xfc0fffff,0xfc080000-
 0xfc0bffff irq 25 at device 4.0 on pci3
 ciss0: PERFORMANT Transport
 ciss0: got 0 MSI messages]
 ioapic1: routing intpin 1 (PCI IRQ 25) to lapic 0 vector 52
 ciss0: using 1024 of 1024 available commands
 ciss0:   firmware 2.84
 ciss0:   2 SCSI channels
 ciss0:   signature 'CISS'
 ciss0:   valence 1
 ciss0:   supported I/O methods 0x80000006<simple,performant>
 ciss0:   active I/O method 0x5<performant>
 ciss0:   4G page base 0x00000000
 ciss0:   interrupt coalesce delay 0us
 ciss0:   interrupt coalesce count 16
 ciss0:   max outstanding commands 1024
 ciss0:   bus types 0x4
 ciss0:   server name ''
 ciss0:   heartbeat 0x10000094
 ciss0: 1 physical device
 ciss0: 1 logical drive
 ciss0: logical drive (b0t0): RAID 0, 34304MB online
 ciss1: <Compaq Smart Array 5300> port 0xb800-0xb8ff mem 0xfc5c0000-0xfc5fffff,0xfc400000-
 0xfc4fffff irq 26 at device 4.0 on pci2
 ciss1: PERFORMANT Transport
 ioapic1: routing intpin 2 (PCI IRQ 26) to lapic 0 vector 53
 ciss1: using 1024 of 1024 available commands
 ciss1:   firmware 3.54
 ciss1:   2 SCSI channels
 ciss1:   signature 'CISS'
 ciss1:   valence 1
 ciss1:   supported I/O methods 0xe<simple,performant,MEMQ>
 ciss1:   active I/O method 0x5<performant>
 ciss1:   4G page base 0x00000000
 ciss1:   interrupt coalesce delay 0us
 ciss1:   interrupt coalesce count 16
 ciss1:   max outstanding commands 1024
 ciss1:   bus types 0x2<ultra3>
 ciss1:   server name ''
 ciss1:   heartbeat 0x30000078
 ciss1: error sending 195 LUN command (35)
 device_attach: ciss1 attach returned 6
 -----------
 As you see:
 - SmartArray 6400 work
 - SmartArray 5300 still have problem
 =================================
 
 Under FreeBSD 7.4 (cd livefs) SmartArray 5300 work without problem.
 Please see extract from dmesg below:
 -----------
 ciss0: <HP Smart Array 6400> port 0xa800-0xa8ff mem 0xfc0fe000-0xfc0fffff,0xfc080000-
 0xfc0bffff irq 25 at device 4.0 on pci3
 ciss0: Reserved 0x2000 bytes for rid 0x10 type 3 at 0xfc0fe000
 ioapic1: routing intpin 1 (PCI IRQ 25) to vector 50
 ciss0: [MPSAFE]
 ciss0: [ITHREAD]
 ciss0: using 256 of 1024 available commands
 ciss0:   firmware 2.84
 ciss0:   2 SCSI channels
 ciss0:   signature 'CISS'
 ciss0:   valence 1
 ciss0:   supported I/O methods 0x80000006<simple,performant>
 ciss0:   active I/O method 0x3<simple>
 ciss0:   4G page base 0x00000000
 ciss0:   interrupt coalesce delay 1000us
 ciss0:   interrupt coalesce count 16
 ciss0:   max outstanding commands 1024
 ciss0:   bus types 0x4
 ciss0:   server name ''
 ciss0:   heartbeat 0x10000078
 ciss0: 1 physical device
 ciss0: 1 logical drive
 ciss0: logical drive (b0t0): RAID 0, 34304MB online
 ciss1: <Compaq Smart Array 5300> port 0xb800-0xb8ff mem 0xfc5c0000-0xfc5fffff,0xfc400000-
 0xfc4fffff irq 26 at device 4.0 on pci2
 ciss1: Reserved 0x40000 bytes for rid 0x10 type 3 at 0xfc5c0000
 ciss1: Reserved 0x100000 bytes for rid 0x14 type 3 at 0xfc400000
 ioapic1: routing intpin 2 (PCI IRQ 26) to vector 51
 ciss1: [MPSAFE]
 ciss1: [ITHREAD]
 ciss1: using 256 of 1024 available commands
 ciss1:   firmware 3.54
 ciss1:   2 SCSI channels
 ciss1:   signature 'CISS'
 ciss1:   valence 1
 ciss1:   supported I/O methods 0xe<simple,performant,MEMQ>
 ciss1:   active I/O method 0x3<simple>
 ciss1:   4G page base 0x00000000
 ciss1:   interrupt coalesce delay 1000us
 ciss1:   interrupt coalesce count 0
 ciss1:   max outstanding commands 1024
 ciss1:   bus types 0x2<ultra3>
 ciss1:   server name ''
 ciss1:   heartbeat 0x3000005c
 ciss1: 1 physical device
 ciss1: 1 logical drive
 ciss1: logical drive (b0t0): RAID 0, 69632MB online
 ----
 If need additional information or other help, please let me know
 
 Best regards,
  Alexander
 
 On 11 Jan 2013, at 17:33, Sean Bruno wrote:
 
 > Did you have many logical volumes?  More than 16?
 > 
 > Sean
 > 
 > 
 
 

From: Sean Bruno <seanbru@yahoo-inc.com>
To: bug-followup@FreeBSD.org, freebsd-bug@kirpa.com
Cc:  
Subject: Re: kern/153361: [ciss] Smart Array 5300 boot/detect drive problem
Date: Fri, 15 Feb 2013 12:00:53 -0800

 --=-nTmSV1/F77quNU8ix3c/
 Content-Type: text/plain; charset="UTF-8"
 Content-Transfer-Encoding: 7bit
 
 I've come up with this patch to only allow "simple" mode on the SA 5300.
 My tests show that this controller stops working at the introduction of
 "performant mode".
 
 Linux seems to be able to put the 5300 into performant mode and does not
 have our issue.  I need more time to review, but this patch restores
 functionality for this model raid controller.
 
 http://people.freebsd.org/~sbruno/5300_SIMPLE_override.diff
 
 
 Sean
 
 --=-nTmSV1/F77quNU8ix3c/
 Content-Disposition: attachment; filename="5300_SIMPLE_override.diff"
 Content-Type: text/x-patch; name="5300_SIMPLE_override.diff"; charset="UTF-8"
 Content-Transfer-Encoding: 7bit
 
 Index: ciss.c
 ===================================================================
 --- ciss.c	(revision 246848)
 +++ ciss.c	(working copy)
 @@ -282,6 +282,7 @@
  #define CISS_BOARD_SA5		1
  #define CISS_BOARD_SA5B		2
  #define CISS_BOARD_NOMSI	(1<<4)
 +#define CISS_BOARD_SIMPLE       (1<<5)
  
  static struct
  {
 @@ -290,7 +291,8 @@
      int		flags;
      char	*desc;
  } ciss_vendor_data[] = {
 -    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI,	"Compaq Smart Array 5300" },
 +    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI|CISS_BOARD_SIMPLE,
 +                                                        "Compaq Smart Array 5300" },
      { 0x0e11, 0x4080, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 5i" },
      { 0x0e11, 0x4082, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 532" },
      { 0x0e11, 0x4083, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"HP Smart Array 5312" },
 @@ -682,8 +684,15 @@
  	supported_methods = CISS_TRANSPORT_METHOD_PERF;
  	break;
      default:
 -	supported_methods = sc->ciss_cfg->supported_methods;
 -	break;
 +        /*
 +         * Override the capabilities of the BOARD and specify SIMPLE
 +         * MODE 
 +         */
 +        if (ciss_vendor_data[i].flags & CISS_BOARD_SIMPLE)
 +                supported_methods = CISS_TRANSPORT_METHOD_SIMPLE;
 +        else
 +                supported_methods = sc->ciss_cfg->supported_methods;
 +        break;
      }
  
  setup:
 
 --=-nTmSV1/F77quNU8ix3c/--
 

From: "Alexander Kirpa" <freebsd-bug@kirpa.com>
To: bug-followup@FreeBSD.org, freebsd-bug@kirpa.com, sbruno@FreeBSD.org
Cc:  
Subject: Re: kern/153361: [ciss] Smart Array 5300 boot/detect drive problem
Date: Tue, 19 Feb 2013 01:30:18 +0200

 Thank you for patch. Problem solved.
 SA 5300 now correct work in simple mode.
 
 You have posibility update hpacucli utility for whole SA family?
 1. on 64bit systems it not work.
 2. on 32bit systems he work, but have huge garbage output
 
 Best regards,
  Alexander Kirpa
 
 On 15 Feb 2013, at 12:00, Sean Bruno wrote:
 
 > I've come up with this patch to only allow "simple" mode on the SA
 > 5300. My tests show that this controller stops working at the
 > introduction of "performant mode".
 

From: Sean Bruno <seanbru@yahoo-inc.com>
To: bug-followup@FreeBSD.org, freebsd-bug@kirpa.com
Cc:  
Subject: Re: kern/153361: [ciss] Smart Array 5300 boot/detect drive problem
Date: Mon, 25 Feb 2013 09:57:54 -0800

 No, I don't have that source code.  That is HP supported-ish.
 
 Open a seperate P/R for it and I'll point their engineers at it.
 
 Sean
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/153361: commit references a PR
Date: Mon, 25 Feb 2013 19:23:13 +0000 (UTC)

 Author: sbruno
 Date: Mon Feb 25 19:22:56 2013
 New Revision: 247279
 URL: http://svnweb.freebsd.org/changeset/base/247279
 
 Log:
   The 5300 series ciss(4) board does not work in performant mode with our
   currnet initialization sequence.  Set it to simple mode only so that
   systems can be updated from stable/7 to newer installations.
   
   At some point, we should figure out why we cannot initialize performant
   mode on this board.
   
   PR:		kern/153361
   Reviewed by:	scottl
   Obtained from:	Yahoo! Inc.
   MFC after:	2 weeks
 
 Modified:
   head/sys/dev/ciss/ciss.c
 
 Modified: head/sys/dev/ciss/ciss.c
 ==============================================================================
 --- head/sys/dev/ciss/ciss.c	Mon Feb 25 19:14:06 2013	(r247278)
 +++ head/sys/dev/ciss/ciss.c	Mon Feb 25 19:22:56 2013	(r247279)
 @@ -282,6 +282,7 @@ TUNABLE_INT("hw.ciss.force_interrupt", &
  #define CISS_BOARD_SA5		1
  #define CISS_BOARD_SA5B		2
  #define CISS_BOARD_NOMSI	(1<<4)
 +#define CISS_BOARD_SIMPLE       (1<<5)
  
  static struct
  {
 @@ -290,7 +291,8 @@ static struct
      int		flags;
      char	*desc;
  } ciss_vendor_data[] = {
 -    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI,	"Compaq Smart Array 5300" },
 +    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI|CISS_BOARD_SIMPLE,
 +                                                        "Compaq Smart Array 5300" },
      { 0x0e11, 0x4080, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 5i" },
      { 0x0e11, 0x4082, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 532" },
      { 0x0e11, 0x4083, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"HP Smart Array 5312" },
 @@ -682,8 +684,15 @@ ciss_init_pci(struct ciss_softc *sc)
  	supported_methods = CISS_TRANSPORT_METHOD_PERF;
  	break;
      default:
 -	supported_methods = sc->ciss_cfg->supported_methods;
 -	break;
 +        /*
 +         * Override the capabilities of the BOARD and specify SIMPLE
 +         * MODE 
 +         */
 +        if (ciss_vendor_data[i].flags & CISS_BOARD_SIMPLE)
 +                supported_methods = CISS_TRANSPORT_METHOD_SIMPLE;
 +        else
 +                supported_methods = sc->ciss_cfg->supported_methods;
 +        break;
      }
  
  setup:
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/153361: commit references a PR
Date: Tue, 19 Mar 2013 11:07:24 +0000 (UTC)

 Author: sbruno
 Date: Tue Mar 19 11:07:12 2013
 New Revision: 248494
 URL: http://svnweb.freebsd.org/changeset/base/248494
 
 Log:
   MFC r247279
   
   The 5300 series ciss(4) board does not work in performant mode with our
   currnet initialization sequence.  Set it to simple mode only so that
   systems can be updated from stable/7 to newer installations.
   
   At some point, we should figure out why we cannot initialize performant
   mode on this board.
   
   PR:		kern/153361
   Reviewed by:	scottl
   Obtained from:	Yahoo! Inc.
 
 Modified:
   stable/9/sys/dev/ciss/ciss.c
 Directory Properties:
   stable/9/sys/   (props changed)
   stable/9/sys/dev/   (props changed)
 
 Modified: stable/9/sys/dev/ciss/ciss.c
 ==============================================================================
 --- stable/9/sys/dev/ciss/ciss.c	Tue Mar 19 07:47:51 2013	(r248493)
 +++ stable/9/sys/dev/ciss/ciss.c	Tue Mar 19 11:07:12 2013	(r248494)
 @@ -281,6 +281,7 @@ TUNABLE_INT("hw.ciss.force_interrupt", &
  #define CISS_BOARD_SA5		1
  #define CISS_BOARD_SA5B		2
  #define CISS_BOARD_NOMSI	(1<<4)
 +#define CISS_BOARD_SIMPLE       (1<<5)
  
  static struct
  {
 @@ -289,7 +290,8 @@ static struct
      int		flags;
      char	*desc;
  } ciss_vendor_data[] = {
 -    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI,	"Compaq Smart Array 5300" },
 +    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI|CISS_BOARD_SIMPLE,
 +                                                        "Compaq Smart Array 5300" },
      { 0x0e11, 0x4080, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 5i" },
      { 0x0e11, 0x4082, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 532" },
      { 0x0e11, 0x4083, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"HP Smart Array 5312" },
 @@ -681,8 +683,15 @@ ciss_init_pci(struct ciss_softc *sc)
  	supported_methods = CISS_TRANSPORT_METHOD_PERF;
  	break;
      default:
 -	supported_methods = sc->ciss_cfg->supported_methods;
 -	break;
 +        /*
 +         * Override the capabilities of the BOARD and specify SIMPLE
 +         * MODE 
 +         */
 +        if (ciss_vendor_data[i].flags & CISS_BOARD_SIMPLE)
 +                supported_methods = CISS_TRANSPORT_METHOD_SIMPLE;
 +        else
 +                supported_methods = sc->ciss_cfg->supported_methods;
 +        break;
      }
  
  setup:
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/153361: commit references a PR
Date: Thu, 28 Mar 2013 17:27:54 +0000 (UTC)

 Author: sbruno
 Date: Thu Mar 28 17:27:46 2013
 New Revision: 248839
 URL: http://svnweb.freebsd.org/changeset/base/248839
 
 Log:
   MFC r247279
   
   The 5300 series ciss(4) board does not work in performant mode with our
   currnet initialization sequence.  Set it to simple mode only so that
   systems can be updated from stable/7 to newer installations.
   
   At some point, we should figure out why we cannot initialize performant
   mode on this board.
   
   PR:		kern/153361
   Reviewed by:	scottl
   Obtained from:	Yahoo! Inc
 
 Modified:
   stable/8/sys/dev/ciss/ciss.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/dev/   (props changed)
   stable/8/sys/dev/ciss/   (props changed)
 
 Modified: stable/8/sys/dev/ciss/ciss.c
 ==============================================================================
 --- stable/8/sys/dev/ciss/ciss.c	Thu Mar 28 17:07:02 2013	(r248838)
 +++ stable/8/sys/dev/ciss/ciss.c	Thu Mar 28 17:27:46 2013	(r248839)
 @@ -281,6 +281,7 @@ TUNABLE_INT("hw.ciss.force_interrupt", &
  #define CISS_BOARD_SA5		1
  #define CISS_BOARD_SA5B		2
  #define CISS_BOARD_NOMSI	(1<<4)
 +#define CISS_BOARD_SIMPLE       (1<<5)
  
  static struct
  {
 @@ -289,7 +290,8 @@ static struct
      int		flags;
      char	*desc;
  } ciss_vendor_data[] = {
 -    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI,	"Compaq Smart Array 5300" },
 +    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI|CISS_BOARD_SIMPLE,
 +                                                        "Compaq Smart Array 5300" },
      { 0x0e11, 0x4080, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 5i" },
      { 0x0e11, 0x4082, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 532" },
      { 0x0e11, 0x4083, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"HP Smart Array 5312" },
 @@ -681,8 +683,15 @@ ciss_init_pci(struct ciss_softc *sc)
  	supported_methods = CISS_TRANSPORT_METHOD_PERF;
  	break;
      default:
 -	supported_methods = sc->ciss_cfg->supported_methods;
 -	break;
 +        /*
 +         * Override the capabilities of the BOARD and specify SIMPLE
 +         * MODE 
 +         */
 +        if (ciss_vendor_data[i].flags & CISS_BOARD_SIMPLE)
 +                supported_methods = CISS_TRANSPORT_METHOD_SIMPLE;
 +        else
 +                supported_methods = sc->ciss_cfg->supported_methods;
 +        break;
      }
  
  setup:
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/153361: commit references a PR
Date: Thu, 28 Mar 2013 18:06:26 +0000 (UTC)

 Author: sbruno
 Date: Thu Mar 28 18:06:09 2013
 New Revision: 248841
 URL: http://svnweb.freebsd.org/changeset/base/248841
 
 Log:
   MFC r247279
   
   The 5300 series ciss(4) board does not work in performant mode with our
   currnet initialization sequence.  Set it to simple mode only so that
   systems can be updated from stable/7 to newer installations.
   
   At some point, we should figure out why we cannot initialize performant
   mode on this board.
   
   PR:		kern/153361
   Reviewed by:	scottl
   Approved by:	re (marius@)
 
 Modified:
   releng/8.4/sys/dev/ciss/ciss.c
 Directory Properties:
   releng/8.4/sys/   (props changed)
   releng/8.4/sys/dev/   (props changed)
   releng/8.4/sys/dev/ciss/   (props changed)
 
 Modified: releng/8.4/sys/dev/ciss/ciss.c
 ==============================================================================
 --- releng/8.4/sys/dev/ciss/ciss.c	Thu Mar 28 18:03:39 2013	(r248840)
 +++ releng/8.4/sys/dev/ciss/ciss.c	Thu Mar 28 18:06:09 2013	(r248841)
 @@ -281,6 +281,7 @@ TUNABLE_INT("hw.ciss.force_interrupt", &
  #define CISS_BOARD_SA5		1
  #define CISS_BOARD_SA5B		2
  #define CISS_BOARD_NOMSI	(1<<4)
 +#define CISS_BOARD_SIMPLE       (1<<5)
  
  static struct
  {
 @@ -289,7 +290,8 @@ static struct
      int		flags;
      char	*desc;
  } ciss_vendor_data[] = {
 -    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI,	"Compaq Smart Array 5300" },
 +    { 0x0e11, 0x4070, CISS_BOARD_SA5|CISS_BOARD_NOMSI|CISS_BOARD_SIMPLE,
 +                                                        "Compaq Smart Array 5300" },
      { 0x0e11, 0x4080, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 5i" },
      { 0x0e11, 0x4082, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"Compaq Smart Array 532" },
      { 0x0e11, 0x4083, CISS_BOARD_SA5B|CISS_BOARD_NOMSI,	"HP Smart Array 5312" },
 @@ -681,8 +683,15 @@ ciss_init_pci(struct ciss_softc *sc)
  	supported_methods = CISS_TRANSPORT_METHOD_PERF;
  	break;
      default:
 -	supported_methods = sc->ciss_cfg->supported_methods;
 -	break;
 +        /*
 +         * Override the capabilities of the BOARD and specify SIMPLE
 +         * MODE 
 +         */
 +        if (ciss_vendor_data[i].flags & CISS_BOARD_SIMPLE)
 +                supported_methods = CISS_TRANSPORT_METHOD_SIMPLE;
 +        else
 +                supported_methods = sc->ciss_cfg->supported_methods;
 +        break;
      }
  
  setup:
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: sbruno 
State-Changed-When: Thu Apr 4 15:15:14 UTC 2013 
State-Changed-Why:  
This has been resolved on all stable branches and current at this time. 

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