1d198b877SEmmanuel Vadot#- 2611503c6SEmmanuel Vadot# SPDX-License-Identifier: BSD-2-Clause 3d198b877SEmmanuel Vadot# 4d198b877SEmmanuel Vadot# Copyright 2023 Beckhoff Automation GmbH & Co. KG 5d198b877SEmmanuel Vadot# 6d198b877SEmmanuel Vadot# Redistribution and use in source and binary forms, with or without 7d198b877SEmmanuel Vadot# modification, are permitted providing that the following conditions 8d198b877SEmmanuel Vadot# are met: 9d198b877SEmmanuel Vadot# 1. Redistributions of source code must retain the above copyright 10d198b877SEmmanuel Vadot# notice, this list of conditions and the following disclaimer. 11d198b877SEmmanuel Vadot# 2. Redistributions in binary form must reproduce the above copyright 12d198b877SEmmanuel Vadot# notice, this list of conditions and the following disclaimer in the 13d198b877SEmmanuel Vadot# documentation and/or other materials provided with the distribution. 14d198b877SEmmanuel Vadot# 15d198b877SEmmanuel Vadot# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 16d198b877SEmmanuel Vadot# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 17d198b877SEmmanuel Vadot# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18d198b877SEmmanuel Vadot# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 19d198b877SEmmanuel Vadot# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20d198b877SEmmanuel Vadot# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21d198b877SEmmanuel Vadot# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22d198b877SEmmanuel Vadot# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 23d198b877SEmmanuel Vadot# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 24d198b877SEmmanuel Vadot# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25d198b877SEmmanuel Vadot# POSSIBILITY OF SUCH DAMAGE. 26d198b877SEmmanuel Vadot 27d198b877SEmmanuel Vadotpci_video_amd() 28d198b877SEmmanuel Vadot{ 2912545b85SDanilo Egea Gondolfo # A table listing the required firmware versions for each GPU series 3012545b85SDanilo Egea Gondolfo # is available at https://docs.kernel.org/gpu/amdgpu/driver-misc.html 3112545b85SDanilo Egea Gondolfo 32d198b877SEmmanuel Vadot case "$1" in 33d198b877SEmmanuel Vadot 0x678*|0x679*) 3410aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-tahiti" 35d198b877SEmmanuel Vadot ;; 36d198b877SEmmanuel Vadot 0x680*|0x681*) 3710aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-pitcairn" 38d198b877SEmmanuel Vadot ;; 39d198b877SEmmanuel Vadot 0x660*|0x661*|0x662*|0x663*) 4010aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-oland" 41d198b877SEmmanuel Vadot ;; 42d198b877SEmmanuel Vadot 0x682*|0x683*) 4310aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-verde gpu-firmware-amd-kmod-si58" 44d198b877SEmmanuel Vadot ;; 45d198b877SEmmanuel Vadot 0x666*) 4610aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-hainan" 47d198b877SEmmanuel Vadot ;; 48d198b877SEmmanuel Vadot 0x13*) 4910aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-kaveri" 50d198b877SEmmanuel Vadot ;; 51d198b877SEmmanuel Vadot 0x664*|0x664*) 5210aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-bonaire" 53d198b877SEmmanuel Vadot ;; 54d198b877SEmmanuel Vadot 0x67a*|0x67b*) 5510aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-hawaii" 56d198b877SEmmanuel Vadot ;; 57d198b877SEmmanuel Vadot 0x983*) 5810aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-kabini" 59d198b877SEmmanuel Vadot ;; 60d198b877SEmmanuel Vadot 0x985*) 6110aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-mullins" 62d198b877SEmmanuel Vadot ;; 63d198b877SEmmanuel Vadot 0x690*) 6410aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-topaz" 65d198b877SEmmanuel Vadot ;; 66d198b877SEmmanuel Vadot 0x692*|0x693*) 6710aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-tonga" 68d198b877SEmmanuel Vadot ;; 69d198b877SEmmanuel Vadot 0x730*) 7010aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-fiji" 71d198b877SEmmanuel Vadot ;; 72d198b877SEmmanuel Vadot 0x987*) 7310aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-carrizo" 74d198b877SEmmanuel Vadot ;; 75d198b877SEmmanuel Vadot 0x98e4*) 7610aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-stoney" 77d198b877SEmmanuel Vadot ;; 78d198b877SEmmanuel Vadot 0x67e*|0x67ff) 7910aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-polaris11" 80d198b877SEmmanuel Vadot ;; 81d198b877SEmmanuel Vadot 0x67c*|0x67d*|0x6fdf) 8210aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-polaris10" 83d198b877SEmmanuel Vadot ;; 84d198b877SEmmanuel Vadot 0x698*|0x699*) 8510aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-polaris12" 86d198b877SEmmanuel Vadot ;; 87d198b877SEmmanuel Vadot 0x694*) 8810aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-vegam" 89d198b877SEmmanuel Vadot ;; 90d198b877SEmmanuel Vadot 0x686*|0x687*) 9110aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-vega10" 92d198b877SEmmanuel Vadot ;; 93d198b877SEmmanuel Vadot 0x69a*) 9410aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-vega12" 95d198b877SEmmanuel Vadot ;; 96d198b877SEmmanuel Vadot 0x66a*) 9710aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-vega20" 98d198b877SEmmanuel Vadot ;; 99d198b877SEmmanuel Vadot 0x15d*) 10010aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-raven" 101d198b877SEmmanuel Vadot ;; 102d198b877SEmmanuel Vadot 0x738*|0x739*) 10310aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-arcturus" 104d198b877SEmmanuel Vadot ;; 105d198b877SEmmanuel Vadot 0x731*) 10610aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-navi10" 107d198b877SEmmanuel Vadot ;; 108d198b877SEmmanuel Vadot 0x734*) 10910aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-navi14" 110d198b877SEmmanuel Vadot ;; 111d198b877SEmmanuel Vadot 0x15e7|0x1636|0x1638|0x164c) 11210aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-renoir" 113d198b877SEmmanuel Vadot ;; 114d198b877SEmmanuel Vadot 0x736*) 11510aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-navi12" 116d198b877SEmmanuel Vadot ;; 117d198b877SEmmanuel Vadot 0x73a*|0x73b*) 11810aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-sienna-cichlid" 119d198b877SEmmanuel Vadot ;; 120d198b877SEmmanuel Vadot 0x163f) 12110aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-vangogh" 122d198b877SEmmanuel Vadot ;; 123d198b877SEmmanuel Vadot 0x164d|0x1681) 12410aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-yellow-carp" 125d198b877SEmmanuel Vadot ;; 126d198b877SEmmanuel Vadot 0x73c*|0x73d*) 12710aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-navy-flounder" 128d198b877SEmmanuel Vadot ;; 129d198b877SEmmanuel Vadot 0x73e*|0x73f*) 13010aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-dimgrey-cavefish" 131d198b877SEmmanuel Vadot ;; 132d198b877SEmmanuel Vadot 0x740*|0x741*) 13310aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-aldebaran" 134d198b877SEmmanuel Vadot ;; 135d198b877SEmmanuel Vadot 0x13fe) 13610aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-cyan-skillfish2" 137d198b877SEmmanuel Vadot ;; 138d198b877SEmmanuel Vadot 0x742*|0x743*) 13910aa369aSBjoern A. Zeeb addpkg "gpu-firmware-amd-kmod-beige-goby" 140d198b877SEmmanuel Vadot ;; 141f5966203SGoran Mekić 0x744c) 1426caa19a0SGoran Mekić addpkg "gpu-firmware-amd-kmod-dcn-3-2-0" 1436caa19a0SGoran Mekić addpkg "gpu-firmware-amd-kmod-gc-11-0-0" 1446caa19a0SGoran Mekić addpkg "gpu-firmware-amd-kmod-psp-13-0-0" 1456caa19a0SGoran Mekić addpkg "gpu-firmware-amd-kmod-sdma-6-0-0" 1466caa19a0SGoran Mekić addpkg "gpu-firmware-amd-kmod-smu-13-0-0" 1476caa19a0SGoran Mekić addpkg "gpu-firmware-amd-kmod-vcn-4-0-0" 148f5966203SGoran Mekić ;; 1492db2566fSPhilipp Ost 0x15bf) 1502db2566fSPhilipp Ost addpkg "gpu-firmware-amd-kmod-gc-11-0-1" 1512db2566fSPhilipp Ost addpkg "gpu-firmware-amd-kmod-psp-13-0-4" 1522db2566fSPhilipp Ost addpkg "gpu-firmware-amd-kmod-dcn-3-1-4" 1532db2566fSPhilipp Ost addpkg "gpu-firmware-amd-kmod-sdma-6-0-1" 1542db2566fSPhilipp Ost addpkg "gpu-firmware-amd-kmod-vcn-4-0-2" 1552db2566fSPhilipp Ost ;; 156*d57d6236SBernhard Froehlich 0x15c8) 157*d57d6236SBernhard Froehlich addpkg "gpu-firmware-amd-kmod-dcn-3-1-4" 158*d57d6236SBernhard Froehlich addpkg "gpu-firmware-amd-kmod-gc-11-0-4" 159*d57d6236SBernhard Froehlich addpkg "gpu-firmware-amd-kmod-psp-13-0-11" 160*d57d6236SBernhard Froehlich addpkg "gpu-firmware-amd-kmod-sdma-6-0-1" 161*d57d6236SBernhard Froehlich addpkg "gpu-firmware-amd-kmod-vcn-4-0-2" 162*d57d6236SBernhard Froehlich ;; 16312545b85SDanilo Egea Gondolfo 0x164e) 16412545b85SDanilo Egea Gondolfo addpkg "gpu-firmware-amd-kmod-gc-10-3-6" 16512545b85SDanilo Egea Gondolfo addpkg "gpu-firmware-amd-kmod-psp-13-0-5" 16612545b85SDanilo Egea Gondolfo addpkg "gpu-firmware-amd-kmod-dcn-3-1-5" 16712545b85SDanilo Egea Gondolfo addpkg "gpu-firmware-amd-kmod-sdma-5-2-6" 16812545b85SDanilo Egea Gondolfo addpkg "gpu-firmware-amd-kmod-vcn-3-1-2" 16912545b85SDanilo Egea Gondolfo ;; 170d198b877SEmmanuel Vadot esac 171d198b877SEmmanuel Vadot} 172