Skip to contentSkip to conversation

drm/i915: Check visibility in icl_build_plane_wm

PATCH In review Maarten Lankhorst 3 participants 8 messages Jun 14, 2019 – Jun 18, 2019

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

PATCH 1/1 drm/i915: Check visibility in icl_build_plane_wm

When a planar YUV plane is configured, but the crtc is marked inactive, we can end up with a linked plane without visibility. Handle this by checking for visibility early, instead of doing a WARN.

<4> [201.742919] ------------[ cut here ]------------
<4> [201.742920] WARN_ON(!intel_wm_plane_visible(crtc_state, plane_state))
<4> [201.742947] WARNING: CPU: 7 PID: 1268 at drivers/gpu/drm/i915/intel_pm.c:5068 skl_compute_wm+0x2be/0x10a0 [i915]
<4> [201.742948] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic i915 x86_pkg_temp_thermal snd_hda_intel coretemp snd_hda_codec mei_hdcp snd_hwdep snd_hda_core crct10dif_pclmul cdc_ether usbnet crc32_pclmul mii snd_pcm ghash_clmulni_intel mei_me mei prime_numbers
<4> [201.742958] CPU: 7 PID: 1268 Comm: kms_chamelium Tainted: G U 5.2.0-rc3-CI-CI_DRM_6216+ #1
<4> [201.742960] Hardware name: Intel Corporation Ice Lake Client Platform/IceLake U DDR4 SODIMM PD RVP TLC, BIOS ICLSFWR1.R00.3183.A00.1905020411 05/02/2019
<4> [201.742978] RIP: 0010:skl_compute_wm+0x2be/0x10a0 [i915]
<4> [201.742980] Code: 24 10 8b 92 fc 02 00 00 0f 85 ba 04 00 00 48 c7 c6 e0 38 2e a0 48 c7 c7 93 99 31 a0 89 54 24 20 48 89 44 24 08 e8 82 a2 f5 e0 <0f> 0b 8b 54 24 20 48 8b 44 24 08 48 8b 40 48 80 78 12 00 0f 85 76
<4> [201.742981] RSP: 0018:ffffc9000064f9a8 EFLAGS: 00010282
<4> [201.742983] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000007
<4> [201.742984] RDX: 000000000000175c RSI: ffff8884934d48e0 RDI: ffffffff8212df49
<4> [201.742985] RBP: ffff888493408558 R08: 00000000b56dab44 R09: 0000000000000000
<4> [201.742986] R10: ffff88848be00000 R11: 0000000000000000 R12: ffff88849afd89f8
<4> [201.742987] R13: ffff88847eaf67e8 R14: ffff88848c344a88 R15: ffff88848be00000
<4> [201.742988] FS: 00007f4d9b60b700(0000) GS:ffff88849ff80000(0000) knlGS:0000000000000000
<4> [201.742989] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [201.742991] CR2: 00007f4d9b609ff8 CR3: 000000048c326006 CR4: 0000000000760ee0
<4> [201.742992] PKRU: 55555554
<4> [201.742993] Call Trace:

<4> [201.743021]  ? intel_atomic_check+0x7b2/0x1440 [i915]
<4> [201.743026]  ? __mutex_unlock_slowpath+0x46/0x2b0
<4> [201.743052]  intel_atomic_check+0x7ca/0x1440 [i915]
<4> [201.743060]  drm_atomic_check_only+0x55a/0x7f0
<4> [201.743064]  drm_atomic_commit+0xe/0x50
<4> [201.743067]  drm_atomic_connector_commit_dpms+0xe0/0xf0
<4> [201.743069]  set_property_atomic+0xba/0x140
<4> [201.743075]  drm_mode_obj_set_property_ioctl+0x111/0x1d0
<4> [201.743077]  ? drm_dev_exit+0x8/0x40
<4> [201.743080]  ? drm_connector_set_obj_prop+0x70/0x70
<4> [201.743082]  drm_connector_property_set_ioctl+0x39/0x60
<4> [201.743084]  drm_ioctl_kernel+0x83/0xf0
<4> [201.743087]  drm_ioctl+0x2f3/0x3b0
<4> [201.743090]  ? drm_connector_set_obj_prop+0x70/0x70
<4> [201.743096]  ? lock_acquire+0xa6/0x1c0
<4> [201.743100]  do_vfs_ioctl+0xa0/0x6e0
<4> [201.743103]  ? __fget+0x10f/0x200
<4> [201.743105]  ksys_ioctl+0x35/0x60
<4> [201.743108]  __x64_sys_ioctl+0x11/0x20
<4> [201.743110]  do_syscall_64+0x55/0x1c0
<4> [201.743112]  entry_SYSCALL_64_after_hwframe+0x49/0xbe

<4> [201.743114] RIP: 0033:0x7f4da6c8d5d7
<4> [201.743115] Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48 <4> [201.743116] RSP: 002b:00007f4d9b60aba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
<4> [201.743118] RAX: ffffffffffffffda RBX: 00007f4d94001ac0 RCX: 00007f4da6c8d5d7
<4> [201.743119] RDX: 00007f4d9b60abe0 RSI: 00000000c01064ab RDI: 0000000000000005
<4> [201.743120] RBP: 00007f4d9b60abe0 R08: 00007f4d940015c0 R09: 00007f4d940015f0
<4> [201.743121] R10: 0000000000000055 R11: 0000000000000246 R12: 00000000c01064ab
<4> [201.743122] R13: 0000000000000005 R14: 0000000000000005 R15: 00007f4da7a2c0c7
<4> [201.743156] irq event stamp: 362
<4> [201.743162] hardirqs last enabled at (361): [<ffffffff8112862c>] vprintk_emit+0xcc/0x340
<4> [201.743168] hardirqs last disabled at (362): [<ffffffff810019e0>] trace_hardirqs_off_thunk+0x1a/0x1c
<4> [201.743174] softirqs last enabled at (0): [<ffffffff810abf78>] copy_process.part.6+0x4e8/0x1dc0
<4> [201.743178] softirqs last disabled at (0): [<0000000000000000>] 0x0
<4> [201.743243] WARNING: CPU: 7 PID: 1268 at drivers/gpu/drm/i915/intel_pm.c:5068 skl_compute_wm+0x2be/0x10a0 [i915]
<4> [201.743246] ---[ end trace 33e6703087376efa ]---

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110895
Testcase: kms_chamelium@hdmi-cmp-nv12

---
 drivers/gpu/drm/i915/intel_pm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +4 -4
index 4e52dad84d64..e0e57de22388 100644
@@ -5060,15 +5060,15 @@ static int icl_build_plane_wm(struct intel_crtc_state *crtc_state,
 	enum plane_id plane_id = to_intel_plane(plane_state->base.plane)->id;
 	int ret;
 
-	/* Watermarks calculated in master */
-	if (plane_state->slave)
+	/* Watermarks are calculated in master */
+	if (plane_state->slave ||
+	    !intel_wm_plane_visible(crtc_state, plane_state))
 		return 0;
 
 	if (plane_state->linked_plane) {
 		const struct drm_framebuffer *fb = plane_state->base.fb;
 		enum plane_id y_plane_id = plane_state->linked_plane->id;
 
-		WARN_ON(!intel_wm_plane_visible(crtc_state, plane_state));
 		WARN_ON(!fb->format->is_yuv ||
 			fb->format->num_planes == 1);
 
@@ -5081,7 +5081,7 @@ static int icl_build_plane_wm(struct intel_crtc_state *crtc_state,
 						plane_id, 1);
 		if (ret)
 			return ret;
-	} else if (intel_wm_plane_visible(crtc_state, plane_state)) {
+	} else {
 		ret = skl_build_plane_wm_single(crtc_state, plane_state,
 						plane_id, 0);
 		if (ret)
Signature · 6 lines
2.20.1

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

✗ Fi.CI.CHECKPATCH: warning for drm/i915: Check visibility in icl_build_plane_wm

== Series Details ==

== Series Details ==

Series: drm/i915: Check visibility in icl_build_plane_wm
URL : https://patchwork.freedesktop.org/series/62098/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
534240f724bc drm/i915: Check visibility in icl_build_plane_wm
-:13: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#13: 
<4> [201.742947] WARNING: CPU: 7 PID: 1268 at drivers/gpu/drm/i915/intel_pm.c:5068 skl_compute_wm+0x2be/0x10a0 [i915]

total: 0 errors, 1 warnings, 0 checks, 26 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: Check visibility in icl_build_plane_wm

In reply to Maarten Lankhorst
== Series Details ==

== Series Details ==

Series: drm/i915: Check visibility in icl_build_plane_wm
URL : https://patchwork.freedesktop.org/series/62098/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6271 -> Patchwork_13284
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_switch@basic-default:
- fi-icl-guc: [PASS][1] -> [INCOMPLETE][2] ([fdo#107713] / [fdo#108569])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/fi-icl-guc/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/fi-icl-guc/igt@[email protected]

* igt@i915_selftest@live_contexts:
- fi-bdw-gvtdvm: [PASS][3] -> [DMESG-FAIL][4] ([fdo#110235])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/fi-bdw-gvtdvm/igt@i915_selftest@live_contexts.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/fi-bdw-gvtdvm/igt@i915_selftest@live_contexts.html

#### Possible fixes ####

* igt@gem_exec_fence@basic-wait-default:
- fi-icl-u3: [DMESG-WARN][5] ([fdo#107724]) -> [PASS][6] +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/fi-icl-u3/igt@[email protected]

* igt@i915_module_load@reload:
- fi-blb-e6850: [INCOMPLETE][7] ([fdo#107718]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/fi-blb-e6850/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/fi-blb-e6850/igt@[email protected]

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][9] ([fdo#109485]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/fi-kbl-7500u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/fi-kbl-7500u/igt@[email protected]

[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#110235]: https://bugs.freedesktop.org/show_bug.cgi?id=110235

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

Additional (1): fi-cml-u2
Missing (10): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-kbl-guc fi-ctg-p8600 fi-bdw-samus fi-byt-clapper fi-skl-6600u

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

* Linux: CI_DRM_6271 -> Patchwork_13284

CI_DRM_6271: 7564ad5c5922b117e250665a5caf7c4a530dcf5f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5056: c7b717f0126374a02fc86de5eb5fb1f3e7b3335b @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13284: 534240f724bc01b7e1e9252ca335510a757ba94c @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

534240f724bc drm/i915: Check visibility in icl_build_plane_wm

== Logs ==

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

#3 lore raw

✓ Fi.CI.IGT: success for drm/i915: Check visibility in icl_build_plane_wm

In reply to Maarten Lankhorst
== Series Details ==

== Series Details ==

Series: drm/i915: Check visibility in icl_build_plane_wm
URL : https://patchwork.freedesktop.org/series/62098/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_6271_full -> Patchwork_13284_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_isolation@rcs0-s3:
- shard-kbl: [PASS][1] -> [DMESG-WARN][2] ([fdo#108566]) +4 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-kbl2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-kbl2/igt@[email protected]
- shard-apl: [PASS][3] -> [DMESG-WARN][4] ([fdo#108566]) +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-apl2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-apl6/igt@[email protected]

* igt@gem_eio@in-flight-external:
- shard-glk: [PASS][5] -> [DMESG-WARN][6] ([fdo#110913 ]) +3 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-glk7/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-glk6/igt@[email protected]

* igt@gem_eio@suspend:
- shard-apl: [PASS][7] -> [DMESG-WARN][8] ([fdo#110913 ]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-apl3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-apl8/igt@[email protected]

* igt@gem_eio@wait-10ms:
- shard-kbl: [PASS][9] -> [DMESG-WARN][10] ([fdo#110913 ]) +1 similar issue
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-kbl6/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-kbl6/igt@[email protected]

* igt@gem_persistent_relocs@forked-faulting-reloc-thrashing:
- shard-skl: [PASS][11] -> [DMESG-WARN][12] ([fdo#110913 ]) +2 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-skl1/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-skl10/igt@[email protected]
- shard-hsw: [PASS][13] -> [DMESG-WARN][14] ([fdo#110789] / [fdo#110913 ])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-hsw5/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-hsw5/igt@[email protected]

* igt@gem_persistent_relocs@forked-interruptible-thrash-inactive:
- shard-iclb: [PASS][15] -> [INCOMPLETE][16] ([fdo#107713] / [fdo#109100])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-iclb3/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-iclb1/igt@[email protected]

* igt@gem_persistent_relocs@forked-interruptible-thrashing:
- shard-snb: [PASS][17] -> [DMESG-WARN][18] ([fdo#110789] / [fdo#110913 ]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-snb1/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-snb6/igt@[email protected]

* igt@kms_atomic_interruptible@legacy-dpms:
- shard-hsw: [PASS][19] -> [INCOMPLETE][20] ([fdo#103540]) +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-hsw2/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-hsw5/igt@[email protected]

* igt@kms_flip@flip-vs-suspend:
- shard-snb: [PASS][21] -> [INCOMPLETE][22] ([fdo#105411])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-snb2/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-snb1/igt@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-skl: [PASS][23] -> [INCOMPLETE][24] ([fdo#109507])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-skl4/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-skl7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [PASS][25] -> [FAIL][26] ([fdo#103167]) +3 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-iclb2/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-iclb8/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html

* igt@kms_psr2_su@frontbuffer:
- shard-iclb: [PASS][27] -> [SKIP][28] ([fdo#109642])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-iclb2/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-iclb1/igt@[email protected]

* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][29] -> [SKIP][30] ([fdo#109441]) +1 similar issue
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-iclb7/igt@kms_psr@psr2_sprite_plane_move.html

#### Possible fixes ####

* igt@gem_eio@in-flight-1us:
- shard-kbl: [DMESG-WARN][31] ([fdo#110913 ]) -> [PASS][32] +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-kbl7/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-kbl1/igt@[email protected]

* igt@gem_eio@in-flight-suspend:
- shard-glk: [FAIL][33] ([fdo#110667]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-glk3/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-glk4/igt@[email protected]

* igt@gem_eio@suspend:
- shard-skl: [DMESG-WARN][35] ([fdo#110913 ]) -> [PASS][36] +1 similar issue
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-skl1/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-skl10/igt@[email protected]

* igt@gem_eio@wait-wedge-1us:
- shard-apl: [DMESG-WARN][37] ([fdo#110913 ]) -> [PASS][38] +1 similar issue
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-apl3/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-apl7/igt@[email protected]

* igt@gem_persistent_relocs@forked-faulting-reloc-thrashing:
- shard-snb: [DMESG-WARN][39] ([fdo#110789] / [fdo#110913 ]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-snb6/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-snb2/igt@[email protected]

* igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing:
- shard-glk: [DMESG-WARN][41] ([fdo#110913 ]) -> [PASS][42] +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-glk5/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-glk4/igt@gem_persistent_relocs@forked-interruptible-faulting-reloc-thrashing.html

* igt@gem_userptr_blits@map-fixed-invalidate-busy-gup:
- shard-snb: [DMESG-WARN][43] ([fdo#110913 ]) -> [PASS][44] +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-snb1/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-snb6/igt@[email protected]

* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-snb: [SKIP][45] ([fdo#109271]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-snb7/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-snb5/igt@[email protected]

* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-c:
- shard-hsw: [DMESG-WARN][47] ([fdo#110222] / [fdo#110913 ]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-hsw5/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-hsw2/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-256x256-onscreen:
- shard-apl: [INCOMPLETE][49] ([fdo#103927]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-apl4/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-apl3/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-skl: [FAIL][51] ([fdo#105363]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-skl10/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-skl8/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-move:
- shard-hsw: [SKIP][53] ([fdo#109271]) -> [PASS][54] +12 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-hsw1/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-hsw2/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-pwrite:
- shard-iclb: [FAIL][55] ([fdo#103167]) -> [PASS][56] +1 similar issue
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-iclb5/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-iclb8/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [FAIL][57] ([fdo#108145]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-skl4/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-skl10/igt@[email protected]

* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [FAIL][59] ([fdo#103166]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-iclb6/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-iclb8/igt@[email protected]

* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-iclb: [SKIP][61] ([fdo#109441]) -> [PASS][62] +1 similar issue
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-iclb8/igt@kms_psr@psr2_cursor_plane_onoff.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-iclb2/igt@kms_psr@psr2_cursor_plane_onoff.html

* igt@kms_setmode@basic:
- shard-hsw: [FAIL][63] ([fdo#99912]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-hsw2/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-hsw7/igt@[email protected]

* igt@kms_sysfs_edid_timing:
- shard-iclb: [FAIL][65] ([fdo#100047]) -> [PASS][66]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-iclb3/igt@kms_sysfs_edid_timing.html
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-iclb7/igt@kms_sysfs_edid_timing.html
- shard-hsw: [FAIL][67] ([fdo#100047]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-hsw1/igt@kms_sysfs_edid_timing.html
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-hsw8/igt@kms_sysfs_edid_timing.html

* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [DMESG-WARN][69] ([fdo#108566]) -> [PASS][70] +2 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-apl1/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-apl4/igt@[email protected]

#### Warnings ####

* igt@gem_exec_schedule@semaphore-resolve:
- shard-glk: [DMESG-FAIL][71] -> [FAIL][72] ([fdo#110519])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-glk1/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-glk2/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-gtt:
- shard-skl: [FAIL][73] ([fdo#103167]) -> [FAIL][74] ([fdo#108040])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6271/shard-skl8/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-gtt.html
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13284/shard-skl3/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-mmap-gtt.html

[fdo#100047]: https://bugs.freedesktop.org/show_bug.cgi?id=100047
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108040]: https://bugs.freedesktop.org/show_bug.cgi?id=108040
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109507]: https://bugs.freedesktop.org/show_bug.cgi?id=109507
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110222]: https://bugs.freedesktop.org/show_bug.cgi?id=110222
[fdo#110519]: https://bugs.freedesktop.org/show_bug.cgi?id=110519
[fdo#110667]: https://bugs.freedesktop.org/show_bug.cgi?id=110667
[fdo#110789]: https://bugs.freedesktop.org/show_bug.cgi?id=110789
[fdo#110913 ]: https://bugs.freedesktop.org/show_bug.cgi?id=110913
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912

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

No changes in participating hosts

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

* Linux: CI_DRM_6271 -> Patchwork_13284

CI_DRM_6271: 7564ad5c5922b117e250665a5caf7c4a530dcf5f @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5056: c7b717f0126374a02fc86de5eb5fb1f3e7b3335b @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13284: 534240f724bc01b7e1e9252ca335510a757ba94c @ 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_13284/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw
In reply to Maarten Lankhorst
Quoted 3 lines · Maarten Lankhorst

When a planar YUV plane is configured, but the crtc is marked inactive, we can end up with a linked plane without visibility.

How is that possible? I don't think we should be adding the slave plane if the master is not visible.

Quoted 105 lines

Handle this by checking for visibility early,
instead of doing a WARN.

<4> [201.742919] ------------[ cut here ]------------
<4> [201.742920] WARN_ON(!intel_wm_plane_visible(crtc_state, plane_state))
<4> [201.742947] WARNING: CPU: 7 PID: 1268 at drivers/gpu/drm/i915/intel_pm.c:5068 skl_compute_wm+0x2be/0x10a0 [i915]
<4> [201.742948] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic i915 x86_pkg_temp_thermal snd_hda_intel coretemp snd_hda_codec mei_hdcp snd_hwdep snd_hda_core crct10dif_pclmul cdc_ether usbnet crc32_pclmul mii snd_pcm ghash_clmulni_intel mei_me mei prime_numbers
<4> [201.742958] CPU: 7 PID: 1268 Comm: kms_chamelium Tainted: G U 5.2.0-rc3-CI-CI_DRM_6216+ #1
<4> [201.742960] Hardware name: Intel Corporation Ice Lake Client Platform/IceLake U DDR4 SODIMM PD RVP TLC, BIOS ICLSFWR1.R00.3183.A00.1905020411 05/02/2019
<4> [201.742978] RIP: 0010:skl_compute_wm+0x2be/0x10a0 [i915]
<4> [201.742980] Code: 24 10 8b 92 fc 02 00 00 0f 85 ba 04 00 00 48 c7 c6 e0 38 2e a0 48 c7 c7 93 99 31 a0 89 54 24 20 48 89 44 24 08 e8 82 a2 f5 e0 <0f> 0b 8b 54 24 20 48 8b 44 24 08 48 8b 40 48 80 78 12 00 0f 85 76
<4> [201.742981] RSP: 0018:ffffc9000064f9a8 EFLAGS: 00010282
<4> [201.742983] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000007
<4> [201.742984] RDX: 000000000000175c RSI: ffff8884934d48e0 RDI: ffffffff8212df49
<4> [201.742985] RBP: ffff888493408558 R08: 00000000b56dab44 R09: 0000000000000000
<4> [201.742986] R10: ffff88848be00000 R11: 0000000000000000 R12: ffff88849afd89f8
<4> [201.742987] R13: ffff88847eaf67e8 R14: ffff88848c344a88 R15: ffff88848be00000
<4> [201.742988] FS: 00007f4d9b60b700(0000) GS:ffff88849ff80000(0000) knlGS:0000000000000000
<4> [201.742989] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [201.742991] CR2: 00007f4d9b609ff8 CR3: 000000048c326006 CR4: 0000000000760ee0
<4> [201.742992] PKRU: 55555554
<4> [201.742993] Call Trace:

<4> [201.743021]  ? intel_atomic_check+0x7b2/0x1440 [i915]
<4> [201.743026]  ? __mutex_unlock_slowpath+0x46/0x2b0
<4> [201.743052]  intel_atomic_check+0x7ca/0x1440 [i915]
<4> [201.743060]  drm_atomic_check_only+0x55a/0x7f0
<4> [201.743064]  drm_atomic_commit+0xe/0x50
<4> [201.743067]  drm_atomic_connector_commit_dpms+0xe0/0xf0
<4> [201.743069]  set_property_atomic+0xba/0x140
<4> [201.743075]  drm_mode_obj_set_property_ioctl+0x111/0x1d0
<4> [201.743077]  ? drm_dev_exit+0x8/0x40
<4> [201.743080]  ? drm_connector_set_obj_prop+0x70/0x70
<4> [201.743082]  drm_connector_property_set_ioctl+0x39/0x60
<4> [201.743084]  drm_ioctl_kernel+0x83/0xf0
<4> [201.743087]  drm_ioctl+0x2f3/0x3b0
<4> [201.743090]  ? drm_connector_set_obj_prop+0x70/0x70
<4> [201.743096]  ? lock_acquire+0xa6/0x1c0
<4> [201.743100]  do_vfs_ioctl+0xa0/0x6e0
<4> [201.743103]  ? __fget+0x10f/0x200
<4> [201.743105]  ksys_ioctl+0x35/0x60
<4> [201.743108]  __x64_sys_ioctl+0x11/0x20
<4> [201.743110]  do_syscall_64+0x55/0x1c0
<4> [201.743112]  entry_SYSCALL_64_after_hwframe+0x49/0xbe

<4> [201.743114] RIP: 0033:0x7f4da6c8d5d7
<4> [201.743115] Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48 <4> [201.743116] RSP: 002b:00007f4d9b60aba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
<4> [201.743118] RAX: ffffffffffffffda RBX: 00007f4d94001ac0 RCX: 00007f4da6c8d5d7
<4> [201.743119] RDX: 00007f4d9b60abe0 RSI: 00000000c01064ab RDI: 0000000000000005
<4> [201.743120] RBP: 00007f4d9b60abe0 R08: 00007f4d940015c0 R09: 00007f4d940015f0
<4> [201.743121] R10: 0000000000000055 R11: 0000000000000246 R12: 00000000c01064ab
<4> [201.743122] R13: 0000000000000005 R14: 0000000000000005 R15: 00007f4da7a2c0c7
<4> [201.743156] irq event stamp: 362
<4> [201.743162] hardirqs last enabled at (361): [<ffffffff8112862c>] vprintk_emit+0xcc/0x340
<4> [201.743168] hardirqs last disabled at (362): [<ffffffff810019e0>] trace_hardirqs_off_thunk+0x1a/0x1c
<4> [201.743174] softirqs last enabled at (0): [<ffffffff810abf78>] copy_process.part.6+0x4e8/0x1dc0
<4> [201.743178] softirqs last disabled at (0): [<0000000000000000>] 0x0
<4> [201.743243] WARNING: CPU: 7 PID: 1268 at drivers/gpu/drm/i915/intel_pm.c:5068 skl_compute_wm+0x2be/0x10a0 [i915]
<4> [201.743246] ---[ end trace 33e6703087376efa ]---

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110895
Testcase: kms_chamelium@hdmi-cmp-nv12

---
 drivers/gpu/drm/i915/intel_pm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +4 -4
index 4e52dad84d64..e0e57de22388 100644
@@ -5060,15 +5060,15 @@ static int icl_build_plane_wm(struct intel_crtc_state *crtc_state,
 	enum plane_id plane_id = to_intel_plane(plane_state->base.plane)->id;
 	int ret;
 
-	/* Watermarks calculated in master */
-	if (plane_state->slave)
+	/* Watermarks are calculated in master */
+	if (plane_state->slave ||
+	    !intel_wm_plane_visible(crtc_state, plane_state))
 		return 0;
 
 	if (plane_state->linked_plane) {
 		const struct drm_framebuffer *fb = plane_state->base.fb;
 		enum plane_id y_plane_id = plane_state->linked_plane->id;
 
-		WARN_ON(!intel_wm_plane_visible(crtc_state, plane_state));
 		WARN_ON(!fb->format->is_yuv ||
 			fb->format->num_planes == 1);
 
@@ -5081,7 +5081,7 @@ static int icl_build_plane_wm(struct intel_crtc_state *crtc_state,
 						plane_id, 1);
 		if (ret)
 			return ret;
-	} else if (intel_wm_plane_visible(crtc_state, plane_state)) {
+	} else {
 		ret = skl_build_plane_wm_single(crtc_state, plane_state,
 						plane_id, 0);
 		if (ret)
Signature · 6 lines
2.20.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#5 lore raw

Op 17-06-2019 om 14:34 schreef Ville Syrjälä:

Quoted 6 lines · Maarten Lankhorst
Quoted 3 lines

When a planar YUV plane is configured, but the crtc is marked inactive, we can end up with a linked plane without visibility.

How is that possible? I don't think we should be adding the slave plane if the master is not visible.

DPMS off, we calculate the various fields as if the CRTC is on, then disable visibility.

crtc_state->nv12_planes etc still get set, so it works as if the crtc is on.

It's a way of not allowing an invalid result when dpms is off, then breaking on crtc enable.

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

#6 lore raw
Quoted 9 lines · Maarten Lankhorst

Op 17-06-2019 om 14:34 schreef Ville Syrjälä:

Quoted 6 lines · Maarten Lankhorst
Quoted 3 lines

When a planar YUV plane is configured, but the crtc is marked inactive, we can end up with a linked plane without visibility.

How is that possible? I don't think we should be adding the slave plane if the master is not visible.

Quoted 5 lines

DPMS off, we calculate the various fields as if the CRTC is on, then disable visibility.

crtc_state->nv12_planes etc still get set, so it works as if the crtc is on.

It's a way of not allowing an invalid result when dpms is off, then breaking on crtc enable.

Hmm. I wonder when we started to do that. If we're already doing this much then I wonder how far we are from just dealing with the FIXME in intel_wm_plane_visible() instead?

Signature · 6 lines
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#7 lore raw
Quoted 12 lines · Ville Syrjälä
Quoted 11 lines · Maarten Lankhorst

Op 17-06-2019 om 14:34 schreef Ville Syrjälä:

Quoted 6 lines · Maarten Lankhorst
Quoted 3 lines

When a planar YUV plane is configured, but the crtc is marked inactive, we can end up with a linked plane without visibility.

How is that possible? I don't think we should be adding the slave plane if the master is not visible.

DPMS off, we calculate the various fields as if the CRTC is on, then disable visibility.

Quoted 7 lines
Quoted 3 lines

crtc_state->nv12_planes etc still get set, so it works as if the crtc is on.

It's a way of not allowing an invalid result when dpms is off, then breaking on crtc enable.

Hmm. I wonder when we started to do that. If we're already doing this much then I wonder how far we are from just dealing with the FIXME in intel_wm_plane_visible() instead?

Still far I guess. Would potentially need to do some surgery on the pipe ddb allocation as well.

This whole thing is a bit borked. We clear active_planes but still use it when allocating the Y plane. Hence dpms on could just fail anyway due to not having a free Y plane (as well as due to insufficient watermarks).

So if we want to make the Y plane allocation robust I guess we would also need to move clearing the plane visibility to happen after the crtc .atomic_check().

Signature · 6 lines
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx