]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add amdgpu_vm_entries_mask v2
authorChristian König <christian.koenig@amd.com>
Sat, 15 Sep 2018 08:02:13 +0000 (10:02 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Sep 2018 17:34:41 +0000 (12:34 -0500)
commit1183dbcd119d30e39190155673947abf5dc309c3
treea8f570b5bc3664cdb81f34754d6202eae62451f6
parentb81e6c9cae241f4d31c4c29d69b85b91ab5b3b3f
drm/amdgpu: add amdgpu_vm_entries_mask v2

We can't get the mask for the root directory from the number of entries.

So add a new function to avoid that problem.

v2: fix typo in mask

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c