[PATCH] drm/ttm: Refuse to fault (prime-) imported pages

2014-01-07 Thread Thomas Hellstrom
On 01/07/2014 10:14 AM, Daniel Vetter wrote: > On Fri, Jan 03, 2014 at 11:22:17AM +0100, Thomas Hellstrom wrote: >> This is illegal for at least two reasons: >> >> 1) While it may work on some platforms / iommus, obtaining page pointers from >> mapped sg-lists is illegal, since the DMA API allows p

[PATCH] drm/ttm: Refuse to fault (prime-) imported pages

2014-01-07 Thread Daniel Vetter
On Fri, Jan 03, 2014 at 11:22:17AM +0100, Thomas Hellstrom wrote: > This is illegal for at least two reasons: > > 1) While it may work on some platforms / iommus, obtaining page pointers from > mapped sg-lists is illegal, since the DMA API allows page pointer information > to be destroyed in the s

[PATCH] drm/ttm: Refuse to fault (prime-) imported pages

2014-01-03 Thread Thomas Hellstrom
This is illegal for at least two reasons: 1) While it may work on some platforms / iommus, obtaining page pointers from mapped sg-lists is illegal, since the DMA API allows page pointer information to be destroyed in the sg mapping process. 2) TTM has no way of determining the linear kernel map c