drm/amdgpu: add helper for VM PD/PT allocation parameters v3
authorChristian König <christian.koenig@amd.com>
Mon, 27 Aug 2018 20:17:59 +0000 (15:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 20:19:12 +0000 (15:19 -0500)
commite21eb2613d071abfaa40e353b106f01f4ce83d77
tree8efdb108239045dc6c83f24fe994046d5394ae0d
parent248f2b8ef25c9505fc763d42bf5e2c9fcf94fd16
drm/amdgpu: add helper for VM PD/PT allocation parameters v3

Add a helper function to figure them out only once.

v2: fix typo with memset
v3: rebase on kfd changes (Alex)

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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