summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-04-06 17:52:39 +0200
committerAlex Deucher <alexander.deucher@amd.com>2017-04-28 17:32:18 -0400
commit7645670decdb677e2f415ff91609d31e5d4777d8 (patch)
tree1faecd5906e3e29c70e66446b70f86f5cf1231d3 /drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
parent4f618e737fafed22302d4b660eecfe1dce971b0f (diff)
downloadop-kernel-dev-7645670decdb677e2f415ff91609d31e5d4777d8.zip
op-kernel-dev-7645670decdb677e2f415ff91609d31e5d4777d8.tar.gz
drm/amdgpu: split VMID management by VMHUB
This way GFX and MM won't fight for VMIDs any more. Initially disabled since we need to stop flushing all HUBS at the same time as well. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Andres Rodriguez <andresx7@gmail.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
index 92abe12..2217d4d 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
@@ -746,7 +746,7 @@ static int gmc_v7_0_vm_init(struct amdgpu_device *adev)
* amdgpu graphics/compute will use VMIDs 1-7
* amdkfd will use VMIDs 8-15
*/
- adev->vm_manager.num_ids = AMDGPU_NUM_OF_VMIDS;
+ adev->vm_manager.id_mgr[0].num_ids = AMDGPU_NUM_OF_VMIDS;
adev->vm_manager.num_level = 1;
amdgpu_vm_manager_init(adev);
OpenPOWER on IntegriCloud