]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Refactor amdgpu_dm_initialize_default_pipeline
authorAlex Hung <alex.hung@amd.com>
Thu, 14 May 2026 22:59:09 +0000 (16:59 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 17:40:29 +0000 (13:40 -0400)
commit52c2bc3097153b4c06c209e32d604b085602d69d
tree03fa4eab7ea5639eb5b305d90742953cbb2fac0c
parentb640830f1a6f1b5705c2865ef48e066f36fed419
drm/amd/display: Refactor amdgpu_dm_initialize_default_pipeline

[Why & How]
Extract amdgpu_dm_initialize_default_pipeline() into a new
STATIC_IFN_KUNIT helper amdgpu_dm_build_default_pipeline().

This separation makes the pipeline-building logic testable via
KUnit without pulling in amdgpu_device and its dependencies
that are unavailable in the UML KUnit build environment.

Assisted-by: Copilot:Claude-Sonnet-4.6
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_colorop.h