1. 13 2月, 2010 1 次提交
  2. 08 1月, 2010 1 次提交
  3. 04 12月, 2009 1 次提交
  4. 03 12月, 2009 1 次提交
    • M
      sunhme: fix dma warning in Sun HME · ff236f7a
      Mikulas Patocka 提交于
      Fix dma-api-checking warnings in Sun HME
      
      Sun HME driver is mapping the first fragment with dma_map_single and subsequent
      fragments with dma_map_page. It is unmapping all fragments with dma_unmap_single
      and that produces the warning.
      
      This patch changes it so that it unmaps only the first fragment with
      dma_unmap_single and subsequent fragments are unmapped with dma_unmap_page.
      
      WARNING: at lib/dma-debug.c:816 check_unmap+0x3ac/0x780()
      hme 0000:01:01.1: DMA-API: device driver frees DMA memory with wrong function [device address=0x00000000c1082000] [size=32 bytes] [mapped as page] [unmapped as single]
      Modules linked in: nbd sunhme openpromfs sermouse unix
      Call Trace:
       [0000000000456910] warn_slowpath_common+0x50/0xa0
       [0000000000571f4c] check_unmap+0x3ac/0x780
       [0000000000572570] debug_dma_unmap_page+0x50/0x60
       [000000001002f5fc] happy_meal_tx+0x11c/0x260 [sunhme]
       [000000001002fc4c] happy_meal_interrupt+0xcc/0xe0 [sunhme]
       [0000000000492d94] handle_fasteoi_irq+0x74/0x100
       [000000000042ac0c] handler_irq+0xcc/0x100
       [0000000000426a54] valid_addr_bitmap_patch+0x14/0x1c0
       [0000000000665de0] _spin_unlock_irqrestore+0x40/0x60
       [0000000000462bb8] mod_timer+0x118/0x1a0
       [00000000005ec254] sk_reset_timer+0x14/0x40
       [0000000000635e4c] tcp_event_new_data_sent+0x8c/0xc0
       [0000000000639374] __tcp_push_pending_frames+0x34/0xc0
      ---[ end trace 73d5c42c1e9f11c4 ]---
      Mapped at:
       [<000000001002f148>] happy_meal_start_xmit+0x308/0x480 [sunhme]
       [<00000000005fc858>] dev_hard_start_xmit+0x318/0x3c0
       [<000000000060fec4>] sch_direct_xmit+0x1a4/0x200
       [<00000000005fced0>] dev_queue_xmit+0x410/0x560
       [<0000000000604a1c>] neigh_resolve_output+0xfc/0x300
      Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ff236f7a
  5. 19 11月, 2009 1 次提交
  6. 01 9月, 2009 1 次提交
  7. 06 7月, 2009 1 次提交
  8. 13 6月, 2009 1 次提交
  9. 09 3月, 2009 1 次提交
  10. 11 2月, 2009 1 次提交
    • M
      sunhme: Fix Quattro HME irq registration on proble failures · 7b7a799d
      Meelis Roos 提交于
      Currently, the sunhme driver installs SBus Quattro interrupt handler 
      when at least one HME card was initialized correctly and at least one 
      Quattro card is present. This breaks when a Quattro card fails 
      initialization for whatever reason - IRQ is registered and OOPS happens 
      when it fires.
      
      The solution, as suggested by David Miller, was to keep track which 
      cards of the Quattro bundles have been initialized, and request/free the 
      Quattro IRQ only when all four devices have been successfully 
      initialized.
      
      The patch only touches SBus initialization - PCI init already resets the 
      card pointer to NULL on init failure.
      
      The patch has been tested on Sun E3500 with SBus and PCI single HME 
      cards and one PCI Quattro HME card in a situation where any PCI card 
      failed init when the SBus routines tried to init them by mistake.
      
      Additionally it replaces Quattro request_irq panic with error return - 
      if this card fails to work, at least let the others work.
      
      Tested on E450 with PCI HME and PCI Quad HME.
      
      [ Minor coding style fixups -DaveM ]
      Signed-off-by: NMeelis Roos <mroos@linux.ee>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7b7a799d
  11. 07 2月, 2009 1 次提交
  12. 08 1月, 2009 1 次提交
  13. 13 11月, 2008 1 次提交
    • W
      netdevice: safe convert to netdev_priv() #part-3 · 8f15ea42
      Wang Chen 提交于
      We have some reasons to kill netdev->priv:
      1. netdev->priv is equal to netdev_priv().
      2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
         netdev_priv() is more flexible than netdev->priv.
      But we cann't kill netdev->priv, because so many drivers reference to it
      directly.
      
      This patch is a safe convert for netdev->priv to netdev_priv(netdev).
      Since all of the netdev->priv is only for read.
      But it is too big to be sent in one mail.
      I split it to 4 parts and make every part smaller than 100,000 bytes,
      which is max size allowed by vger.
      Signed-off-by: NWang Chen <wangchen@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8f15ea42
  14. 04 11月, 2008 1 次提交
  15. 28 10月, 2008 1 次提交
  16. 31 8月, 2008 1 次提交
  17. 29 8月, 2008 4 次提交
  18. 21 7月, 2008 1 次提交
  19. 05 6月, 2008 1 次提交
  20. 29 1月, 2008 2 次提交
  21. 16 11月, 2007 1 次提交
  22. 06 11月, 2007 1 次提交
  23. 11 10月, 2007 2 次提交
  24. 12 7月, 2007 1 次提交
    • A
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok 提交于
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
  25. 11 7月, 2007 1 次提交
  26. 26 4月, 2007 5 次提交
  27. 22 4月, 2007 1 次提交
  28. 04 12月, 2006 2 次提交
  29. 03 12月, 2006 1 次提交
  30. 07 10月, 2006 1 次提交