Re: [PATCH 1/2] drm/ttm: use the same attributes when freeing d_page->vaddr

2019-07-18 Thread Koenig, Christian
Am 18.07.19 um 09:21 schrieb Fuqian Huang: > Koenig, Christian 於 2019年7月16日週二 下午9:38寫道: >> Am 11.07.19 um 05:10 schrieb Fuqian Huang: >>> In function __ttm_dma_alloc_page(), d_page->addr is allocated >>> by dma_alloc_attrs() but freed with use dma_free_coherent() in >>> __ttm_dma_free_page(). >>>

Re: [PATCH 1/2] drm/ttm: use the same attributes when freeing d_page->vaddr

2019-07-18 Thread Fuqian Huang
Koenig, Christian 於 2019年7月16日週二 下午9:38寫道: > > Am 11.07.19 um 05:10 schrieb Fuqian Huang: > > In function __ttm_dma_alloc_page(), d_page->addr is allocated > > by dma_alloc_attrs() but freed with use dma_free_coherent() in > > __ttm_dma_free_page(). > > Use the correct dma_free_attrs() to free

Re: [PATCH 1/2] drm/ttm: use the same attributes when freeing d_page->vaddr

2019-07-16 Thread Koenig, Christian
Am 11.07.19 um 05:10 schrieb Fuqian Huang: > In function __ttm_dma_alloc_page(), d_page->addr is allocated > by dma_alloc_attrs() but freed with use dma_free_coherent() in > __ttm_dma_free_page(). > Use the correct dma_free_attrs() to free d_page->vaddr. > > Signed-off-by: Fuqian Huang

[PATCH 1/2] drm/ttm: use the same attributes when freeing d_page->vaddr

2019-07-11 Thread Fuqian Huang
In function __ttm_dma_alloc_page(), d_page->addr is allocated by dma_alloc_attrs() but freed with use dma_free_coherent() in __ttm_dma_free_page(). Use the correct dma_free_attrs() to free d_page->vaddr. Signed-off-by: Fuqian Huang --- drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 6 +- 1 file