Commit c6c57446 authored by Graham Sider's avatar Graham Sider Committed by Alex Deucher

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: default avatarGraham Sider <Graham.Sider@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fa55b7dc
......@@ -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;
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment