All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] accel/ivpu: pages_use_count is now a refcount_t
@ 2025-03-27 10:42 Boris Brezillon
  2025-03-27 10:42 ` [PATCH 2/3] accel/ivpu: s/drm_gem_shmem_v[un]map/drm_gem_shmem_v[un]map_locked/ Boris Brezillon
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Boris Brezillon @ 2025-03-27 10:42 UTC (permalink / raw)
  To: dri-devel
  Cc: Boris Brezillon, kernel, Dmitry Osipenko, Jacek Lawrynowicz,
	Maciej Falkowski, Oded Gabbay

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
---
 drivers/accel/ivpu/ivpu_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/accel/ivpu/ivpu_gem.c b/drivers/accel/ivpu/ivpu_gem.c
index 8741c73b92ce..09c9c5256af5 100644
--- a/drivers/accel/ivpu/ivpu_gem.c
+++ b/drivers/accel/ivpu/ivpu_gem.c
@@ -282,7 +282,7 @@ static void ivpu_gem_bo_free(struct drm_gem_object *obj)
 	ivpu_bo_unbind_locked(bo);
 	mutex_destroy(&bo->lock);
 
-	drm_WARN_ON(obj->dev, bo->base.pages_use_count > 1);
+	drm_WARN_ON(obj->dev, refcount_read(&bo->base.pages_use_count) > 1);
 	drm_gem_shmem_free(&bo->base);
 }
 
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-03-28  7:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-27 10:42 [PATCH 1/3] accel/ivpu: pages_use_count is now a refcount_t Boris Brezillon
2025-03-27 10:42 ` [PATCH 2/3] accel/ivpu: s/drm_gem_shmem_v[un]map/drm_gem_shmem_v[un]map_locked/ Boris Brezillon
2025-03-27 10:47   ` Dmitry Osipenko
2025-03-27 10:43 ` [PATCH 3/3] accel/amdxdna: s/drm_gem_v[un]map_unlocked/drm_gem_v[un]map/ Boris Brezillon
2025-03-27 10:48   ` Dmitry Osipenko
2025-03-27 10:47 ` [PATCH 1/3] accel/ivpu: pages_use_count is now a refcount_t Dmitry Osipenko
2025-03-27 11:30 ` Jani Nikula
2025-03-27 11:37   ` Dmitry Osipenko
2025-03-27 12:19     ` Jacek Lawrynowicz
2025-03-27 12:32       ` Jani Nikula
2025-03-28  7:41         ` Jacek Lawrynowicz
2025-03-27 13:20       ` Dmitry Osipenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.