linux-brain/drivers/gpu/drm/selftests
Stephan Gerhold 9a426889f4 drm/modes: Make sure to parse valid rotation value from cmdline
[ Upstream commit e6980a727154b793adb218fbc7b4d6af52a7e364 ]

A rotation value should have exactly one rotation angle.
At the moment there is no validation for this when parsing video=
parameters from the command line. This causes problems later on
when we try to combine the command line rotation with the panel
orientation.

To make sure that we generate a valid rotation value:
  - Set DRM_MODE_ROTATE_0 by default (if no rotate= option is set)
  - Validate that there is exactly one rotation angle set
    (i.e. specifying the rotate= option multiple times is invalid)

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20200117153429.54700-2-stephan@gerhold.net
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-03-12 13:00:11 +01:00
..
Makefile drm/selftests: Add command line parser selftests 2019-06-19 12:17:52 +02:00
drm_cmdline_selftests.h drm/modes: Make sure to parse valid rotation value from cmdline 2020-03-12 13:00:11 +01:00
drm_mm_selftests.h drm/mm: Add a search-by-address variant to only inspect a single hole 2018-05-24 15:04:30 +01:00
drm_modeset_selftests.h drm/selftest: Add drm damage helper selftest 2018-12-05 10:00:36 +01:00
drm_selftest.c
drm_selftest.h
test-drm_cmdline_parser.c drm/modes: Make sure to parse valid rotation value from cmdline 2020-03-12 13:00:11 +01:00
test-drm_damage_helper.c drm/selftest: fix spelling mistake "dimention" -> "dimension" 2018-12-11 15:19:42 +01:00
test-drm_format.c drm/selftests: Add tests for drm_format_info* helpers 2018-11-02 09:57:58 +00:00
test-drm_framebuffer.c drm/selftests: drop use of drmP.h 2019-07-17 12:52:55 +02:00
test-drm_mm.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
test-drm_modeset_common.c drm/selftest: Refactor test-drm_plane_helper 2018-10-22 10:30:50 +01:00
test-drm_modeset_common.h drm/selftest: Add drm damage helper selftest 2018-12-05 10:00:36 +01:00
test-drm_plane_helper.c drm/selftest: Refactor test-drm_plane_helper 2018-10-22 10:30:50 +01:00