drm/modes: Apply video parameters with only reflect option
Status from this message: Applied both, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 3 repliesApplied
- v21 patch 4 repliesSuperseded
- v11 patch 7 repliesSuperseded
Changes in v3 from the cover letter
- Fix the cmdline parser to generate only valid rotation values instead. (There should be exactly one rotation angle in a rotation value.)
- Removed most of the original patch - combining the rotations works correctly if we only have valid rotation values
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | drm/modes: Make sure to parse valid rotation value from cmdlinedrivers/ drivers/ drivers/ | +21 | 0 replies | |
| 2/2 | drm/modes: Allow DRM_MODE_ROTATE_0 when applying video mode parametersdrivers/ | +2 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Maxime Ripard |
|---|---|
| Series | A-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] drm/modes: Apply video parameters with only reflect option
At the moment, video mode parameters like video=540x960,reflect_x, (without rotation set) are not taken into account when applying the mode in drm_client_modeset.c.
One of the reasons for this is that the calculation that combines the panel_orientation with cmdline->rotation_reflection does not handle the case when cmdline->rotation_reflection does not have any rotation set.
(i.e. cmdline->rotation_reflection & DRM_MODE_ROTATE_MASK == 0)
However, we really should not generate such a value in the first place. Rotation values should have exactly one rotation angle set (DRM_MODE_ROTATE_0 for "no rotation").
This patch set changes the command line parser to make sure that we generate only valid rotation values (defaulting to DRM_MODE_ROTATE_0).
Finally it allows DRM_MODE_ROTATE_0 when applying the rotation from the video mode parameters to make parameters without rotation work correctly.
Changes in v3:
- Fix the cmdline parser to generate only valid rotation values instead. (There should be exactly one rotation angle in a rotation value.)
- Removed most of the original patch - combining the rotations works correctly if we only have valid rotation values
v2: https://lore.kernel.org/dri-devel/[email protected]/
- Clarified commit message - parameters are parsed correctly,
but not taken into account when applying the mode.
v1: https://lore.kernel.org/dri-devel/[email protected]/
Stephan Gerhold (2):
drm/modes: Make sure to parse valid rotation value from cmdline drm/modes: Allow DRM_MODE_ROTATE_0 when applying video mode parameters
drivers/gpu/drm/drm_client_modeset.c | 3 ++- drivers/gpu/drm/drm_modes.c | 7 +++++++ drivers/gpu/drm/selftests/drm_cmdline_selftests.h | 1 + .../gpu/drm/selftests/test-drm_cmdline_parser.c | 15 +++++++++++++-- 4 files changed, 23 insertions(+), 3 deletions(-)
Signature · 6 lines
2.25.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel