linux/drivers/gpu/drm/ttm
Matthew Auld 49e7f76fc5 drm/ttm: add TTM_TT_FLAG_EXTERNAL_MAPPABLE
In commit:

commit 667a50db04
Author: Thomas Hellstrom <thellstrom@vmware.com>
Date:   Fri Jan 3 11:17:18 2014 +0100

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

we introduced the restriction that imported pages should not be directly
mappable through TTM(this also extends to userptr). In the next patch we
want to introduce a shmem_tt backend, which should follow all the
existing rules with TTM_PAGE_FLAG_EXTERNAL, since it will need to handle
swapping itself, but with the above mapping restriction lifted.

v2(Christian):
  - Don't OR together EXTERNAL and EXTERNAL_MAPPABLE in the definition
    of EXTERNAL_MAPPABLE, just leave it the caller to handle this
    correctly, otherwise we might encounter subtle issues.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210929132629.353541-3-matthew.auld@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
2021-09-29 16:18:43 +02:00
..
Makefile drm/ttm: add ttm_sys_manager v3 2021-05-03 12:50:41 +02:00
ttm_agp_backend.c drm/ttm: cleanup ttm_agp_backend 2021-05-03 12:50:41 +02:00
ttm_bo.c drm/ttm: s/FLAG_SG/FLAG_EXTERNAL/ 2021-09-29 16:17:56 +02:00
ttm_bo_util.c drm/ttm: s/FLAG_SG/FLAG_EXTERNAL/ 2021-09-29 16:17:56 +02:00
ttm_bo_vm.c drm/ttm: add TTM_TT_FLAG_EXTERNAL_MAPPABLE 2021-09-29 16:18:43 +02:00
ttm_device.c Merge drm/drm-next into drm-misc-next 2021-09-14 09:25:30 +02:00
ttm_execbuf_util.c drm/ttm: switch to per device LRU lock 2021-03-24 17:05:25 +01:00
ttm_module.c Merge drm/drm-next into drm-misc-next 2021-09-14 09:25:30 +02:00
ttm_module.h drm/ttm: add ttm_sys_manager v3 2021-05-03 12:50:41 +02:00
ttm_pool.c drm/ttm: s/FLAG_SG/FLAG_EXTERNAL/ 2021-09-29 16:17:56 +02:00
ttm_range_manager.c drm/ttm: Try to check if new ttm man out of bounds during compile 2021-09-13 10:14:28 +02:00
ttm_resource.c drm/ttm: cleanup ttm_resource_compat 2021-09-03 11:03:59 +02:00
ttm_sys_manager.c drm/ttm: flip the switch for driver allocated resources v2 2021-06-04 15:16:46 +02:00
ttm_tt.c drm/ttm: add TTM_TT_FLAG_EXTERNAL_MAPPABLE 2021-09-29 16:18:43 +02:00