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)
commitcb90b97bb379895302a7b47b97199928fd0bafa9
treea8f570b5bc3664cdb81f34754d6202eae62451f6
parent5232da2f75d903c48a23eca143c61d1ac4fd2d2c
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