Set DMA alignment constraint of status, TX and RX LEs(List Elements

in Marvell terms) to 32768.  32768 looks overkill but it will
ensure correct DMAed update.  This change addresses occasional
watchdog timeouts reported on 10.2-RELEASE.

Tested by:	Johann Hugo <jhugo@meraka.csir.co.za>
MFC after:	2 weeks
This commit is contained in:
Pyun YongHyeon 2015-08-28 01:32:42 +00:00
parent b81cd10773
commit 97c477f86f

View File

@ -2175,13 +2175,8 @@
#define MSK_ADDR_LO(x) ((uint64_t) (x) & 0xffffffffUL)
#define MSK_ADDR_HI(x) ((uint64_t) (x) >> 32)
/*
* At first I guessed 8 bytes, the size of a single descriptor, would be
* required alignment constraints. But, it seems that Yukon II have 4096
* bytes boundary alignment constraints.
*/
#define MSK_RING_ALIGN 4096
#define MSK_STAT_ALIGN 4096
#define MSK_RING_ALIGN 32768
#define MSK_STAT_ALIGN 32768
/* Rx descriptor data structure */
struct msk_rx_desc {