diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2014-01-03 10:17:18 (GMT) |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2014-01-08 08:55:05 (GMT) |
commit | 667a50db0477d47fdff01c666f5ee1ce26b5264c (patch) | |
tree | 88aba940909300eba870e65ee9c694da8bca1b67 /virt | |
parent | 7dfe8b6187f43d791229b1f8eef9b7fa872f7195 (diff) | |
download | linux-667a50db0477d47fdff01c666f5ee1ce26b5264c.tar.xz |
drm/ttm: Refuse to fault (prime-) imported pages
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 caching state of the
underlying pages. PTEs with conflicting caching state pointing to the same
pfn is not allowed.
TTM operations touching pages of imported sg-tables should be redirected through
the proper dma-buf operations.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions