drm/i915: Switch LSPCON to PCON mode if it's in LS mode
Subsystems (2)
PATCH 1/1 drm/i915: Switch LSPCON to PCON mode if it's in LS mode
From: Ville Syrjälä <[email protected]>
We no longer change LSPCON into PCON mode if it boots up in LS mode. This was broken by some code shuffling in commit 96e35598cead ("drm/i915: Check LSPCON vendor OUI").
I actually can't see a reason why that code shuffling had to be done. The commit msg notes it but doesn't justify it in any way. But I guess we'll keep the code in its current place anyway and just make the "switch to PCON mode" part effective once again.
--- drivers/gpu/drm/i915/intel_lspcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_lspcon.c +1 -1
@@ -230,7 +230,7 @@ static bool lspcon_probe(struct intel_lspcon *lspcon)* In this way, it will work with both HDMI 1.4 sinks as well as HDMI * 2.0 sinks. */ -if (lspcon->active && lspcon->mode !=DRM_LSPCON_MODE_PCON ) { +if (lspcon->mode !=DRM_LSPCON_MODE_PCON ) {if (lspcon_change_mode (lspcon,DRM_LSPCON_MODE_PCON ) <0 ) {DRM_ERROR ("LSPCON mode change to PCON failed\n" );return false;
Signature · 6 lines
2.18.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Switch LSPCON to PCON mode if it's in LS mode
== Series Details ==
== Series Details ==
Series: drm/i915: Switch LSPCON to PCON mode if it's in LS mode
URL : https://patchwork.freedesktop.org/series/52178/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_5099 -> Patchwork_10756 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/52178/revisions/1/mbox/
== Known issues ==
Here are the changes found in Patchwork_10756 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@drv_selftest@live_hangcheck:
fi-kbl-7560u: PASS -> INCOMPLETE (fdo#108044)
igt@gem_exec_suspend@basic-s4-devices:
fi-blb-e6850: PASS -> INCOMPLETE (fdo#107718)
igt@kms_pipe_crc_basic@read-crc-pipe-a-frame-sequence:
fi-byt-clapper: PASS -> FAIL (fdo#107362, fdo#103191)
igt@pm_rpm@module-reload:
fi-skl-6600u: PASS -> INCOMPLETE (fdo#107807)
==== Possible fixes ====
igt@gem_close_race@basic-threads:
fi-bsw-n3050: FAIL -> PASS
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
fi-byt-clapper: FAIL (fdo#107362, fdo#103191) -> PASS fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
fdo#107718 https://bugs.freedesktop.org/show_bug.cgi?id=107718
fdo#107807 https://bugs.freedesktop.org/show_bug.cgi?id=107807
fdo#108044 https://bugs.freedesktop.org/show_bug.cgi?id=108044
== Participating hosts (53 -> 45) ==
Additional (1): fi-pnv-d510
Missing (9): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-icl-u2 fi-bsw-cyan fi-snb-2520m fi-ctg-p8600 fi-icl-u
== Build changes ==
* Linux: CI_DRM_5099 -> Patchwork_10756
CI_DRM_5099: 8eca2834ec812679a45d4c4d785448ac0084cee8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4712: a3ede1b535ac8137f6949c468edd7054453d5dae @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10756: 6e05789cc492ace0ec5b29d61be4565228471307 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
6e05789cc492 drm/i915: Switch LSPCON to PCON mode if it's in LS mode
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10756/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: Switch LSPCON to PCON mode if it's in LS mode
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Switch LSPCON to PCON mode if it's in LS mode
URL : https://patchwork.freedesktop.org/series/52178/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_5099_full -> Patchwork_10756_full =
== Summary - SUCCESS ==
No regressions found.
== Known issues ==
Here are the changes found in Patchwork_10756_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@drv_selftest@mock_sanitycheck:
shard-apl: PASS -> INCOMPLETE (fdo#103927)
igt@gem_cpu_reloc@full:
shard-skl: NOTRUN -> INCOMPLETE (fdo#108073)
igt@kms_chv_cursor_fail@pipe-a-64x64-right-edge:
shard-skl: NOTRUN -> FAIL (fdo#104671)
igt@kms_color@pipe-a-degamma:
shard-apl: PASS -> FAIL (fdo#108145, fdo#104782)
igt@kms_color@pipe-b-ctm-blue-to-red:
shard-skl: PASS -> FAIL (fdo#107201)
igt@kms_color@pipe-b-legacy-gamma:
shard-apl: PASS -> FAIL (fdo#104782)
igt@kms_cursor_crc@cursor-256x256-suspend:
shard-apl: PASS -> FAIL (fdo#103191, fdo#103232) +1
igt@kms_cursor_crc@cursor-256x85-onscreen:
shard-apl: PASS -> FAIL (fdo#103232) +4
igt@kms_cursor_crc@cursor-64x64-sliding:
shard-skl: NOTRUN -> FAIL (fdo#103232)
igt@kms_cursor_legacy@cursora-vs-flipa-toggle:
shard-glk: PASS -> DMESG-WARN (fdo#105763, fdo#106538)
igt@kms_fbcon_fbt@psr-suspend:
shard-skl: NOTRUN -> FAIL (fdo#107882)
igt@kms_flip@flip-vs-expired-vblank:
shard-skl: PASS -> FAIL (fdo#105363) +1
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-glk: PASS -> FAIL (fdo#102887, fdo#105363)
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-pwrite:
shard-apl: PASS -> FAIL (fdo#103167) +2
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-onoff:
shard-glk: PASS -> FAIL (fdo#103167) +5
igt@kms_frontbuffer_tracking@fbc-farfromfence:
shard-skl: NOTRUN -> FAIL (fdo#105682) +1
igt@kms_frontbuffer_tracking@psr-1p-primscrn-cur-indfb-draw-mmap-wc:
shard-skl: NOTRUN -> FAIL (fdo#103167) +1
igt@kms_plane@pixel-format-pipe-a-planes:
shard-apl: PASS -> FAIL (fdo#103166) +2
igt@kms_plane_alpha_blend@pipe-a-constant-alpha-min:
shard-skl: NOTRUN -> FAIL (fdo#108145) +1
igt@kms_properties@connector-properties-atomic:
shard-skl: NOTRUN -> FAIL (fdo#108642)
igt@kms_universal_plane@universal-plane-pipe-b-functional:
shard-glk: PASS -> FAIL (fdo#103166) +2
==== Possible fixes ====
igt@drv_suspend@shrink:
shard-glk: INCOMPLETE (k.org#198133, fdo#106886, fdo#103359) -> PASS
igt@drv_suspend@sysfs-reader:
shard-skl: INCOMPLETE (fdo#104108) -> PASS +1
igt@kms_chv_cursor_fail@pipe-a-256x256-right-edge:
shard-skl: FAIL (fdo#104671) -> PASS
igt@kms_color@pipe-b-ctm-max:
shard-apl: FAIL (fdo#108147) -> PASS
igt@kms_cursor_crc@cursor-256x85-random:
shard-apl: FAIL (fdo#103232) -> PASS +2
igt@kms_cursor_crc@cursor-64x64-random:
shard-glk: FAIL (fdo#103232) -> PASS
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-wc:
shard-glk: FAIL (fdo#103167) -> PASS +2
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-pwrite:
shard-apl: FAIL (fdo#103167) -> PASS +2
igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-mmap-wc:
shard-skl: FAIL (fdo#103167) -> PASS
igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
shard-glk: FAIL (fdo#108145) -> PASS
igt@kms_plane_multiple@atomic-pipe-a-tiling-yf:
shard-apl: FAIL (fdo#103166) -> PASS
igt@kms_setmode@basic:
shard-apl: FAIL (fdo#99912) -> PASS fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#103232 https://bugs.freedesktop.org/show_bug.cgi?id=103232
fdo#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fdo#104108 https://bugs.freedesktop.org/show_bug.cgi?id=104108
fdo#104671 https://bugs.freedesktop.org/show_bug.cgi?id=104671
fdo#104782 https://bugs.freedesktop.org/show_bug.cgi?id=104782
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105682 https://bugs.freedesktop.org/show_bug.cgi?id=105682
fdo#105763 https://bugs.freedesktop.org/show_bug.cgi?id=105763
fdo#106538 https://bugs.freedesktop.org/show_bug.cgi?id=106538
fdo#106886 https://bugs.freedesktop.org/show_bug.cgi?id=106886
fdo#107201 https://bugs.freedesktop.org/show_bug.cgi?id=107201
fdo#107882 https://bugs.freedesktop.org/show_bug.cgi?id=107882
fdo#108073 https://bugs.freedesktop.org/show_bug.cgi?id=108073
fdo#108145 https://bugs.freedesktop.org/show_bug.cgi?id=108145
fdo#108147 https://bugs.freedesktop.org/show_bug.cgi?id=108147
fdo#108642 https://bugs.freedesktop.org/show_bug.cgi?id=108642
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133
== Participating hosts (6 -> 6) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_5099 -> Patchwork_10756
CI_DRM_5099: 8eca2834ec812679a45d4c4d785448ac0084cee8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4712: a3ede1b535ac8137f6949c468edd7054453d5dae @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10756: 6e05789cc492ace0ec5b29d61be4565228471307 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10756/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Regards
Shashank
Quoted 9 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We no longer change LSPCON into PCON mode if it boots up in LS mode. This was broken by some code shuffling in commit
96e35598cead("drm/i915: Check LSPCON vendor OUI").I actually can't see a reason why that code shuffling had to be done. The commit msg notes it but doesn't justify it in any way.
Its been some time, but AFAIR this shuffling was done because we wanted to make sure LSPCON is in DP/PCON personality, before we try to read DCPD and vendor OUI. I probably missed to add this reason in commit message. There were few LSPCON devices, which due to old FW version, or some one or other reason, were booting in LS mode. We wanted to make sure that probing, mode change and delay related stuff is all taken care in lspcon_probe function, and after probing, LSPCON is ready to be used in PCON personality.
Quoted 19 lines
But I guess we'll keep the code in its current
place anyway and just make the "switch to PCON mode" part effective once again.Cc Shashank Sharma <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Tvrtko Ursulin <[email protected]>Tested-by Tvrtko Ursulin <[email protected]>Fixes 96e35598cead ("drm/i915: Check LSPCON vendor OUI")Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/intel_lspcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/intel_lspcon.c +0
-0
drivers/gpu/drm/i915/intel_lspcon.c static bool lspcon_probe(struct intel_lspcon *lspcon) · line 233
Quoted 5 lines
drivers/gpu/drm/i915/intel_lspcon.c +1
-1@@ -230,7 +230,7 @@ static bool lspcon_probe(struct intel_lspcon *lspcon)* In this way, it will work with both HDMI 1.4 sinks as well as HDMI * 2.0 sinks. */ -if (lspcon->active && lspcon->mode !=DRM_LSPCON_MODE_PCON ) { +if (lspcon->mode !=DRM_LSPCON_MODE_PCON ) {
Agree, this became irrelevant once we added the vendor detection code, and decided to call it active, only when probing, dpcd_read and vendor_detection is all good.
drivers/gpu/drm/i915/intel_lspcon.c static bool lspcon_probe(struct intel_lspcon *lspcon) · line 236
Quoted 3 lines
drivers/gpu/drm/i915/intel_lspcon.c +0
-0if (lspcon_change_mode (lspcon,DRM_LSPCON_MODE_PCON ) <0 ) {DRM_ERROR ("LSPCON mode change to PCON failed\n" );return false;
- Shashank
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx