]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c7481bc5a5185976f960da2e8ed31d74c5ad708
tree32f642ec3be9e19ac790f325414cb660b0edefd4
parent8d24fdb346c7020d7ac593ec3a421d324718ee1f
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