mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amdgpu: KFD graphics interop support compute partition
kfd_ioctl_get_dmabuf use the amdgpu bo xcp_id to get the gpu_id of the KFD node from the exported dmabuf_adev, and then create kfd bo on the correct adev and KFD node when importing the amdgpu bo to KFD. Remove function kfd_device_by_adev, it is not needed as it is the same result as dmabuf_adev->kfd.dev->nodes[0]->id. Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
3ebfd221c1
commit
2fa9ff25de
@@ -1068,7 +1068,6 @@ struct kfd_topology_device *kfd_topology_device_by_proximity_domain_no_lock(
|
||||
struct kfd_topology_device *kfd_topology_device_by_id(uint32_t gpu_id);
|
||||
struct kfd_node *kfd_device_by_id(uint32_t gpu_id);
|
||||
struct kfd_node *kfd_device_by_pci_dev(const struct pci_dev *pdev);
|
||||
struct kfd_node *kfd_device_by_adev(const struct amdgpu_device *adev);
|
||||
static inline bool kfd_irq_is_from_node(struct kfd_node *node, uint32_t node_id,
|
||||
uint32_t vmid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user