1. 27 11月, 2012 3 次提交
    • G
      stmmac: add Rx watchdog support to mitigate the DMA irqs · 62a2ab93
      Giuseppe CAVALLARO 提交于
      GMAC devices newer than databook 3.40 has an embedded timer
      that can be used for mitigating the number of interrupts.
      So this patch adds this optimizations.
      
      At any rate, the Rx watchdog can be disable (on bugged HW) by
      passing from the platform the riwt_off field.
      
      In this implementation the rx timer stored in the Reg9 is fixed
      to the max value. This will be tuned by using ethtool.
      
      V2: added a platform parameter to force to disable the rx-watchdog
      for example on new core where it is bugged.
      
      V3: do not disable NAPI when Rx watchdog is used.
      
      V4: a new extra statistic field has been added to show the early
      receive status in the interrupt handler.
      This patch also adds an extra check to avoid to call
      napi_schedule when the DMA_INTR_ENA_RIE bit is disabled in the
      Interrupt Mask register.
      Signed-off-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      62a2ab93
    • G
      stmmac: add the initial tx coalesce schema · 9125cdd1
      Giuseppe CAVALLARO 提交于
      This patch adds a new schema used for mitigating the
      number of transmit interrupts.
      It is based on a SW timer and a threshold value.
      The timer is used to periodically call the stmmac_tx_clean
      function; the threshold is used for setting the IC (Interrupt
      on Completion bit). The ISR will then invoke the poll method.
      Also the patch improves some ethtool stat fields.
      
      V2: review the logic to manage the IC bit in the TDESC
      that was bugged because it didn't take care about the
      fragments. Also fix the tx_count_frames that has not to be
      limited to TX DMA ring. Thanks to Ben Hutchings.
      
      V3: removed the spin_lock irqsave/restore as D. Miller suggested.
      Signed-off-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9125cdd1
    • G
      stmmac: remove dead code for STMMAC_TIMER support · 7284a3f1
      Giuseppe CAVALLARO 提交于
      The TIMER option is not longer supported and this
      code can be considered dead for this driver in
      the new kernel series.
      In fact, It was not updated at all and never used.
      Signed-off-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7284a3f1
  2. 26 11月, 2012 5 次提交
  3. 24 11月, 2012 4 次提交
  4. 22 11月, 2012 9 次提交
  5. 21 11月, 2012 4 次提交
  6. 20 11月, 2012 5 次提交
  7. 19 11月, 2012 1 次提交
  8. 18 11月, 2012 3 次提交
    • S
      qlcnic: fix sparse warnings · 6d973cb1
      Sony Chacko 提交于
      qlcnic_hw.c:1337:17: warning: cast removes address space of expression
      qlcnic_hw.c:1337:17: warning: incorrect type in argument 2 (different address spaces)
      qlcnic_hw.c:1337:17:    expected void volatile [noderef] <asn:2>*addr
      qlcnic_hw.c:1337:17:    got void *<noident>
      qlcnic_hw.c:1337:17: warning: cast removes address space of expression
      qlcnic_hw.c:1337:17: warning: incorrect type in argument 1 (different address spaces)
      qlcnic_hw.c:1337:17:    expected void const volatile [noderef] <asn:2>*addr
      qlcnic_hw.c:1337:17:    got void *<noident>
      
      The above warnings are originating from the macros QLCNIC_RD_DUMP_REG and
      QLCNIC_WR_DUMP_REG.
      The warnings are fixed and macros are replaced with equivalent functions
      in the only file from where it is called.
      
      The following warnings are fixed by making the functions static.
      
      qlcnic_hw.c:543:5: warning: symbol 'qlcnic_set_fw_loopback' was not declared. Should it be static?
      qlcnic_init.c:1853:6: warning: symbol 'qlcnic_process_rcv_diag' was not declared. Should it be static?
      Signed-off-by: NSony Chacko <sony.chacko@qlogic.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6d973cb1
    • S
      qlcnic: fix compiler warnings · 5ad6ff9d
      Sony Chacko 提交于
      Fix the following warnings:
      
      qlcnic_main.c: In function 'qlcnic_update_cmd_producer':
      qlcnic_main.c:119:51: warning: unused parameter 'adapter' [-Wunused-parameter]
      qlcnic_main.c:119: warning: unused parameter adapter
      qlcnic_init.c: In function qlcnic_process_lro
      qlcnic_init.c:1586: warning: unused parameter sds_ring
      qlcnic_init.c: In function qlcnic_process_rcv_diag
      qlcnic_init.c:1854: warning: unused parameter sds_ring
      qlcnic_init.c: In function qlcnic_fetch_mac
      qlcnic_init.c:1938: warning: unused parameter adapter
      
      warning: 'pci_using_dac' may be used uninitialized in this function [-Wmaybe-uninitialized]
      qlcnic_main.c:1569:10: note: 'pci_using_dac' was declared here
      Signed-off-by: NSony Chacko <sony.chacko@qlogic.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5ad6ff9d
    • B
      pch_gbe, ptp_pch: Fix the dependency direction between these drivers · 18d359ce
      Ben Hutchings 提交于
      In commit a24006ed ('ptp: Enable clock
      drivers along with associated net/PHY drivers') I wrongly made
      PTP_1588_CLOCK_PCH depend on PCH_GBE.  The dependency is really the
      other way around.  Therefore make PCH_GBE select PTP_1588_CLOCK_PCH
      and remove the 'default y' from the latter.
      Reported-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
      Acked-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      18d359ce
  9. 16 11月, 2012 1 次提交
  10. 15 11月, 2012 5 次提交