drm/amdkfd: Delete a duplicate statement in set_pasid_vmid_mapping()
authorYong Zhao <Yong.Zhao@amd.com>
Sun, 14 Oct 2018 20:25:07 +0000 (16:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Nov 2018 19:21:13 +0000 (14:21 -0500)
The same statement is later done in kgd_set_pasid_vmid_mapping(), so no
need to do it in set_pasid_vmid_mapping().

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/cik_regs.h
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

index 37ce6dd..8e2a166 100644 (file)
@@ -68,6 +68,4 @@
 
 #define GRBM_GFX_INDEX                                 0x30800
 
-#define        ATC_VMID_PASID_MAPPING_VALID                    (1U << 31)
-
 #endif
index dfd8f9e..fb9d66e 100644 (file)
@@ -846,15 +846,8 @@ static int
 set_pasid_vmid_mapping(struct device_queue_manager *dqm, unsigned int pasid,
                        unsigned int vmid)
 {
-       uint32_t pasid_mapping;
-
-       pasid_mapping = (pasid == 0) ? 0 :
-               (uint32_t)pasid |
-               ATC_VMID_PASID_MAPPING_VALID;
-
        return dqm->dev->kfd2kgd->set_pasid_vmid_mapping(
-                                               dqm->dev->kgd, pasid_mapping,
-                                               vmid);
+                                               dqm->dev->kgd, pasid, vmid);
 }
 
 static void init_interrupts(struct device_queue_manager *dqm)