drm/tegra: Implement stream ID related callbacks on engines
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 27 Jun 2022 14:19:54 +0000 (17:19 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 14:27:52 +0000 (16:27 +0200)
commitbf0297ac77f3c3187a79a612082ce7ddb64c1e4b
treea956991a61dea2dab00d0899187e97837b4c120c
parente09db97889ec647ad373f7a7422c83099c6120c5
drm/tegra: Implement stream ID related callbacks on engines

Implement the get_streamid_offset and can_use_memory_ctx callbacks
required for supporting context isolation. Since old firmware on VIC
cannot support context isolation without hacks that we don't want to
implement, check the firmware binary to see if context isolation
should be enabled.

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/nvdec.c
drivers/gpu/drm/tegra/vic.c