drm/tegra: Allocate per-engine channel in core code
authorMikko Perttunen <mperttunen@nvidia.com>
Thu, 10 Jun 2021 11:04:50 +0000 (14:04 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 10 Aug 2021 12:49:03 +0000 (14:49 +0200)
commite0f2977c35733fcccafdabcc02bf4f6ddf7f438d
treec0880a34ee8f1f02a5462e54431201905598095b
parent9916612311a777cdf15a53491243589ea4fcc4e7
drm/tegra: Allocate per-engine channel in core code

To avoid code duplication, allocate the per-engine shared channel in
the core code instead. This is the usual channel that all jobs are
submitted to when MLOCKing is not in use. Once MLOCKs are implemented
on Host1x side, we can also update this to avoid allocating a shared
channel when MLOCKs are enabled.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/drm.h