This patch adds a new callback function to the kgd2kfd interface. The new callback is for propagating interrupts from radeon driver to the kfd driver. Signed-off-by: Oded Gabbay <oded.gabbay@xxxxxxx> --- drivers/gpu/hsa/radeon/kfd_module.c | 1 + include/linux/radeon_kfd.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/hsa/radeon/kfd_module.c b/drivers/gpu/hsa/radeon/kfd_module.c index 6978bc0..ad21c6d 100644 --- a/drivers/gpu/hsa/radeon/kfd_module.c +++ b/drivers/gpu/hsa/radeon/kfd_module.c @@ -38,6 +38,7 @@ static const struct kgd2kfd_calls kgd2kfd = { .probe = kgd2kfd_probe, .device_init = kgd2kfd_device_init, .device_exit = kgd2kfd_device_exit, + .interrupt = kgd2kfd_interrupt, }; bool kgd2kfd_init(unsigned interface_version, diff --git a/include/linux/radeon_kfd.h b/include/linux/radeon_kfd.h index 40b691c..2f4f7c0 100644 --- a/include/linux/radeon_kfd.h +++ b/include/linux/radeon_kfd.h @@ -62,6 +62,7 @@ struct kgd2kfd_calls { struct kfd_dev* (*probe)(struct kgd_dev *kgd, struct pci_dev *pdev); bool (*device_init)(struct kfd_dev *kfd, const struct kgd2kfd_shared_resources *gpu_resources); void (*device_exit)(struct kfd_dev *kfd); + void (*interrupt)(struct kfd_dev *kfd, const void *ih_ring_entry); }; struct kfd2kgd_calls { -- 1.9.1 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel