Re: [RFC PATCH] dmaengine: rcar-dmac: set scatter/gather max segment size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Geert,

> > +       dmac->dev->dma_parms = &dmac->parms;
> > +       dma_set_max_seg_size(dmac->dev, 0x01000000);
> 
> That is one too much, cfr.
> 
>     drivers/dma/sh/rcar-dmac.c:#define RCAR_DMATCR_MASK             0x00ffffff

I see. Will fix and send an updated patch. Nice to see that I was not
totally wrong but just off-by-one.

> And yes, this depends on the data length, which is not known at probe time.
> Of course, dma_set_max_seg_size(dmac->dev, RCAR_DMATCR_MASK)
> should be safe, albeit (slightly) suboptimal.

True. But still *way* better than the current default of 64K.

Thanks for the heads up!

Regards,

   Wolfram

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux