[PATCH] gpu: host1x: Do not use mapping cache for job submissions

Thierry Reding thierry.reding at gmail.com
Wed Apr 6 13:13:17 UTC 2022


On Thu, Mar 24, 2022 at 11:30:25AM +0100, Thierry Reding wrote:
> From: Thierry Reding <treding at nvidia.com>
> 
> Buffer mappings used in job submissions are usually small and not
> rapidly reused as opposed to framebuffers (which are usually large and
> rapidly reused, for example when page-flipping between double-buffered
> framebuffers). Avoid going through the mapping cache for these buffers
> since the cache would also lead to leaks if nobody is ever releasing
> the cache's last reference. For DRM/KMS these last references are
> dropped when the framebuffers are removed and therefore no longer
> needed.
> 
> While at it, also add a note about the need to explicitly remove the
> final reference to the mapping in the cache.
> 
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> ---
>  drivers/gpu/host1x/job.c | 4 ++--
>  include/linux/host1x.h   | 5 +++++
>  2 files changed, 7 insertions(+), 2 deletions(-)

Applied.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220406/0d8cef18/attachment.sig>


More information about the dri-devel mailing list