]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/panthor: enable fdinfo for memory stats
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Mon, 23 Sep 2024 23:06:24 +0000 (00:06 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 2 Oct 2024 08:55:17 +0000 (10:55 +0200)
commit064bb57479b7473ef8415cd629cbfac8db67b751
tree4f502945c563b2108749db13ae2d49d274234455
parente16635d88fa07ba5801aa9e57ad7fe3c053234e4
drm/panthor: enable fdinfo for memory stats

Implement drm object's status callback.

Also, we consider a PRIME imported BO to be resident if its matching
dma_buf has an open attachment, which means its backing storage had already
been allocated.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240923230912.2207320-5-adrian.larumbe@collabora.com
drivers/gpu/drm/panthor/panthor_gem.c