drm/amdgpu: Reserve 0-2 invalidation reg sets for none-amdgpu usages
authorShaoyun Liu <Shaoyun.Liu@amd.com>
Fri, 28 Apr 2017 20:14:59 +0000 (16:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 May 2017 17:18:03 +0000 (13:18 -0400)
Firmware used reg set 2 for tlb invalidation. AMDGPU can start from reg
set 3 to avoid the conflict. AMDKFD will use the reg set 0 or 1 when
necesary.

Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
Reviewws-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index e5d4dfeae3fe9dc6458e5f14344301dc4eaa1f1c..dc1e1c1d6b2430cb9957047a454cde87bf439561 100644 (file)
@@ -386,7 +386,7 @@ static int gmc_v9_0_early_init(void *handle)
 static int gmc_v9_0_late_init(void *handle)
 {
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-       unsigned vm_inv_eng[AMDGPU_MAX_VMHUBS] = { 0 };
+       unsigned vm_inv_eng[AMDGPU_MAX_VMHUBS] = { 3, 3 };
        unsigned i;
 
        for(i = 0; i < adev->num_rings; ++i) {