[PATCH v1 03/11] drm/ttm: zero page->private when freeing pages
Christian König
christian.koenig at amd.com
Mon Feb 23 21:43:10 AEDT 2026
On 2/23/26 04:26, Zi Yan wrote:
> This prepares upcoming checks in page freeing path.
>
> Signed-off-by: Zi Yan <ziy at nvidia.com>
> Cc: Christian Koenig <christian.koenig at amd.com>
> Cc: Huang Rui <ray.huang at amd.com>
> Cc: Matthew Auld <matthew.auld at intel.com>
> Cc: Matthew Brost <matthew.brost at intel.com>
> Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> Cc: Maxime Ripard <mripard at kernel.org>
> Cc: Thomas Zimmermann <tzimmermann at suse.de>
> Cc: David Airlie <airlied at gmail.com>
> Cc: Simona Vetter <simona at ffwll.ch>
> Cc: dri-devel at lists.freedesktop.org
Acked-by: Christian König <christian.koenig at amd.com>
Question (which was potentially already discussed) why isn't __free_pages() doing that?
Regards,
Christian.
> ---
> drivers/gpu/drm/ttm/ttm_pool.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.c
> index 217e45958099..a85cf1582dc8 100644
> --- a/drivers/gpu/drm/ttm/ttm_pool.c
> +++ b/drivers/gpu/drm/ttm/ttm_pool.c
> @@ -210,6 +210,7 @@ static void ttm_pool_free_page(struct ttm_pool *pool, enum ttm_caching caching,
> #endif
>
> if (!pool || !ttm_pool_uses_dma_alloc(pool)) {
> + set_page_private(p, 0);
> __free_pages(p, order);
> return;
> }
More information about the Linux-erofs
mailing list