From ceab349483cb43b0a62895a3657049d4045ad324 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 19 May 2020 08:27:04 -0700 Subject: [PATCH] freedreno/drm: disallow exported buffers in bo cache Otherwise we can MADVISE(WONTNEED) a bo that someone else is still using. We already handled that in the dma-buf and flink-name export paths. Signed-off-by: Rob Clark Part-of: --- src/freedreno/drm/freedreno_bo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedreno/drm/freedreno_bo.c b/src/freedreno/drm/freedreno_bo.c index b6d5cdd9bec..862465cfe43 100644 --- a/src/freedreno/drm/freedreno_bo.c +++ b/src/freedreno/drm/freedreno_bo.c @@ -318,6 +318,7 @@ int fd_bo_get_name(struct fd_bo *bo, uint32_t *name) uint32_t fd_bo_handle(struct fd_bo *bo) { + bo->bo_reuse = NO_CACHE; return bo->handle; } -- 2.30.2