From: Alex Hung <[email protected]>

[WHY]
The real connector fixture lacks atomic state callbacks required by
DRM connector initialization.

[HOW]
Install the DRM atomic connector duplicate and destroy state helpers
alongside the existing reset callback.

Assisted-by: Copilot:GPT-6-Astra
Reviewed-by: Bhawanpreet Lakha <[email protected]>
Signed-off-by: Alex Hung <[email protected]>
Signed-off-by: George Zhang <[email protected]>
---
 .../drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c    | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c
index 09eba15c2705..d37fe26eecea 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_helpers_test.c
@@ -4293,6 +4293,8 @@ static void 
dm_test_is_dp_sink_present_queries_link_service(struct kunit *test)
  */
 static const struct drm_connector_funcs dm_test_connector_funcs = {
        .reset = drm_atomic_helper_connector_reset,
+       .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
+       .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
 };
 
 static struct amdgpu_dm_connector *dm_test_alloc_real_connector(struct kunit 
*test,
-- 
2.55.0

Reply via email to