diff options
author | yongari <yongari@FreeBSD.org> | 2015-09-16 00:25:40 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2015-09-16 00:25:40 +0000 |
commit | 301e497b472cf13a3c2735eecee479277294e92f (patch) | |
tree | 11bfb72c61cf25dd11b86ffa331ab1464b013502 /sys/dev/msk/if_mskreg.h | |
parent | 7a94803fa42dbb8f29df22eb1a1eaba5feaf7272 (diff) | |
download | FreeBSD-src-301e497b472cf13a3c2735eecee479277294e92f.zip FreeBSD-src-301e497b472cf13a3c2735eecee479277294e92f.tar.gz |
MFC r287238:
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.
Diffstat (limited to 'sys/dev/msk/if_mskreg.h')
-rw-r--r-- | sys/dev/msk/if_mskreg.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/dev/msk/if_mskreg.h b/sys/dev/msk/if_mskreg.h index 9c55192..da69f2e 100644 --- a/sys/dev/msk/if_mskreg.h +++ b/sys/dev/msk/if_mskreg.h @@ -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 { |