diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2022-06-27 17:19:54 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-07-08 16:27:52 +0200 |
commit | bf0297ac77f3c3187a79a612082ce7ddb64c1e4b (patch) | |
tree | a956991a61dea2dab00d0899187e97837b4c120c /drivers/gpu/drm/tegra/drm.h | |
parent | e09db97889ec647ad373f7a7422c83099c6120c5 (diff) | |
download | linux-stable-bf0297ac77f3c3187a79a612082ce7ddb64c1e4b.tar.gz linux-stable-bf0297ac77f3c3187a79a612082ce7ddb64c1e4b.tar.bz2 linux-stable-bf0297ac77f3c3187a79a612082ce7ddb64c1e4b.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.h')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index 2acc8f2948ad..845e60f144c7 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -100,6 +100,14 @@ int tegra_drm_submit(struct tegra_drm_context *context, struct drm_tegra_submit *args, struct drm_device *drm, struct drm_file *file); +static inline int +tegra_drm_get_streamid_offset_thi(struct tegra_drm_client *client, u32 *offset) +{ + *offset = 0x30; + + return 0; +} + struct tegra_drm_client { struct host1x_client base; struct list_head list; |