]> 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)
commit2415ee3ca82de06acb335fe8760ea7a095a60a4f
tree869a22d9070a1e34988262d9aabc7c0446555128
parenta02bb625d803dbb58b18d3f7890b8cff90c6f74e
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]