linux/drivers/gpu/drm/ttm
Matthew Auld 635138f72e drm/ttm: stop setting page->index for the ttm_tt
In commit:

commit 58aa6622d3
Author: Thomas Hellstrom <thellstrom@vmware.com>
Date:   Fri Jan 3 11:47:23 2014 +0100

    drm/ttm: Correctly set page mapping and -index members

we started setting the page->mapping and page->index to point to the
virtual address space, if the pages were faulted with TTM. Apparently
this was needed for core-mm to able to reverse lookup the virtual
address given the struct page, and potentially unmap it from the page
tables. However as pointed out by Thomas, since we are now using
PFN_MAP, instead of say PFN_MIXED, this should no longer be the case.

There was also apparently some usecase in vmwgfx which needed this for
dirty tracking, but that also doesn't appear to be the case anymore, as
pointed out by Thomas.

We still need keep the page->mapping for now, since that is still needed
for different reasons, but we try to address that in the next patch.

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>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210927114114.152310-2-matthew.auld@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
2021-09-29 13:54:36 +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_util.c drm/ttm: Fix ttm_bo_move_memcpy() for subclassed struct ttm_resource 2021-08-31 10:48:26 +02:00
ttm_bo_vm.c drm/ttm: stop setting page->index for the ttm_tt 2021-09-29 13:54:36 +02:00
ttm_bo.c Merge drm/drm-next into drm-misc-next 2021-09-14 09:25:30 +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: fix the type mismatch error on sparc64 2021-09-15 10:18:27 +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: stop setting page->index for the ttm_tt 2021-09-29 13:54:36 +02:00