]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/tegra: Track client version
authorThierry Reding <treding@nvidia.com>
Wed, 16 May 2018 15:05:04 +0000 (17:05 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 18 May 2018 19:59:51 +0000 (21:59 +0200)
Userspace needs to know the version of the interface implemented by a
client so it can create the proper command streams. Allow individual
drivers to store this version along with the client so that it can be
returned to userspace upon opening a channel.

Acked-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.h

index f47a60592334858121795c63d787ba6ec6785136..92d2487843969fe393509090243c8bc0b7d23b20 100644 (file)
@@ -91,6 +91,7 @@ struct tegra_drm_client {
        struct host1x_client base;
        struct list_head list;
 
+       unsigned int version;
        const struct tegra_drm_client_ops *ops;
 };