drm/tegra: Support context isolation
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 27 Jun 2022 14:19:53 +0000 (17:19 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 14:27:52 +0000 (16:27 +0200)
commite09db97889ec647ad373f7a7422c83099c6120c5
tree32f642ec3be9e19ac790f325414cb660b0edefd4
parent88c0292f023da4e4753a271430a36a66e6fb974f
drm/tegra: Support context isolation

For engines that support context isolation, allocate a context when
opening a channel, and set up stream ID offset and context fields
when submitting a job.

As of this commit, the stream ID offset and fallback stream ID
are not used when context isolation is disabled. However, with
upcoming patches that enable a full featured job opcode sequence,
these will be necessary.

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