Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

accel/ivpu: pages_use_count is now a refcount_t

Commit 051b6646d36d ("drm/shmem-helper: Use refcount_t for
pages_use_count") changed the type of
drm_gem_shmem_object::pages_use_count but accel drivers were left
behind.

Fixes: 051b6646d36d ("drm/shmem-helper: Use refcount_t for pages_use_count")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Cc: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Cc: Maciej Falkowski <maciej.falkowski@linux.intel.com>
Cc: Oded Gabbay <ogabbay@kernel.org>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Tested-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250327104300.1982058-1-boris.brezillon@collabora.com

authored by

Boris Brezillon and committed by
Dmitry Osipenko
d5d0daff e1fc39a9

+1 -1
+1 -1
drivers/accel/ivpu/ivpu_gem.c
··· 282 282 ivpu_bo_unbind_locked(bo); 283 283 mutex_destroy(&bo->lock); 284 284 285 - drm_WARN_ON(obj->dev, bo->base.pages_use_count > 1); 285 + drm_WARN_ON(obj->dev, refcount_read(&bo->base.pages_use_count) > 1); 286 286 drm_gem_shmem_free(&bo->base); 287 287 } 288 288