drm/dp_mst: Move test_calc_pbn_mode() into an actual selftest
authorLyude Paul <lyude@redhat.com>
Tue, 3 Sep 2019 20:45:42 +0000 (16:45 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 3 Sep 2019 23:28:20 +0000 (19:28 -0400)
commit7cbce45d6243225914b5c967b4ee927a2327842a
treef5e6dc163b526e35cb0086919fd0e22f726cb478
parent3ba64aa36c8c6516ea0c01e3acd13c5fcb5a482c
drm/dp_mst: Move test_calc_pbn_mode() into an actual selftest

Yes, apparently we've been testing this for every single driver load for
quite a long time now. At least that means our PBN calculation is solid!

Anyway, introduce self tests for MST and move this into there.

Cc: Juston Li <juston.li@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Harry Wentland <hwentlan@amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190903204645.25487-5-lyude@redhat.com
drivers/gpu/drm/drm_dp_mst_topology.c
drivers/gpu/drm/selftests/Makefile
drivers/gpu/drm/selftests/drm_modeset_selftests.h
drivers/gpu/drm/selftests/test-drm_dp_mst_helper.c [new file with mode: 0644]
drivers/gpu/drm/selftests/test-drm_modeset_common.h