linux-stable/drivers/gpu/drm/tests
Maxime Ripard fedcaf726f
drm/modes: Properly generate a drm_display_mode from a named mode
The framework will get the drm_display_mode from the drm_cmdline_mode it
got by parsing the video command line argument by calling
drm_connector_pick_cmdline_mode().

The heavy lifting will then be done by the
drm_mode_create_from_cmdline_mode() function.

In the case of the named modes though, there's no real code to make that
translation and we rely on the drivers to guess which actual display mode
we meant.

Let's modify drm_mode_create_from_cmdline_mode() to properly generate the
drm_display_mode we mean when passing a named mode.

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Acked-in-principle-or-something-like-that-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v10-9-256dad125326@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
2022-11-24 12:42:39 +01:00
..
.kunitconfig
drm_buddy_test.c drm/tests: Add back seed value information 2022-11-02 09:22:47 -03:00
drm_client_modeset_test.c drm/modes: Properly generate a drm_display_mode from a named mode 2022-11-24 12:42:39 +01:00
drm_cmdline_parser_test.c drm/modes: Introduce the tv_mode property as a command-line option 2022-11-24 12:42:39 +01:00
drm_connector_test.c drm/connector: Add a function to lookup a TV mode by its name 2022-11-24 12:42:39 +01:00
drm_damage_helper_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_dp_mst_helper_test.c drm/tests: Split drm_test_dp_mst_sideband_msg_req_decode into parameterized tests 2022-10-16 14:47:53 -03:00
drm_format_helper_test.c drm: tests: Fix a buffer overflow in format_helper_test 2022-10-20 09:56:05 +02:00
drm_format_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
drm_framebuffer_test.c drm/tests: Split drm_framebuffer_create_test into parameterized tests 2022-09-14 13:53:33 -03:00
drm_kunit_helpers.c drm/tests: helpers: Add SPDX header 2022-11-17 09:25:38 +01:00
drm_kunit_helpers.h drm/tests: helpers: Add SPDX header 2022-11-17 09:25:38 +01:00
drm_mm_test.c drm/tests: Add back seed value information 2022-11-02 09:22:47 -03:00
drm_modes_test.c drm/modes: Add a function to generate analog display modes 2022-11-24 12:42:39 +01:00
drm_plane_helper_test.c drm/plane_helper: Split into parameterized test cases 2022-10-20 08:13:30 -03:00
drm_rect_test.c drm/tests: Change "igt_" prefix to "drm_test_" 2022-09-14 13:53:33 -03:00
Makefile drm/connector: Add a function to lookup a TV mode by its name 2022-11-24 12:42:39 +01:00