1. 29 4月, 2008 1 次提交
  2. 08 2月, 2008 1 次提交
    • B
      drivers/edac: pci: broken parity regression · 6b09ff9d
      Bryan Boatright 提交于
      Using the EDAC code in kernel.org kernel version 2.6.23.8 I am seeing the
      following problem:
      
          In the kernel there is a pci device attribute located in sysfs that is
          checked by the EDAC PCI scanning code. If that attribute is set,
          PCI parity/error scannining is skipped for that device. The attribute
          is:
      
                  broken_parity_status
      
          as is located in /sys/devices/pci<XXX>/0000:XX:YY.Z directorys for
          PCI devices.
      
      I don't think this check was actually implemented.  I have a misbehaved card
      that reports a parity error every 1000 ms:
      
      Nov 25 07:28:43 beta kernel: EDAC PCI: Master Data Parity Error on 0000:05:01.0
      Nov 25 07:28:44 beta kernel: EDAC PCI: Master Data Parity Error on 0000:05:01.0
      Nov 25 07:28:45 beta kernel: EDAC PCI: Master Data Parity Error on 0000:05:01.0
      
      Setting that card's broken_parity_status bit did not mask the error:
      
      echo "1" > /sys/bus/pci/devices/0000:05:01.0/broken_parity_status
      
      I looked through the EDAC code and did not readily see any reference to
      broken_parity_status at all (which makes sense based on the behavior I am
      seeing).  I applied the following patch as a proof-of-concept and now EDAC's
      PCI parity error reporting behaves as documented:
      
      bryan
      
      Good regression find, bryan. It used to work. sigh.
      I added more logic to your patch, for more coverage of the error.
      
      Doug T
      Signed-off-by: NBryan Boatright <b1@omega71.com>
      Signed-off-by: NDoug Thompson <dougthompson@xmisson.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6b09ff9d
  3. 25 1月, 2008 2 次提交
  4. 27 7月, 2007 1 次提交
    • D
      drivers/edac: fix edac_pci sysfs · d4c1465b
      Doug Thompson 提交于
      This patch fixes sysfs exit code for the EDAC PCI device in a similiar manner
      and the previous fixes for EDAC_MC and EDAC_DEVICE.
      
      It removes the old (and incorrect) completion model and uses reference counts
      on per instance kobjects and on the edac core module.
      
      This pattern was applied to the edac_mc and edac_device code, but the EDAC PCI
      code was missed.  In addition, this fixes a system hang after a low level
      driver was unloaded.  (A cleanup function was called twice, which really
      screwed things up)
      
      Cc: Greg KH <greg@kroah.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NDoug Thompson <dougthompson@xmission.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d4c1465b
  5. 20 7月, 2007 7 次提交