]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: Remove UML build exclusion from Kconfig
authorHarry Wentland <harry.wentland@amd.com>
Tue, 5 May 2026 16:20:18 +0000 (10:20 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 May 2026 22:07:34 +0000 (18:07 -0400)
The depends on !UML was added in commit dffe68131707 ("amdgpu: Avoid
building on UML") to work around build failures with allyesconfig on
UML. The original errors were:

 - smu7_hwmgr.c: incompatible pointer type 'struct cpuinfo_um *' vs
   'struct cpuinfo_x86 *' in intel_core_rkl_chk()
 - kfd_topology.c: 'struct cpuinfo_um' has no member named 'apicid'

Both issues have since been resolved independently:
 - intel_core_rkl_chk() has been removed entirely.
 - kfd_topology.c now uses a proper #ifdef CONFIG_X86_64 guard.
 - All other cpuinfo_x86/cpu_data() references in the driver are
   guarded by #if IS_ENABLED(CONFIG_X86) or #ifdef CONFIG_X86_64.

Removing this exclusion allows CONFIG_DRM_AMDGPU to be selected on UML,
which in turn enables running KUnit tests (such as amdgpu_dm_crc_test)
under UML without needing a full hardware-capable kernel build.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Kconfig

index 7fb0b93bc1caa5b5092b525e47904a23af11fe96..12e4a41bf1f04de940cf53bf2af12a34b8e2949b 100644 (file)
@@ -3,7 +3,6 @@
 config DRM_AMDGPU
        tristate "AMD GPU"
        depends on DRM && PCI
-       depends on !UML
        select FW_LOADER
        select DRM_CLIENT
        select DRM_CLIENT_SELECTION