Thread (31 messages) 31 messages, 10 authors, 2018-02-01

Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

From: Arnd Bergmann <arnd@arndb.de>
Date: 2018-02-01 15:36:04
Also in: linux-arm-kernel, linux-media, lkml

On Thu, Feb 1, 2018 at 4:29 PM, Maxime Ripard
[off-list ref] wrote:
On Wed, Jan 31, 2018 at 10:37:37AM +0100, Arnd Bergmann wrote:
quoted
On Wed, Jan 31, 2018 at 8:29 AM, Maxime Ripard
quoted
I can think of a couple of other problems that may or may not be
relevant in the future that would require a more complex solution:

- a device that is a bus master on more than one bus, e.g. a
  DMA engine that can copy between the CPU address space and
  another memory controller that is not visible to the CPU

- a device that is connected to main memory both through an IOMMU
  and directly through its parent bus, and the device itself is in
  control over which of the two it uses (usually the IOMMU would
  contol whether a device is bypassing translation)

- a device that has a single DMA address space with some form
  of non-linear mapping to one or more parent buses. Some of these
  can be expressed using the parent's dma-ranges properties, but
  our code currently only looks at the first entry in dma-ranges.
As far as I know, we're in neither of these cases.
The point here was more about the general question of where we are
heading with the complexity of finding the right DMA settings. It's
already too complicated for anyone to fully understand what is
going on with DMA masks, offset, coherency etc when we look
at the existing DT bindings. Adding more complexity makes it
worse, so if anyone else is in need of a solution for the issues
above, we should try to accommodate their needs at the same time
to avoid adding more complexity now and again later on if we
can come up with a way that works for everyone now.

     Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help