]> git.baikalelectronics.ru Git - kernel.git/commit
drm/client: Don't add new command-line mode
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 11 May 2022 18:31:25 +0000 (20:31 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 16 May 2022 11:43:24 +0000 (13:43 +0200)
commite6185db5f62128bfb8498448ec8e211a8b6f3824
treef1ba4293ce32b5b7f9cda902191df7eab97e96d1
parente22a185b992e6df4d5b8460612133808f386763d
drm/client: Don't add new command-line mode

Don't add a mode for the kernel's command-line parameters from
within the DRM client code. Doing so can result in an unusable
display. If there's no compatible command-line mode, the client
will use one of the connector's preferred modes.

All mode creation and validation has to be performed by the
connector. When clients run, the connector's fill_modes callback
has already processed the kernel parameters and validated each
mode before adding it. The connector's mode list does not contain
invalid modes.

v2:
* grammar in commit message (Javier)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220511183125.14294-4-tzimmermann@suse.de
drivers/gpu/drm/drm_client_modeset.c