2017-12-01 10:15:50 +08: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-17 02:08:55 +08:00
|
|
|
#
|
|
|
|
# Makefile for Heterogenous System Architecture support for AMD GPU devices
|
|
|
|
#
|
|
|
|
|
2017-04-24 12:50:21 +08:00
|
|
|
ccflags-y := -Idrivers/gpu/drm/amd/include/ \
|
2015-01-12 20:26:10 +08:00
|
|
|
-Idrivers/gpu/drm/amd/include/asic_reg
|
2014-07-17 02:08:55 +08:00
|
|
|
|
2014-07-17 04:25:31 +08: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 05:45:35 +08:00
|
|
|
kfd_process.o kfd_queue.o kfd_mqd_manager.o \
|
2015-01-04 17:24:25 +08:00
|
|
|
kfd_mqd_manager_cik.o kfd_mqd_manager_vi.o \
|
2018-04-11 05:33:08 +08:00
|
|
|
kfd_mqd_manager_v9.o \
|
2014-12-02 22:38:57 +08:00
|
|
|
kfd_kernel_queue.o kfd_kernel_queue_cik.o \
|
2018-04-11 05:33:07 +08: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 \
|
2018-04-11 05:33:09 +08:00
|
|
|
kfd_device_queue_manager_vi.o kfd_device_queue_manager_v9.o \
|
2015-05-20 18:48:26 +08:00
|
|
|
kfd_interrupt.o kfd_events.o cik_event_interrupt.o \
|
2017-12-09 12:08:49 +08:00
|
|
|
kfd_dbgdev.o kfd_dbgmgr.o kfd_crat.o
|
2014-07-17 02:08:55 +08:00
|
|
|
|
2017-12-09 08:22:12 +08:00
|
|
|
ifneq ($(CONFIG_AMD_IOMMU_V2),)
|
|
|
|
amdkfd-y += kfd_iommu.o
|
|
|
|
endif
|
|
|
|
|
2017-11-28 07:29:49 +08:00
|
|
|
amdkfd-$(CONFIG_DEBUG_FS) += kfd_debugfs.o
|
|
|
|
|
2014-07-17 02:08:55 +08:00
|
|
|
obj-$(CONFIG_HSA_AMD) += amdkfd.o
|