1. 27 3月, 2013 1 次提交
  2. 10 7月, 2012 1 次提交
    • D
      stmmac: Fix for higher mtu size handling · 684901a6
      Deepak Sikri 提交于
      For the higher mtu sizes requiring the buffer size greater than 8192,
      the buffers are sent or received using multiple dma descriptors/ same
      descriptor with option of multi buffer handling.
      It was observed during tests that the driver was missing on data
      packets during the normal ping operations if the data buffers being used
      catered to jumbo frame handling.
      
      The memory barrriers are added in between preparation of dma descriptors
      in the jumbo frame handling path to ensure all instructions before
      enabling the dma are complete.
      Signed-off-by: NDeepak Sikri <deepak.sikri@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      684901a6
  3. 20 10月, 2011 1 次提交
    • G
      stmmac: add CHAINED descriptor mode support (V4) · 286a8372
      Giuseppe CAVALLARO 提交于
      This patch enhances the STMMAC driver to support CHAINED mode of
      descriptor.
      
      STMMAC supports DMA descriptor to operate both in dual buffer(RING)
      and linked-list(CHAINED) mode. In RING mode (default) each descriptor
      points to two data buffer pointers whereas in CHAINED mode they point
      to only one data buffer pointer.
      
      In CHAINED mode each descriptor will have pointer to next descriptor in
      the list, hence creating the explicit chaining in the descriptor itself,
      whereas such explicit chaining is not possible in RING mode.
      
      First version of this work has been done by Rayagond.
      Then the patch has been reworked avoiding ifdef inside the C code.
      A new header file has been added to define all the functions needed for
      managing enhanced and normal descriptors.
      In fact, these have to be specialized according to the ring/chain usage.
      Two new C files have been also added to implement the helper routines
      needed to manage: jumbo frames, chain and ring setup (i.e. desc3).
      Signed-off-by: NRayagond Kokatanur <rayagond@vayavyalabs.com>
      Signed-off-by: NGiuseppe Cavallaro <peppe.cavallaro@st.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      286a8372