1. 24 6月, 2013 1 次提交
  2. 20 6月, 2013 1 次提交
  3. 18 6月, 2013 1 次提交
  4. 03 5月, 2013 1 次提交
  5. 01 5月, 2013 1 次提交
    • M
      drivers: net: cpsw: fix kernel warn on cpsw irq enable · 7dcf313a
      Mugunthan V N 提交于
      With the commit a11fbba9 (net/cpsw: fix irq_disable() with threaded interrupts)
      from Sebastian Siewior, a kernel warning is generated as below. This warning
      is generated as the irq_enabled is not initialized for the primary interface
      and in probe it is initialized for the second interface. This patch moves
      irq_enabled initialization from second interface to primary interface.
      
      [    3.049173] net eth0: phy found : id is : 0x4dd074
      [    3.054552] net eth0: phy found : id is : 0x4dd074
      [    3.070421] ------------[ cut here ]------------
      [    3.075308] WARNING: at kernel/irq/manage.c:437 enable_irq+0x3c/0x74()
      [    3.082173] Unbalanced enable for IRQ 56
      [    3.086299] Modules linked in:
      [    3.089557] [<c001abcc>] (unwind_backtrace+0x0/0xf0) from [<c004294c>] (warn_slowpath_common+0x4c/0x68)
      [    3.099450] [<c004294c>] (warn_slowpath_common+0x4c/0x68) from [<c00429fc>] (warn_slowpath_fmt+0x30/0x40)
      [    3.109521] [<c00429fc>] (warn_slowpath_fmt+0x30/0x40) from [<c00a29fc>] (enable_irq+0x3c/0x74)
      [    3.118681] [<c00a29fc>] (enable_irq+0x3c/0x74) from [<c03a7818>] (cpsw_ndo_open+0x61c/0x684)
      [    3.127669] [<c03a7818>] (cpsw_ndo_open+0x61c/0x684) from [<c0445c08>] (__dev_open+0x9c/0xf8)
      [    3.136646] [<c0445c08>] (__dev_open+0x9c/0xf8) from [<c0445e34>] (__dev_change_flags+0x78/0x13c)
      [    3.145988] [<c0445e34>] (__dev_change_flags+0x78/0x13c) from [<c0445f64>] (dev_change_flags+0x10/0x48)
      [    3.155884] [<c0445f64>] (dev_change_flags+0x10/0x48) from [<c0736d88>] (ip_auto_config+0x198/0x111c)
      [    3.165592] [<c0736d88>] (ip_auto_config+0x198/0x111c) from [<c00086a4>] (do_one_initcall+0x34/0x180)
      [    3.175309] [<c00086a4>] (do_one_initcall+0x34/0x180) from [<c07078f8>] (kernel_init_freeable+0xfc/0x1c8)
      [    3.185393] [<c07078f8>] (kernel_init_freeable+0xfc/0x1c8) from [<c04f36ec>] (kernel_init+0x8/0xe4)
      [    3.194929] [<c04f36ec>] (kernel_init+0x8/0xe4) from [<c00133d0>] (ret_from_fork+0x14/0x24)
      [    3.203712] ---[ end trace d6f979da080bc391 ]---
      
      Cc: Sebastian Siewior <bigeasy@linutronix.de>
      Signed-off-by: NMugunthan V N <mugunthanvnm@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7dcf313a
  6. 25 4月, 2013 8 次提交
  7. 20 4月, 2013 2 次提交
  8. 16 4月, 2013 1 次提交
  9. 28 3月, 2013 1 次提交
  10. 21 3月, 2013 1 次提交
  11. 13 3月, 2013 5 次提交
  12. 27 2月, 2013 1 次提交
  13. 19 2月, 2013 1 次提交
  14. 13 2月, 2013 3 次提交
  15. 07 2月, 2013 2 次提交
  16. 05 2月, 2013 1 次提交
  17. 19 1月, 2013 1 次提交
    • M
      net: ethernet: davinci_cpdma: Add boundary for rx and tx descriptors · fae50823
      Mugunthan V N 提交于
      When there is heavy transmission traffic in the CPDMA, then Rx descriptors
      memory is also utilized as tx desc memory looses all rx descriptors and the
      driver stops working then.
      
      This patch adds boundary for tx and rx descriptors in bd ram dividing the
      descriptor memory to ensure that during heavy transmission tx doesn't use
      rx descriptors.
      
      This patch is already applied to davinci_emac driver, since CPSW and
      davici_dmac shares the same CPDMA, moving the boundry seperation from
      Davinci EMAC driver to CPDMA driver which was done in the following
      commit
      
      commit 86d8c07f
      Author: Sascha Hauer <s.hauer@pengutronix.de>
      Date:   Tue Jan 3 05:27:47 2012 +0000
      
          net/davinci: do not use all descriptors for tx packets
      
          The driver uses a shared pool for both rx and tx descriptors.
          During open it queues fixed number of 128 descriptors for receive
          packets. For each received packet it tries to queue another
          descriptor. If this fails the descriptor is lost for rx.
          The driver has no limitation on tx descriptors to use, so it
          can happen during a nmap / ping -f attack that the driver
          allocates all descriptors for tx and looses all rx descriptors.
          The driver stops working then.
          To fix this limit the number of tx descriptors used to half of
          the descriptors available, the rx path uses the other half.
      
          Tested on a custom board using nmap / ping -f to the board from
          two different hosts.
      Signed-off-by: NMugunthan V N <mugunthanvnm@ti.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fae50823
  18. 15 1月, 2013 1 次提交
  19. 07 1月, 2013 1 次提交
  20. 04 12月, 2012 1 次提交
  21. 29 11月, 2012 1 次提交
  22. 15 11月, 2012 3 次提交
  23. 04 11月, 2012 1 次提交