Re: [PATCH] drm/ttm: use compound pages for THP

2021-01-14 Thread David Stevens
On Wed, Jan 13, 2021 at 5:58 PM Christian König wrote: > > Am 13.01.21 um 09:47 schrieb David Stevens: > > Compound page metadata is necessary for page reference counting to work > > properly on pages besides the head page. Without it, put_page > > corresponding to the last outstanding get_page ca

[PATCH] drm/ttm: use compound pages for THP

2021-01-14 Thread David Stevens
Compound page metadata is necessary for page reference counting to work properly on pages besides the head page. Without it, put_page corresponding to the last outstanding get_page call on a tail page will end up freeing that page, even if the bo still references the page. Signed-off-by: David Ste

Re: [PATCH] drm/ttm: use compound pages for THP

2021-01-13 Thread Christian König
Am 13.01.21 um 10:33 schrieb David Stevens: On Wed, Jan 13, 2021 at 5:58 PM Christian König wrote: Am 13.01.21 um 09:47 schrieb David Stevens: Compound page metadata is necessary for page reference counting to work properly on pages besides the head page. Without it, put_page corresponding to

Re: [PATCH] drm/ttm: use compound pages for THP

2021-01-13 Thread Christian König
Am 13.01.21 um 09:47 schrieb David Stevens: Compound page metadata is necessary for page reference counting to work properly on pages besides the head page. Without it, put_page corresponding to the last outstanding get_page call on a tail page will end up freeing that page, even if the bo still