OSDN Git Service

drm/v3d: Fix BO stats accounting for dma-buf-imported buffers.
authorEric Anholt <eric@anholt.net>
Thu, 7 Feb 2019 23:26:13 +0000 (15:26 -0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 19 Feb 2019 10:07:36 +0000 (11:07 +0100)
commitcc3f60cfd4f2752f1bad7eaa3839855c15347abc
tree2aecaacb95d6469855dcbddd7743c95986e52062
parent6649a95d35d850e417f125821a803ca7889c713c
drm/v3d: Fix BO stats accounting for dma-buf-imported buffers.

We always decrement at GEM free, so make sure we increment at GEM
creation for dma-bufs.

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190207232613.24981-1-eric@anholt.net
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
drivers/gpu/drm/v3d/v3d_bo.c