Re: [PATCH 1/2] drm/ttm: Don't add swapped BOs to swap-LRU list

2018-01-18 Thread Deucher, Alexander
From: Kuehling, Felix Sent: Thursday, January 18, 2018 4:12 PM To: Koenig, Christian; amd-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; He, Roger; Deucher, Alexander Subject: Re: [PATCH 1/2] drm/ttm: Don't add swapped BOs to swap-LRU list On

Re: [PATCH 1/2] drm/ttm: Don't add swapped BOs to swap-LRU list

2018-01-18 Thread Felix Kuehling
On 2018-01-18 01:09 PM, Christian König wrote: > Am 18.01.2018 um 17:56 schrieb Felix Kuehling: >> A BO that's already swapped would be added back to the swap-LRU list >> for example if its validation failed under high memory pressure. This >> could later lead to swapping it out again and leaking p

Re: [PATCH 1/2] drm/ttm: Don't add swapped BOs to swap-LRU list

2018-01-18 Thread Christian König
Am 18.01.2018 um 17:56 schrieb Felix Kuehling: A BO that's already swapped would be added back to the swap-LRU list for example if its validation failed under high memory pressure. This could later lead to swapping it out again and leaking previous swap storage. This commit adds a condition to p

[PATCH 1/2] drm/ttm: Don't add swapped BOs to swap-LRU list

2018-01-18 Thread Felix Kuehling
A BO that's already swapped would be added back to the swap-LRU list for example if its validation failed under high memory pressure. This could later lead to swapping it out again and leaking previous swap storage. This commit adds a condition to prevent that from happening. v2: Check page_flags