drm/i915: Standardize port type for DVO encoders
Subsystems (2)
PATCH 1/1 drm/i915: Standardize port type for DVO encoders
Changing the return type from 'char' to 'enum port' in intel_dvo_port_name() makes it easier to later move the port information to intel_encoder. In addition, the port type conforms to what we have elsewhere.
Removing the last conditional that handles invalid port because dvo_reg is intialized to valid values for all DVO devices at definition.
--- drivers/gpu/drm/i915/intel_dvo.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/intel_dvo.c +7 -7
@@ -412,16 +412,14 @@ intel_dvo_get_current_mode(struct drm_connector *connector)return mode; } -static char intel_dvo_port_name (i915_reg_t dvo_reg) +static char intel_dvo_port (i915_reg_t dvo_reg) {if (i915_mmio_reg_equal (dvo_reg,DVOA )) -return 'A' ; +return PORT_A ;else if (i915_mmio_reg_equal (dvo_reg,DVOB )) -return 'B' ; -else if (i915_mmio_reg_equal (dvo_reg,DVOC )) -return 'C' ; +return PORT_B ;else -return '?' ; +return PORT_C ; }void intel_dvo_init (struct drm_device *dev)
@@ -464,6 +462,7 @@ void intel_dvo_init(struct drm_device *dev)bool dvoinit;enum pipe pipe;uint32_t dpll[I915_MAX_PIPES ]; +enum port port;/* Allow the I2C driver info to specify the GPIO to be used in * special cases, but otherwise default to what's defined
@@ -511,9 +510,10 @@ void intel_dvo_init(struct drm_device *dev)if (!dvoinit)continue ; + port =intel_dvo_port (dvo->dvo_reg);drm_encoder_init (dev, &intel_encoder->base, &intel_dvo_enc_funcs, encoder_type, -"DVO %c" ,intel_dvo_port_name (dvo->dvo_reg)); +"DVO %c" ,port_name (port)); intel_encoder->type =INTEL_OUTPUT_DVO ; intel_encoder->crtc_mask = (1 <<0 ) | (1 <<1 );
Signature · 6 lines
2.5.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915: Standardize port type for DVO encoders
== Series Details ==
== Series Details ==
Series: drm/i915: Standardize port type for DVO encoders
URL : https://patchwork.freedesktop.org/series/12418/
State : failure
== Summary ==
Series 12418v1 drm/i915: Standardize port type for DVO encoders
https://patchwork.freedesktop.org/api/1.0/series/12418/revisions/1/mbox/
Test kms_cursor_legacy:
Subgroup basic-cursor-vs-flip-legacy:
pass -> FAIL (fi-bsw-n3050)
Test kms_pipe_crc_basic:
Subgroup hang-read-crc-pipe-c:
skip -> PASS (fi-hsw-4770r)fi-bsw-n3050 total:254 pass:207 dwarn:0 dfail:0 fail:1 skip:46 fi-hsw-4770k total:254 pass:232 dwarn:0 dfail:0 fail:0 skip:22 fi-hsw-4770r total:254 pass:228 dwarn:0 dfail:0 fail:0 skip:26 fi-ilk-650 total:254 pass:184 dwarn:0 dfail:0 fail:2 skip:68 fi-ivb-3520m total:254 pass:223 dwarn:0 dfail:0 fail:0 skip:31 fi-ivb-3770 total:254 pass:211 dwarn:0 dfail:0 fail:0 skip:43 fi-skl-6260u total:254 pass:240 dwarn:0 dfail:0 fail:0 skip:14 fi-skl-6700hq total:254 pass:227 dwarn:0 dfail:0 fail:1 skip:26 fi-skl-6700k total:254 pass:225 dwarn:1 dfail:0 fail:0 skip:28 fi-snb-2520m total:254 pass:210 dwarn:0 dfail:0 fail:0 skip:44 fi-snb-2600 total:254 pass:209 dwarn:0 dfail:0 fail:0 skip:45
Results at /archive/results/CI_IGT_test/Patchwork_2524/
208290026552464713d3897ab5d649f4445d5513 drm-intel-nightly: 2016y-09m-13d-14h-45m-32s UTC integration manifest 172b6f0 drm/i915: Standardize port type for DVO encoders
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerQuoted 18 lines · Dhinakaran Pandiyan
Changing the return type from 'char' to 'enum port' in
intel_dvo_port_name()makes it easier to later move the port information tointel_encoder. In addition, the port type conforms to what we have elsewhere.Removing the last conditional that handles invalid port because
dvo_regis intialized to valid values for all DVO devices at definition.Signed-off-by Dhinakaran Pandiyan <[email protected]>--- drivers/gpu/drm/i915/intel_dvo.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/intel_dvo.c +0
-0
drivers/gpu/drm/i915/intel_dvo.c intel_dvo_get_current_mode(struct drm_connector *connector) · line 415
Quoted 5 lines
drivers/gpu/drm/i915/intel_dvo.c +1
-1@@ -412,16 +412,14 @@ intel_dvo_get_current_mode(struct drm_connector *connector)return mode; } -static char intel_dvo_port_name (i915_reg_t dvo_reg) +static char intel_dvo_port (i915_reg_t dvo_reg)
You haven't actually changed the return type to enum port.
BR,
Jani.
Quoted 35 lines
drivers/gpu/drm/i915/intel_dvo.c +6
-6{if (i915_mmio_reg_equal (dvo_reg,DVOA )) -return 'A' ; +return PORT_A ;else if (i915_mmio_reg_equal (dvo_reg,DVOB )) -return 'B' ; -else if (i915_mmio_reg_equal (dvo_reg,DVOC )) -return 'C' ; +return PORT_B ;else -return '?' ; +return PORT_C ; }void intel_dvo_init (struct drm_device *dev)@@ -464,6 +462,7 @@ void intel_dvo_init(struct drm_device *dev)bool dvoinit;enum pipe pipe;uint32_t dpll[I915_MAX_PIPES ]; +enum port port;/* Allow the I2C driver info to specify the GPIO to be used in * special cases, but otherwise default to what's defined @@ -511,9 +510,10 @@ void intel_dvo_init(struct drm_device *dev)if (!dvoinit)continue ; + port =intel_dvo_port (dvo->dvo_reg);drm_encoder_init (dev, &intel_encoder->base, &intel_dvo_enc_funcs, encoder_type, -"DVO %c" ,intel_dvo_port_name (dvo->dvo_reg)); +"DVO %c" ,port_name (port)); intel_encoder->type =INTEL_OUTPUT_DVO ; intel_encoder->crtc_mask = (1 <<0 ) | (1 <<1 );
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 1/1 drm/i915: Standardize port type for DVO encoders
Changing the return type from 'char' to 'enum port' in intel_dvo_port_name() makes it easier to later move the port information to intel_encoder. In addition, the port type conforms to what we have elsewhere.
Removing the last conditional that handles invalid port because dvo_reg is intialized to valid values for all DVO devices at definition.
v2: Changed return type, for real (Jani)
--- drivers/gpu/drm/i915/intel_dvo.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/intel_dvo.c +7 -7
@@ -412,16 +412,14 @@ intel_dvo_get_current_mode(struct drm_connector *connector)return mode; } -static char intel_dvo_port_name (i915_reg_t dvo_reg) +static enum port intel_dvo_port (i915_reg_t dvo_reg) {if (i915_mmio_reg_equal (dvo_reg,DVOA )) -return 'A' ; +return PORT_A ;else if (i915_mmio_reg_equal (dvo_reg,DVOB )) -return 'B' ; -else if (i915_mmio_reg_equal (dvo_reg,DVOC )) -return 'C' ; +return PORT_B ;else -return '?' ; +return PORT_C ; }void intel_dvo_init (struct drm_device *dev)
@@ -464,6 +462,7 @@ void intel_dvo_init(struct drm_device *dev)bool dvoinit;enum pipe pipe;uint32_t dpll[I915_MAX_PIPES ]; +enum port port;/* Allow the I2C driver info to specify the GPIO to be used in * special cases, but otherwise default to what's defined
@@ -511,9 +510,10 @@ void intel_dvo_init(struct drm_device *dev)if (!dvoinit)continue ; + port =intel_dvo_port (dvo->dvo_reg);drm_encoder_init (dev, &intel_encoder->base, &intel_dvo_enc_funcs, encoder_type, -"DVO %c" ,intel_dvo_port_name (dvo->dvo_reg)); +"DVO %c" ,port_name (port)); intel_encoder->type =INTEL_OUTPUT_DVO ; intel_encoder->crtc_mask = (1 <<0 ) | (1 <<1 );
Signature · 6 lines
2.5.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
This version of the patch has been included in the series "Prep. for DP audio MST support" since the helper is used by the patch that stores port in struct intel_encoder.
Quoted 50 lines · Dhinakaran Pandiyan
Changing the return type from 'char' to 'enum port' in
intel_dvo_port_name()makes it easier to later move the port information tointel_encoder. In addition, the port type conforms to what we have elsewhere.Removing the last conditional that handles invalid port because
dvo_regis intialized to valid values for all DVO devices at definition.v2: Changed return type, for real (Jani)
Signed-off-by Dhinakaran Pandiyan <[email protected]>--- drivers/gpu/drm/i915/intel_dvo.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)drivers/gpu/drm/i915/intel_dvo.c +5
-6@@ -412,16 +412,14 @@ intel_dvo_get_current_mode(struct drm_connector *connector)return mode; } -static char intel_dvo_port_name (i915_reg_t dvo_reg) +static enum port intel_dvo_port (i915_reg_t dvo_reg) {if (i915_mmio_reg_equal (dvo_reg,DVOA )) -return 'A' ; +return PORT_A ;else if (i915_mmio_reg_equal (dvo_reg,DVOB )) -return 'B' ; -else if (i915_mmio_reg_equal (dvo_reg,DVOC )) -return 'C' ; +return PORT_B ;else -return '?' ; +return PORT_C ; }void intel_dvo_init (struct drm_device *dev)@@ -464,6 +462,7 @@ void intel_dvo_init(struct drm_device *dev)bool dvoinit;enum pipe pipe;uint32_t dpll[I915_MAX_PIPES ]; +enum port port;/* Allow the I2C driver info to specify the GPIO to be used in * special cases, but otherwise default to what's defined @@ -511,9 +510,10 @@ void intel_dvo_init(struct drm_device *dev)if (!dvoinit)
drivers/gpu/drm/i915/intel_dvo.c void intel_dvo_init(struct drm_device *dev) · line 519
Quoted 10 lines
drivers/gpu/drm/i915/intel_dvo.c +2
-1continue ; + port =intel_dvo_port (dvo->dvo_reg);drm_encoder_init (dev, &intel_encoder->base, &intel_dvo_enc_funcs, encoder_type, -"DVO %c" ,intel_dvo_port_name (dvo->dvo_reg)); +"DVO %c" ,port_name (port)); intel_encoder->type =INTEL_OUTPUT_DVO ; intel_encoder->crtc_mask = (1 <<0 ) | (1 <<1 );
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915: Standardize port type for DVO encoders (rev2)
In reply to Dhinakaran Pandiyan== Series Details ==
== Series Details ==
Series: drm/i915: Standardize port type for DVO encoders (rev2)
URL : https://patchwork.freedesktop.org/series/12418/
State : failure
== Summary ==
Series 12418v2 drm/i915: Standardize port type for DVO encoders
https://patchwork.freedesktop.org/api/1.0/series/12418/revisions/2/mbox/
Test drv_module_reload_basic:
dmesg-warn -> PASS (fi-skl-6770hq)
Test gem_exec_suspend:
Subgroup basic-s3:
incomplete -> PASS (fi-hsw-4770k)
Test kms_busy:
Subgroup basic-flip-default-a:
skip -> PASS (fi-skl-6770hq)
Subgroup basic-flip-default-b:
skip -> PASS (fi-skl-6770hq)
Subgroup basic-flip-default-c:
skip -> PASS (fi-skl-6770hq)
Test kms_cursor_legacy:
Subgroup basic-flip-after-cursor-legacy:
skip -> PASS (fi-skl-6770hq)
Subgroup basic-flip-after-cursor-varying-size:
skip -> PASS (fi-skl-6770hq)
Subgroup basic-flip-before-cursor-legacy:
skip -> PASS (fi-skl-6770hq)
Subgroup basic-flip-before-cursor-varying-size:
skip -> PASS (fi-skl-6770hq)
Test kms_flip:
Subgroup basic-flip-vs-dpms:
skip -> PASS (fi-skl-6770hq)
Subgroup basic-flip-vs-modeset:
skip -> PASS (fi-skl-6770hq)
Subgroup basic-flip-vs-wf_vblank:
skip -> PASS (fi-skl-6770hq)
Subgroup basic-plain-flip:
skip -> PASS (fi-skl-6770hq)
Test kms_frontbuffer_tracking:
Subgroup basic:
skip -> FAIL (fi-skl-6770hq)
Test kms_pipe_crc_basic:
Subgroup hang-read-crc-pipe-a:
skip -> PASS (fi-skl-6770hq)
Subgroup hang-read-crc-pipe-b:
skip -> PASS (fi-skl-6770hq)
Subgroup hang-read-crc-pipe-c:
skip -> PASS (fi-skl-6770hq)
Subgroup nonblocking-crc-pipe-a:
skip -> PASS (fi-skl-6770hq)
Subgroup nonblocking-crc-pipe-a-frame-sequence:
skip -> PASS (fi-skl-6770hq)
Subgroup nonblocking-crc-pipe-b:
skip -> PASS (fi-skl-6770hq)
Subgroup nonblocking-crc-pipe-b-frame-sequence:
skip -> PASS (fi-skl-6770hq)
Subgroup nonblocking-crc-pipe-c:
skip -> PASS (fi-skl-6770hq)
Subgroup nonblocking-crc-pipe-c-frame-sequence:
skip -> PASS (fi-skl-6770hq)
Subgroup read-crc-pipe-a:
skip -> PASS (fi-skl-6770hq)
Subgroup read-crc-pipe-a-frame-sequence:
skip -> PASS (fi-skl-6770hq)
Subgroup read-crc-pipe-b:
skip -> PASS (fi-skl-6770hq)
Subgroup read-crc-pipe-b-frame-sequence:
skip -> PASS (fi-skl-6770hq)
Subgroup read-crc-pipe-c:
skip -> PASS (fi-skl-6770hq)
Subgroup read-crc-pipe-c-frame-sequence:
skip -> PASS (fi-skl-6770hq)
Subgroup suspend-read-crc-pipe-a:
skip -> PASS (fi-skl-6770hq)
Subgroup suspend-read-crc-pipe-b:
dmesg-warn -> PASS (fi-byt-j1900)
skip -> PASS (fi-skl-6770hq)
Subgroup suspend-read-crc-pipe-c:
skip -> PASS (fi-skl-6770hq)
Test pm_rpm:
Subgroup basic-pci-d3-state:
skip -> PASS (fi-skl-6770hq)
Subgroup basic-rte:
skip -> PASS (fi-skl-6770hq)
Test prime_vgem:
Subgroup basic-fence-flip:
skip -> PASS (fi-skl-6770hq)fi-bdw-5557u total:244 pass:229 dwarn:0 dfail:0 fail:0 skip:15 fi-bsw-n3050 total:244 pass:202 dwarn:0 dfail:0 fail:0 skip:42 fi-byt-j1900 total:244 pass:211 dwarn:1 dfail:0 fail:1 skip:31 fi-byt-n2820 total:244 pass:208 dwarn:0 dfail:0 fail:1 skip:35 fi-hsw-4770k total:244 pass:226 dwarn:0 dfail:0 fail:0 skip:18 fi-hsw-4770r total:244 pass:222 dwarn:0 dfail:0 fail:0 skip:22 fi-ilk-650 total:244 pass:183 dwarn:0 dfail:0 fail:1 skip:60 fi-ivb-3520m total:244 pass:219 dwarn:0 dfail:0 fail:0 skip:25 fi-ivb-3770 total:244 pass:207 dwarn:0 dfail:0 fail:0 skip:37 fi-skl-6260u total:244 pass:230 dwarn:0 dfail:0 fail:0 skip:14 fi-skl-6700hq total:244 pass:221 dwarn:0 dfail:0 fail:1 skip:22 fi-skl-6700k total:244 pass:219 dwarn:1 dfail:0 fail:0 skip:24 fi-skl-6770hq total:244 pass:228 dwarn:1 dfail:0 fail:1 skip:14 fi-snb-2520m total:244 pass:208 dwarn:0 dfail:0 fail:0 skip:36 fi-snb-2600 total:244 pass:207 dwarn:0 dfail:0 fail:0 skip:37
Results at /archive/results/CI_IGT_test/Patchwork_2537/
9aa8c0cdbc076bcc0486d7a31922a0f77c032fe7 drm-intel-nightly: 2016y-09m-14d-09h-19m-25s UTC integration manifest 7362ae9 drm/i915: Standardize port type for DVO encoders
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Standardize port type for DVO encoders (rev2)
In reply to Dhinakaran Pandiyan== Series Details ==
== Series Details ==
Series: drm/i915: Standardize port type for DVO encoders (rev2)
URL : https://patchwork.freedesktop.org/series/12418/
State : success
== Summary ==
Series 12418v2 drm/i915: Standardize port type for DVO encoders
https://patchwork.freedesktop.org/api/1.0/series/12418/revisions/2/mbox/
Test gem_exec_suspend:
Subgroup basic-s3:
incomplete -> PASS (fi-hsw-4770k)
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
dmesg-warn -> PASS (fi-byt-j1900)fi-bdw-5557u total:244 pass:229 dwarn:0 dfail:0 fail:0 skip:15 fi-bsw-n3050 total:244 pass:202 dwarn:0 dfail:0 fail:0 skip:42 fi-byt-j1900 total:244 pass:211 dwarn:1 dfail:0 fail:1 skip:31 fi-byt-n2820 total:244 pass:208 dwarn:0 dfail:0 fail:1 skip:35 fi-hsw-4770k total:244 pass:226 dwarn:0 dfail:0 fail:0 skip:18 fi-hsw-4770r total:244 pass:222 dwarn:0 dfail:0 fail:0 skip:22 fi-ilk-650 total:244 pass:183 dwarn:0 dfail:0 fail:1 skip:60 fi-ivb-3520m total:244 pass:219 dwarn:0 dfail:0 fail:0 skip:25 fi-ivb-3770 total:244 pass:207 dwarn:0 dfail:0 fail:0 skip:37 fi-skl-6260u total:244 pass:230 dwarn:0 dfail:0 fail:0 skip:14 fi-skl-6700hq total:244 pass:221 dwarn:0 dfail:0 fail:1 skip:22 fi-skl-6700k total:244 pass:219 dwarn:1 dfail:0 fail:0 skip:24 fi-skl-6770hq total:244 pass:228 dwarn:1 dfail:0 fail:1 skip:14 fi-snb-2520m total:244 pass:208 dwarn:0 dfail:0 fail:0 skip:36 fi-snb-2600 total:244 pass:207 dwarn:0 dfail:0 fail:0 skip:37
Results at /archive/results/CI_IGT_test/Patchwork_2537/
9aa8c0cdbc076bcc0486d7a31922a0f77c032fe7 drm-intel-nightly: 2016y-09m-14d-09h-19m-25s UTC integration manifest 7362ae9 drm/i915: Standardize port type for DVO encoders
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx