1. 17 2月, 2010 1 次提交
    • B
      powerpc/eeh: Fix a bug when pci structure is null · 8d3d50bf
      Breno Leitao 提交于
      During a EEH recover, the pci_dev structure can be null, mainly if an
      eeh event is detected during cpi config operation. In this case, the
      pci_dev will not be known (and will be null) the kernel will crash
      with the following message:
      
      Unable to handle kernel paging request for data at address 0x000000a0
      Faulting instruction address: 0xc00000000006b8b4
      Oops: Kernel access of bad area, sig: 11 [#1]
      
      NIP [c00000000006b8b4] .eeh_event_handler+0x10c/0x1a0
      LR [c00000000006b8a8] .eeh_event_handler+0x100/0x1a0
      Call Trace:
      [c0000003a80dff00] [c00000000006b8a8] .eeh_event_handler+0x100/0x1a0
      [c0000003a80dff90] [c000000000031f1c] .kernel_thread+0x54/0x70
      
      The bug occurs because pci_name() tries to access a null pointer.
      This patch just guarantee that pci_name() is not called on Null pointers.
      Signed-off-by: NBreno Leitao <leitao@linux.vnet.ibm.com>
      Signed-off-by: NLinas Vepstas <linasvepstas@gmail.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      8d3d50bf
  2. 10 9月, 2009 1 次提交
  3. 06 11月, 2008 1 次提交
  4. 22 7月, 2008 1 次提交
  5. 09 7月, 2008 1 次提交
  6. 29 4月, 2008 1 次提交
  7. 24 4月, 2008 1 次提交
    • M
      [POWERPC] Add CONFIG_PPC_PSERIES_DEBUG to enable debugging for platforms/pseries · 36f8a2c4
      Michael Ellerman 提交于
      Add a DEBUG config setting which turns on all (most) of the debugging
      under platforms/pseries.
      
      To have this take effect we need to remove all the #undef DEBUG's, in
      various files. We leave the #undef DEBUG in platforms/pseries/lpar.c,
      as this enables debugging printks from the low-level hash table routines,
      and tends to make your system unusable. If you want those enabled you
      still have to turn them on by hand.
      
      Also some of the RAS code has a DEBUG block which causes a functional
      change, so I've keyed this off a different (non-existant) debug #define.
      
      This is only enabled if you have PPC_EARLY_DEBUG enabled also.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      36f8a2c4
  8. 07 4月, 2008 1 次提交
  9. 17 1月, 2008 1 次提交
  10. 03 12月, 2007 2 次提交
  11. 08 11月, 2007 2 次提交
  12. 02 10月, 2007 1 次提交
  13. 17 8月, 2007 3 次提交
  14. 14 6月, 2007 4 次提交
  15. 10 5月, 2007 1 次提交
  16. 09 5月, 2007 2 次提交
  17. 08 5月, 2007 1 次提交
  18. 13 4月, 2007 1 次提交
  19. 22 3月, 2007 8 次提交
  20. 13 2月, 2007 1 次提交
  21. 07 2月, 2007 1 次提交
    • L
      [POWERPC] pSeries: EEH improperly enabled for some Power4 systems · 25c4a46f
      Linas Vepstas 提交于
      It appears that EEH is improperly enabled for some Power4 systems.
      On these systems, the ibm,set-eeh-option returns a value of success
      even when EEH is not supported on the given node. Thus, an explicit
      check for support is required.
      
      During boot, on power4, without this patch, one sees messages
      similar to:
      
      EEH: event on unsupported device, rc=0 dn=/pci@400000000110/IBM,sp@1
      EEH: event on unsupported device, rc=0 dn=/pci@400000000110/pci@2
      EEH: event on unsupported device, rc=0 dn=/pci@400000000110/pci@2,2
      etc.
      
      The patch makes these go away.
      
      Without this patch, EEH recovery does seem to work correctly for
      at least some devices (I tested ethernet e1000), but fails to
      recover others (the Emulex LightPulse LPFC, most notably).
      Off the top of my head, I don't remember why some devices are
      affected, but not others.
      
      The PAPR indicates that the correct way to test for EEH is as
      done in this patch; its not clear to me if this was in the PAPR
      all along, or recently added; if it was there all along, its not
      clear to me why this hadn't been fixed long ago. I suspect only
      certain firmware levels are affected.
      Signed-off-by: NLinas Vepstas <linas@austin.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      25c4a46f
  22. 08 12月, 2006 1 次提交
  23. 26 9月, 2006 1 次提交
  24. 22 9月, 2006 1 次提交
  25. 21 9月, 2006 1 次提交