Skip to contentSkip to conversation

drm/atomic: Don't pollute crtc_state->mode_blob with error pointers

PATCH In review Ville Syrjala 2 participants 5 messages Feb 9, 2022 – Feb 16, 2022

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

PATCH 1/2 drm/atomic: Don't pollute crtc_state->mode_blob with error pointers

From: Ville Syrjälä <[email protected]>

Make sure we don't assign an error pointer to crtc_state->mode_blob as that will break all kinds of places that assume either NULL or a valid pointer (eg. drm_property_blob_put()).

---
 drivers/gpu/drm/drm_atomic_uapi.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/gpu/drm/drm_atomic_uapi.c +8 -6
index 9781722519c3..54d62fdb4ef9 100644
@@ -76,15 +76,17 @@ int drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state,
 	state->mode_blob = NULL;
 
 	if (mode) {
+		struct drm_property_blob *blob;
+
 		drm_mode_convert_to_umode(&umode, mode);
-		state->mode_blob =
-			drm_property_create_blob(state->crtc->dev,
-						 sizeof(umode),
-						 &umode);
-		if (IS_ERR(state->mode_blob))
-			return PTR_ERR(state->mode_blob);
+		blob = drm_property_create_blob(crtc->dev,
+						sizeof(umode), &umode);
+		if (IS_ERR(blob))
+			return PTR_ERR(blob);
 
 		drm_mode_copy(&state->mode, mode);
+
+		state->mode_blob = blob;
 		state->enable = true;
 		drm_dbg_atomic(crtc->dev,
 			       "Set [MODE:%s] for [CRTC:%d:%s] state %p\n",
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 drm/modes: Fix drm_mode_copy() docs

From: Ville Syrjälä <[email protected]>

There is no object id in drm_display_mode anymore. Remove stale comments to the contrary.

---
 drivers/gpu/drm/drm_modes.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_modes.c +1 -1
index 1c72208d8133..1f4d9cd188cc 100644
@@ -880,7 +880,7 @@ EXPORT_SYMBOL(drm_mode_set_crtcinfo);
  * @dst: mode to overwrite
  * @src: mode to copy
  *
- * Copy an existing mode into another mode, preserving the object id and
+ * Copy an existing mode into another mode, preserving
  * list head of the destination mode.
  */
 void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src)
Signature · 1 line
2.34.1
#2 lore raw

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/atomic: Don't pollute crtc_state->mode_blob with error pointers

In reply to Ville Syrjala
== Series Details ==

== Series Details ==

Series: series starting with [1/2] drm/atomic: Don't pollute crtc_state->mode_blob with error pointers
URL : https://patchwork.freedesktop.org/series/99891/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_11206 -> Patchwork_22219
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/index.html

Participating hosts (45 -> 43)
------------------------------

Missing (2): fi-bsw-cyan shard-tglu

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live:
- fi-skl-6600u: NOTRUN -> [FAIL][1] ([i915#4547])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/fi-skl-6600u/igt@[email protected]

* igt@runner@aborted:
- fi-skl-6600u: NOTRUN -> [FAIL][2] ([i915#1436] / [i915#4312])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/fi-skl-6600u/igt@[email protected]
- fi-bdw-5557u: NOTRUN -> [FAIL][3] ([i915#2426] / [i915#4312])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/fi-bdw-5557u/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@gem_contexts:
- fi-kbl-soraka: [DMESG-WARN][4] ([i915#4391]) -> [PASS][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/fi-kbl-soraka/igt@i915_selftest@live@gem_contexts.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/fi-kbl-soraka/igt@i915_selftest@live@gem_contexts.html

#### Warnings ####

* igt@i915_selftest@live@hangcheck:
- bat-dg1-6: [DMESG-FAIL][6] ([i915#4494] / [i915#4957]) -> [DMESG-FAIL][7] ([i915#4957])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/bat-dg1-6/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/bat-dg1-6/igt@i915_selftest@[email protected]

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

[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4494]: https://gitlab.freedesktop.org/drm/intel/issues/4494
[i915#4547]: https://gitlab.freedesktop.org/drm/intel/issues/4547
[i915#4898]: https://gitlab.freedesktop.org/drm/intel/issues/4898
[i915#4957]: https://gitlab.freedesktop.org/drm/intel/issues/4957

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

* Linux: CI_DRM_11206 -> Patchwork_22219

CI-20190529: 20190529
CI_DRM_11206: c506a5dedeb5dd0a7a6cdce55cc4a09beb9c39ce @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6341: a96674e747ea2f2431bbf8813156adc44ec3162a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_22219: a49cdac0dbbf94c53051b3341ceff5c3468adf89 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

a49cdac0dbbf drm/modes: Fix drm_mode_copy() docs
96608b660f2b drm/atomic: Don't pollute crtc_state->mode_blob with error pointers

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/index.html

#3 lore raw

[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/2] drm/atomic: Don't pollute crtc_state->mode_blob with error pointers

In reply to Ville Syrjala
== Series Details ==

== Series Details ==

Series: series starting with [1/2] drm/atomic: Don't pollute crtc_state->mode_blob with error pointers
URL : https://patchwork.freedesktop.org/series/99891/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_11206_full -> Patchwork_22219_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_22219_full absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_22219_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

Participating hosts (11 -> 11)
------------------------------

No changes in participating hosts

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_22219_full:

### IGT changes ###

#### Possible regressions ####

* igt@i915_selftest@mock@requests:
- shard-skl: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-skl1/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl2/igt@i915_selftest@[email protected]

* igt@kms_flip@flip-vs-fences-interruptible@a-vga1:
- shard-snb: [PASS][3] -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-snb7/igt@kms_flip@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-snb2/igt@kms_flip@[email protected]

* igt@syncobj_timeline@invalid-transfer-non-existent-point:
- shard-iclb: NOTRUN -> [DMESG-WARN][5]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb6/igt@[email protected]

* igt@syncobj_timeline@transfer-timeline-point:
- shard-kbl: NOTRUN -> [DMESG-WARN][6]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl3/igt@[email protected]

#### Warnings ####

* igt@gem_exec_balancer@parallel-ordering:
- shard-iclb: [SKIP][7] ([i915#4525]) -> [DMESG-FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-iclb5/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb1/igt@[email protected]

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

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

### CI changes ###

#### Possible fixes ####

* boot:
- shard-apl: ([PASS][9], [PASS][10], [PASS][11], [PASS][12], [PASS][13], [PASS][14], [PASS][15], [PASS][16], [PASS][17], [PASS][18], [PASS][19], [PASS][20], [PASS][21], [PASS][22], [PASS][23], [PASS][24], [PASS][25], [PASS][26], [FAIL][27], [PASS][28], [PASS][29], [PASS][30], [PASS][31], [PASS][32], [PASS][33]) ([i915#4386]) -> ([PASS][34], [PASS][35], [PASS][36], [PASS][37], [PASS][38], [PASS][39], [PASS][40], [PASS][41], [PASS][42], [PASS][43], [PASS][44], [PASS][45], [PASS][46], [PASS][47], [PASS][48], [PASS][49], [PASS][50], [PASS][51], [PASS][52], [PASS][53], [PASS][54], [PASS][55], [PASS][56], [PASS][57], [PASS][58])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl8/boot.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl8/boot.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl8/boot.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl7/boot.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl7/boot.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl7/boot.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl7/boot.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl7/boot.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl6/boot.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl6/boot.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl6/boot.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl4/boot.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl4/boot.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl4/boot.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl3/boot.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl3/boot.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl3/boot.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl2/boot.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl2/boot.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl2/boot.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl2/boot.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl1/boot.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl1/boot.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl1/boot.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl1/boot.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl3/boot.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl3/boot.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl3/boot.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl4/boot.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl4/boot.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl4/boot.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl6/boot.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl6/boot.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl6/boot.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl6/boot.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl6/boot.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl7/boot.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl7/boot.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl7/boot.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/boot.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/boot.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/boot.html
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/boot.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl1/boot.html
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl1/boot.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl1/boot.html
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl2/boot.html
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl2/boot.html
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl2/boot.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl3/boot.html

### IGT changes ###

#### Issues hit ####

* igt@feature_discovery@display-4x:
- shard-tglb: NOTRUN -> [SKIP][59] ([i915#1839])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@[email protected]

* igt@gem_ctx_isolation@preservation-s3@vcs1:
- shard-tglb: [PASS][60] -> [DMESG-WARN][61] ([i915#2411] / [i915#2867]) +1 similar issue
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-tglb2/igt@gem_ctx_isolation@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb7/igt@gem_ctx_isolation@[email protected]

* igt@gem_ctx_param@set-priority-not-supported:
- shard-iclb: NOTRUN -> [SKIP][62] ([fdo#109314])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb6/igt@[email protected]

* igt@gem_eio@kms:
- shard-tglb: NOTRUN -> [FAIL][63] ([i915#232])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@[email protected]

* igt@gem_exec_balancer@parallel-balancer:
- shard-iclb: [PASS][64] -> [SKIP][65] ([i915#4525])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-iclb2/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb5/igt@[email protected]

* igt@gem_exec_capture@pi@rcs0:
- shard-skl: NOTRUN -> [INCOMPLETE][66] ([i915#4547])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl1/igt@gem_exec_capture@[email protected]

* igt@gem_exec_fair@basic-deadline:
- shard-glk: [PASS][67] -> [FAIL][68] ([i915#2846])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-glk3/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-glk1/igt@[email protected]

* igt@gem_exec_fair@basic-flow@rcs0:
- shard-tglb: [PASS][69] -> [FAIL][70] ([i915#2842]) +1 similar issue
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-tglb3/igt@gem_exec_fair@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb1/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@rcs0:
- shard-kbl: [PASS][71] -> [FAIL][72] ([i915#2842]) +2 similar issues
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-kbl7/igt@gem_exec_fair@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@vcs1:
- shard-iclb: NOTRUN -> [FAIL][73] ([i915#2842])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb2/igt@gem_exec_fair@[email protected]

* igt@gem_exec_whisper@basic-fds-all:
- shard-glk: [PASS][74] -> [DMESG-WARN][75] ([i915#118])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-glk6/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-glk3/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- shard-skl: NOTRUN -> [SKIP][76] ([fdo#109271] / [i915#2190])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl1/igt@[email protected]

* igt@gem_lmem_swapping@heavy-multi:
- shard-iclb: NOTRUN -> [SKIP][77] ([i915#4613])
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb6/igt@[email protected]

* igt@gem_lmem_swapping@parallel-multi:
- shard-skl: NOTRUN -> [SKIP][78] ([fdo#109271] / [i915#4613]) +2 similar issues
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl1/igt@[email protected]

* igt@gem_lmem_swapping@smem-oom:
- shard-kbl: NOTRUN -> [SKIP][79] ([fdo#109271] / [i915#4613]) +1 similar issue
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl3/igt@[email protected]

* igt@gem_lmem_swapping@verify-random:
- shard-apl: NOTRUN -> [SKIP][80] ([fdo#109271] / [i915#4613])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/igt@[email protected]

* igt@gem_pxp@fail-invalid-protected-context:
- shard-tglb: NOTRUN -> [SKIP][81] ([i915#4270]) +1 similar issue
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@[email protected]

* igt@gem_softpin@evict-snoop-interruptible:
- shard-tglb: NOTRUN -> [SKIP][82] ([fdo#109312])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@[email protected]

* igt@gen7_exec_parse@batch-without-end:
- shard-iclb: NOTRUN -> [SKIP][83] ([fdo#109289])
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb6/igt@[email protected]

* igt@gen9_exec_parse@allowed-single:
- shard-skl: [PASS][84] -> [DMESG-WARN][85] ([i915#1436] / [i915#716])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-skl4/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl9/igt@[email protected]

* igt@gen9_exec_parse@bb-oversize:
- shard-tglb: NOTRUN -> [SKIP][86] ([i915#2527] / [i915#2856]) +1 similar issue
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@[email protected]

* igt@kms_async_flips@crc:
- shard-skl: NOTRUN -> [FAIL][87] ([i915#4272])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl1/igt@[email protected]

* igt@kms_atomic@plane-primary-overlay-mutable-zpos:
- shard-iclb: NOTRUN -> [SKIP][88] ([i915#404])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb6/igt@[email protected]

* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-0-hflip:
- shard-apl: NOTRUN -> [SKIP][89] ([fdo#109271] / [i915#3777])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl1/igt@[email protected]

* igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip:
- shard-kbl: NOTRUN -> [SKIP][90] ([fdo#109271] / [i915#3777])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl3/igt@kms_big_fb@x-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip.html

* igt@kms_big_fb@y-tiled-64bpp-rotate-90:
- shard-tglb: NOTRUN -> [SKIP][91] ([fdo#111614])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@[email protected]

* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
- shard-skl: NOTRUN -> [SKIP][92] ([fdo#109271] / [i915#3777]) +3 similar issues
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl4/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html

* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-tglb: NOTRUN -> [SKIP][93] ([fdo#111615]) +1 similar issue
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html

* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0:
- shard-apl: NOTRUN -> [SKIP][94] ([fdo#109271]) +102 similar issues
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/igt@[email protected]

* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][95] ([fdo#109271] / [i915#3886]) +8 similar issues
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html

* igt@kms_ccs@pipe-b-bad-pixel-format-y_tiled_gen12_mc_ccs:
- shard-skl: NOTRUN -> [SKIP][96] ([fdo#109271] / [i915#3886]) +3 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl1/igt@kms_ccs@pipe-b-bad-pixel-format-y_tiled_gen12_mc_ccs.html

* igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_mc_ccs:
- shard-tglb: NOTRUN -> [SKIP][97] ([i915#3689] / [i915#3886]) +1 similar issue
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_mc_ccs.html

* igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_ccs:
- shard-tglb: NOTRUN -> [SKIP][98] ([i915#3689]) +1 similar issue
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_ccs.html

* igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_mc_ccs:
- shard-kbl: NOTRUN -> [SKIP][99] ([fdo#109271] / [i915#3886]) +3 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl3/igt@kms_ccs@pipe-c-ccs-on-another-bo-y_tiled_gen12_mc_ccs.html

* igt@kms_chamelium@dp-crc-multiple:
- shard-kbl: NOTRUN -> [SKIP][100] ([fdo#109271] / [fdo#111827]) +1 similar issue
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl3/igt@[email protected]

* igt@kms_chamelium@hdmi-hpd-for-each-pipe:
- shard-apl: NOTRUN -> [SKIP][101] ([fdo#109271] / [fdo#111827]) +9 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/igt@[email protected]

* igt@kms_color_chamelium@pipe-a-ctm-0-75:
- shard-tglb: NOTRUN -> [SKIP][102] ([fdo#109284] / [fdo#111827]) +6 similar issues
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@[email protected]

* igt@kms_color_chamelium@pipe-d-ctm-green-to-red:
- shard-skl: NOTRUN -> [SKIP][103] ([fdo#109271] / [fdo#111827]) +8 similar issues
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl1/igt@[email protected]

* igt@kms_content_protection@dp-mst-type-1:
- shard-tglb: NOTRUN -> [SKIP][104] ([i915#3116] / [i915#3299])
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@[email protected]

* igt@kms_content_protection@mei_interface:
- shard-tglb: NOTRUN -> [SKIP][105] ([i915#1063])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@kms_content_protection@mei_interface.html

* igt@kms_cursor_crc@pipe-a-cursor-32x32-sliding:
- shard-tglb: NOTRUN -> [SKIP][106] ([i915#3319]) +1 similar issue
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [PASS][107] -> [DMESG-WARN][108] ([i915#180])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-kbl7/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl6/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-32x10-sliding:
- shard-tglb: NOTRUN -> [SKIP][109] ([i915#3359])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-512x512-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][110] ([fdo#109279] / [i915#3359]) +2 similar issues
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-iclb: [PASS][111] -> [FAIL][112] ([i915#2346])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-iclb1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb7/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html

* igt@kms_dither@fb-8bpc-vs-panel-8bpc@edp-1-pipe-a:
- shard-tglb: NOTRUN -> [SKIP][113] ([i915#3788])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@kms_dither@[email protected]

* igt@kms_flip@2x-dpms-vs-vblank-race:
- shard-iclb: NOTRUN -> [SKIP][114] ([fdo#109274])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb6/igt@[email protected]

* igt@kms_flip@2x-flip-vs-absolute-wf_vblank-interruptible:
- shard-tglb: NOTRUN -> [SKIP][115] ([fdo#109274] / [fdo#111825]) +4 similar issues
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@kms_flip@2x-flip-vs-absolute-wf_vblank-interruptible.html

* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible@ab-hdmi-a1-hdmi-a2:
- shard-glk: [PASS][116] -> [FAIL][117] ([i915#79])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-glk8/igt@kms_flip@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-glk8/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-skl: [PASS][118] -> [FAIL][119] ([i915#79]) +1 similar issue
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-skl9/igt@kms_flip@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl6/igt@kms_flip@[email protected]

* igt@kms_flip@plain-flip-fb-recreate@b-dp1:
- shard-apl: [PASS][120] -> [FAIL][121] ([i915#2122])
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl2/igt@kms_flip@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl7/igt@kms_flip@[email protected]

* igt@kms_flip@plain-flip-fb-recreate@b-edp1:
- shard-skl: [PASS][122] -> [FAIL][123] ([i915#2122]) +1 similar issue
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-skl9/igt@kms_flip@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl6/igt@kms_flip@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- shard-tglb: NOTRUN -> [SKIP][124] ([fdo#109285])
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-shrfb-fliptrack-mmap-gtt:
- shard-skl: NOTRUN -> [SKIP][125] ([fdo#109271]) +109 similar issues
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl1/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-mmap-cpu:
- shard-tglb: NOTRUN -> [SKIP][126] ([fdo#109280] / [fdo#111825]) +9 similar issues
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-spr-indfb-draw-mmap-cpu.html

* igt@kms_hdr@bpc-switch:
- shard-skl: NOTRUN -> [FAIL][127] ([i915#1188])
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl4/igt@[email protected]

* igt@kms_hdr@static-toggle:
- shard-tglb: NOTRUN -> [SKIP][128] ([i915#1187])
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-d:
- shard-kbl: NOTRUN -> [SKIP][129] ([fdo#109271] / [i915#533])
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl3/igt@[email protected]

* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes:
- shard-apl: [PASS][130] -> [DMESG-WARN][131] ([i915#180]) +4 similar issues
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-apl6/igt@kms_plane@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl6/igt@kms_plane@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-alpha-opaque-fb:
- shard-apl: NOTRUN -> [FAIL][132] ([fdo#108145] / [i915#265])
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-alpha-transparent-fb:
- shard-kbl: NOTRUN -> [FAIL][133] ([i915#265])
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl3/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: NOTRUN -> [FAIL][134] ([fdo#108145] / [i915#265])
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl4/igt@[email protected]

* igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping:
- shard-apl: NOTRUN -> [SKIP][135] ([fdo#109271] / [i915#2733])
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html

* igt@kms_psr2_su@page_flip-p010:
- shard-skl: NOTRUN -> [SKIP][136] ([fdo#109271] / [i915#658])
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl4/igt@kms_psr2_su@page_flip-p010.html

* igt@kms_psr2_su@page_flip-xrgb8888:
- shard-apl: NOTRUN -> [SKIP][137] ([fdo#109271] / [i915#658])
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl8/igt@kms_psr2_su@page_flip-xrgb8888.html

* igt@kms_psr@psr2_basic:
- shard-tglb: NOTRUN -> [FAIL][138] ([i915#132] / [i915#3467])
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb2/igt@kms_psr@psr2_basic.html

* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][139] -> [SKIP][140] ([fdo#109441]) +3 similar issues
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb5/igt@kms_psr@psr2_sprite_plane_move.html

* igt@kms_vblank@pipe-d-ts-continuation-modeset-rpm:
- shard-iclb: NOTRUN -> [SKIP][141] ([fdo#109278]) +2 similar issues
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb6/igt@[email protected]

* igt@kms_vrr@flip-dpms:
- shard-tglb: NOTRUN -> [SKIP][142] ([fdo#109502])
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@[email protected]

* igt@kms_writeback@writeback-fb-id:
- shard-skl: NOTRUN -> [SKIP][143] ([fdo#109271] / [i915#2437])
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl4/igt@[email protected]

* igt@perf@blocking:
- shard-skl: [PASS][144] -> [FAIL][145] ([i915#1542])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-skl10/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl2/igt@[email protected]

* igt@perf_pmu@event-wait@rcs0:
- shard-tglb: NOTRUN -> [SKIP][146] ([fdo#112283])
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@perf_pmu@[email protected]

* igt@prime_nv_api@nv_i915_import_twice_check_flink_name:
- shard-tglb: NOTRUN -> [SKIP][147] ([fdo#109291])
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-tglb6/igt@prime_nv_api@nv_i915_import_twice_check_flink_name.html

* igt@prime_nv_pcopy@test2:
- shard-kbl: NOTRUN -> [SKIP][148] ([fdo#109271]) +45 similar issues
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl3/igt@[email protected]

* igt@sysfs_clients@recycle:
- shard-apl: NOTRUN -> [SKIP][149] ([fdo#109271] / [i915#2994])
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-apl1/igt@[email protected]

* igt@sysfs_clients@recycle-many:
- shard-skl: NOTRUN -> [SKIP][150] ([fdo#109271] / [i915#2994]) +1 similar issue
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl1/igt@[email protected]

* igt@sysfs_clients@split-25:
- shard-kbl: NOTRUN -> [SKIP][151] ([fdo#109271] / [i915#2994])
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-kbl3/igt@[email protected]

* igt@sysfs_heartbeat_interval@mixed@rcs0:
- shard-skl: [PASS][152] -> [FAIL][153] ([i915#1731])
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-skl8/igt@sysfs_heartbeat_interval@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl7/igt@sysfs_heartbeat_interval@[email protected]

#### Possible fixes ####

* igt@feature_discovery@psr2:
- shard-iclb: [SKIP][154] ([i915#658]) -> [PASS][155]
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-iclb8/igt@[email protected]
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-iclb2/igt@[email protected]

* igt@gem_ctx_bad_destroy@double-destroy:
- shard-skl: [DMESG-WARN][156] ([i915#1982]) -> [PASS][157] +1 similar issue
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11206/shard-skl2/igt@[email protected]
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/shard-skl3/igt@[email protected]

* igt@gem_exec_capture@pi@vcs1:
- shard-tglb: [INCOMPLETE][158] ([i915#3371]) -> [PASS][159]
[158

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_22219/index.html

#4 lore raw
In reply to Ville Syrjala
Quoted 8 lines · Ville Syrjala

From: Ville Syrjälä <[email protected]>

Make sure we don't assign an error pointer to crtc_state->mode_blob as that will break all kinds of places that assume either NULL or a valid pointer (eg. drm_property_blob_put()).

Slapped on a cc:stable just in case this can actually happen in the wild, and pushed to drm-misc-fixes with Maxime's irc ack (thanks).

Quoted 34 lines
---
 drivers/gpu/drm/drm_atomic_uapi.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/gpu/drm/drm_atomic_uapi.c +8 -6
index 9781722519c3..54d62fdb4ef9 100644
@@ -76,15 +76,17 @@ int drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state,
 	state->mode_blob = NULL;
 
 	if (mode) {
+		struct drm_property_blob *blob;
+
 		drm_mode_convert_to_umode(&umode, mode);
-		state->mode_blob =
-			drm_property_create_blob(state->crtc->dev,
-						 sizeof(umode),
-						 &umode);
-		if (IS_ERR(state->mode_blob))
-			return PTR_ERR(state->mode_blob);
+		blob = drm_property_create_blob(crtc->dev,
+						sizeof(umode), &umode);
+		if (IS_ERR(blob))
+			return PTR_ERR(blob);
 
 		drm_mode_copy(&state->mode, mode);
+
+		state->mode_blob = blob;
 		state->enable = true;
 		drm_dbg_atomic(crtc->dev,
 			       "Set [MODE:%s] for [CRTC:%d:%s] state %p\n",
Signature · 1 line
2.34.1
Signature · 2 lines
Ville Syrjälä
Intel