]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Set TTM_PAGE_FLAG_SG earlier for userprt BOs
authorxinhui pan <xinhui.pan@amd.com>
Wed, 16 Jun 2021 04:32:34 +0000 (12:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 18 Jun 2021 21:01:35 +0000 (17:01 -0400)
commit218102beb97952f5673a9bffdffda874b30ec54f
tree0e59a44377b3ce31ab0abdfd0bfd8ca120906279
parentda6940580f10938db5fa562022f8e43943daab23
drm/amdgpu: Set TTM_PAGE_FLAG_SG earlier for userprt BOs

Because TTM do page counting on userptr BOs which is actually not
needed. To avoid that, lets set TTM_PAGE_FLAG_SG after tt_create and
before tt_populate.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c