drm/tegra: Implement buffer object cache
authorThierry Reding <treding@nvidia.com>
Fri, 7 Feb 2020 15:50:52 +0000 (16:50 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:07:06 +0000 (14:07 +0100)
commit1f39b1dfa53c84b56d7ad37fed44afda7004959d
tree8ef62c2b9b69fbf96e0cdad49362f2c4c17e0682
parentc6aeaf56f468a565f6d2f27325fc07d35cdcd3cb
drm/tegra: Implement buffer object cache

This cache is used to avoid mapping and unmapping buffer objects
unnecessarily. Mappings are cached per client and stay hot until
the buffer object is destroyed.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gem.c
drivers/gpu/drm/tegra/plane.c
drivers/gpu/drm/tegra/submit.c
drivers/gpu/drm/tegra/uapi.c
drivers/gpu/host1x/bus.c
drivers/gpu/host1x/dev.c
drivers/gpu/host1x/dev.h
drivers/gpu/host1x/job.c
include/linux/host1x.h