mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 06:43:06 +07:00
b3f5e6b441
This patch adds the interrupt handling module, in kfd_interrupt.c, and its related members in different data structures to the amdkfd driver. The amdkfd interrupt module maintains an internal interrupt ring per amdkfd device. The internal interrupt ring contains interrupts that needs further handling. The extra handling is deferred to a later time through a workqueue. There's no acknowledgment for the interrupts we use. The hardware simply queues a new interrupt each time without waiting. The fixed-size internal queue means that it's possible for us to lose interrupts because we have no back-pressure to the hardware. v3: Move amdkfd from drm/radeon/ to drm/amd/ Change device init Made sure spin lock is taken only if init is complete Moved bool field to the end of the structure Signed-off-by: Andrew Lewycky <Andrew.Lewycky@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
15 lines
462 B
Makefile
15 lines
462 B
Makefile
#
|
|
# Makefile for Heterogenous System Architecture support for AMD GPU devices
|
|
#
|
|
|
|
ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/amd/include/
|
|
|
|
amdkfd-y := kfd_module.o kfd_device.o kfd_chardev.o kfd_topology.o \
|
|
kfd_pasid.o kfd_doorbell.o kfd_flat_memory.o \
|
|
kfd_process.o kfd_queue.o kfd_mqd_manager.o \
|
|
kfd_kernel_queue.o kfd_packet_manager.o \
|
|
kfd_process_queue_manager.o kfd_device_queue_manager.o \
|
|
kfd_interrupt.o
|
|
|
|
obj-$(CONFIG_HSA_AMD) += amdkfd.o
|