xref: /linux/drivers/gpu/drm/amd/amdkfd/Makefile (revision 0ab2d7532b05a3e7c06fd3b0c8bd6b46c1dfb508)
1e2874a3cSAlex Deucher#
2e2874a3cSAlex Deucher# Copyright 2017 Advanced Micro Devices, Inc.
3e2874a3cSAlex Deucher#
4e2874a3cSAlex Deucher# Permission is hereby granted, free of charge, to any person obtaining a
5e2874a3cSAlex Deucher# copy of this software and associated documentation files (the "Software"),
6e2874a3cSAlex Deucher# to deal in the Software without restriction, including without limitation
7e2874a3cSAlex Deucher# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8e2874a3cSAlex Deucher# and/or sell copies of the Software, and to permit persons to whom the
9e2874a3cSAlex Deucher# Software is furnished to do so, subject to the following conditions:
10e2874a3cSAlex Deucher#
11e2874a3cSAlex Deucher# The above copyright notice and this permission notice shall be included in
12e2874a3cSAlex Deucher# all copies or substantial portions of the Software.
13e2874a3cSAlex Deucher#
14e2874a3cSAlex Deucher# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15e2874a3cSAlex Deucher# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16e2874a3cSAlex Deucher# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17e2874a3cSAlex Deucher# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18e2874a3cSAlex Deucher# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19e2874a3cSAlex Deucher# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20e2874a3cSAlex Deucher# OTHER DEALINGS IN THE SOFTWARE.
21e2874a3cSAlex Deucher#
224a488a7aSOded Gabbay#
234a488a7aSOded Gabbay# Makefile for Heterogenous System Architecture support for AMD GPU devices
244a488a7aSOded Gabbay#
254a488a7aSOded Gabbay
2604d5e276SAmber LinAMDKFD_FILES	:= $(AMDKFD_PATH)/kfd_module.o \
2704d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_device.o \
2804d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_chardev.o \
2904d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_topology.o \
3004d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_pasid.o \
3104d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_doorbell.o \
3204d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_flat_memory.o \
3304d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_process.o \
3404d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_queue.o \
3504d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_mqd_manager.o \
3604d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_mqd_manager_cik.o \
3704d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_mqd_manager_vi.o \
3804d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_mqd_manager_v9.o \
3914328aa5SPhilip Cox		$(AMDKFD_PATH)/kfd_mqd_manager_v10.o \
40cc009e61SMukul Joshi		$(AMDKFD_PATH)/kfd_mqd_manager_v11.o \
4104d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_kernel_queue.o \
4204d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_packet_manager.o \
43594d0c90SYong Zhao		$(AMDKFD_PATH)/kfd_packet_manager_vi.o \
44594d0c90SYong Zhao		$(AMDKFD_PATH)/kfd_packet_manager_v9.o \
4504d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_process_queue_manager.o \
4604d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_device_queue_manager.o \
4704d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_device_queue_manager_cik.o \
4804d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_device_queue_manager_vi.o \
4904d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_device_queue_manager_v9.o \
5014328aa5SPhilip Cox		$(AMDKFD_PATH)/kfd_device_queue_manager_v10.o \
51cc009e61SMukul Joshi		$(AMDKFD_PATH)/kfd_device_queue_manager_v11.o \
5204d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_interrupt.o \
5304d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_events.o \
5404d5e276SAmber Lin		$(AMDKFD_PATH)/cik_event_interrupt.o \
5504d5e276SAmber Lin		$(AMDKFD_PATH)/kfd_int_process_v9.o \
56cc009e61SMukul Joshi		$(AMDKFD_PATH)/kfd_int_process_v11.o \
57938a0650SAmber Lin		$(AMDKFD_PATH)/kfd_smi_events.o \
58*0ab2d753SJonathan Kim		$(AMDKFD_PATH)/kfd_crat.o \
59*0ab2d753SJonathan Kim		$(AMDKFD_PATH)/kfd_debug.o
604a488a7aSOded Gabbay
6164d1c3a4SFelix Kuehlingifneq ($(CONFIG_AMD_IOMMU_V2),)
6204d5e276SAmber LinAMDKFD_FILES += $(AMDKFD_PATH)/kfd_iommu.o
6364d1c3a4SFelix Kuehlingendif
6464d1c3a4SFelix Kuehling
6504d5e276SAmber Linifneq ($(CONFIG_DEBUG_FS),)
6604d5e276SAmber LinAMDKFD_FILES += $(AMDKFD_PATH)/kfd_debugfs.o
6704d5e276SAmber Linendif
684ab159d2SFelix Kuehling
694ab159d2SFelix Kuehlingifneq ($(CONFIG_HSA_AMD_SVM),)
704ab159d2SFelix KuehlingAMDKFD_FILES += $(AMDKFD_PATH)/kfd_svm.o \
714ab159d2SFelix Kuehling		$(AMDKFD_PATH)/kfd_migrate.o
724ab159d2SFelix Kuehlingendif
73