Re: [PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-24 Thread Daniel Vetter
On Thu, Mar 24, 2022 at 03:25:08PM +0100, Christian König wrote: > Am 23.03.22 um 11:35 schrieb Daniel Vetter: > > On Mon, Mar 21, 2022 at 02:25:56PM +0100, Christian König wrote: > > > [SNIP] > > > EXPORT_SYMBOL(ttm_resource_init); > > > @@ -66,15 +172,21 @@ EXPORT_SYMBOL(ttm_resource_init); > >

Re: [PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-24 Thread Christian König
Am 23.03.22 um 11:35 schrieb Daniel Vetter: On Mon, Mar 21, 2022 at 02:25:56PM +0100, Christian König wrote: [SNIP] EXPORT_SYMBOL(ttm_resource_init); @@ -66,15 +172,21 @@ EXPORT_SYMBOL(ttm_resource_init); * @res: the resource to clean up * * Should be used by resource manager backends

Re: [PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-23 Thread Daniel Vetter
On Wed, Mar 23, 2022 at 02:44:17PM +0100, Christian König wrote: > Am 23.03.22 um 14:36 schrieb Daniel Vetter: > > On Wed, 23 Mar 2022 at 13:20, Christian König > > wrote: > > > Am 23.03.22 um 12:59 schrieb Daniel Vetter: > > > > On Mon, Mar 21, 2022 at 02:25:56PM +0100, Christian König wrote: > >

Re: [PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-23 Thread Christian König
Am 23.03.22 um 14:36 schrieb Daniel Vetter: On Wed, 23 Mar 2022 at 13:20, Christian König wrote: Am 23.03.22 um 12:59 schrieb Daniel Vetter: On Mon, Mar 21, 2022 at 02:25:56PM +0100, Christian König wrote: This way we finally fix the problem that new resource are not immediately evict-able af

Re: [PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-23 Thread Daniel Vetter
On Wed, 23 Mar 2022 at 13:20, Christian König wrote: > > Am 23.03.22 um 12:59 schrieb Daniel Vetter: > > On Mon, Mar 21, 2022 at 02:25:56PM +0100, Christian König wrote: > >> This way we finally fix the problem that new resource are > >> not immediately evict-able after allocation. > >> > >> That

Re: [PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-23 Thread Christian König
Am 23.03.22 um 12:59 schrieb Daniel Vetter: On Mon, Mar 21, 2022 at 02:25:56PM +0100, Christian König wrote: This way we finally fix the problem that new resource are not immediately evict-able after allocation. That has caused numerous problems including OOM on GDS handling and not being able

Re: [PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-23 Thread Daniel Vetter
On Mon, Mar 21, 2022 at 02:25:56PM +0100, Christian König wrote: > This way we finally fix the problem that new resource are > not immediately evict-able after allocation. > > That has caused numerous problems including OOM on GDS handling > and not being able to use TTM as general resource manage

Re: [PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-23 Thread Daniel Vetter
On Wed, Mar 23, 2022 at 11:35:02AM +0100, Daniel Vetter wrote: > On Mon, Mar 21, 2022 at 02:25:56PM +0100, Christian König wrote: > > This way we finally fix the problem that new resource are > > not immediately evict-able after allocation. > > > > That has caused numerous problems including OOM o

Re: [PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-23 Thread Daniel Vetter
On Mon, Mar 21, 2022 at 02:25:56PM +0100, Christian König wrote: > This way we finally fix the problem that new resource are > not immediately evict-able after allocation. > > That has caused numerous problems including OOM on GDS handling > and not being able to use TTM as general resource manage

[PATCH 1/6] drm/ttm: move the LRU into resource handling v4

2022-03-21 Thread Christian König
This way we finally fix the problem that new resource are not immediately evict-able after allocation. That has caused numerous problems including OOM on GDS handling and not being able to use TTM as general resource manager. v2: stop assuming in ttm_resource_fini that res->bo is still valid. v3: