Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43b9176f authored by Shaoyun Liu's avatar Shaoyun Liu Committed by Alex Deucher
Browse files

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: default avatarShaoyun Liu <Shaoyun.Liu@amd.com>
Reviewws-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fca4ce69
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -386,7 +386,7 @@ static int gmc_v9_0_early_init(void *handle)
static int gmc_v9_0_late_init(void *handle)
static int gmc_v9_0_late_init(void *handle)
{
{
	struct amdgpu_device *adev = (struct amdgpu_device *)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;
	unsigned i;


	for(i = 0; i < adev->num_rings; ++i) {
	for(i = 0; i < adev->num_rings; ++i) {