Re: [PATCH net-next] bnxt: add dma mapping attributes

2017-05-09 Thread Shannon Nelson
On 5/9/2017 5:49 PM, David Miller wrote: From: Shannon Nelson Date: Tue, 9 May 2017 13:37:33 -0700 @@ -66,6 +66,12 @@ MODULE_DESCRIPTION("Broadcom BCM573xx network driver"); MODULE_VERSION(DRV_MODULE_VERSION); +#ifdef CONFIG_SPARC +#define BNXT_DMA_ATTRS DMA_ATTR_WEAK_ORDERING +#else +#de

Re: [PATCH net-next] bnxt: add dma mapping attributes

2017-05-09 Thread David Miller
From: Shannon Nelson Date: Tue, 9 May 2017 13:37:33 -0700 > @@ -66,6 +66,12 @@ > MODULE_DESCRIPTION("Broadcom BCM573xx network driver"); > MODULE_VERSION(DRV_MODULE_VERSION); > > +#ifdef CONFIG_SPARC > +#define BNXT_DMA_ATTRS DMA_ATTR_WEAK_ORDERING > +#else > +#define BNXT_DMA_ATTRS 0

Re: [PATCH net-next] bnxt: add dma mapping attributes

2017-05-09 Thread Shannon Nelson
On 5/9/2017 2:05 PM, Michael Chan wrote: On Tue, May 9, 2017 at 1:37 PM, Shannon Nelson wrote: On the SPARC platform we need to use the DMA_ATTR_WEAK_ORDERING attribute in our Rx path dma mapping in order to get the expected performance out of the receive path. Adding it to the Tx path has lit

Re: [PATCH net-next] bnxt: add dma mapping attributes

2017-05-09 Thread Michael Chan
On Tue, May 9, 2017 at 1:37 PM, Shannon Nelson wrote: > On the SPARC platform we need to use the DMA_ATTR_WEAK_ORDERING attribute > in our Rx path dma mapping in order to get the expected performance out > of the receive path. Adding it to the Tx path has little effect, so > that's not a part of