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

看板DFBSD_commit作者時間14年前 (2011/07/11 16:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1E6gt1w3 (DFBSD_commit)