2017-11-30 21:15:50 -05:00
#
# Copyright 2017 Advanced Micro Devices, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
2014-07-16 21:08:55 +03:00
#
# Makefile for Heterogenous System Architecture support for AMD GPU devices
#
2017-04-24 13:50:21 +09:00
ccflags-y := -Idrivers/gpu/drm/amd/include/ \
2015-01-12 14:26:10 +02:00
-Idrivers/gpu/drm/amd/include/asic_reg
2014-07-16 21:08:55 +03:00
2014-07-16 23:25:31 +03:00
amdkfd-y := kfd_module.o kfd_device.o kfd_chardev.o kfd_topology.o \
kfd_pasid.o kfd_doorbell.o kfd_flat_memory.o \
2014-07-17 00:45:35 +03:00
kfd_process.o kfd_queue.o kfd_mqd_manager.o \
2015-01-04 11:24:25 +02:00
kfd_mqd_manager_cik.o kfd_mqd_manager_vi.o \
2018-04-10 17:33:08 -04:00
kfd_mqd_manager_v9.o \
2014-12-02 16:38:57 +02:00
kfd_kernel_queue.o kfd_kernel_queue_cik.o \
2018-04-10 17:33:07 -04:00
kfd_kernel_queue_vi.o kfd_kernel_queue_v9.o \
kfd_packet_manager.o kfd_process_queue_manager.o \
kfd_device_queue_manager.o kfd_device_queue_manager_cik.o \
kfd_device_queue_manager_vi.o \
2015-05-20 13:48:26 +03:00
kfd_interrupt.o kfd_events.o cik_event_interrupt.o \
2017-12-08 23:08:49 -05:00
kfd_dbgdev.o kfd_dbgmgr.o kfd_crat.o
2014-07-16 21:08:55 +03:00
2017-12-08 19:22:12 -05:00
i f n e q ( $( CONFIG_AMD_IOMMU_V 2) , )
amdkfd-y += kfd_iommu.o
e n d i f
2017-11-27 18:29:49 -05:00
amdkfd-$(CONFIG_DEBUG_FS) += kfd_debugfs.o
2014-07-16 21:08:55 +03:00
obj-$(CONFIG_HSA_AMD) += amdkfd.o