]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amdgpu/gmc10: skip emitting pasid mapping packet
authorJack Xiao <Jack.Xiao@amd.com>
Fri, 20 Mar 2020 06:11:04 +0000 (14:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:03:58 +0000 (10:03 -0400)
For MES FW manages IH_VMID_x_LUT updating, skip emitting pasid
mapping packet.

Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c

index 487c33937a876f173759577df4f21bfa7953a090..9b4a035a5bf1e036d3b7ba28ad1fc8a61f24c316 100644 (file)
@@ -517,6 +517,10 @@ static void gmc_v10_0_emit_pasid_mapping(struct amdgpu_ring *ring, unsigned vmid
        struct amdgpu_device *adev = ring->adev;
        uint32_t reg;
 
+       /* MES fw manages IH_VMID_x_LUT updating */
+       if (ring->is_mes_queue)
+               return;
+
        if (ring->funcs->vmhub == AMDGPU_GFXHUB_0)
                reg = SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT) + vmid;
        else