Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

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>

authored by

Shaoyun Liu and committed by
Alex Deucher
43b9176f fca4ce69

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
··· 386 386 static int gmc_v9_0_late_init(void *handle) 387 387 { 388 388 struct amdgpu_device *adev = (struct amdgpu_device *)handle; 389 - unsigned vm_inv_eng[AMDGPU_MAX_VMHUBS] = { 0 }; 389 + unsigned vm_inv_eng[AMDGPU_MAX_VMHUBS] = { 3, 3 }; 390 390 unsigned i; 391 391 392 392 for(i = 0; i < adev->num_rings; ++i) {