Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://github.com/ROCm/amdsmi
Upstream-Name: amdsmi
Files-Excluded: rocm_smi/docs/ROCm_SMI_Manual.pdf
                debian/esmi_ib_library-3.0.3/ESMI_IB_Release_Notes.pdf
                debian/esmi_ib_library-3.0.3/ESMI_Manual.pdf
Comment: The PDF files introduce rocm-smi and esmi usages, which are unnecessary for this package.
 .
 We also integrate esmi library in the debian folder as currently it's under rapid development
 thus has unstable APIs. Besides, no other package except amdsmi depends on it, and packaging it
 requires the amd_energy and amd HSMP kernel module, which are missing in Debian now.

Files: *
Copyright: 2014-2023, Advanced Micro Devices, Inc.
License: Expat

Files: rocm_smi/*
Copyright: 2017-2023, Advanced Micro Devices, Inc.
License: NCSA

Files: example/*
Copyright: 2023, Advanced Micro Devices, Inc.
License: NCSA

Files: cmake_modules/utils.cmake
Copyright: 2014-2017, Advanced Micro Devices, Inc.
License: NCSA

Files: include/*
Copyright: 2023, Advanced Micro Devices, Inc.
License: NCSA

Files: include/amd_smi/impl/amdgpu_drm.h
Copyright: 2014, Advanced Micro Devices, Inc.
           2002, Tungsten Graphics, Inc.
           2000, VA Linux Systems, Inc.
           2000, Precision Insight, Inc.
License: Expat

Files: tests/*
Copyright: 2017-2023, Advanced Micro Devices, Inc.
License: NCSA

Files: oam/src/amd_oam.cc
Copyright: 2020, Open Compute Project
License: Expat

Files: src/*
Copyright: 2017-2023, Advanced Micro Devices, Inc.
License: NCSA

Files: third_party/shared_mutex/*
Copyright: 2019-2023, Advanced Micro Devices, Inc.
           2018, Oleg Yamnikov
License: Expat

Files: debian/*
Copyright: 2024, Xuanteng Huang <xuanteng.huang@outlook.com>
           2025, Cordell Bloor <cgmb@slerp.xyz>
License: Expat

Files: debian/esmi_ib_library-3.0.3/*
Copyright: 2023, Advanced Micro Devices, Inc.
License: NCSA
Comment: AMD esmi (EPYC System Management Interface) [1] is a C library for
 Linux that provides a user space interface to monitor and control the CPU's
 power, energy, performance and other system management features.
 .
 esmi library is used to compile amdsmi package.
 .
 We choose to embed esmi in the debian folder as:
 * esmi tests require HSMP and amd_energy kernel module
 * only amdsmi depends on esmi
 * esmi has unstable APIs as for now
 .
 [1]: https://github.com/amd/esmi_ib_library

Files: debian/esmi_ib_library-3.0.3/include/asm/amd_hsmp.h
Copyright: 2021-2024, Advanced Micro Devices, Inc.
License: GPL-2 with Linux Syscall Note Exception
Comment: HSMP (Host System Management Port) is a part of kernel module [2]
 providing user level access to the system management unit (SMU) implemented in
 the firmware.
 .
 This file is used in esmi to provide defined types.
 .
 [2]: https://github.com/amd/amd_hsmp

License: Expat
 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 AUTHORS OR
 COPYRIGHT HOLDERS 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.

License: NCSA
 The University of Illinois/NCSA Open Source License
 .
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal with
 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:
 .
 * Redistributions of source code must retain the above copyright notice,
   this list of conditions and the following disclaimers.
 * Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimers in the documentation
   and/or other materials provided with the distribution.
 * Neither the names of <Name of Development Group, Name of Institution>,
   nor the names of its contributors may be used to endorse or promote products
   derived from this Software without specific prior written permission.
 .
 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
 CONTRIBUTORS OR COPYRIGHT HOLDERS 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 WITH THE
 SOFTWARE.

License: GPL-2 with Linux Syscall Note Exception
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, version 2 of the License.
 .
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.
 .
 You should have received a copy of the GNU General Public License
 along with this program. If not, see <http://www.gnu.org/licenses/>.
 .
 The complete text of the GNU General Public License
 can be found in /usr/share/common-licenses/GPL-2 file.
 .
 .
 Additionally, the following exception is granted:
 NOTE! This copyright does *not* cover user programs that use kernel services
 by normal system calls - this is merely considered normal use of the kernel,
 and does *not* fall under the heading of "derived work". Also note that the
 GPL below is copyrighted by the Free Software Foundation, but the instance of
 code that it refers to (the Linux kernel) is copyrighted by me and others who
 actually wrote it.
 .
 Also note that the only valid version of the GPL as far as the kernel is
 concerned is _this_ particular version of the license (ie v2, not v2.2 or v3.x
 or whatever), unless explicitly otherwise stated.
 .
Comment: See https://spdx.org/licenses/Linux-syscall-note.html
