Re: [PATCH 2/2] drm/ttm: stop dangerous caching attribute change

2020-09-22 Thread Alex Deucher
On Fri, Sep 18, 2020 at 11:01 AM Christian König wrote: > > When we swapout/in a BO we try to change the caching > attributes of the pages before/after doing the copy. > > On x86 this is done by calling set_pages_uc(), > set_memory_wc() or set_pages_wb() for not highmem pages > to update the linea

[PATCH 2/2] drm/ttm: stop dangerous caching attribute change

2020-09-18 Thread Christian König
When we swapout/in a BO we try to change the caching attributes of the pages before/after doing the copy. On x86 this is done by calling set_pages_uc(), set_memory_wc() or set_pages_wb() for not highmem pages to update the linear mapping of the page. On all other platforms we do exactly nothing.