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 26248a1d6fSMasahiro Yamadaccflags-y := -Idrivers/gpu/drm/amd/include/ \ 27d696d536SBen Goz -Idrivers/gpu/drm/amd/include/asic_reg 284a488a7aSOded Gabbay 2919f6d2a6SOded Gabbayamdkfd-y := kfd_module.o kfd_device.o kfd_chardev.o kfd_topology.o \ 3019f6d2a6SOded Gabbay kfd_pasid.o kfd_doorbell.o kfd_flat_memory.o \ 31ed6e6a34SBen Goz kfd_process.o kfd_queue.o kfd_mqd_manager.o \ 324b8f589bSBen Goz kfd_mqd_manager_cik.o kfd_mqd_manager_vi.o \ 336898f0a5SBen Goz kfd_kernel_queue.o kfd_kernel_queue_cik.o \ 346898f0a5SBen Goz kfd_kernel_queue_vi.o kfd_packet_manager.o \ 35b3f5e6b4SAndrew Lewycky kfd_process_queue_manager.o kfd_device_queue_manager.o \ 36a22fc854SBen Goz kfd_device_queue_manager_cik.o kfd_device_queue_manager_vi.o \ 37fbeb661bSYair Shachar kfd_interrupt.o kfd_events.o cik_event_interrupt.o \ 38*174de876SFelix Kuehling kfd_dbgdev.o kfd_dbgmgr.o kfd_crat.o 394a488a7aSOded Gabbay 4064d1c3a4SFelix Kuehlingifneq ($(CONFIG_AMD_IOMMU_V2),) 4164d1c3a4SFelix Kuehlingamdkfd-y += kfd_iommu.o 4264d1c3a4SFelix Kuehlingendif 4364d1c3a4SFelix Kuehling 44851a645eSFelix Kuehlingamdkfd-$(CONFIG_DEBUG_FS) += kfd_debugfs.o 45851a645eSFelix Kuehling 464a488a7aSOded Gabbayobj-$(CONFIG_HSA_AMD) += amdkfd.o 47