]> 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)
commit4ab3245e279f939b0bc85b89855b147fa5ad69fe
tree32f642ec3be9e19ac790f325414cb660b0edefd4
parentc0e2ec94eb8bede2e8991e27e2c3377e71b2d979
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