1. 03 5月, 2014 2 次提交
  2. 01 5月, 2014 13 次提交
  3. 29 4月, 2014 2 次提交
  4. 28 4月, 2014 15 次提交
  5. 27 4月, 2014 8 次提交
    • J
      i40e: fix Timesync Tx interrupt handler code · cafa1fca
      Jacob Keller 提交于
      This patch fixes the PTP Tx timestamp interrupt handler. The original
      code misinterpreted the interrupt handler design. We were clearing the
      ena_mask bit for the Timesync interrupts. This is done to indicate that
      the interrupt will be handled in a scheduled work item (instead of
      immediately) and that work item is responsible for re-enabling the
      interrupts. However, the Tx timestamp was being handled immediately and
      nothing was ever re-enabling it. This resulted in a single interrupt
      working for the life of the driver.
      
      This patch fixes the issue by instead clearing the bit from icr0 which
      is used to indicate that the interrupt was immediately handled and can
      be re-enabled right away. This patch also clears up a related issue due
      to writing the PRTTSYN_STAT_0 register, which was unintentionally
      clearing the cause bits for Timesync interrupts.
      
      Change-ID: I057bd70d53c302f60fab78246989cbdfa469d83b
      Signed-off-by: NJacob Keller <jacob.e.keller@intel.com>
      Acked-by: NAnjali Singhai Jain <anjali.singhai@intel.com>
      Acked-by: NShannon Nelson <shannon.nelson@intel.com>
      Tested-by: NKavindya Deegala <kavindya.s.deegala@intel.com>
      Signed-off-by: NJeff Kirsher <jeffrey.t.kirsher@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cafa1fca
    • D
      Merge tag 'linux-can-fixes-for-3.15-20140424' of git://gitorious.org/linux-can/linux-can · 69d268b7
      David S. Miller 提交于
      Marc Kleine-Budde says:
      
      ====================
      this is a pull request for net/master, for the v3.15 release cycle, consisting
      of 26 patches.
      
      Thomas Gleixner contributes 21 patches for the c_can driver, which address
      several shortcomings in the driver like hardware initialisation, concurrency,
      message ordering and poor performance. Two patches Oliver Hartkopp, one adds a
      missing lock to the sja1000_isa driver, the other one fixes the return value in
      the generic bit time configuration function. And finally a patch by Alexander
      Stein, that fixes the slcan driver to use the correct spinlock variant.
      
      To make it 26 patches, Wolfgang Grandegger patch for the c_can_pci
      driver, which enables the bus master only for MSI and a patch by
      Wolfram Sang, which converts the 'instance' in the c_can driver to the
      proper type.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      69d268b7
    • D
      Merge branch 'altera_tse' · 2b24f192
      David S. Miller 提交于
      Vince Bridgers says:
      
      ====================
      This series of patches addresses a handful of issues found in testing
      and reported by users of the Altera Triple Speed Ethernet soft IP.
      
      The patches address the following issues (in summary)
      
      1) The SGDMA soft IP was found to incorrectly process receive packets
         when the target physical address of the receive buffer was on
         a boundary that's not 32-bit aligned. One of the patches addresses
         this issue.
      2) The pause quanta was not being set by the driver, one patch of this
         series sets the pause quanta to the IEEE defined default value
         since the hardware reset value is 0.
      3) An issue in a error recovery path of the probe routine caused a
         kernel panic in the event a phy was probed and could not be found.
         A patch addresses this issue.
      4) A change was made to the driver name for Ethtool support, and
         comments added to support an addition to Ethtool to support
         the Altera Triple Speed Ethernet controller.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2b24f192
    • V
      Altera TSE: Change driver name used by Ethtool · 99514e11
      Vince Bridgers 提交于
      This patch changes the name used by Ethtool to something more
      conventional in preparation for TSE Ethtool register dump
      support to be added in the near future.
      Signed-off-by: NVince Bridgers <vbridgers2013@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      99514e11
    • V
      Altera TSE: Fix Panic in probe routine when phy probe fails · a7642009
      Vince Bridgers 提交于
      This patch addresses a fault in the error recovery path of the probe
      routine where the netdev structure was not being unregistered properly
      leading to a panic only when the phy probe failed.
      
      Abbreviated panic stack seen is as follows:
      
      (free_netdev+0xXX) from (altera_tse_probe+0xXX)
      (altera_tse_probe+0xXX) from (platform_drv_probe+0xXX)
      (platform_drv_probe+0xXX) from (driver_probe_device+0xXX)
      (driver_probe_device+0xXX) from (__driver_attach+0xXX)
      (__driver_attach+0xXX) from (bus_for_each_dev+0xXX)
      (bus_for_each_dev+0xXX) from (driver_attach+0xXX)
      (driver_attach+0xXX) from (bus_add_driver+0xXX)
      (bus_add_driver+0xXX) from (driver_register+0xXX)
      (driver_register+0xXX) from (__platform_driver_register+0xXX)
      (__platform_driver_register+0xXX) from (altera_tse_driver_init+0xXX)
      (altera_tse_driver_init+0xXX) from (do_one_initcall+0xXX)
      (do_one_initcall+0xXX) from (kernel_init_freeable+0xXX)
      (kernel_init_freeable+0xXX) from (kernel_init+0xXX)
      (kernel_init+0xXX) from (ret_from_fork+0xXX)
      Signed-off-by: NVince Bridgers <vbridgers2013@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a7642009
    • V
      Altera TSE: Set the Pause Quanta value to the IEEE default value · 5aec4ee3
      Vince Bridgers 提交于
      This patch initializes the pause quanta set for transmitted pause frames
      to the IEEE specified default of 0xffff.
      Signed-off-by: NVince Bridgers <vbridgers2013@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5aec4ee3
    • V
      Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA · 37c0ffaa
      Vince Bridgers 提交于
      This patch works around a recently discovered unaligned receive dma problem
      with the Altera SGMDA. The Altera SGDMA component cannot be configured to
      DMA data to unaligned addresses for receive packet operations from the
      Triple Speed Ethernet component because of a potential data transfer
      corruption that can occur. This patch addresses this issue by
      utilizing the shift 16 bits feature of the Altera Triple Speed Ethernet
      component and modifying the receive buffer physical addresses accordingly
      such that the target receive DMA address is always aligned on a 32-bit
      boundary.
      Signed-off-by: NVince Bridgers <vbridgers2013@gmail.com>
      Tested-by: NMatthew Gerlach <mgerlach@altera.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      37c0ffaa
    • D
      Merge branch 'bnx2x-net' · c2163260
      David S. Miller 提交于
      Yuval Mintz says:
      
      ====================
      bnx2x: SRIOV bug fixes
      
      This series contains 3 SRIOV bug fixes, 2 of which are regressions starting
      with commit 2dc33bbc "bnx2x: Remove the sriov VFOP mechanism".
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c2163260