]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Add context bus
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 16 May 2022 08:52:51 +0000 (11:52 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 1 Jun 2022 09:50:42 +0000 (11:50 +0200)
commit597b89d30b42dcc8e6b262e6876b42dde66f97f0
tree869a22d9070a1e34988262d9aabc7c0446555128
parentcb7e1abc2c73633e1eefa168ab2dad6e838899c9
gpu: host1x: Add context bus

The context bus is a "dummy" bus that contains struct devices that
correspond to IOMMU contexts assigned through Host1x to processes.

Even when host1x itself is built as a module, the bus is registered
in built-in code so that the built-in ARM SMMU driver is able to
reference it.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/Makefile
drivers/gpu/host1x/Kconfig
drivers/gpu/host1x/Makefile
drivers/gpu/host1x/context_bus.c [new file with mode: 0644]
include/linux/host1x_context_bus.h [new file with mode: 0644]