]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: move ttm_tt_{add, clear}_mapping into amdgpu
authorMatthew Auld <matthew.auld@intel.com>
Mon, 27 Sep 2021 11:41:04 +0000 (12:41 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 29 Sep 2021 11:55:09 +0000 (13:55 +0200)
commit8906c5f9b5cde7cb0a71b6a45912e1887b9df35e
treea4df2f06f57e3cd669c6f7f8c514e28280cc4274
parent3f923d3572d414b29449009f1249eca6eb7dda5c
drm/ttm: move ttm_tt_{add, clear}_mapping into amdgpu

Now that setting page->index shouldn't be needed anymore, we are just
left with setting page->mapping, and here it looks like amdgpu is the
only user, where pointing the page->mapping at the dev_mapping is used
to verify that the pages do indeed belong to the device, if userspace
later tries to touch them.

v2(Christian):
  - Drop the functions altogether and just inline modifying
    the page->mapping

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-3-matthew.auld@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/ttm/ttm_tt.c