Re: [PATCH 09/12] drm/modes: parse_cmdline: Add support for specifying panel_orientation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hans,

Thanks for this series (and thanks for bouncing the mails too).

All the previous patches are
Acked-by: Maxime Ripard <mripard@xxxxxxxxxx>

On Sun, Nov 10, 2019 at 04:40:58PM +0100, Hans de Goede wrote:
> Sometimes we want to override a connector's panel_orientation from the
> kernel commandline. Either for testing and for special cases, e.g. a kiosk
> like setup which uses a TV mounted in portrait mode.
>
> Users can already specify a "rotate" option through a video= kernel cmdline
> option. But that only supports 0/180 degrees (see drm_client_modeset TODO)
> and only works for in kernel modeset clients, not for userspace kms users.
>
> The "panel-orientation" connector property OTOH does support 90/270 degrees
> as it leaves dealing with the rotation up to userspace and this does work
> for userspace kms clients (at least those which support this property).
>
> BugLink: https://gitlab.freedesktop.org/plymouth/plymouth/merge_requests/83
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
> ---
>  Documentation/fb/modedb.rst                   |  3 ++
>  drivers/gpu/drm/drm_modes.c                   | 32 +++++++++++++++++++
>  .../gpu/drm/selftests/drm_cmdline_selftests.h |  1 +
>  .../drm/selftests/test-drm_cmdline_parser.c   | 22 +++++++++++++
>  include/drm/drm_connector.h                   |  8 +++++
>  5 files changed, 66 insertions(+)
>
> diff --git a/Documentation/fb/modedb.rst b/Documentation/fb/modedb.rst
> index 9c4e3fd39e6d..624d08fd2856 100644
> --- a/Documentation/fb/modedb.rst
> +++ b/Documentation/fb/modedb.rst
> @@ -65,6 +65,9 @@ Valid options are::
>    - reflect_y (boolean): Perform an axial symmetry on the Y axis
>    - rotate (integer): Rotate the initial framebuffer by x
>      degrees. Valid values are 0, 90, 180 and 270.
> +  - panel_orientation, one of "normal", "upside_down", "left_side_up", or
> +    "right_side_up". For KMS drivers only, this sets the "panel orientation"
> +    property on the kms connector as hint for kms users.

Even though the semantic is a bit different, I think we should remain
consistent and have the same argument than for rotate (ie, steps in
clockwise rotation in steps of 90 degrees).

The rest looks good

Maxime

Attachment: signature.asc
Description: PGP signature

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux