Subject: Re: kern/30531: lsilogic raid array crawls
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: rivo nurges <rix@estpak.ee>
List: netbsd-bugs
Date: 02/13/2006 11:25:01
The following reply was made to PR kern/30531; it has been noted by GNATS.

From: rivo nurges <rix@estpak.ee>
To: thorpej@shagadelic.org, Patrick Welche <prlw1@newn.cam.ac.uk>
Cc: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/30531: lsilogic raid array crawls
Date: Mon, 13 Feb 2006 11:23:17 +0000

 Hi!
 
 >   I am not plugged into a PCIX slot.
 > 
 >  
 >  [re the bug system: I only just checked the bug database because I was about
 >  to report that this patch:
 > 
 >  
 >  Index: mpt_pci.c
 >  ===================================================================
 >  RCS file: /cvsroot/src/sys/dev/pci/mpt_pci.c,v
 >  retrieving revision 1.5
 >  diff -u -r1.5 mpt_pci.c
 >  --- mpt_pci.c   27 Feb 2005 00:27:33 -0000      1.5
 >  +++ mpt_pci.c   30 Jun 2005 09:17:01 -0000
 >  @@ -210,7 +210,20 @@
 >          pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, reg);
 > 
 >   
 >          /*
 >  -        * Ensure that the ROM is diabled.
 >  +        * quirk from mptbase.c,mptlinux-3.03.02-src.tar.gz
 >  +        * Disable split transactions for rev < 8.
 >  +        * XXX here be magic constants...
 >  +        */
 >  +       if ((PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SYMBIOS_1030)
 >  +           && (PCI_REVISION(pa->pa_class) < 0x08)) {
 >  +               aprint_normal("%s: applying 1030
 > quirk\n",mpt->sc_dev.dv_xname);
 >  +               reg = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x6a);
 >  +               reg &= 0x8f;
 >  +               pci_conf_write(pa->pa_pc, pa->pa_tag, 0x6a, reg);
 >  +       }
 >  +
 >  +       /*
 >  +        * Ensure that the ROM is disabled.
 >           */
 >          reg = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_MAPREG_ROM);
 >          reg &= ~1;
 >  @@ -253,7 +266,7 @@
 >           * Hard resets are known to screw up the BAR for diagnostic
 >           * memory accesses (Mem1).
 >           *
 >  -        * Using Mem1 is know to make the chip stop responding to
 >  +        * Using Mem1 is known to make the chip stop responding to
 >           * configuration cycles, so we need to save it now.
 >           */
 >          mpt_pci_read_config_regs(mpt);
 
 This patch doesn't help on kern/30531 however it will fix kern/26825 like
 symptoms on 1030 plugged into PCIX slot.
 
 $ dmesg | grep mpt                                                             
 mpt0 at pci6 dev 3 function 0: LSI Logic 53c1030 Ultra320 SCSI
 mpt0: applying 1030 quirk
 mpt0: interrupting at irq 5
 
 -- 
 rix
 http://www.ripe.net/perl/whois?rix@estpak.ee