drm/amdkfd: add amdgpu_device entry to kfd_dev

Patch series to remove kgd_dev struct and replace all instances with
amdgpu_device objects.

amdgpu_device needs to be declared in kgd_kfd_interface.h to be visible
to kfd2kgd_calls.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Graham Sider
2021-11-17 16:57:59 -05:00
committed by Alex Deucher
parent fa55b7dcdc
commit c6c5744638
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -825,6 +825,7 @@ struct kfd_dev *kgd2kfd_probe(struct kgd_dev *kgd, bool vf)
return NULL;
kfd->kgd = kgd;
kfd->adev = adev;
kfd->device_info = device_info;
kfd->pdev = pdev;
kfd->init_complete = false;
+1
View File
@@ -229,6 +229,7 @@ struct kfd_vmid_info {
struct kfd_dev {
struct kgd_dev *kgd;
struct amdgpu_device *adev;
const struct kfd_device_info *device_info;
struct pci_dev *pdev;
@@ -33,6 +33,7 @@
#include <linux/dma-fence.h>
struct pci_dev;
struct amdgpu_device;
#define KGD_MAX_QUEUES 128