]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: Rely on dma interconnect for our RAM offset
authorMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 1 Apr 2019 08:56:45 +0000 (10:56 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 11 Apr 2019 07:22:47 +0000 (09:22 +0200)
commitde3ca2feff254c75e1e78674eca111da38c62d16
tree8e1546a4dd5c229f0f94ae63518c17aeec7d779b
parent72bdfab7aed9dcc17ca112a3f91da4c9fa7cd82d
drm/sun4i: Rely on dma interconnect for our RAM offset

Now that we can express our DMA topology, rely on those property instead of
hardcoding an offset from the dma_addr_t which wasn't really great.

We still need to add some code to deal with the old DT that would lack that
property, but we move the offset to the DRM device dma_pfn_offset to be
able to rely on just the dma_addr_t associated to the GEM object.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/5df781318e7e05f780a11ed243dcf2b9fe8a08cb.1554108995.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun4i_backend.c