[PATCH v3 04/12] drm/ttm: Set dma addr to null after freee
Christian König
ckoenig.leichtzumerken at gmail.com
Sat Nov 21 14:13:38 UTC 2020
Am 21.11.20 um 06:21 schrieb Andrey Grodzovsky:
> Fixes oops.
That file doesn't even exist any more. What oops should this fix?
>
> Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky at amd.com>
> ---
> drivers/gpu/drm/ttm/ttm_page_alloc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c
> index b40a467..b0df328 100644
> --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c
> +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c
> @@ -1160,6 +1160,8 @@ void ttm_unmap_and_unpopulate_pages(struct device *dev, struct ttm_dma_tt *tt)
> dma_unmap_page(dev, tt->dma_address[i], num_pages * PAGE_SIZE,
> DMA_BIDIRECTIONAL);
>
> + tt->dma_address[i] = 0;
> +
> i += num_pages;
> }
> ttm_pool_unpopulate(&tt->ttm);
More information about the amd-gfx
mailing list