Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1476965 > unrolled thread

Re: [PATCH v2] bcma: use of_dma_configure() to set initial dma mask

Started byRafał Miłecki <zajec5@gmail.com>
First post2016-09-05 23:40 +0200
Last post2016-09-06 11:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] bcma: use of_dma_configure() to set initial dma mask Rafał Miłecki <zajec5@gmail.com> - 2016-09-05 23:40 +0200
    Re: [PATCH v2] bcma: use of_dma_configure() to set initial dma mask Arnd Bergmann <arnd@arndb.de> - 2016-09-06 11:40 +0200

#1476965 — Re: [PATCH v2] bcma: use of_dma_configure() to set initial dma mask

FromRafał Miłecki <zajec5@gmail.com>
Date2016-09-05 23:40 +0200
SubjectRe: [PATCH v2] bcma: use of_dma_configure() to set initial dma mask
Message-ID<se9Mu-Z5-27@gated-at.bofh.it>
On 17 March 2016 at 10:39, Arnd Bergmann <arnd@arndb.de> wrote:
> While fixing another bug, I noticed that bcma manually sets up
> a dma_mask pointer for its child devices. We have a generic
> helper for that now, which should be able to cope better with
> any variations that might be needed to deal with cache coherency,
> unusual DMA address offsets, iommus, or limited DMA masks, none
> of which are currently handled here.
>
> This changes the core to use the of_dma_configure(), like
> we do for platform devices that are probed directly from
> DT.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

I applied this patch and tested on BCM47081 based device. I still got
bgmac working which surely uses DMA. There is only 1 ARM wireless SoC
using bcma (BCM47198) but its WiFi core isn't supported by b43.

Any tips what else to test? SPI core/driver doesn't use DMA. Maybe
NAND core does, but we don't use it.

-- 
Rafał

[toc] | [next] | [standalone]


#1477224

FromArnd Bergmann <arnd@arndb.de>
Date2016-09-06 11:40 +0200
Message-ID<sel1g-9w-5@gated-at.bofh.it>
In reply to#1476965
On Monday, September 5, 2016 11:34:14 PM CEST Rafał Miłecki wrote:
> On 17 March 2016 at 10:39, Arnd Bergmann <arnd@arndb.de> wrote:
> > While fixing another bug, I noticed that bcma manually sets up
> > a dma_mask pointer for its child devices. We have a generic
> > helper for that now, which should be able to cope better with
> > any variations that might be needed to deal with cache coherency,
> > unusual DMA address offsets, iommus, or limited DMA masks, none
> > of which are currently handled here.
> >
> > This changes the core to use the of_dma_configure(), like
> > we do for platform devices that are probed directly from
> > DT.
> >
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> 
> I applied this patch and tested on BCM47081 based device. I still got
> bgmac working which surely uses DMA.

Thanks!

> There is only 1 ARM wireless SoC
> using bcma (BCM47198) but its WiFi core isn't supported by b43.
> 
> Any tips what else to test? SPI core/driver doesn't use DMA. Maybe
> NAND core does, but we don't use it.
> 

If there is nothing else using this, then the patch won't cause
a regression ;-)

	Arnd

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web