Quiet down "SCSI parity error detected" messages on bootup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This patch helps my system boot faster, esp when using a serial
console, since it ratelimits the "SCSI parity error detected" messages
on bootup.  I've got a dual channel card attached to an old P1000
library with two DLT70000 tape drives installed.  Works great, just
takes forever to bootup when I have tons of message spewing out.

Now they look like this:

  [   66.245351] sym0: SCSI parity error detected: SCR2=1 DBC=11000028 SBCL=ae
  [   66.327105] sym0: SCSI parity error detected: SCR2=1 DBC=11000028 SBCL=ae
  [   66.408925] sym0: SCSI parity error detected: SCR2=1 DBC=11000028 SBCL=ae
  [   66.490753] sym0: SCSI parity error detected: SCR2=1 DBC=11000028 SBCL=ae
  [   67.061737] scsi 1:0:3:0: ABORT operation started
  [   71.556526] __ratelimit: 11248 callbacks suppressed
  [   71.614935] sym0: SCSI parity error detected: SCR2=1 DBC=11000028 SBCL=ae
  [   71.696665] sym0: SCSI parity error detected: SCR2=1 DBC=11000028 SBCL=ae
  [   71.778415] sym0: SCSI parity error detected: SCR2=1 DBC=11000028 SBCL=ae
  [   71.860242] sym0: SCSI parity error detected: SCR2=1 DBC=11000028 SBCL=ae
  [   71.942065] sym0: SCSI parity error detected: SCR2=1 DBC=11000028 SBCL=ae


and it's *much* nicer.  But I'll bet this patch is space damaged when
I send it.   I'll resend it if need be from home.

Thanks.



--- ../2.6.29/drivers/scsi/sym53c8xx_2/sym_hipd.c       2009-05-29
    13:09:50.000000000 -0400
+++ drivers/scsi/sym53c8xx_2/sym_hipd.c 2009-05-21 11:11:17.000000000
    -0400
@@ -2278,8 +2278,9 @@
        int phase       = cmd & 7;
        struct sym_ccb *cp      = sym_ccb_from_dsa(np, dsa);

-       printf("%s: SCSI parity error detected: SCR1=%d DBC=%x
        SBCL=%x\n",
-               sym_name(np), hsts, dbc, sbcl);
+       if (printk_ratelimit())
+               printf("%s: SCSI parity error detected: SCR2=%d DBC=%x SBCL=%x\n",
+                       sym_name(np), hsts, dbc, sbcl);

        /*
         *  Check that the chip is connected to the SCSI BUS.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux