All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] drm/modes: Don't apply cmdline's rotation if it wasn't specified
@ 2019-07-11  2:13 Dmitry Osipenko
  2019-07-12 19:54 ` Maxime Ripard
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Osipenko @ 2019-07-11  2:13 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, Maarten Lankhorst,
	Maxime Ripard, Sean Paul, Daniel Vetter, David Airlie
  Cc: dri-devel, linux-tegra, linux-kernel

The rotation mode from cmdline shouldn't be taken into account if it
wasn't specified in the cmdline. This fixes ignored default display
orientation when display mode is given using cmdline without the
rotation being specified.

Fixes: 1bf4e09227c3 ("drm/modes: Allow to specify rotation and reflection on the commandline")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 drivers/gpu/drm/drm_client_modeset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_client_modeset.c b/drivers/gpu/drm/drm_client_modeset.c
index 56d36779d213..c8922b7cac09 100644
--- a/drivers/gpu/drm/drm_client_modeset.c
+++ b/drivers/gpu/drm/drm_client_modeset.c
@@ -859,7 +859,7 @@ bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation)
 	 * simple XOR between the two handle the addition nicely.
 	 */
 	cmdline = &connector->cmdline_mode;
-	if (cmdline->specified) {
+	if (cmdline->specified && cmdline->rotation_reflection) {
 		unsigned int cmdline_rest, panel_rest;
 		unsigned int cmdline_rot, panel_rot;
 		unsigned int sum_rot, sum_rest;
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] drm/modes: Don't apply cmdline's rotation if it wasn't specified
  2019-07-11  2:13 [PATCH v1] drm/modes: Don't apply cmdline's rotation if it wasn't specified Dmitry Osipenko
@ 2019-07-12 19:54 ` Maxime Ripard
  2019-07-13 18:57   ` Dmitry Osipenko
  0 siblings, 1 reply; 5+ messages in thread
From: Maxime Ripard @ 2019-07-12 19:54 UTC (permalink / raw)
  To: Dmitry Osipenko
  Cc: Thierry Reding, Jonathan Hunter, Maarten Lankhorst, Sean Paul,
	Daniel Vetter, David Airlie, dri-devel, linux-tegra,
	linux-kernel

On Thu, Jul 11, 2019 at 05:13:13AM +0300, Dmitry Osipenko wrote:
> The rotation mode from cmdline shouldn't be taken into account if it
> wasn't specified in the cmdline. This fixes ignored default display
> orientation when display mode is given using cmdline without the
> rotation being specified.
>
> Fixes: 1bf4e09227c3 ("drm/modes: Allow to specify rotation and reflection on the commandline")
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>

Thanks!
Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] drm/modes: Don't apply cmdline's rotation if it wasn't specified
  2019-07-12 19:54 ` Maxime Ripard
@ 2019-07-13 18:57   ` Dmitry Osipenko
  2019-07-16  8:42     ` Maxime Ripard
  0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Osipenko @ 2019-07-13 18:57 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: Thierry Reding, Jonathan Hunter, Maarten Lankhorst, Sean Paul,
	Daniel Vetter, David Airlie, dri-devel, linux-tegra,
	linux-kernel

12.07.2019 22:54, Maxime Ripard пишет:
> On Thu, Jul 11, 2019 at 05:13:13AM +0300, Dmitry Osipenko wrote:
>> The rotation mode from cmdline shouldn't be taken into account if it
>> wasn't specified in the cmdline. This fixes ignored default display
>> orientation when display mode is given using cmdline without the
>> rotation being specified.
>>
>> Fixes: 1bf4e09227c3 ("drm/modes: Allow to specify rotation and reflection on the commandline")
>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> 
> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
> 
> Thanks!
> Maxime

Thank you. Please note that I'm not a DRM maintainer, hence either you
should pick up and apply the patch by yourself or somebody else who has
the commit rights will have do that. I guess Thierry could also pick up
the patch into the Tegra's tree, but this patch is more DRM-generic.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] drm/modes: Don't apply cmdline's rotation if it wasn't specified
  2019-07-13 18:57   ` Dmitry Osipenko
@ 2019-07-16  8:42     ` Maxime Ripard
  2019-07-16 14:02       ` Dmitry Osipenko
  0 siblings, 1 reply; 5+ messages in thread
From: Maxime Ripard @ 2019-07-16  8:42 UTC (permalink / raw)
  To: Dmitry Osipenko
  Cc: Thierry Reding, Jonathan Hunter, Maarten Lankhorst, Sean Paul,
	Daniel Vetter, David Airlie, dri-devel, linux-tegra,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1128 bytes --]

On Sat, Jul 13, 2019 at 09:57:32PM +0300, Dmitry Osipenko wrote:
> 12.07.2019 22:54, Maxime Ripard пишет:
> > On Thu, Jul 11, 2019 at 05:13:13AM +0300, Dmitry Osipenko wrote:
> >> The rotation mode from cmdline shouldn't be taken into account if it
> >> wasn't specified in the cmdline. This fixes ignored default display
> >> orientation when display mode is given using cmdline without the
> >> rotation being specified.
> >>
> >> Fixes: 1bf4e09227c3 ("drm/modes: Allow to specify rotation and reflection on the commandline")
> >> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> >
> > Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
> >
> > Thanks!
> > Maxime
>
> Thank you. Please note that I'm not a DRM maintainer, hence either you
> should pick up and apply the patch by yourself or somebody else who has
> the commit rights will have do that. I guess Thierry could also pick up
> the patch into the Tegra's tree, but this patch is more DRM-generic.

Right, I've applied it now

Thanks!
Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1] drm/modes: Don't apply cmdline's rotation if it wasn't specified
  2019-07-16  8:42     ` Maxime Ripard
@ 2019-07-16 14:02       ` Dmitry Osipenko
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Osipenko @ 2019-07-16 14:02 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: Thierry Reding, Jonathan Hunter, Maarten Lankhorst, Sean Paul,
	Daniel Vetter, David Airlie, dri-devel, linux-tegra,
	linux-kernel

16.07.2019 11:42, Maxime Ripard пишет:
> On Sat, Jul 13, 2019 at 09:57:32PM +0300, Dmitry Osipenko wrote:
>> 12.07.2019 22:54, Maxime Ripard пишет:
>>> On Thu, Jul 11, 2019 at 05:13:13AM +0300, Dmitry Osipenko wrote:
>>>> The rotation mode from cmdline shouldn't be taken into account if it
>>>> wasn't specified in the cmdline. This fixes ignored default display
>>>> orientation when display mode is given using cmdline without the
>>>> rotation being specified.
>>>>
>>>> Fixes: 1bf4e09227c3 ("drm/modes: Allow to specify rotation and reflection on the commandline")
>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
>>>
>>> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
>>>
>>> Thanks!
>>> Maxime
>>
>> Thank you. Please note that I'm not a DRM maintainer, hence either you
>> should pick up and apply the patch by yourself or somebody else who has
>> the commit rights will have do that. I guess Thierry could also pick up
>> the patch into the Tegra's tree, but this patch is more DRM-generic.
> 
> Right, I've applied it now

Thank you very much!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-16 14:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-11  2:13 [PATCH v1] drm/modes: Don't apply cmdline's rotation if it wasn't specified Dmitry Osipenko
2019-07-12 19:54 ` Maxime Ripard
2019-07-13 18:57   ` Dmitry Osipenko
2019-07-16  8:42     ` Maxime Ripard
2019-07-16 14:02       ` Dmitry Osipenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.