DragonFly BSD
DragonFly commits List (threaded) for 2011-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Jul 2011 00:33:36 -0700 (PDT)

commit 2a9b20a41f9ecbfd7ab7e2a8be8f0c959fbe9945
Author: Sepherosa Ziehau <sephe@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]