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

drm/amdkfd: Delete a duplicate statement in set_pasid_vmid_mapping()

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>

authored by

Yong Zhao and committed by
Alex Deucher
deb99d7c ce331f8f

+1 -10
-2
drivers/gpu/drm/amd/amdkfd/cik_regs.h
··· 68 68 69 69 #define GRBM_GFX_INDEX 0x30800 70 70 71 - #define ATC_VMID_PASID_MAPPING_VALID (1U << 31) 72 - 73 71 #endif
+1 -8
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
··· 846 846 set_pasid_vmid_mapping(struct device_queue_manager *dqm, unsigned int pasid, 847 847 unsigned int vmid) 848 848 { 849 - uint32_t pasid_mapping; 850 - 851 - pasid_mapping = (pasid == 0) ? 0 : 852 - (uint32_t)pasid | 853 - ATC_VMID_PASID_MAPPING_VALID; 854 - 855 849 return dqm->dev->kfd2kgd->set_pasid_vmid_mapping( 856 - dqm->dev->kgd, pasid_mapping, 857 - vmid); 850 + dqm->dev->kgd, pasid, vmid); 858 851 } 859 852 860 853 static void init_interrupts(struct device_queue_manager *dqm)