Skip to contentSkip to conversation

drm/i915/tgl: disable DDIC

PATCH In review Lucas De Marchi 4 participants 9 messages Aug 14, 2019 – Aug 20, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/tgl: disable DDIC

The current SKUs added for Tiger Lake don't have DDIC hooked up, even though it is supported by the SoC. The current state for these SKUs is problematic since while enabling the combo phy, PORT_COMP_DW* return 0xFFFFFFFF, which is invalid per register definition.

During initialization we check what phys are not yet enabled by reading PHY_MISC_C and try to enable it by toggling the "DE to IO Comp Pwr Down" bit. But after that any read to the PORT_COMP_DW* returns invalid results. This removes the following warning

[56997.634353] Missing case (val == 4294967295)
[56997.639241] WARNING: CPU: 5 PID: 768 at drivers/gpu/drm/i915/display/intel_combo_phy.c:54 cnl_get_procmon_ref_values+0xc9/0xf0 [i915]
[56997.639808] Modules linked in: i915(+) prime_numbers x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e [last unloaded: prime_numbers]
[56997.639808] CPU: 5 PID: 768 Comm: insmod Tainted: G     U  W         5.2.0-demarchi+ #65
[56997.639808] Hardware name: Intel Corporation Tiger Lake Client Platform/TigerLake U DDR4 SODIMM RVP, BIOS TGLSFWI1.R00.2252.A03.1906270154 06/27/2019
[56997.639808] RIP: 0010:cnl_get_procmon_ref_values+0xc9/0xf0 [i915]
[56997.639808] Code: 2c a0 85 c9 74 e0 81 f9 00 00 00 01 75 09 48 c7 c0 0c a4 2c a0 eb cf 48 c7 c6 3c 3a 31 a0 48 c7 c7 40 3a 31 a0 e8 6b 4d ea e0 <0f> 0b 48 c7 c0 00 a4 2c a0 eb b1 48 c7 c0 24 a4 2
c a0 eb a8 e8 be
[56997.639808] RSP: 0018:ffffc9000068f8a8 EFLAGS: 00010286
[56997.639808] RAX: 0000000000000000 RBX: ffff88848fa90000 RCX: 0000000000000000
[56997.639808] RDX: ffff8884a08b5ef8 RSI: ffff8884a08a6658 RDI: 00000000ffffffff
[56997.639808] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000
[56997.639808] R10: 0000000000000000 R11: 0000000000000000 R12: ffff88848fa90000
[56997.639808] R13: 0000000000000000 R14: 0000000000000002 R15: 0006c00000162000
[56997.639808] FS:  00007f61ca3d12c0(0000) GS:ffff8884a0880000(0000) knlGS:0000000000000000
[56997.639808] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[56997.639808] CR2: 00007f71be6a92c0 CR3: 0000000494750006 CR4: 0000000000760ee0
[56997.639808] PKRU: 55555554
[56997.639808] Call Trace:
[56997.639808]  cnl_verify_procmon_ref_values+0x36/0xf0 [i915]
[56997.639808]  ? rcu_read_lock_sched_held+0x6f/0x80
[56997.639808]  ? gen11_fwtable_read32+0x257/0x290 [i915]
[56997.639808]  icl_combo_phy_verify_state.part.0+0x22/0xa0 [i915]
[56997.639808]  intel_combo_phy_init+0x17e/0x3e0 [i915]
[56997.639808]  ? icl_display_core_init+0x2c/0x1a0 [i915]
[56997.639808]  ? _raw_spin_unlock_irqrestore+0x4c/0x60
[56997.639808]  icl_display_core_init+0x34/0x1a0 [i915]
[56997.639808]  intel_power_domains_init_hw+0x200/0x570 [i915]
[56997.639808]  i915_driver_probe+0x103b/0x17e0 [i915]
[56997.639808]  ? printk+0x53/0x6a
[56997.639808]  i915_pci_probe+0x3b/0x190 [i915]

We may or may not need to change the implementation to account for DDIC being available on other SKUs. For now I think the best thing to do is to just disable the port.

Cc José Roberto de Souza <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_display.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -2
index 5b733e38eae3..6c6a5a5f41bb 100644
@@ -6683,7 +6683,7 @@ bool intel_phy_is_combo(struct drm_i915_private *dev_priv, enum phy phy)
 	if (phy == PHY_NONE)
 		return false;
 
-	if (IS_ELKHARTLAKE(dev_priv) || INTEL_GEN(dev_priv) >= 12)
+	if (IS_ELKHARTLAKE(dev_priv))
 		return phy <= PHY_C;
 
 	if (INTEL_GEN(dev_priv) >= 11)
@@ -15317,7 +15317,6 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv)
 		/* TODO: initialize TC ports as well */
 		intel_ddi_init(dev_priv, PORT_A);
 		intel_ddi_init(dev_priv, PORT_B);
-		intel_ddi_init(dev_priv, PORT_C);
 		icl_dsi_init(dev_priv);
 	} else if (IS_ELKHARTLAKE(dev_priv)) {
 		intel_ddi_init(dev_priv, PORT_A);
Signature · 6 lines
2.21.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

✗ Fi.CI.CHECKPATCH: warning for drm/i915/tgl: disable DDIC

== Series Details ==

== Series Details ==

Series: drm/i915/tgl: disable DDIC
URL : https://patchwork.freedesktop.org/series/65217/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
335a81e24ca8 drm/i915/tgl: disable DDIC
-:9: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#9: 
The current SKUs added for Tiger Lake don't have DDIC hooked up, even though it

total: 0 errors, 1 warnings, 0 checks, 15 lines checked

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

✓ Fi.CI.BAT: success for drm/i915/tgl: disable DDIC

In reply to Lucas De Marchi
== Series Details ==

== Series Details ==

Series: drm/i915/tgl: disable DDIC
URL : https://patchwork.freedesktop.org/series/65217/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6710 -> Patchwork_14020
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/

Known issues
------------

Here are the changes found in Patchwork_14020 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_create@basic:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/fi-icl-u3/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [PASS][3] -> [DMESG-WARN][4] ([fdo#102614])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/fi-hsw-peppy/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/fi-hsw-peppy/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live_mman:
- fi-bsw-n3050: [DMESG-WARN][5] ([fdo#111373]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/fi-bsw-n3050/igt@i915_selftest@live_mman.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/fi-bsw-n3050/igt@i915_selftest@live_mman.html

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109635 ]: https://bugs.freedesktop.org/show_bug.cgi?id=109635
[fdo#110387]: https://bugs.freedesktop.org/show_bug.cgi?id=110387
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
[fdo#111046 ]: https://bugs.freedesktop.org/show_bug.cgi?id=111046
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111373]: https://bugs.freedesktop.org/show_bug.cgi?id=111373

Participating hosts (53 -> 44)
------------------------------

Additional (1): fi-kbl-8809g
Missing (10): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-icl-u2 fi-bsw-cyan fi-icl-y fi-icl-guc fi-byt-clapper fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_6710 -> Patchwork_14020

CI-20190529: 20190529
CI_DRM_6710: 131c6ccdf21739498689f22c973b1b77660ae7b9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5134: 81df2f22385bc275975cf199d962eed9bc10f916 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14020: 335a81e24ca83f0c0270bb22889a2805b6e20f91 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

335a81e24ca8 drm/i915/tgl: disable DDIC

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

✓ Fi.CI.IGT: success for drm/i915/tgl: disable DDIC

In reply to Lucas De Marchi
== Series Details ==

== Series Details ==

Series: drm/i915/tgl: disable DDIC
URL : https://patchwork.freedesktop.org/series/65217/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6710_full -> Patchwork_14020_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Known issues
------------

Here are the changes found in Patchwork_14020_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_shared@exec-single-timeline-bsd:
- shard-iclb: [PASS][1] -> [SKIP][2] ([fdo#110841])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb1/igt@[email protected]

* igt@gem_exec_balancer@smoke:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#110854])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb5/igt@[email protected]

* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#111325]) +5 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb7/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb2/igt@[email protected]

* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [PASS][7] -> [DMESG-WARN][8] ([fdo#108566]) +3 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-apl7/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-apl5/igt@[email protected]

* igt@kms_fbcon_fbt@fbc-suspend:
- shard-skl: [PASS][9] -> [INCOMPLETE][10] ([fdo#104108])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-skl4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-skl1/igt@[email protected]

* igt@kms_flip@2x-flip-vs-expired-vblank:
- shard-hsw: [PASS][11] -> [FAIL][12] ([fdo#102887])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-hsw5/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-hsw2/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [PASS][13] -> [FAIL][14] ([fdo#103167]) +4 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb8/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html

* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][15] -> [FAIL][16] ([fdo#108145] / [fdo#110403])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-skl2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-skl6/igt@[email protected]

* igt@kms_psr@psr2_cursor_render:
- shard-iclb: [PASS][17] -> [SKIP][18] ([fdo#109441]) +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb2/igt@kms_psr@psr2_cursor_render.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb4/igt@kms_psr@psr2_cursor_render.html

* igt@prime_busy@hang-bsd2:
- shard-iclb: [PASS][19] -> [SKIP][20] ([fdo#109276]) +15 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb4/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb3/igt@[email protected]

#### Possible fixes ####

* igt@gem_eio@reset-stress:
- shard-snb: [FAIL][21] ([fdo#109661]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-snb2/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-snb2/igt@[email protected]

* igt@gem_exec_async@concurrent-writes-bsd:
- shard-iclb: [SKIP][23] ([fdo#111325]) -> [PASS][24] +4 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb6/igt@[email protected]

* igt@gem_exec_schedule@preempt-contexts-bsd2:
- shard-iclb: [SKIP][25] ([fdo#109276]) -> [PASS][26] +16 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb8/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb4/igt@[email protected]

* igt@gem_softpin@noreloc-s3:
- shard-skl: [INCOMPLETE][27] ([fdo#104108]) -> [PASS][28] +1 similar issue
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-skl3/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-skl1/igt@[email protected]

* igt@kms_flip@plain-flip-ts-check:
- shard-skl: [FAIL][29] ([fdo#100368]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-skl8/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-skl8/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [FAIL][31] ([fdo#103167]) -> [PASS][32] +5 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-pwrite:
- shard-snb: [SKIP][33] ([fdo#109271]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-snb7/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-pwrite.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-snb4/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-pwrite.html

* igt@kms_plane@pixel-format-pipe-b-planes-source-clamping:
- shard-iclb: [INCOMPLETE][35] ([fdo#107713] / [fdo#110036 ]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb7/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb2/igt@[email protected]

* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-iclb: [INCOMPLETE][37] ([fdo#107713] / [fdo#110042]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb3/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb8/igt@[email protected]

* igt@kms_psr@psr2_dpms:
- shard-iclb: [SKIP][39] ([fdo#109441]) -> [PASS][40] +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb4/igt@kms_psr@psr2_dpms.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb2/igt@kms_psr@psr2_dpms.html

* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-apl: [DMESG-WARN][41] ([fdo#108566]) -> [PASS][42] +2 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-apl7/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-apl1/igt@[email protected]

* igt@perf@polling:
- shard-skl: [FAIL][43] ([fdo#110728]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-skl1/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-skl4/igt@[email protected]

#### Warnings ####

* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-iclb: [FAIL][45] ([fdo#111329]) -> [SKIP][46] ([fdo#109276])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb2/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb5/igt@[email protected]

* igt@gem_mocs_settings@mocs-isolation-bsd2:
- shard-iclb: [FAIL][47] ([fdo#111330]) -> [SKIP][48] ([fdo#109276])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb4/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb3/igt@[email protected]

* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [SKIP][49] ([fdo#109349]) -> [DMESG-WARN][50] ([fdo#107724])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6710/shard-iclb4/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14020/shard-iclb2/igt@[email protected]

[fdo#100368]: https://bugs.freedesktop.org/show_bug.cgi?id=100368
[fdo#102887]: https://bugs.freedesktop.org/show_bug.cgi?id=102887
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109661]: https://bugs.freedesktop.org/show_bug.cgi?id=109661
[fdo#110036 ]: https://bugs.freedesktop.org/show_bug.cgi?id=110036
[fdo#110042]: https://bugs.freedesktop.org/show_bug.cgi?id=110042
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110728]: https://bugs.freedesktop.org/show_bug.cgi?id=110728
[fdo#110841]: https://bugs.freedesktop.org/show_bug.cgi?id=110841
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330

Participating hosts (10 -> 10)
------------------------------

No changes in participating hosts

Build changes
-------------

* CI: CI-20190529 -> None
* Linux: CI_DRM_6710 -> Patchwork_14020

CI-20190529: 20190529
CI_DRM_6710: 131c6ccdf21739498689f22c973b1b77660ae7b9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5134: 81df2f22385bc275975cf199d962eed9bc10f916 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14020: 335a81e24ca83f0c0270bb22889a2805b6e20f91 @ 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_14020/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw
In reply to Lucas De Marchi
Quoted 57 lines

-----Original Message-----
From: Intel-gfx [mailto:[email protected]] On Behalf Of Lucas De Marchi
Sent: Thursday, August 15, 2019 5:25 AM
To: [email protected]
Subject: [Intel-gfx] [PATCH] drm/i915/tgl: disable DDIC

The current SKUs added for Tiger Lake don't have DDIC hooked up, even though it is supported by the SoC. The current state for these SKUs is problematic since while enabling the combo phy, PORT_COMP_DW* return 0xFFFFFFFF, which is invalid per register definition.

During initialization we check what phys are not yet enabled by reading PHY_MISC_C and try to enable it by toggling the "DE to IO Comp Pwr Down"
bit. But after that any read to the PORT_COMP_DW* returns invalid results. This removes the following warning

[56997.634353] Missing case (val == 4294967295) [56997.639241] WARNING: CPU: 5

PID: 768 at drivers/gpu/drm/i915/display/intel_combo_phy.c:54 cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Modules linked in:
i915(+) prime_numbers x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e [last unloaded:
prime_numbers]

[56997.639808] CPU: 5 PID: 768 Comm: insmod Tainted: G     U  W         5.2.0-
demarchi+ #65
[56997.639808] Hardware name: Intel Corporation Tiger Lake Client

Platform/TigerLake U DDR4 SODIMM RVP, BIOS TGLSFWI1.R00.2252.A03.1906270154 06/27/2019 [56997.639808] RIP:
0010:cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Code: 2c a0 85 c9 74 e0 81 f9 00 00 00 01 75 09 48 c7 c0 0c a4 2c a0 eb cf 48 c7 c6 3c 3a 31 a0 48 c7 c7 40 3a 31 a0 e8 6b 4d ea e0 <0f> 0b 48 c7 c0 00 a4 2c a0 eb b1 48 c7 c0 24 a4 2 c a0 eb a8 e8 be [56997.639808] RSP: 0018:ffffc9000068f8a8 EFLAGS: 00010286

[56997.639808] RAX: 0000000000000000 RBX: ffff88848fa90000 RCX:

0000000000000000 [56997.639808] RDX: ffff8884a08b5ef8 RSI: ffff8884a08a6658
RDI: 00000000ffffffff [56997.639808] RBP: 0000000000000002 R08:
0000000000000000 R09: 0000000000000000 [56997.639808] R10:
0000000000000000 R11: 0000000000000000 R12: ffff88848fa90000 [56997.639808]
R13: 0000000000000000 R14: 0000000000000002 R15: 0006c00000162000

[56997.639808] FS:  00007f61ca3d12c0(0000) GS:ffff8884a0880000(0000)
knlGS:0000000000000000 [56997.639808] CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033 [56997.639808] CR2: 00007f71be6a92c0 CR3:
0000000494750006 CR4: 0000000000760ee0 [56997.639808] PKRU: 55555554
[56997.639808] Call Trace:
[56997.639808]  cnl_verify_procmon_ref_values+0x36/0xf0 [i915] [56997.639808]  ?
rcu_read_lock_sched_held+0x6f/0x80
[56997.639808]  ? gen11_fwtable_read32+0x257/0x290 [i915] [56997.639808]
icl_combo_phy_verify_state.part.0+0x22/0xa0 [i915] [56997.639808]
intel_combo_phy_init+0x17e/0x3e0 [i915] [56997.639808]  ?
icl_display_core_init+0x2c/0x1a0 [i915] [56997.639808]  ?
_raw_spin_unlock_irqrestore+0x4c/0x60
[56997.639808]  icl_display_core_init+0x34/0x1a0 [i915] [56997.639808]
intel_power_domains_init_hw+0x200/0x570 [i915] [56997.639808]
i915_driver_probe+0x103b/0x17e0 [i915] [56997.639808]  ? printk+0x53/0x6a
[56997.639808]  i915_pci_probe+0x3b/0x190 [i915]
Quoted 2 lines

We may or may not need to change the implementation to account for DDIC being available on other SKUs. For now I think the best thing to do is to just disable the port.

This information ideally should be coming from VBT and based on that driver can take a call whether to enable the port or not. So is this an interim solution and later would be dropped, since there will/may be SKU's with PORT C enabled.

I feel revocation of this port in VBT should be the right approach, instead of an interim solution.

Regards,
Uma Shankar

Quoted 30 lines
Cc José Roberto de Souza <[email protected]>

---
drivers/gpu/drm/i915/display/intel_display.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -1
index 5b733e38eae3..6c6a5a5f41bb 100644
@@ -6683,7 +6683,7 @@ bool intel_phy_is_combo(struct drm_i915_private
 *dev_priv, enum phy phy)
 	if (phy == PHY_NONE)
 		return false;
 
-	if (IS_ELKHARTLAKE(dev_priv) || INTEL_GEN(dev_priv) >= 12)
+	if (IS_ELKHARTLAKE(dev_priv))
 		return phy <= PHY_C;
 
	if (INTEL_GEN(dev_priv) >= 11)
drivers/gpu/drm/i915/display/intel_display.c +0 -1
@@ -15317,7 +15317,6 @@ static void intel_setup_outputs(struct drm_i915_private
 *dev_priv)
 		/* TODO: initialize TC ports as well */
 		intel_ddi_init(dev_priv, PORT_A);
 		intel_ddi_init(dev_priv, PORT_B);
-		intel_ddi_init(dev_priv, PORT_C);
 		icl_dsi_init(dev_priv);
 	} else if (IS_ELKHARTLAKE(dev_priv)) {
		intel_ddi_init(dev_priv, PORT_A);
Quoted 7 lines

--
2.21.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#5 lore raw
Quoted 58 lines · Uma
Quoted 58 lines

-----Original Message-----
From: Intel-gfx [mailto:[email protected]] On Behalf Of Lucas De Marchi
Sent: Thursday, August 15, 2019 5:25 AM
To: [email protected]
Subject: [Intel-gfx] [PATCH] drm/i915/tgl: disable DDIC

The current SKUs added for Tiger Lake don't have DDIC hooked up, even though it is supported by the SoC. The current state for these SKUs is problematic since while enabling the combo phy, PORT_COMP_DW* return 0xFFFFFFFF, which is invalid per register definition.

During initialization we check what phys are not yet enabled by reading PHY_MISC_C and try to enable it by toggling the "DE to IO Comp Pwr Down"
bit. But after that any read to the PORT_COMP_DW* returns invalid results. This removes the following warning

[56997.634353] Missing case (val == 4294967295) [56997.639241] WARNING: CPU: 5

PID: 768 at drivers/gpu/drm/i915/display/intel_combo_phy.c:54 cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Modules linked in:
i915(+) prime_numbers x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e [last unloaded:
prime_numbers]

[56997.639808] CPU: 5 PID: 768 Comm: insmod Tainted: G     U  W         5.2.0-
demarchi+ #65
[56997.639808] Hardware name: Intel Corporation Tiger Lake Client

Platform/TigerLake U DDR4 SODIMM RVP, BIOS TGLSFWI1.R00.2252.A03.1906270154 06/27/2019 [56997.639808] RIP:
0010:cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Code: 2c a0 85 c9 74 e0 81 f9 00 00 00 01 75 09 48 c7 c0 0c a4 2c a0 eb cf 48 c7 c6 3c 3a 31 a0 48 c7 c7 40 3a 31 a0 e8 6b 4d ea e0 <0f> 0b 48 c7 c0 00 a4 2c a0 eb b1 48 c7 c0 24 a4 2 c a0 eb a8 e8 be [56997.639808] RSP: 0018:ffffc9000068f8a8 EFLAGS: 00010286

[56997.639808] RAX: 0000000000000000 RBX: ffff88848fa90000 RCX:

0000000000000000 [56997.639808] RDX: ffff8884a08b5ef8 RSI: ffff8884a08a6658
RDI: 00000000ffffffff [56997.639808] RBP: 0000000000000002 R08:
0000000000000000 R09: 0000000000000000 [56997.639808] R10:
0000000000000000 R11: 0000000000000000 R12: ffff88848fa90000 [56997.639808]
R13: 0000000000000000 R14: 0000000000000002 R15: 0006c00000162000

[56997.639808] FS:  00007f61ca3d12c0(0000) GS:ffff8884a0880000(0000)
knlGS:0000000000000000 [56997.639808] CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033 [56997.639808] CR2: 00007f71be6a92c0 CR3:
0000000494750006 CR4: 0000000000760ee0 [56997.639808] PKRU: 55555554
[56997.639808] Call Trace:
[56997.639808]  cnl_verify_procmon_ref_values+0x36/0xf0 [i915] [56997.639808]  ?
rcu_read_lock_sched_held+0x6f/0x80
[56997.639808]  ? gen11_fwtable_read32+0x257/0x290 [i915] [56997.639808]
icl_combo_phy_verify_state.part.0+0x22/0xa0 [i915] [56997.639808]
intel_combo_phy_init+0x17e/0x3e0 [i915] [56997.639808]  ?
icl_display_core_init+0x2c/0x1a0 [i915] [56997.639808]  ?
_raw_spin_unlock_irqrestore+0x4c/0x60
[56997.639808]  icl_display_core_init+0x34/0x1a0 [i915] [56997.639808]
intel_power_domains_init_hw+0x200/0x570 [i915] [56997.639808]
i915_driver_probe+0x103b/0x17e0 [i915] [56997.639808]  ? printk+0x53/0x6a
[56997.639808]  i915_pci_probe+0x3b/0x190 [i915]
Quoted 8 lines
Quoted 2 lines

We may or may not need to change the implementation to account for DDIC being available on other SKUs. For now I think the best thing to do is to just disable the port.

This information ideally should be coming from VBT and based on that driver can take a call whether to enable the port or not. So is this an interim solution and later would be dropped, since there will/may be SKU's with PORT C enabled.

I feel revocation of this port in VBT should be the right approach, instead of an interim solution.

Ideally yes, but it's better something that works than the ideal solution that doesn't. I wanted to go the VBT
route, but it wouldn't work with any machine that I have available. Hence this patch.

When/if there's one sku with ddic, hopefully VBT will already be fixed or we may go the route of differentiating
by PCI id.

Lucas De Marchi

Quoted 45 lines

Regards,
Uma Shankar

Quoted 30 lines
Cc José Roberto de Souza <[email protected]>

---
drivers/gpu/drm/i915/display/intel_display.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -1
index 5b733e38eae3..6c6a5a5f41bb 100644
@@ -6683,7 +6683,7 @@ bool intel_phy_is_combo(struct drm_i915_private
 *dev_priv, enum phy phy)
      if (phy == PHY_NONE)
              return false;
 
-      if (IS_ELKHARTLAKE(dev_priv) || INTEL_GEN(dev_priv) >= 12)
+      if (IS_ELKHARTLAKE(dev_priv))
              return phy <= PHY_C;
 
      if (INTEL_GEN(dev_priv) >= 11)
drivers/gpu/drm/i915/display/intel_display.c +0 -1
@@ -15317,7 +15317,6 @@ static void intel_setup_outputs(struct drm_i915_private
 *dev_priv)
              /* TODO: initialize TC ports as well */
              intel_ddi_init(dev_priv, PORT_A);
              intel_ddi_init(dev_priv, PORT_B);
-              intel_ddi_init(dev_priv, PORT_C);
              icl_dsi_init(dev_priv);
      } else if (IS_ELKHARTLAKE(dev_priv)) {
              intel_ddi_init(dev_priv, PORT_A);
Quoted 7 lines

--
2.21.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 5 lines
Lucas De Marchi
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#6 lore raw
Quoted 91 lines

-----Original Message-----
From: Lucas De Marchi [mailto:[email protected]]
Sent: Friday, August 16, 2019 8:44 PM
To: Shankar, Uma <[email protected]>
Cc: De Marchi, Lucas <[email protected]>; [email protected]
Subject: Re: [Intel-gfx] [PATCH] drm/i915/tgl: disable DDIC

Quoted 10 lines · Uma
Quoted 10 lines

-----Original Message-----
From: Intel-gfx [mailto:[email protected]] On Behalf Of Lucas De Marchi
Sent: Thursday, August 15, 2019 5:25 AM
To: [email protected]
Subject: [Intel-gfx] [PATCH] drm/i915/tgl: disable DDIC

Quoted 7 lines
Quoted 7 lines

The current SKUs added for Tiger Lake don't have DDIC hooked up, even though it is supported by the SoC. The current state for these SKUs is problematic since while enabling the combo phy, PORT_COMP_DW* return 0xFFFFFFFF, which is invalid per register definition.

During initialization we check what phys are not yet enabled by reading PHY_MISC_C and try to enable it by toggling the "DE to IO Comp Pwr

Down"

Quoted 9 lines
Quoted 9 lines

bit. But after that any read to the PORT_COMP_DW* returns invalid results. This removes the following warning

[56997.634353] Missing case (val == 4294967295) [56997.639241]
WARNING: CPU: 5

PID: 768 at drivers/gpu/drm/i915/display/intel_combo_phy.c:54 cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Modules linked in:
i915(+) prime_numbers x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e [last

unloaded:

Quoted 5 lines
Quoted 5 lines

prime_numbers]

[56997.639808] CPU: 5 PID: 768 Comm: insmod Tainted: G     U  W         5.2.0-
demarchi+ #65
[56997.639808] Hardware name: Intel Corporation Tiger Lake Client

Platform/TigerLake U DDR4 SODIMM RVP, BIOS

Quoted 8 lines
Quoted 8 lines

TGLSFWI1.R00.2252.A03.1906270154 06/27/2019 [56997.639808] RIP:
0010:cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Code:
2c a0 85
c9 74 e0 81 f9 00 00 00 01 75 09 48 c7 c0 0c a4 2c a0 eb cf 48 c7 c6 3c 3a 31 a0 48 c7
c7 40 3a 31 a0 e8 6b 4d ea e0 <0f> 0b 48 c7 c0 00 a4 2c a0 eb b1 48 c7 c0 24 a4 2 c a0 eb a8 e8 be [56997.639808] RSP:
0018:ffffc9000068f8a8 EFLAGS: 00010286 [56997.639808] RAX:

0000000000000000 RBX: ffff88848fa90000 RCX:

Quoted 5 lines
Quoted 5 lines

0000000000000000 [56997.639808] RDX: ffff8884a08b5ef8 RSI:
ffff8884a08a6658
RDI: 00000000ffffffff [56997.639808] RBP: 0000000000000002 R08:
0000000000000000 R09: 0000000000000000 [56997.639808] R10:
0000000000000000 R11: 0000000000000000 R12: ffff88848fa90000

Quoted 8 lines
Quoted 8 lines
[56997.639808]
R13: 0000000000000000 R14: 0000000000000002 R15: 0006c00000162000
[56997.639808] FS:  00007f61ca3d12c0(0000) GS:ffff8884a0880000(0000)
knlGS:0000000000000000 [56997.639808] CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033 [56997.639808] CR2: 00007f71be6a92c0 CR3:
0000000494750006 CR4: 0000000000760ee0 [56997.639808] PKRU: 55555554
[56997.639808] Call Trace:
[56997.639808]  cnl_verify_procmon_ref_values+0x36/0xf0 [i915] [56997.639808]

?

Quoted 13 lines
Quoted 13 lines
rcu_read_lock_sched_held+0x6f/0x80
[56997.639808]  ? gen11_fwtable_read32+0x257/0x290 [i915]
[56997.639808]
icl_combo_phy_verify_state.part.0+0x22/0xa0 [i915] [56997.639808]
intel_combo_phy_init+0x17e/0x3e0 [i915] [56997.639808]  ?
icl_display_core_init+0x2c/0x1a0 [i915] [56997.639808]  ?
_raw_spin_unlock_irqrestore+0x4c/0x60
[56997.639808]  icl_display_core_init+0x34/0x1a0 [i915]
[56997.639808]
intel_power_domains_init_hw+0x200/0x570 [i915] [56997.639808]
i915_driver_probe+0x103b/0x17e0 [i915] [56997.639808]  ?
printk+0x53/0x6a [56997.639808]  i915_pci_probe+0x3b/0x190 [i915]
Quoted 2 lines
Quoted 2 lines

We may or may not need to change the implementation to account for DDIC being available on other SKUs. For now I think the best thing to do is to just

disable the port.

Quoted 4 lines

This information ideally should be coming from VBT and based on that driver can take a call whether to enable the port or not. So is this an interim solution and later would be dropped, since there will/may be SKU's with

PORT C enabled.

Quoted 2 lines

I feel revocation of this port in VBT should be the right approach, instead of an

interim solution.

Quoted 7 lines

Ideally yes, but it's better something that works than the ideal solution that doesn't. I wanted to go the VBT route, but it wouldn't work with any machine that I have available.
Hence this patch.

When/if there's one sku with ddic, hopefully VBT will already be fixed or we may go the route of differentiating by PCI id.

I feel this is a mistake in VBT which exposes an non-existent port and should be fixed. I don't think adding PCIID based checks for a platform is a good idea. We should call init for all ports spec claims to be supporting and based on VBT configuration just return if port is not available for use on that particular design. Now with current approach, if on a new SKU this is fixed (PORT C gets working) and VBT exposes it also correctly, we will not even attempt to initialize it until we fix this patch and re-send a somewhat similar to a revert version of this patch.

So my take would be that we should push VBT guys to fix the problem instead of adding a temporary WA in our driver. I will leave to maintainers to suggest what is the optimum approach.

Regards,
Uma Shankar

Quoted 50 lines

Lucas De Marchi

Quoted 37 lines

Regards,
Uma Shankar

Quoted 33 lines
Cc José Roberto de Souza <[email protected]>

---
drivers/gpu/drm/i915/display/intel_display.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -1
index 5b733e38eae3..6c6a5a5f41bb 100644
@@ -6683,7 +6683,7 @@ bool intel_phy_is_combo(struct drm_i915_private
 *dev_priv, enum phy phy)
      if (phy == PHY_NONE)
              return false;
 
-      if (IS_ELKHARTLAKE(dev_priv) || INTEL_GEN(dev_priv) >= 12)
+      if (IS_ELKHARTLAKE(dev_priv))
              return phy <= PHY_C;
 
      if (INTEL_GEN(dev_priv) >= 11) @@ -15317,7 +15317,6 @@ static
void intel_setup_outputs(struct drm_i915_private
*dev_priv)
              /* TODO: initialize TC ports as well */
              intel_ddi_init(dev_priv, PORT_A);
              intel_ddi_init(dev_priv, PORT_B);
-              intel_ddi_init(dev_priv, PORT_C);
              icl_dsi_init(dev_priv);
      } else if (IS_ELKHARTLAKE(dev_priv)) {
              intel_ddi_init(dev_priv, PORT_A);

--
2.21.0

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Quoted 2 lines

--
Lucas De Marchi

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#7 lore raw
Quoted 96 lines · Uma
Quoted 96 lines

-----Original Message-----
From: Lucas De Marchi [mailto:[email protected]]
Sent: Friday, August 16, 2019 8:44 PM
To: Shankar, Uma <[email protected]>
Cc: De Marchi, Lucas <[email protected]>; [email protected]
Subject: Re: [Intel-gfx] [PATCH] drm/i915/tgl: disable DDIC

Quoted 10 lines · Uma
Quoted 10 lines

-----Original Message-----
From: Intel-gfx [mailto:[email protected]] On Behalf Of Lucas De Marchi
Sent: Thursday, August 15, 2019 5:25 AM
To: [email protected]
Subject: [Intel-gfx] [PATCH] drm/i915/tgl: disable DDIC

Quoted 7 lines
Quoted 7 lines

The current SKUs added for Tiger Lake don't have DDIC hooked up, even though it is supported by the SoC. The current state for these SKUs is problematic since while enabling the combo phy, PORT_COMP_DW* return 0xFFFFFFFF, which is invalid per register definition.

During initialization we check what phys are not yet enabled by reading PHY_MISC_C and try to enable it by toggling the "DE to IO Comp Pwr

Down"

Quoted 9 lines
Quoted 9 lines

bit. But after that any read to the PORT_COMP_DW* returns invalid results. This removes the following warning

[56997.634353] Missing case (val == 4294967295) [56997.639241]
WARNING: CPU: 5

PID: 768 at drivers/gpu/drm/i915/display/intel_combo_phy.c:54 cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Modules linked in:
i915(+) prime_numbers x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e [last

unloaded:

Quoted 5 lines
Quoted 5 lines

prime_numbers]

[56997.639808] CPU: 5 PID: 768 Comm: insmod Tainted: G     U  W         5.2.0-
demarchi+ #65
[56997.639808] Hardware name: Intel Corporation Tiger Lake Client

Platform/TigerLake U DDR4 SODIMM RVP, BIOS

Quoted 8 lines
Quoted 8 lines

TGLSFWI1.R00.2252.A03.1906270154 06/27/2019 [56997.639808] RIP:
0010:cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Code:
2c a0 85
c9 74 e0 81 f9 00 00 00 01 75 09 48 c7 c0 0c a4 2c a0 eb cf 48 c7 c6 3c 3a 31 a0 48 c7
c7 40 3a 31 a0 e8 6b 4d ea e0 <0f> 0b 48 c7 c0 00 a4 2c a0 eb b1 48 c7 c0 24 a4 2 c a0 eb a8 e8 be [56997.639808] RSP:
0018:ffffc9000068f8a8 EFLAGS: 00010286 [56997.639808] RAX:

0000000000000000 RBX: ffff88848fa90000 RCX:

Quoted 5 lines
Quoted 5 lines

0000000000000000 [56997.639808] RDX: ffff8884a08b5ef8 RSI:
ffff8884a08a6658
RDI: 00000000ffffffff [56997.639808] RBP: 0000000000000002 R08:
0000000000000000 R09: 0000000000000000 [56997.639808] R10:
0000000000000000 R11: 0000000000000000 R12: ffff88848fa90000

Quoted 8 lines
Quoted 8 lines
[56997.639808]
R13: 0000000000000000 R14: 0000000000000002 R15: 0006c00000162000
[56997.639808] FS:  00007f61ca3d12c0(0000) GS:ffff8884a0880000(0000)
knlGS:0000000000000000 [56997.639808] CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033 [56997.639808] CR2: 00007f71be6a92c0 CR3:
0000000494750006 CR4: 0000000000760ee0 [56997.639808] PKRU: 55555554
[56997.639808] Call Trace:
[56997.639808]  cnl_verify_procmon_ref_values+0x36/0xf0 [i915] [56997.639808]

?

Quoted 13 lines
Quoted 13 lines
rcu_read_lock_sched_held+0x6f/0x80
[56997.639808]  ? gen11_fwtable_read32+0x257/0x290 [i915]
[56997.639808]
icl_combo_phy_verify_state.part.0+0x22/0xa0 [i915] [56997.639808]
intel_combo_phy_init+0x17e/0x3e0 [i915] [56997.639808]  ?
icl_display_core_init+0x2c/0x1a0 [i915] [56997.639808]  ?
_raw_spin_unlock_irqrestore+0x4c/0x60
[56997.639808]  icl_display_core_init+0x34/0x1a0 [i915]
[56997.639808]
intel_power_domains_init_hw+0x200/0x570 [i915] [56997.639808]
i915_driver_probe+0x103b/0x17e0 [i915] [56997.639808]  ?
printk+0x53/0x6a [56997.639808]  i915_pci_probe+0x3b/0x190 [i915]
Quoted 2 lines
Quoted 2 lines

We may or may not need to change the implementation to account for DDIC being available on other SKUs. For now I think the best thing to do is to just

disable the port.

Quoted 4 lines

This information ideally should be coming from VBT and based on that driver can take a call whether to enable the port or not. So is this an interim solution and later would be dropped, since there will/may be SKU's with

PORT C enabled.

Quoted 2 lines

I feel revocation of this port in VBT should be the right approach, instead of an

interim solution.

Ideally yes, but it's better something that works than the ideal solution that doesn't. I wanted to go the VBT route, but it wouldn't work with any machine that I have available.
Hence this patch.

Quoted 7 lines
Quoted 2 lines

When/if there's one sku with ddic, hopefully VBT will already be fixed or we may go the route of differentiating by PCI id.

I feel this is a mistake in VBT which exposes an non-existent port and should be fixed. I don't think adding PCIID based checks for a platform is a good idea. We should call init for all ports spec claims to be supporting and based on VBT configuration just return if port is not available for use on that particular design. Now with current approach, if on a new SKU this is fixed (PORT C gets working) and

I agree with all of that. But it would not fix the problem that we have *today*. There's no forseable fix for VBT.

Quoted 2 lines

VBT exposes it also correctly, we will not even attempt to initialize it until we fix this patch and re-send a somewhat similar to a revert version of this patch.

the "fix" would be "make DDIC work and *start* exporting it". More like an additional feature than a fix in itself. It was my mistake to send the initial patch with DDIC there when it was actually not working. See that we still don't expose the TC ports and initially we didn't expose the DSI port neither.

In other words, expose the things that are *currently* working. DDIC is not and fixing it by hooking up VBT if we should initialize it (my initial attempt) would not fix things.

Quoted 2 lines

So my take would be that we should push VBT guys to fix the problem instead of adding a temporary WA in our

this has already been reported to people responsible for VBT. There's currently not ETA for if/when this will be done. When/if it's done we can conditionally add DDIC.

Lucas De Marchi

Quoted 57 lines

driver. I will leave to maintainers to suggest what is the optimum approach.

Regards,
Uma Shankar

Quoted 52 lines

Lucas De Marchi

Quoted 37 lines

Regards,
Uma Shankar

Quoted 33 lines
Cc José Roberto de Souza <[email protected]>

---
drivers/gpu/drm/i915/display/intel_display.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -1
index 5b733e38eae3..6c6a5a5f41bb 100644
@@ -6683,7 +6683,7 @@ bool intel_phy_is_combo(struct drm_i915_private
 *dev_priv, enum phy phy)
      if (phy == PHY_NONE)
              return false;
 
-      if (IS_ELKHARTLAKE(dev_priv) || INTEL_GEN(dev_priv) >= 12)
+      if (IS_ELKHARTLAKE(dev_priv))
              return phy <= PHY_C;
 
      if (INTEL_GEN(dev_priv) >= 11) @@ -15317,7 +15317,6 @@ static
void intel_setup_outputs(struct drm_i915_private
*dev_priv)
              /* TODO: initialize TC ports as well */
              intel_ddi_init(dev_priv, PORT_A);
              intel_ddi_init(dev_priv, PORT_B);
-              intel_ddi_init(dev_priv, PORT_C);
              icl_dsi_init(dev_priv);
      } else if (IS_ELKHARTLAKE(dev_priv)) {
              intel_ddi_init(dev_priv, PORT_A);

--
2.21.0

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

--
Lucas De Marchi

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reviewed-by
#8 lore raw
Quoted 117 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

-----Original Message-----
From: Intel-gfx [mailto:[email protected]] On Behalf Of Lucas De Marchi
Sent: Thursday, August 15, 2019 5:25 AM
To: [email protected]
Subject: [Intel-gfx] [PATCH] drm/i915/tgl: disable DDIC

The current SKUs added for Tiger Lake don't have DDIC hooked up, even though it is supported by the SoC. The current state for these SKUs is problematic since while enabling the combo phy, PORT_COMP_DW* return 0xFFFFFFFF, which is invalid per register definition.

During initialization we check what phys are not yet enabled by reading PHY_MISC_C and try to enable it by toggling the "DE to IO Comp Pwr

Quoted 8 lines
Quoted 8 lines

Down"

Quoted 7 lines
Quoted 7 lines

bit. But after that any read to the PORT_COMP_DW* returns invalid results. This removes the following warning

[56997.634353] Missing case (val == 4294967295) [56997.639241]
WARNING: CPU: 5

PID: 768 at drivers/gpu/drm/i915/display/intel_combo_phy.c:54 cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Modules linked

in:

Quoted 70 lines
Quoted 62 lines
Quoted 3 lines
Quoted 3 lines

i915(+) prime_numbers x86_pkg_temp_thermal coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel e1000e [last

unloaded:

Quoted 5 lines
Quoted 5 lines

prime_numbers]

[56997.639808] CPU: 5 PID: 768 Comm: insmod Tainted: G     U  W         5.2.0-
demarchi+ #65
[56997.639808] Hardware name: Intel Corporation Tiger Lake Client

Platform/TigerLake U DDR4 SODIMM RVP, BIOS

Quoted 8 lines
Quoted 8 lines

TGLSFWI1.R00.2252.A03.1906270154 06/27/2019 [56997.639808] RIP:
0010:cnl_get_procmon_ref_values+0xc9/0xf0 [i915] [56997.639808] Code:
2c a0 85
c9 74 e0 81 f9 00 00 00 01 75 09 48 c7 c0 0c a4 2c a0 eb cf 48 c7 c6 3c 3a 31 a0 48 c7
c7 40 3a 31 a0 e8 6b 4d ea e0 <0f> 0b 48 c7 c0 00 a4 2c a0 eb b1 48 c7 c0 24 a4 2 c a0 eb a8 e8 be [56997.639808] RSP:
0018:ffffc9000068f8a8 EFLAGS: 00010286 [56997.639808] RAX:

0000000000000000 RBX: ffff88848fa90000 RCX:

Quoted 7 lines
Quoted 7 lines

0000000000000000 [56997.639808] RDX: ffff8884a08b5ef8 RSI:
ffff8884a08a6658
RDI: 00000000ffffffff [56997.639808] RBP: 0000000000000002 R08:
0000000000000000 R09: 0000000000000000 [56997.639808] R10:
0000000000000000 R11: 0000000000000000 R12: ffff88848fa90000

[56997.639808]

R13: 0000000000000000 R14: 0000000000000002 R15: 0006c00000162000

Quoted 8 lines
Quoted 8 lines
[56997.639808] FS:  00007f61ca3d12c0(0000)

GS:ffff8884a0880000(0000)
knlGS:0000000000000000 [56997.639808] CS: 0010 DS: 0000 ES: 0000 CR0:
0000000080050033 [56997.639808] CR2: 00007f71be6a92c0 CR3:
0000000494750006 CR4: 0000000000760ee0 [56997.639808] PKRU:
55555554 [56997.639808] Call Trace:

[56997.639808]  cnl_verify_procmon_ref_values+0x36/0xf0 [i915]
[56997.639808]

?

Quoted 13 lines
Quoted 13 lines
rcu_read_lock_sched_held+0x6f/0x80
[56997.639808]  ? gen11_fwtable_read32+0x257/0x290 [i915]
[56997.639808]
icl_combo_phy_verify_state.part.0+0x22/0xa0 [i915] [56997.639808]
intel_combo_phy_init+0x17e/0x3e0 [i915] [56997.639808]  ?
icl_display_core_init+0x2c/0x1a0 [i915] [56997.639808]  ?
_raw_spin_unlock_irqrestore+0x4c/0x60
[56997.639808]  icl_display_core_init+0x34/0x1a0 [i915]
[56997.639808]
intel_power_domains_init_hw+0x200/0x570 [i915] [56997.639808]
i915_driver_probe+0x103b/0x17e0 [i915] [56997.639808]  ?
printk+0x53/0x6a [56997.639808]  i915_pci_probe+0x3b/0x190 [i915]
Quoted 3 lines
Quoted 3 lines

We may or may not need to change the implementation to account for DDIC being available on other SKUs. For now I think the best thing to do is to just

disable the port.

Quoted 5 lines

This information ideally should be coming from VBT and based on that driver can take a call whether to enable the port or not. So is this an interim solution and later would be dropped, since there will/may be SKU's with

PORT C enabled.

Quoted 3 lines

I feel revocation of this port in VBT should be the right approach, instead of an

interim solution.

Quoted 7 lines

Ideally yes, but it's better something that works than the ideal solution that doesn't. I wanted to go the VBT route, but it wouldn't work with any machine that I have available.
Hence this patch.

When/if there's one sku with ddic, hopefully VBT will already be fixed or we may go the route of differentiating by PCI id.

Quoted 6 lines

I feel this is a mistake in VBT which exposes an non-existent port and should be fixed. I don't think adding PCIID based checks for a platform is a good idea. We should call init for all ports spec claims to be supporting and based on VBT configuration just return if port is not available for use on that particular design. Now with current approach, if on a new SKU this is fixed (PORT C gets working) and

I agree with all of that. But it would not fix the problem that we have *today*. There's no forseable fix for VBT.

Quoted 2 lines

VBT exposes it also correctly, we will not even attempt to initialize it until we fix this patch and re-send a somewhat similar to a revert version of this

patch.

the "fix" would be "make DDIC work and *start* exporting it". More like an additional feature than a fix in itself. It was my mistake to send the initial patch with DDIC there when it was actually not working. See that we still don't expose the TC ports and initially we didn't expose the DSI port neither.

In other words, expose the things that are *currently* working. DDIC is not and fixing it by hooking up VBT if we should initialize it (my initial attempt) would not fix things.

Quoted 1 line
Quoted 5 lines
Quoted 2 lines

So my take would be that we should push VBT guys to fix the problem instead of adding a temporary WA in our

this has already been reported to people responsible for VBT. There's currently not ETA for if/when this will be done. When/if it's done we can conditionally add DDIC.

Ok fair point, if VBT fix is a long shot we can remove existence of PORT C and introduce it back later when/if it becomes alive again.

With the above justifications, we can go ahead with this patch, but still keep pushing VBT guys to update their stuff.

Quoted 33 lines

Lucas De Marchi

Quoted 31 lines

driver. I will leave to maintainers to suggest what is the optimum approach.

Regards,
Uma Shankar

Quoted 26 lines

Lucas De Marchi

Quoted 24 lines

Regards,
Uma Shankar

Quoted 20 lines
Cc José Roberto de Souza <[email protected]>

---
drivers/gpu/drm/i915/display/intel_display.c | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +1 -1
index 5b733e38eae3..6c6a5a5f41bb 100644
@@ -6683,7 +6683,7 @@ bool intel_phy_is_combo(struct
 drm_i915_private *dev_priv, enum phy phy)
      if (phy == PHY_NONE)
              return false;
 
-      if (IS_ELKHARTLAKE(dev_priv) || INTEL_GEN(dev_priv) >= 12)
+      if (IS_ELKHARTLAKE(dev_priv))
              return phy <= PHY_C;
 
Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
      if (INTEL_GEN(dev_priv) >= 11) @@ -15317,7 +15317,6 @@
static void intel_setup_outputs(struct drm_i915_private
*dev_priv)
              /* TODO: initialize TC ports as well */
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
              intel_ddi_init(dev_priv, PORT_A);
              intel_ddi_init(dev_priv, PORT_B);
-              intel_ddi_init(dev_priv, PORT_C);
              icl_dsi_init(dev_priv);
      } else if (IS_ELKHARTLAKE(dev_priv)) {
              intel_ddi_init(dev_priv, PORT_A);

--
2.21.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx