Jared Bents <jared.bents@xxxxxxxxxxxxxxxxxxx> writes: > On Sat, Apr 21, 2018 at 2:10 AM, Kalle Valo <kvalo@xxxxxxxxxxxxxx> wrote: >> Jared Bents <jared.bents@xxxxxxxxxxxxxxxxxxx> writes: >> >>> Update to convert the use of kmemdup to dma_alloc_coherent as >>> dma_alloc_coherent will consider DMA region limits such as >>> those seen with CONFIG_FSL_PCI && CONFIG_ZONE_DMA32 whereas >>> kmemdup does not take those limitations into account. >>> >>> Signed-off-by: Jared Bents <jared.bents@xxxxxxxxxxxxxxxxxxx> >> >> Does this fix a real bug or is it just a theoretical issue you noticed >> while looking at the code? If this fixes a real bug please give a >> description of it. > > It fixes a real bug that I have experienced. My processor is a qoriq > T1042 powerpc and I am running the fsl-sdk-v2.0-1703 kernel (mainline > v4.1.35-rt41). In 32 bit, the ath10k and ath9k work without issue. > After migrating to 64 bit, we experienced dma mapping errors with both > devices. Ok, please add this to the commit log. > Here is the output from the dma mapping problem: > > ath10k_pci 0000:01:00.0: unable to get target info from device > ath10k_pci 0000:01:00.0: could not get target info (-5) > ath10k_pci 0000:01:00.0: could not probe fw (-5) Please add this also. And the patch doesn't seem to apply to at all, not sure why. But please submit v2 and make sure that it applies to my ath.git master branch. patching file drivers/net/wireless/ath/ath10k/pci.c Hunk #1 FAILED at 1372. Hunk #2 FAILED at 1422. 2 out of 2 hunks FAILED -- saving rejects to file drivers/net/wireless/ath/ath10k/pci.c.rej More info: https://wireless.wiki.kernel.org/en/users/drivers/ath10k/submittingpatches -- Kalle Valo