git: msk(4): Align RX buffer on 8bytes for hardware w/ ram buffer

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Mon Jul 11 00:34:36 PDT 2011


commit 2a9b20a41f9ecbfd7ab7e2a8be8f0c959fbe9945
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Jul 11 14:50:07 2011 +0800

    msk(4): Align RX buffer on 8bytes for hardware w/ ram buffer
    
    Add another hardware bug workaround for Yukon II controllers that
    have hardware ram buffer. The silicon bug seem to be triggered by
    pause frames if receive buffer is not aligned on FIFO word(8 bytes).
    To workaround the issue, make sure to align Rx buffers on 8 bytes.
    Unfortunately this workaround requires yet another Rx fixup for
    strict alignment architecture machines to align IP header.
    
    For newer hardwares that lacks ram buffer may not have this bug so
    check number of available ram buffer size to see the existence of
    ram buffer.
    
    Obtained-frim: FreeBSD 183346

Summary of changes:
 sys/dev/netif/msk/if_msk.c    |   32 +++++++++++++++++++++++++-------
 sys/dev/netif/msk/if_mskreg.h |    4 ++++
 2 files changed, 29 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2a9b20a41f9ecbfd7ab7e2a8be8f0c959fbe9945


-- 
DragonFly BSD source repository





More information about the Commits mailing list