drm/amdgpu: Reserve 0-2 invalidation reg sets for none-amdgpu usages
Subsystems (2)
PATCH 1/1 drm/amdgpu: Reserve 0-2 invalidation reg sets for none-amdgpu usages
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.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -1
@@ -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) {
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): DM5PR12MB1179341C532BF795961D5452F4140@DM5PR12MB1179.namprd12.prod.outlook.com
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB1652DC64EA176E2D1A70C09FF7140@BN6PR12MB1652.namprd12.prod.outlook.com
A message that is not in the archive (sent off-list or not yet received): BN6PR12MB1652DC64EA176E2D1A70C09FF7140-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Liu, Shaoyun
Reviewed-by Alex DeucherThanks Alex.
-----Original Message-----
From: Deucher, Alexander
Sent: Monday, May 01, 2017 4:47 PM
To: Liu, Shaoyun
Cc: Kuehling, Felix
Subject: RE: [PATCH] drm/amdgpu: Reserve 0-2 invalidation reg sets for none-amdgpu usages
Christian sent his RB this morning I think? Or was that something else? Anyway, patch is:
Quoted 43 lines
-----Original Message-----
From: Liu, Shaoyun
Sent: Monday, May 01, 2017 4:33 PM
To: Deucher, Alexander
Cc: Kuehling, Felix
Subject: FW: [PATCH] drm/amdgpu: Reserve 0-2 invalidation reg sets for none-amdgpu usagesHi, Alex,
I have other KFD changes depends on this commit. Can you help review this ?-----Original Message-----
From: Liu, Shaoyun
Sent: Monday, May 01, 2017 11:28 AM
To: [email protected]
Cc: Liu, Shaoyun
Subject: [PATCH] drm/amdgpu: Reserve 0-2 invalidation reg sets for none- amdgpu usagesFirmware 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.
Change-Id I71c595701f47110df0242d6926607c94bd5644ebSigned-off-by Shaoyun Liu <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1
-2@@ -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) { --
Quoted 1 line
1.9.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx