Subject: RE: linux-next: build failure after merge of the rpmsg tree

From: Loic PALLARDY <[email-masked]>
Date: Fri, 22 Feb 2019 14:02:20 +0000

Hi,

Changes in remoteproc have been introduced to associate dedicated dma coherent memory pool to each virtio device.
It is needed when we have several virtio devices for which buffers can't be allocated from the same memory region.
Patch introduces support in both ways:
- memory region declared thanks to reserved memory and associated thanks to of_reserved_mem_device_init_by_idx(): mainly used for regions located in DDR.
- memory region specified in rproc driver itself and defined as dma coherent thanks to dma_declare_coherent_memory(): These regions are generally located in coprocessor/SoC internal memories and declared in different ways by the different rproc drivers (regs in DT, hard coded values in drivers...).

For me, dma_declare_coherent_memory based solution is there to allow a smooth transition from current rproc drivers implementations to a cleaner and unified one based on reserved memory declaration.

Regards,
Loic

> -----Original Message-----
> From: Christoph Hellwig <[email-masked]>
> Sent: vendredi 22 février 2019 13:51
> To: Stephen Rothwell <[email-masked]>
> Cc: Bjorn Andersson <[email-masked]>; Christoph Hellwig
> <[email-masked]>; Linux Next Mailing List <[email-masked]>; Linux
> Kernel Mailing List <[email-masked]>; Loic PALLARDY
> <[email-masked]>
> Subject: Re: linux-next: build failure after merge of the rpmsg tree
> 
> FYI, can I please get an explanation for the remoteproc changes?
> 
> We really should avoid adding new callers of
> dma_declare_coherent_memory,
> which is a rather badly designed interface.