]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panfrost: Open/close the perfcnt BO
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 29 Nov 2019 13:59:05 +0000 (14:59 +0100)
committerRob Herring <robh@kernel.org>
Fri, 6 Dec 2019 17:06:20 +0000 (11:06 -0600)
commit733e6bf8135e1883629c15d82954474ef2c9ad43
tree19ddc6316649a2a18d98d4a311b4498291b88956
parent33d5d3a12db95010693174e84dabe8d34cd9b285
drm/panfrost: Open/close the perfcnt BO

Commit c73f3e0adad9 ("drm/panfrost: Restructure the GEM object creation")
moved the drm_mm_insert_node_generic() call to the gem->open() hook,
but forgot to update perfcnt accordingly.

Patch the perfcnt logic to call panfrost_gem_open/close() where
appropriate.

Fixes: c73f3e0adad9 ("drm/panfrost: Restructure the GEM object creation")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191129135908.2439529-6-boris.brezillon@collabora.com
drivers/gpu/drm/panfrost/panfrost_drv.c
drivers/gpu/drm/panfrost/panfrost_gem.c
drivers/gpu/drm/panfrost/panfrost_gem.h
drivers/gpu/drm/panfrost/panfrost_perfcnt.c
drivers/gpu/drm/panfrost/panfrost_perfcnt.h