Re: DMA Mapping Error in ppc64

2018-03-26 Thread Jared Bents
Hi Ben On Sat, Mar 24, 2018 at 3:19 AM, Benjamin Herrenschmidt wrote: > On Fri, 2018-03-23 at 07:41 -0500, Jared Bents wrote: >> Thank you for the advice. Looks like I get to try to rewrite the ath9k and >> ath10k drivers to use dma_alloc_coherent() instead of kmemdup() and >> dev_alloc_skb()

Re: DMA Mapping Error in ppc64

2018-03-25 Thread Oliver
On Fri, Mar 23, 2018 at 11:41 PM, Jared Bents wrote: > Thank you for the advice. Looks like I get to try to rewrite the ath9k and > ath10k drivers to use dma_alloc_coherent() instead of kmemdup() and > dev_alloc_skb() I don't think you need to go that far. It looks like you might be able to fix

Re: DMA Mapping Error in ppc64

2018-03-24 Thread Benjamin Herrenschmidt
On Fri, 2018-03-23 at 07:41 -0500, Jared Bents wrote: > Thank you for the advice. Looks like I get to try to rewrite the ath9k and > ath10k drivers to use dma_alloc_coherent() instead of kmemdup() and > dev_alloc_skb() Euh no... dev_alloc_skb() is the right thing to do for receive packets for a

Re: DMA Mapping Error in ppc64

2018-03-23 Thread Jared Bents
Thank you for the advice. Looks like I get to try to rewrite the ath9k and ath10k drivers to use dma_alloc_coherent() instead of kmemdup() and dev_alloc_skb() On Thu, Mar 22, 2018 at 8:19 PM, Oliver wrote: > On Fri, Mar 23, 2018 at 1:37 AM, Jared Bents > wrote: > > Thank you for the response b

Re: DMA Mapping Error in ppc64

2018-03-22 Thread Oliver
On Fri, Mar 23, 2018 at 1:37 AM, Jared Bents wrote: > Thank you for the response but unfortunately, it looks like I already > have that and it is being used. To verify, I commented that out and > got the failure "dma_direct_alloc_coherent: No suitable zone for pfn > 0xe". Below is the code f

Re: DMA Mapping Error in ppc64

2018-03-22 Thread Jared Bents
Thank you for the response but unfortunately, it looks like I already have that and it is being used. To verify, I commented that out and got the failure "dma_direct_alloc_coherent: No suitable zone for pfn 0xe". Below is the code flow for function ath10k_pci_hif_exchange_bmi_msg which is sho

Re: DMA Mapping Error in ppc64

2018-03-21 Thread Oliver
On Thu, Mar 22, 2018 at 8:00 AM, Jared Bents wrote: > Hi all, > > Apologies for the amount of information but we've been debugging this > for a while and I wanted to get what we are seeing captured as much as > possible. We are a T1042 processor and have a total 8GB DDR and our > kernel version i