Re: pages pinned for BO lifetime and security

2020-07-23 Thread Intel
On 2020-07-22 09:46, Daniel Vetter wrote: On Wed, Jul 22, 2020 at 9:19 AM Christian König wrote: Am 22.07.20 um 02:22 schrieb Gurchetan Singh: Of the desktop GPU drivers, i915's shrinker certainly supports purging to swap. TTM is a bit hard to follow. I can't really tell if amdgpu or

Re: pages pinned for BO lifetime and security

2020-07-22 Thread Daniel Vetter
On Wed, Jul 22, 2020 at 9:27 PM Chia-I Wu wrote: > > On Wed, Jul 22, 2020 at 4:28 AM Daniel Vetter wrote: > > > > On Wed, Jul 22, 2020 at 1:12 PM Christian König > > wrote: > > > > > > Am 22.07.20 um 09:32 schrieb Daniel Vetter: > > > > On Wed, Jul 22, 2020 at 9:19 AM Christian König > > > >

Re: pages pinned for BO lifetime and security

2020-07-22 Thread Chia-I Wu
On Wed, Jul 22, 2020 at 4:28 AM Daniel Vetter wrote: > > On Wed, Jul 22, 2020 at 1:12 PM Christian König > wrote: > > > > Am 22.07.20 um 09:32 schrieb Daniel Vetter: > > > On Wed, Jul 22, 2020 at 9:19 AM Christian König > > > wrote: > > >> Am 22.07.20 um 02:22 schrieb Gurchetan Singh: > > >> >

Re: pages pinned for BO lifetime and security

2020-07-22 Thread Daniel Vetter
On Wed, Jul 22, 2020 at 1:12 PM Christian König wrote: > > Am 22.07.20 um 09:32 schrieb Daniel Vetter: > > On Wed, Jul 22, 2020 at 9:19 AM Christian König > > wrote: > >> Am 22.07.20 um 02:22 schrieb Gurchetan Singh: > >> > >> +Christian who added DMABUF_MOVE_NOTIFY which added the relevant

Re: pages pinned for BO lifetime and security

2020-07-22 Thread Christian König
Am 22.07.20 um 09:32 schrieb Daniel Vetter: On Wed, Jul 22, 2020 at 9:19 AM Christian König wrote: Am 22.07.20 um 02:22 schrieb Gurchetan Singh: +Christian who added DMABUF_MOVE_NOTIFY which added the relevant blurb:

Re: pages pinned for BO lifetime and security

2020-07-22 Thread Christian König
Am 22.07.20 um 09:46 schrieb Daniel Vetter: On Wed, Jul 22, 2020 at 9:19 AM Christian König wrote: Am 22.07.20 um 02:22 schrieb Gurchetan Singh: Of the desktop GPU drivers, i915's shrinker certainly supports purging to swap. TTM is a bit hard to follow. I can't really tell if amdgpu or

Re: pages pinned for BO lifetime and security

2020-07-22 Thread Daniel Vetter
On Wed, Jul 22, 2020 at 9:19 AM Christian König wrote: > Am 22.07.20 um 02:22 schrieb Gurchetan Singh: >> Of the desktop GPU drivers, i915's shrinker certainly supports purging >> to swap. TTM is a bit hard to follow. I can't really tell if amdgpu >> or nouveau supports that. virtio-gpu is

Re: pages pinned for BO lifetime and security

2020-07-22 Thread Daniel Vetter
On Wed, Jul 22, 2020 at 9:19 AM Christian König wrote: > > Am 22.07.20 um 02:22 schrieb Gurchetan Singh: > > +Christian who added DMABUF_MOVE_NOTIFY which added the relevant blurb: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/dma-buf/Kconfig#n46 > >

Re: pages pinned for BO lifetime and security

2020-07-22 Thread Christian König
Am 22.07.20 um 09:19 schrieb Christian König: Am 22.07.20 um 02:22 schrieb Gurchetan Singh: +Christian who added DMABUF_MOVE_NOTIFY which added the relevant blurb: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/dma-buf/Kconfig#n46

Re: pages pinned for BO lifetime and security

2020-07-22 Thread Christian König
Am 22.07.20 um 02:22 schrieb Gurchetan Singh: +Christian who added DMABUF_MOVE_NOTIFY which added the relevant blurb: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/dma-buf/Kconfig#n46

Re: pages pinned for BO lifetime and security

2020-07-21 Thread Gurchetan Singh
+Christian who added DMABUF_MOVE_NOTIFY which added the relevant blurb: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/dma-buf/Kconfig#n46 Currently, the user seems to amdgpu for P2P dma-buf and it seems to plumb ttm (*move_notify) callback to dma-buf. We're not