drm/amdgpu/gfx9: only init the apertures used by KGD (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jan 2018 21:14:43 +0000 (16:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Jan 2018 20:44:50 +0000 (15:44 -0500)
commit32b646b215e6e382045cf464e342b1cdd6f901c6
tree0c133ab57f2b599b494df769bc58a6e7e10405c6
parent052c299080cd6859f82a8154a7a673fafabe644c
drm/amdgpu/gfx9: only init the apertures used by KGD (v2)

Use adev->vm_manager.id_mgr[0].num_ids rather than hardcoded 16.

v2: use AMDGPU_GFXHUB rather than hardcoded 0 (Christian)

Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Noticed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c