git: amdgpu - Build in optional support for "CIK" architecture GPUs.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sat Jan 17 07:25:16 PST 2026


commit 66569439771d43fa3df306f0b11b0ef25da0f541
Author: Charlie Root <root at S930.fritz.box>
Date:   Sat Jan 17 14:31:16 2026 +0100

    amdgpu - Build in optional support for "CIK" architecture GPUs.
    
    This builds in support for the KAVERI, BONAIRE, HAWAII, KABINI, and MULLINS,
    GPU versions.
    
    The newly added source files were taken from Linux 4.20.17 to match the
    rest of the amdgpu driver's current state.
    
    By default, amdgpu(4) is not going to match these models.
    In order to make amdgpu(4) match and attach to these GPUs, you have to set
    the drm.amdgpu.cik_support=1 tunable in /boot/loader.conf.
    
    Until we have 8bit colormapped mode support in syscons(4), you may also
    need to force the driver to setup the console framebuffer in 16bpp or 32bpp
    mode, using the `drm.video.<connector>' tunable documented in drm(4).

Summary of changes:
 share/man/man4/amdgpu.4                            |   27 +-
 share/man/man4/radeon.4                            |    4 +-
 sys/dev/drm/amd/amdgpu/Makefile                    |   16 +-
 sys/dev/drm/amd/amdgpu/amdgpu_drv.c                |    9 +-
 sys/dev/drm/{radeon => amd/amdgpu}/ci_dpm.c        | 4104 +++++++++------
 sys/dev/drm/{radeon => amd/amdgpu}/ci_dpm.h        |   43 +-
 sys/dev/drm/amd/amdgpu/ci_smc.c                    |  279 ++
 sys/dev/drm/amd/amdgpu/cik.c                       |    4 +
 sys/dev/drm/amd/amdgpu/{cz_ih.c => cik_ih.c}       |  229 +-
 sys/dev/drm/amd/amdgpu/{uvd_v5_0.h => cik_ih.h}    |    6 +-
 sys/dev/drm/amd/amdgpu/{sdma_v2_4.c => cik_sdma.c} |  854 ++--
 sys/dev/drm/amd/amdgpu/{uvd_v5_0.h => cik_sdma.h}  |    6 +-
 sys/dev/drm/amd/amdgpu/{dce_v10_0.c => dce_v8_0.c} | 1869 ++++---
 sys/dev/drm/amd/amdgpu/{cik.h => dce_v8_0.h}       |   14 +-
 sys/dev/drm/amd/amdgpu/gfx_v7_0.c                  | 5264 ++++++++++++++++++++
 sys/dev/drm/amd/amdgpu/{gfx_v8_0.h => gfx_v7_0.h}  |   14 +-
 sys/dev/drm/{radeon => amd/amdgpu}/kv_dpm.c        | 2034 +++++---
 sys/dev/drm/{radeon => amd/amdgpu}/kv_dpm.h        |   49 +-
 sys/dev/drm/{radeon => amd/amdgpu}/kv_smc.c        |   74 +-
 sys/dev/drm/amd/amdgpu/psp_v11_0.c                 |    2 +-
 sys/dev/drm/amd/amdgpu/uvd_v4_2.c                  |  793 +++
 sys/dev/drm/amd/amdgpu/{uvd_v5_0.h => uvd_v4_2.h}  |    6 +-
 sys/dev/drm/amd/amdgpu/vce_v2_0.c                  |  656 +++
 sys/dev/drm/amd/amdgpu/{uvd_v5_0.h => vce_v2_0.h}  |    6 +-
 sys/dev/drm/kconfig.h                              |    1 +
 sys/dev/drm/radeon/radeon.h                        |    1 -
 sys/dev/drm/radeon/radeon_drv.c                    |   36 +-
 27 files changed, 12410 insertions(+), 3990 deletions(-)
 copy sys/dev/drm/{radeon => amd/amdgpu}/ci_dpm.c (50%)
 copy sys/dev/drm/{radeon => amd/amdgpu}/ci_dpm.h (88%)
 create mode 100644 sys/dev/drm/amd/amdgpu/ci_smc.c
 copy sys/dev/drm/amd/amdgpu/{cz_ih.c => cik_ih.c} (61%)
 copy sys/dev/drm/amd/amdgpu/{uvd_v5_0.h => cik_ih.h} (91%)
 copy sys/dev/drm/amd/amdgpu/{sdma_v2_4.c => cik_sdma.c} (52%)
 copy sys/dev/drm/amd/amdgpu/{uvd_v5_0.h => cik_sdma.h} (91%)
 copy sys/dev/drm/amd/amdgpu/{dce_v10_0.c => dce_v8_0.c} (60%)
 copy sys/dev/drm/amd/amdgpu/{cik.h => dce_v8_0.h} (73%)
 create mode 100644 sys/dev/drm/amd/amdgpu/gfx_v7_0.c
 copy sys/dev/drm/amd/amdgpu/{gfx_v8_0.h => gfx_v7_0.h} (75%)
 copy sys/dev/drm/{radeon => amd/amdgpu}/kv_dpm.c (50%)
 copy sys/dev/drm/{radeon => amd/amdgpu}/kv_dpm.h (79%)
 copy sys/dev/drm/{radeon => amd/amdgpu}/kv_smc.c (60%)
 create mode 100644 sys/dev/drm/amd/amdgpu/uvd_v4_2.c
 copy sys/dev/drm/amd/amdgpu/{uvd_v5_0.h => uvd_v4_2.h} (91%)
 create mode 100644 sys/dev/drm/amd/amdgpu/vce_v2_0.c
 copy sys/dev/drm/amd/amdgpu/{uvd_v5_0.h => vce_v2_0.h} (91%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/66569439771d43fa3df306f0b11b0ef25da0f541


-- 
DragonFly BSD source repository


More information about the Commits mailing list