]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix compute VM BO params after rebase v2
authorFelix Kuehling <Felix.Kuehling@amd.com>
Thu, 6 Sep 2018 00:19:54 +0000 (20:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:44:48 +0000 (22:44 -0500)
commit3402d0c77c96558d0ef66011768dcafb02803b62
tree4a146ed7b56c4b083ba07e07952076a1898c0ab2
parent5883a81e4e8f743d953a62f0e79a04214788e426
drm/amdgpu: Fix compute VM BO params after rebase v2

The intent of two commits was lost in the last rebase:

78c5364 drm/amdgpu: Fix acquiring VM on large-BAR systems
1a73882 drm/amdgpu: Don't use shadow BO for compute context

This commit restores the original behaviour:
* Don't set AMDGPU_GEM_CREATE_NO_CPU_ACCESS for page directories
  to allow them to be reused for compute VMs
* Don't create shadow BOs for page tables in compute VMs

v2: move more logic into amdgpu_vm_bo_param

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Tested-by: Kent Russell <Kent.Russell@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_vm.c