OSDN Git Service

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)
commit0facdaa249c4e97346bc0b49c893e4a1d336b7dd
treef1ba4293ce32b5b7f9cda902191df7eab97e96d1
parentb959eb4f5b7ea49b47e95c9047d33d1b1cf81057
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