@@ -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,
@@ -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 {
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@amd.com> --- drivers/gpu/hsa/radeon/kfd_module.c | 1 + include/linux/radeon_kfd.h | 1 + 2 files changed, 2 insertions(+)