All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: also move DSI panels to the front of the connector list
@ 2016-11-17 10:27 Jani Nikula
  2016-11-17 10:29 ` [PATCH v2] " Jani Nikula
  2016-11-17 12:16 ` ✓ Fi.CI.BAT: success for drm: also move DSI panels to the front of the connector list (rev2) Patchwork
  0 siblings, 2 replies; 6+ messages in thread
From: Jani Nikula @ 2016-11-17 10:27 UTC (permalink / raw)
  To: dri-devel; +Cc: Jani Nikula, Daniel Vetter, intel-gfx

We've overlooked adding DSI panels to the front of the connector
list. This seems to be the right thing to do, and I suspect this might
fix some issues, although I currently have no evidence to support this.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/drm_modeset_helper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_modeset_helper.c b/drivers/gpu/drm/drm_modeset_helper.c
index 2f452b3dd40e..440d65882fc6 100644
--- a/drivers/gpu/drm/drm_modeset_helper.c
+++ b/drivers/gpu/drm/drm_modeset_helper.c
@@ -51,7 +51,8 @@ void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
 	list_for_each_entry_safe(connector, tmp,
 				 &dev->mode_config.connector_list, head) {
 		if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS ||
-		    connector->connector_type == DRM_MODE_CONNECTOR_eDP)
+		    connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
+		    connector->connector_type == DRM_MODE_CONNECTOR_DSI)
 			list_move_tail(&connector->head, &panel_list);
 	}
 
-- 
2.1.4

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

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

* [PATCH v2] drm: also move DSI panels to the front of the connector list
  2016-11-17 10:27 [PATCH] drm: also move DSI panels to the front of the connector list Jani Nikula
@ 2016-11-17 10:29 ` Jani Nikula
  2016-11-17 10:59   ` Daniel Vetter
  2016-11-17 12:16   ` Andrzej Hajda
  2016-11-17 12:16 ` ✓ Fi.CI.BAT: success for drm: also move DSI panels to the front of the connector list (rev2) Patchwork
  1 sibling, 2 replies; 6+ messages in thread
From: Jani Nikula @ 2016-11-17 10:29 UTC (permalink / raw)
  To: Jani Nikula, dri-devel; +Cc: Daniel Vetter, intel-gfx

We've overlooked adding DSI panels to the front of the connector
list. This seems to be the right thing to do, and I suspect this might
fix some issues, although I currently have no evidence to support this.

v2: also git add the comment change

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/drm_modeset_helper.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_modeset_helper.c b/drivers/gpu/drm/drm_modeset_helper.c
index 2f452b3dd40e..eba1c6c72acd 100644
--- a/drivers/gpu/drm/drm_modeset_helper.c
+++ b/drivers/gpu/drm/drm_modeset_helper.c
@@ -38,7 +38,7 @@
  * Some userspace presumes that the first connected connector is the main
  * display, where it's supposed to display e.g. the login screen. For
  * laptops, this should be the main panel. Use this function to sort all
- * (eDP/LVDS) panels to the front of the connector list, instead of
+ * (eDP/LVDS/DSI) panels to the front of the connector list, instead of
  * painstakingly trying to initialize them in the right order.
  */
 void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
@@ -51,7 +51,8 @@ void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
 	list_for_each_entry_safe(connector, tmp,
 				 &dev->mode_config.connector_list, head) {
 		if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS ||
-		    connector->connector_type == DRM_MODE_CONNECTOR_eDP)
+		    connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
+		    connector->connector_type == DRM_MODE_CONNECTOR_DSI)
 			list_move_tail(&connector->head, &panel_list);
 	}
 
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH v2] drm: also move DSI panels to the front of the connector list
  2016-11-17 10:29 ` [PATCH v2] " Jani Nikula
@ 2016-11-17 10:59   ` Daniel Vetter
  2016-11-17 12:16   ` Andrzej Hajda
  1 sibling, 0 replies; 6+ messages in thread
From: Daniel Vetter @ 2016-11-17 10:59 UTC (permalink / raw)
  To: Jani Nikula; +Cc: Daniel Vetter, intel-gfx, dri-devel

On Thu, Nov 17, 2016 at 12:29:08PM +0200, Jani Nikula wrote:
> We've overlooked adding DSI panels to the front of the connector
> list. This seems to be the right thing to do, and I suspect this might
> fix some issues, although I currently have no evidence to support this.
> 
> v2: also git add the comment change
> 
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Applied to drm-misc, thx.
-Daniel

> ---
>  drivers/gpu/drm/drm_modeset_helper.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_modeset_helper.c b/drivers/gpu/drm/drm_modeset_helper.c
> index 2f452b3dd40e..eba1c6c72acd 100644
> --- a/drivers/gpu/drm/drm_modeset_helper.c
> +++ b/drivers/gpu/drm/drm_modeset_helper.c
> @@ -38,7 +38,7 @@
>   * Some userspace presumes that the first connected connector is the main
>   * display, where it's supposed to display e.g. the login screen. For
>   * laptops, this should be the main panel. Use this function to sort all
> - * (eDP/LVDS) panels to the front of the connector list, instead of
> + * (eDP/LVDS/DSI) panels to the front of the connector list, instead of
>   * painstakingly trying to initialize them in the right order.
>   */
>  void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
> @@ -51,7 +51,8 @@ void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
>  	list_for_each_entry_safe(connector, tmp,
>  				 &dev->mode_config.connector_list, head) {
>  		if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS ||
> -		    connector->connector_type == DRM_MODE_CONNECTOR_eDP)
> +		    connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
> +		    connector->connector_type == DRM_MODE_CONNECTOR_DSI)
>  			list_move_tail(&connector->head, &panel_list);
>  	}
>  
> -- 
> 2.1.4
> 

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* ✓ Fi.CI.BAT: success for drm: also move DSI panels to the front of the connector list (rev2)
  2016-11-17 10:27 [PATCH] drm: also move DSI panels to the front of the connector list Jani Nikula
  2016-11-17 10:29 ` [PATCH v2] " Jani Nikula
@ 2016-11-17 12:16 ` Patchwork
  1 sibling, 0 replies; 6+ messages in thread
From: Patchwork @ 2016-11-17 12:16 UTC (permalink / raw)
  To: Jani Nikula; +Cc: intel-gfx

== Series Details ==

Series: drm: also move DSI panels to the front of the connector list (rev2)
URL   : https://patchwork.freedesktop.org/series/15483/
State : success

== Summary ==

Series 15483v2 drm: also move DSI panels to the front of the connector list
https://patchwork.freedesktop.org/api/1.0/series/15483/revisions/2/mbox/


fi-bdw-5557u     total:244  pass:229  dwarn:0   dfail:0   fail:0   skip:15 
fi-bsw-n3050     total:244  pass:204  dwarn:0   dfail:0   fail:0   skip:40 
fi-bxt-t5700     total:244  pass:216  dwarn:0   dfail:0   fail:0   skip:28 
fi-byt-j1900     total:244  pass:216  dwarn:0   dfail:0   fail:0   skip:28 
fi-byt-n2820     total:244  pass:212  dwarn:0   dfail:0   fail:0   skip:32 
fi-hsw-4770      total:244  pass:224  dwarn:0   dfail:0   fail:0   skip:20 
fi-hsw-4770r     total:244  pass:224  dwarn:0   dfail:0   fail:0   skip:20 
fi-ilk-650       total:244  pass:191  dwarn:0   dfail:0   fail:0   skip:53 
fi-ivb-3520m     total:244  pass:222  dwarn:0   dfail:0   fail:0   skip:22 
fi-ivb-3770      total:244  pass:222  dwarn:0   dfail:0   fail:0   skip:22 
fi-kbl-7200u     total:244  pass:222  dwarn:0   dfail:0   fail:0   skip:22 
fi-skl-6260u     total:244  pass:230  dwarn:0   dfail:0   fail:0   skip:14 
fi-skl-6700hq    total:244  pass:223  dwarn:0   dfail:0   fail:0   skip:21 
fi-skl-6700k     total:244  pass:222  dwarn:1   dfail:0   fail:0   skip:21 
fi-skl-6770hq    total:244  pass:230  dwarn:0   dfail:0   fail:0   skip:14 
fi-snb-2520m     total:244  pass:212  dwarn:0   dfail:0   fail:0   skip:32 
fi-snb-2600      total:244  pass:211  dwarn:0   dfail:0   fail:0   skip:33 

ccd01198820ab7286f0b98f7b28dbf6ad29fa861 drm-intel-nightly: 2016y-11m-17d-10h-54m-57s UTC integration manifest
3f6fa82 drm: also move DSI panels to the front of the connector list

== Logs ==

For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_3033/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH v2] drm: also move DSI panels to the front of the connector list
  2016-11-17 10:29 ` [PATCH v2] " Jani Nikula
  2016-11-17 10:59   ` Daniel Vetter
@ 2016-11-17 12:16   ` Andrzej Hajda
  2016-11-17 12:21     ` Jani Nikula
  1 sibling, 1 reply; 6+ messages in thread
From: Andrzej Hajda @ 2016-11-17 12:16 UTC (permalink / raw)
  To: Jani Nikula, dri-devel; +Cc: Daniel Vetter, intel-gfx

On 17.11.2016 11:29, Jani Nikula wrote:
> We've overlooked adding DSI panels to the front of the connector
> list. This seems to be the right thing to do, and I suspect this might
> fix some issues, although I currently have no evidence to support this.
>
> v2: also git add the comment change
>
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>

Out of curiosity, why driver (i915) do not create connectors
just in proper order instead of sorting them later.


--
Regards
Andrzej

> ---
>  drivers/gpu/drm/drm_modeset_helper.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_modeset_helper.c b/drivers/gpu/drm/drm_modeset_helper.c
> index 2f452b3dd40e..eba1c6c72acd 100644
> --- a/drivers/gpu/drm/drm_modeset_helper.c
> +++ b/drivers/gpu/drm/drm_modeset_helper.c
> @@ -38,7 +38,7 @@
>   * Some userspace presumes that the first connected connector is the main
>   * display, where it's supposed to display e.g. the login screen. For
>   * laptops, this should be the main panel. Use this function to sort all
> - * (eDP/LVDS) panels to the front of the connector list, instead of
> + * (eDP/LVDS/DSI) panels to the front of the connector list, instead of
>   * painstakingly trying to initialize them in the right order.
>   */
>  void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
> @@ -51,7 +51,8 @@ void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
>  	list_for_each_entry_safe(connector, tmp,
>  				 &dev->mode_config.connector_list, head) {
>  		if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS ||
> -		    connector->connector_type == DRM_MODE_CONNECTOR_eDP)
> +		    connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
> +		    connector->connector_type == DRM_MODE_CONNECTOR_DSI)
>  			list_move_tail(&connector->head, &panel_list);
>  	}
>  


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

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

* Re: [PATCH v2] drm: also move DSI panels to the front of the connector list
  2016-11-17 12:16   ` Andrzej Hajda
@ 2016-11-17 12:21     ` Jani Nikula
  0 siblings, 0 replies; 6+ messages in thread
From: Jani Nikula @ 2016-11-17 12:21 UTC (permalink / raw)
  To: Andrzej Hajda, dri-devel; +Cc: Daniel Vetter, intel-gfx

On Thu, 17 Nov 2016, Andrzej Hajda <a.hajda@samsung.com> wrote:
> On 17.11.2016 11:29, Jani Nikula wrote:
>> We've overlooked adding DSI panels to the front of the connector
>> list. This seems to be the right thing to do, and I suspect this might
>> fix some issues, although I currently have no evidence to support this.
>>
>> v2: also git add the comment change
>>
>> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
>
> Out of curiosity, why driver (i915) do not create connectors
> just in proper order instead of sorting them later.

commit 270b30420c5e0d5f779aa76882367f9265c5aa7d
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sat Oct 27 15:52:05 2012 +0200

    drm/i915: move panel connectors to the front
    
    This essentially reverts
    
    commit cb0953d734348e8862d6d7edc666cfb3bf6d8fae
    Author: Adam Jackson <ajax@redhat.com>
    Date:   Fri Jul 16 14:46:29 2010 -0400
    
        drm/i915: Initialize LVDS and eDP outputs before anything else
    
    simply because it doesn't scale: It misses SDVO and DVO panels,
    and now with DDI encoders on haswell this is becoming unmanageable.
    
    Instead we simply sort the connector list after everything is
    set up.
    
    Reviewed-by: Adam Jackson <ajax@redhat.com>
    Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

>
>
> --
> Regards
> Andrzej
>
>> ---
>>  drivers/gpu/drm/drm_modeset_helper.c | 5 +++--
>>  1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/drm_modeset_helper.c b/drivers/gpu/drm/drm_modeset_helper.c
>> index 2f452b3dd40e..eba1c6c72acd 100644
>> --- a/drivers/gpu/drm/drm_modeset_helper.c
>> +++ b/drivers/gpu/drm/drm_modeset_helper.c
>> @@ -38,7 +38,7 @@
>>   * Some userspace presumes that the first connected connector is the main
>>   * display, where it's supposed to display e.g. the login screen. For
>>   * laptops, this should be the main panel. Use this function to sort all
>> - * (eDP/LVDS) panels to the front of the connector list, instead of
>> + * (eDP/LVDS/DSI) panels to the front of the connector list, instead of
>>   * painstakingly trying to initialize them in the right order.
>>   */
>>  void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
>> @@ -51,7 +51,8 @@ void drm_helper_move_panel_connectors_to_head(struct drm_device *dev)
>>  	list_for_each_entry_safe(connector, tmp,
>>  				 &dev->mode_config.connector_list, head) {
>>  		if (connector->connector_type == DRM_MODE_CONNECTOR_LVDS ||
>> -		    connector->connector_type == DRM_MODE_CONNECTOR_eDP)
>> +		    connector->connector_type == DRM_MODE_CONNECTOR_eDP ||
>> +		    connector->connector_type == DRM_MODE_CONNECTOR_DSI)
>>  			list_move_tail(&connector->head, &panel_list);
>>  	}
>>  
>
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2016-11-17 12:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-17 10:27 [PATCH] drm: also move DSI panels to the front of the connector list Jani Nikula
2016-11-17 10:29 ` [PATCH v2] " Jani Nikula
2016-11-17 10:59   ` Daniel Vetter
2016-11-17 12:16   ` Andrzej Hajda
2016-11-17 12:21     ` Jani Nikula
2016-11-17 12:16 ` ✓ Fi.CI.BAT: success for drm: also move DSI panels to the front of the connector list (rev2) Patchwork

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.