]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: drv: Adopt the dma configuration from the HVS or V3D component
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 13 Jun 2022 14:47:28 +0000 (16:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:20 +0000 (14:24 +0200)
commitf3007c6b37b31a0f3e096275fff379e7f2cca0fd
treec8358e017478559942876affcd8b6d5f9ccab5b3
parent216805b85718d2e3be7354a63326ccd65203e511
drm/vc4: drv: Adopt the dma configuration from the HVS or V3D component

[ Upstream commit f273cf20ff541641b92de55c5e5f21b86fc8a7bb ]

vc4_drv isn't necessarily under the /soc node in DT as it is a
virtual device, but it is the one that does the allocations.
The DMA addresses are consumed by primarily the HVS or V3D, and
those require VideoCore cache alias address mapping, and so will be
under /soc.

During probe find the a suitable device node for HVS or V3D,
and adopt the DMA configuration of that node.

Cc: <stable@vger.kernel.org>
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20220613144800.326124-2-maxime@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/vc4/vc4_drv.c