All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: use for_each_port_masked in bxt phy init for clarity
@ 2016-04-01  7:44 Jani Nikula
  2016-04-01  8:11 ` Ander Conselvan De Oliveira
  2016-04-01 10:06 ` ✗ Fi.CI.BAT: failure for " Patchwork
  0 siblings, 2 replies; 4+ messages in thread
From: Jani Nikula @ 2016-04-01  7:44 UTC (permalink / raw)
  To: intel-gfx; +Cc: jani.nikula

Make it easier to see which ports are configured for each phy. No
functional changes.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/i915/intel_ddi.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index 1e083853c70d..7049086b1b27 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -1726,7 +1726,7 @@ static void broxton_phy_init(struct drm_i915_private *dev_priv,
 			     enum dpio_phy phy)
 {
 	enum port port;
-	uint32_t val;
+	u32 ports, val;
 
 	val = I915_READ(BXT_P_CR_GT_DISP_PWRON);
 	val |= GT_DISPLAY_POWER_ON(phy);
@@ -1736,8 +1736,12 @@ static void broxton_phy_init(struct drm_i915_private *dev_priv,
 	if (wait_for(I915_READ(BXT_PORT_CL1CM_DW0(phy)) & PHY_POWER_GOOD, 10))
 		DRM_ERROR("timeout during PHY%d power on\n", phy);
 
-	for (port =  (phy == DPIO_PHY0 ? PORT_B : PORT_A);
-	     port <= (phy == DPIO_PHY0 ? PORT_C : PORT_A); port++) {
+	if (phy == DPIO_PHY0)
+		ports = BIT(PORT_B) | BIT(PORT_C);
+	else
+		ports = BIT(PORT_A);
+
+	for_each_port_masked(port, ports) {
 		int lane;
 
 		for (lane = 0; lane < 4; lane++) {
-- 
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] 4+ messages in thread

* Re: [PATCH] drm/i915: use for_each_port_masked in bxt phy init for clarity
  2016-04-01  7:44 [PATCH] drm/i915: use for_each_port_masked in bxt phy init for clarity Jani Nikula
@ 2016-04-01  8:11 ` Ander Conselvan De Oliveira
  2016-04-01 10:06 ` ✗ Fi.CI.BAT: failure for " Patchwork
  1 sibling, 0 replies; 4+ messages in thread
From: Ander Conselvan De Oliveira @ 2016-04-01  8:11 UTC (permalink / raw)
  To: Jani Nikula, intel-gfx

On Fri, 2016-04-01 at 10:44 +0300, Jani Nikula wrote:
> Make it easier to see which ports are configured for each phy. No
> functional changes.
> 
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>

> ---
>  drivers/gpu/drm/i915/intel_ddi.c | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_ddi.c
> b/drivers/gpu/drm/i915/intel_ddi.c
> index 1e083853c70d..7049086b1b27 100644
> --- a/drivers/gpu/drm/i915/intel_ddi.c
> +++ b/drivers/gpu/drm/i915/intel_ddi.c
> @@ -1726,7 +1726,7 @@ static void broxton_phy_init(struct drm_i915_private
> *dev_priv,
>  			     enum dpio_phy phy)
>  {
>  	enum port port;
> -	uint32_t val;
> +	u32 ports, val;
>  
>  	val = I915_READ(BXT_P_CR_GT_DISP_PWRON);
>  	val |= GT_DISPLAY_POWER_ON(phy);
> @@ -1736,8 +1736,12 @@ static void broxton_phy_init(struct drm_i915_private
> *dev_priv,
>  	if (wait_for(I915_READ(BXT_PORT_CL1CM_DW0(phy)) & PHY_POWER_GOOD,
> 10))
>  		DRM_ERROR("timeout during PHY%d power on\n", phy);
>  
> -	for (port =  (phy == DPIO_PHY0 ? PORT_B : PORT_A);
> -	     port <= (phy == DPIO_PHY0 ? PORT_C : PORT_A); port++) {
> +	if (phy == DPIO_PHY0)
> +		ports = BIT(PORT_B) | BIT(PORT_C);
> +	else
> +		ports = BIT(PORT_A);
> +
> +	for_each_port_masked(port, ports) {
>  		int lane;
>  
>  		for (lane = 0; lane < 4; lane++) {
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* ✗ Fi.CI.BAT: failure for drm/i915: use for_each_port_masked in bxt phy init for clarity
  2016-04-01  7:44 [PATCH] drm/i915: use for_each_port_masked in bxt phy init for clarity Jani Nikula
  2016-04-01  8:11 ` Ander Conselvan De Oliveira
@ 2016-04-01 10:06 ` Patchwork
  2016-04-01 10:49   ` Imre Deak
  1 sibling, 1 reply; 4+ messages in thread
From: Patchwork @ 2016-04-01 10:06 UTC (permalink / raw)
  To: Jani Nikula; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: use for_each_port_masked in bxt phy init for clarity
URL   : https://patchwork.freedesktop.org/series/5165/
State : failure

== Summary ==

Series 5165v1 drm/i915: use for_each_port_masked in bxt phy init for clarity
http://patchwork.freedesktop.org/api/1.0/series/5165/revisions/1/mbox/

Test kms_flip:
        Subgroup basic-flip-vs-wf_vblank:
                pass       -> FAIL       (bsw-nuc-2)

bdw-ultra        total:196  pass:175  dwarn:0   dfail:0   fail:0   skip:21 
bsw-nuc-2        total:196  pass:158  dwarn:0   dfail:0   fail:1   skip:37 
byt-nuc          total:196  pass:161  dwarn:0   dfail:0   fail:0   skip:35 
hsw-brixbox      total:196  pass:174  dwarn:0   dfail:0   fail:0   skip:22 
skl-i7k-2        total:196  pass:173  dwarn:0   dfail:0   fail:0   skip:23 
skl-nuci5        total:196  pass:184  dwarn:0   dfail:0   fail:0   skip:12 
snb-dellxps      total:22   pass:20   dwarn:0   dfail:0   fail:0   skip:1  
BOOT FAILED for hsw-gt2

Results at /archive/results/CI_IGT_test/Patchwork_1772/

e8d1e8123ef907fc23b53554af9cb99c7f380fb9 drm-intel-nightly: 2016y-04m-01d-07h-26m-00s UTC integration manifest
b4c2b9bc0a36ea977a62cdcc3f1e252e119e0249 drm/i915: use for_each_port_masked in bxt phy init for clarity

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

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

* Re: ✗ Fi.CI.BAT: failure for drm/i915: use for_each_port_masked in bxt phy init for clarity
  2016-04-01 10:06 ` ✗ Fi.CI.BAT: failure for " Patchwork
@ 2016-04-01 10:49   ` Imre Deak
  0 siblings, 0 replies; 4+ messages in thread
From: Imre Deak @ 2016-04-01 10:49 UTC (permalink / raw)
  To: intel-gfx, Jani Nikula

On pe, 2016-04-01 at 10:06 +0000, Patchwork wrote:
> == Series Details ==
> 
> Series: drm/i915: use for_each_port_masked in bxt phy init for
> clarity
> URL   : https://patchwork.freedesktop.org/series/5165/
> State : failure
> 
> == Summary ==
> 
> Series 5165v1 drm/i915: use for_each_port_masked in bxt phy init for
> clarity
> http://patchwork.freedesktop.org/api/1.0/series/5165/revisions/1/mbox
> /
> 
> Test kms_flip:
>         Subgroup basic-flip-vs-wf_vblank:
>                 pass       -> FAIL       (bsw-nuc-2)

Known 1 frame inter-flip jitter issue with seq_step=10:
https://bugs.freedesktop.org/show_bug.cgi?id=94294

Another known failure is
snb-dellxps/kms_pipe_crc_basic/suspend-read-crc-pipe-c
according to Tomi it's been failing previously.

Thanks for the patch and review, I pushed the patch to -dinq.

--Imre
	
> bdw-
> ultra        total:196  pass:175  dwarn:0   dfail:0   fail:0   skip:2
> 1 
> bsw-nuc-
> 2        total:196  pass:158  dwarn:0   dfail:0   fail:1   skip:37 
> byt-
> nuc          total:196  pass:161  dwarn:0   dfail:0   fail:0   skip:3
> 5 
> hsw-
> brixbox      total:196  pass:174  dwarn:0   dfail:0   fail:0   skip:2
> 2 
> skl-i7k-
> 2        total:196  pass:173  dwarn:0   dfail:0   fail:0   skip:23 
> skl-
> nuci5        total:196  pass:184  dwarn:0   dfail:0   fail:0   skip:1
> 2 
> snb-
> dellxps      total:22   pass:20   dwarn:0   dfail:0   fail:0   skip:1
>   
> BOOT FAILED for hsw-gt2
> 
> Results at /archive/results/CI_IGT_test/Patchwork_1772/
> 
> e8d1e8123ef907fc23b53554af9cb99c7f380fb9 drm-intel-nightly: 2016y-
> 04m-01d-07h-26m-00s UTC integration manifest
> b4c2b9bc0a36ea977a62cdcc3f1e252e119e0249 drm/i915: use
> for_each_port_masked in bxt phy init for clarity
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2016-04-01 10:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-01  7:44 [PATCH] drm/i915: use for_each_port_masked in bxt phy init for clarity Jani Nikula
2016-04-01  8:11 ` Ander Conselvan De Oliveira
2016-04-01 10:06 ` ✗ Fi.CI.BAT: failure for " Patchwork
2016-04-01 10:49   ` Imre Deak

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.