drm/amdkfd: Query kfd device info by CHIP id instead of pci device id
authorYong Zhao <Yong.Zhao@amd.com>
Tue, 3 Sep 2019 21:55:30 +0000 (17:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:49:45 +0000 (17:49 -0500)
commit050091ab6e832f7df0b700f1b9b596613643ada4
tree029b1045909d1de82c5d75de75861fdef6382e73
parentcd05c865108e089c4be99c0f939c72437fba2207
drm/amdkfd: Query kfd device info by CHIP id instead of pci device id

This optimizes out the pci device id usage in KFD and makes the code
more maintainable.

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/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdkfd/kfd_device.c
include/drm/amd_asic_type.h