Re: i915 ttm_tt shmem backend

2021-09-10 Thread Christian König
Am 10.09.21 um 10:40 schrieb Thomas Hellström: On Fri, 2021-09-10 at 10:25 +0200, Christian König wrote: Am 10.09.21 um 10:08 schrieb Thomas Hellström: Perhaps some background and goal is worth mentioning here. On Thu, 2021-09-09 at 17:56 +0100, Matthew Auld wrote: On Thu, 9 Sept 2021 at 17

Re: i915 ttm_tt shmem backend

2021-09-10 Thread Thomas Hellström
On Fri, 2021-09-10 at 10:25 +0200, Christian König wrote: > > > Am 10.09.21 um 10:08 schrieb Thomas Hellström: > > Perhaps some background and goal is worth mentioning here. > > > > > > On Thu, 2021-09-09 at 17:56 +0100, Matthew Auld wrote: > > > On Thu, 9 Sept 2021 at 17:43, Koenig, Christian

Re: i915 ttm_tt shmem backend

2021-09-10 Thread Christian König
Am 10.09.21 um 10:08 schrieb Thomas Hellström: Perhaps some background and goal is worth mentioning here. On Thu, 2021-09-09 at 17:56 +0100, Matthew Auld wrote: On Thu, 9 Sept 2021 at 17:43, Koenig, Christian wrote: Hi Matthew, this doesn't work, I've already tried something similar. TT

Re: i915 ttm_tt shmem backend

2021-09-10 Thread Thomas Hellström
Perhaps some background and goal is worth mentioning here. On Thu, 2021-09-09 at 17:56 +0100, Matthew Auld wrote: > On Thu, 9 Sept 2021 at 17:43, Koenig, Christian > wrote: > > > > Hi Matthew, > > > > this doesn't work, I've already tried something similar. > > > > TTM uses the reverse lookup

Re: i915 ttm_tt shmem backend

2021-09-10 Thread Christian König
Am 09.09.21 um 18:56 schrieb Matthew Auld: On Thu, 9 Sept 2021 at 17:43, Koenig, Christian wrote: Hi Matthew, this doesn't work, I've already tried something similar. TTM uses the reverse lookup functionality when migrating BOs between system and device memory. And that doesn't seem to work

Re: i915 ttm_tt shmem backend

2021-09-10 Thread Thomas Hellström
Hi, On 9/9/21 4:56 PM, Matthew Auld wrote: Hi Christian, We are looking into using shmem as a ttm_tt backend in i915 for cached system memory objects. We would also like to make such objects visible to the i915-gem shrinker, so that they may be swapped out or discarded when under memory pressur

Re: i915 ttm_tt shmem backend

2021-09-09 Thread Matthew Auld
On Thu, 9 Sept 2021 at 17:43, Koenig, Christian wrote: > > Hi Matthew, > > this doesn't work, I've already tried something similar. > > TTM uses the reverse lookup functionality when migrating BOs between system > and device memory. And that doesn't seem to work with pages from a shmem file. Hmm