Skip to contentSkip to conversation

drm/i915: Nuke INTEL_OUTPUT_FORMAT_INVALID

PATCH In review Ville Syrjala 3 participants 6 messages Feb 5, 2021 – Feb 18, 2021

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

PATCH 1/1 drm/i915: Nuke INTEL_OUTPUT_FORMAT_INVALID

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

We tend to use output_format!=RGB as a shorthand for YCbCr, but this fails if we have a disabled crtc where output_format==INVALID. We're now getting some fail from intel_color_check() when we have:
hw.enable==false
hw.ctm!=NULL
output_format==INVALID

Let's avoid that by throwing INTEL_OUTPUT_FORMAT_INVALID to the dumpster, and thus everything defaults to RGB when the crtc is disabled.

This does beg the deeper question of how much of the state should we in fact be validating when hw/uapi.enable==false. And should we even be doing the uapi->hw copy when uapi.enable==false? So far I've not been able to come up with satisfactory answers for myself, so I'm putting it off for the moment.

Cc Lee Shawn C <[email protected]>
Fixes 0aa5c3835c8a ("drm/i915: support two CSC module on gen11 and later")
---
 drivers/gpu/drm/i915/display/intel_crtc.c          | 1 -
 drivers/gpu/drm/i915/display/intel_display.c       | 3 +--
 drivers/gpu/drm/i915/display/intel_display_types.h | 1 -
 3 files changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_crtc.c +0 -1
index 57b0a3ebe908..8e77ca7ddf11 100644
@@ -109,7 +109,6 @@ void intel_crtc_state_reset(struct intel_crtc_state *crtc_state,
 	crtc_state->cpu_transcoder = INVALID_TRANSCODER;
 	crtc_state->master_transcoder = INVALID_TRANSCODER;
 	crtc_state->hsw_workaround_pipe = INVALID_PIPE;
-	crtc_state->output_format = INTEL_OUTPUT_FORMAT_INVALID;
 	crtc_state->scaler_state.scaler_id = -1;
 	crtc_state->mst_master_transcoder = INVALID_TRANSCODER;
 }
drivers/gpu/drm/i915/display/intel_display.c +1 -2
index 92c14f3f0abf..46d0093187f8 100644
@@ -10220,7 +10220,6 @@ static void snprintf_output_types(char *buf, size_t len,
 }
 
 static const char * const output_format_str[] = {
-	[INTEL_OUTPUT_FORMAT_INVALID] = "Invalid",
 	[INTEL_OUTPUT_FORMAT_RGB] = "RGB",
 	[INTEL_OUTPUT_FORMAT_YCBCR420] = "YCBCR4:2:0",
 	[INTEL_OUTPUT_FORMAT_YCBCR444] = "YCBCR4:4:4",
@@ -10229,7 +10228,7 @@ static const char * const output_format_str[] = {
 static const char *output_formats(enum intel_output_format format)
 {
 	if (format >= ARRAY_SIZE(output_format_str))
-		format = INTEL_OUTPUT_FORMAT_INVALID;
+		return "invalid";
 	return output_format_str[format];
 }
 
drivers/gpu/drm/i915/display/intel_display_types.h +0 -1
index 307ff4b771f4..b3ac39fea6f0 100644
@@ -830,7 +830,6 @@ struct intel_crtc_wm_state {
 };
 
 enum intel_output_format {
-	INTEL_OUTPUT_FORMAT_INVALID,
 	INTEL_OUTPUT_FORMAT_RGB,
 	INTEL_OUTPUT_FORMAT_YCBCR420,
 	INTEL_OUTPUT_FORMAT_YCBCR444,
Signature · 6 lines
2.26.2

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

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Nuke INTEL_OUTPUT_FORMAT_INVALID

== Series Details ==

== Series Details ==

Series: drm/i915: Nuke INTEL_OUTPUT_FORMAT_INVALID
URL : https://patchwork.freedesktop.org/series/86782/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_9740 -> Patchwork_19612
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

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

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

### IGT changes ###

#### Issues hit ####

* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [PASS][1] -> [FAIL][2] ([i915#1372])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/fi-kbl-7500u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/fi-kbl-7500u/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- fi-tgl-y: [PASS][3] -> [DMESG-WARN][4] ([i915#402]) +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/fi-tgl-y/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/fi-tgl-y/igt@[email protected]

#### Possible fixes ####

* igt@prime_self_import@basic-with_one_bo_two_files:
- fi-tgl-y: [DMESG-WARN][5] ([i915#402]) -> [PASS][6] +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/fi-tgl-y/igt@prime_self_import@basic-with_one_bo_two_files.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/fi-tgl-y/igt@prime_self_import@basic-with_one_bo_two_files.html

[i915#1372]: https://gitlab.freedesktop.org/drm/intel/issues/1372
[i915#402]: https://gitlab.freedesktop.org/drm/intel/issues/402

Participating hosts (43 -> 37)
------------------------------

Missing (6): fi-jsl-1 fi-ilk-m540 fi-hsw-4200u fi-bsw-cyan fi-ctg-p8600 fi-bdw-samus

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

* Linux: CI_DRM_9740 -> Patchwork_19612

CI-20190529: 20190529
CI_DRM_9740: d0d6b3dabc3c5f35990abedf7361eb27f7123f4d @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5993: b1225ec25d5671a985c5bb48739111d2e8a723cf @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_19612: e56cfddfefbcd620929a70777759227a688e8450 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

e56cfddfefbc drm/i915: Nuke INTEL_OUTPUT_FORMAT_INVALID

== Logs ==

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

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

#2 lore raw

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Nuke INTEL_OUTPUT_FORMAT_INVALID

In reply to Ville Syrjala
== Series Details ==

== Series Details ==

Series: drm/i915: Nuke INTEL_OUTPUT_FORMAT_INVALID
URL : https://patchwork.freedesktop.org/series/86782/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_9740_full -> Patchwork_19612_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

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

### IGT changes ###

#### Issues hit ####

* igt@drm_import_export@prime:
- shard-kbl: NOTRUN -> [INCOMPLETE][1] ([i915#2895] / [i915#2944])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl7/igt@[email protected]

* igt@feature_discovery@psr2:
- shard-iclb: [PASS][2] -> [SKIP][3] ([i915#658])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb2/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb3/igt@[email protected]

* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-tglb: [PASS][4] -> [FAIL][5] ([i915#2842]) +1 similar issue
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-tglb7/igt@gem_exec_fair@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-tglb1/igt@gem_exec_fair@[email protected]

* igt@gem_exec_schedule@u-fairslice@rcs0:
- shard-skl: NOTRUN -> [DMESG-WARN][6] ([i915#1610] / [i915#2803])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl2/igt@gem_exec_schedule@[email protected]

* igt@gem_exec_schedule@u-fairslice@vecs0:
- shard-apl: [PASS][7] -> [DMESG-WARN][8] ([i915#1610])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl7/igt@gem_exec_schedule@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl1/igt@gem_exec_schedule@[email protected]

* igt@gem_huc_copy@huc-copy:
- shard-tglb: [PASS][9] -> [SKIP][10] ([i915#2190])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-tglb3/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-tglb6/igt@[email protected]

* igt@gem_render_copy@y-tiled-to-vebox-y-tiled:
- shard-iclb: NOTRUN -> [SKIP][11] ([i915#768]) +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb6/igt@[email protected]

* igt@gem_userptr_blits@vma-merge:
- shard-apl: NOTRUN -> [INCOMPLETE][12] ([i915#2502] / [i915#2667])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl3/igt@[email protected]

* igt@gen3_render_tiledy_blits:
- shard-iclb: NOTRUN -> [SKIP][13] ([fdo#109289])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb7/igt@gen3_render_tiledy_blits.html

* igt@gen9_exec_parse@allowed-all:
- shard-glk: [PASS][14] -> [DMESG-WARN][15] ([i915#1436] / [i915#716])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-glk1/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-glk7/igt@[email protected]

* igt@gen9_exec_parse@allowed-single:
- shard-skl: [PASS][16] -> [DMESG-WARN][17] ([i915#1436] / [i915#716])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl1/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl10/igt@[email protected]

* igt@gen9_exec_parse@valid-registers:
- shard-iclb: NOTRUN -> [SKIP][18] ([fdo#112306])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb7/igt@[email protected]

* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: NOTRUN -> [WARN][19] ([i915#1804] / [i915#2684])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb6/igt@[email protected]

* igt@i915_pm_rpm@modeset-lpsp-stress:
- shard-apl: NOTRUN -> [SKIP][20] ([fdo#109271]) +61 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl7/igt@[email protected]

* igt@kms_async_flips@test-time-stamp:
- shard-tglb: [PASS][21] -> [FAIL][22] ([i915#2597])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-tglb1/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-tglb2/igt@[email protected]

* igt@kms_big_fb@x-tiled-64bpp-rotate-270:
- shard-iclb: NOTRUN -> [SKIP][23] ([fdo#110725] / [fdo#111614]) +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb7/igt@[email protected]

* igt@kms_big_joiner@invalid-modeset:
- shard-skl: NOTRUN -> [SKIP][24] ([fdo#109271] / [i915#2705])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl2/igt@[email protected]

* igt@kms_chamelium@hdmi-hpd-storm-disable:
- shard-skl: NOTRUN -> [SKIP][25] ([fdo#109271] / [fdo#111827]) +4 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl1/igt@[email protected]

* igt@kms_chamelium@vga-hpd-without-ddc:
- shard-kbl: NOTRUN -> [SKIP][26] ([fdo#109271] / [fdo#111827]) +5 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl3/igt@[email protected]

* igt@kms_color@pipe-c-ctm-0-75:
- shard-iclb: NOTRUN -> [FAIL][27] ([i915#1149] / [i915#315])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb6/igt@[email protected]

* igt@kms_color@pipe-d-ctm-0-5:
- shard-skl: NOTRUN -> [SKIP][28] ([fdo#109271]) +73 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl7/igt@[email protected]

* igt@kms_color@pipe-d-ctm-red-to-blue:
- shard-iclb: NOTRUN -> [SKIP][29] ([fdo#109278] / [i915#1149])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb7/igt@[email protected]

* igt@kms_color_chamelium@pipe-c-ctm-green-to-red:
- shard-iclb: NOTRUN -> [SKIP][30] ([fdo#109284] / [fdo#111827])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb7/igt@[email protected]

* igt@kms_color_chamelium@pipe-d-ctm-0-25:
- shard-apl: NOTRUN -> [SKIP][31] ([fdo#109271] / [fdo#111827]) +6 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl3/igt@[email protected]

* igt@kms_content_protection@legacy:
- shard-kbl: NOTRUN -> [TIMEOUT][32] ([i915#1319]) +1 similar issue
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl3/igt@[email protected]

* igt@kms_content_protection@uevent:
- shard-kbl: NOTRUN -> [FAIL][33] ([i915#2105])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl1/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [PASS][34] -> [DMESG-WARN][35] ([i915#180]) +1 similar issue
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl1/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl6/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-128x128-offscreen:
- shard-skl: NOTRUN -> [FAIL][36] ([i915#54])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl7/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-128x42-random:
- shard-skl: [PASS][37] -> [FAIL][38] ([i915#54]) +6 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl4/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl3/igt@[email protected]

* igt@kms_fbcon_fbt@fbc-suspend:
- shard-apl: [PASS][39] -> [INCOMPLETE][40] ([i915#180])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl7/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl1/igt@[email protected]
- shard-kbl: [PASS][41] -> [INCOMPLETE][42] ([i915#155] / [i915#180] / [i915#636])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl4/igt@[email protected]

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

* igt@kms_flip@flip-vs-expired-vblank@a-edp1:
- shard-skl: [PASS][44] -> [FAIL][45] ([i915#79])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl8/igt@kms_flip@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl4/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend@c-hdmi-a1:
- shard-hsw: [PASS][46] -> [INCOMPLETE][47] ([i915#2055])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-hsw6/igt@kms_flip@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-hsw1/igt@kms_flip@[email protected]

* igt@kms_flip@plain-flip-fb-recreate@b-edp1:
- shard-skl: [PASS][48] -> [FAIL][49] ([i915#2122]) +2 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl4/igt@kms_flip@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl3/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs:
- shard-kbl: NOTRUN -> [SKIP][50] ([fdo#109271] / [i915#2672])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl7/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html
- shard-skl: NOTRUN -> [SKIP][51] ([fdo#109271] / [i915#2672])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl1/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs.html

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-pwrite:
- shard-iclb: NOTRUN -> [SKIP][52] ([fdo#109280]) +3 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb7/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-indfb-draw-pwrite.html

* igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-cpu:
- shard-kbl: NOTRUN -> [SKIP][53] ([fdo#109271]) +64 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl7/igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-cpu.html

* igt@kms_pipe_crc_basic@hang-read-crc-pipe-d:
- shard-skl: NOTRUN -> [SKIP][54] ([fdo#109271] / [i915#533]) +1 similar issue
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl7/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence:
- shard-kbl: NOTRUN -> [SKIP][55] ([fdo#109271] / [i915#533])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl1/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-pipe-d-frame-sequence:
- shard-iclb: NOTRUN -> [SKIP][56] ([fdo#109278]) +5 similar issues
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb7/igt@[email protected]

* igt@kms_plane@plane-position-hole-pipe-c-planes:
- shard-skl: [PASS][57] -> [FAIL][58] ([i915#2472])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl4/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl10/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
- shard-skl: NOTRUN -> [FAIL][59] ([fdo#108145] / [i915#265]) +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl1/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-c-alpha-7efc:
- shard-apl: NOTRUN -> [FAIL][60] ([fdo#108145] / [i915#265])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl3/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-max:
- shard-kbl: NOTRUN -> [FAIL][61] ([fdo#108145] / [i915#265]) +1 similar issue
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl3/igt@[email protected]

* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [PASS][62] -> [FAIL][63] ([fdo#108145] / [i915#265])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl4/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl10/igt@[email protected]

* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-5:
- shard-iclb: NOTRUN -> [SKIP][64] ([i915#658])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb6/igt@[email protected]

* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-5:
- shard-skl: NOTRUN -> [SKIP][65] ([fdo#109271] / [i915#658])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl7/igt@[email protected]

* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [PASS][66] -> [SKIP][67] ([fdo#109441]) +2 similar issues
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb6/igt@kms_psr@psr2_no_drrs.html

* igt@kms_sysfs_edid_timing:
- shard-apl: NOTRUN -> [FAIL][68] ([IGT#2])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl2/igt@kms_sysfs_edid_timing.html

* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [PASS][69] -> [DMESG-WARN][70] ([i915#180] / [i915#295])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl2/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl8/igt@[email protected]

* igt@kms_vblank@pipe-d-wait-idle:
- shard-apl: NOTRUN -> [SKIP][71] ([fdo#109271] / [i915#533]) +1 similar issue
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl1/igt@[email protected]

* igt@kms_writeback@writeback-fb-id:
- shard-apl: NOTRUN -> [SKIP][72] ([fdo#109271] / [i915#2437]) +1 similar issue
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl3/igt@[email protected]

* igt@perf@polling-small-buf:
- shard-skl: NOTRUN -> [FAIL][73] ([i915#1722])
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl9/igt@[email protected]

* igt@prime_nv_pcopy@test3_4:
- shard-iclb: NOTRUN -> [SKIP][74] ([fdo#109291])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb6/igt@prime_nv_pcopy@test3_4.html

* igt@sysfs_clients@busy@vcs0:
- shard-kbl: [PASS][75] -> [FAIL][76] ([i915#3009]) +1 similar issue
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl2/igt@sysfs_clients@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl3/igt@sysfs_clients@[email protected]

#### Possible fixes ####

* igt@gem_ctx_persistence@smoketest:
- shard-tglb: [FAIL][77] ([i915#2896]) -> [PASS][78]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-tglb2/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-tglb6/igt@[email protected]

* igt@gem_exec_balancer@hang:
- shard-iclb: [INCOMPLETE][79] ([i915#1895] / [i915#2295] / [i915#3031]) -> [PASS][80]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb2/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb6/igt@[email protected]

* igt@gem_exec_fair@basic-flow@rcs0:
- shard-tglb: [FAIL][81] ([i915#2842]) -> [PASS][82]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-tglb1/igt@gem_exec_fair@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-tglb7/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][83] ([i915#2842]) -> [PASS][84]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-glk9/igt@gem_exec_fair@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-glk4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_schedule@u-fairslice@rcs0:
- shard-iclb: [DMESG-WARN][85] ([i915#2803]) -> [PASS][86]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb1/igt@gem_exec_schedule@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb7/igt@gem_exec_schedule@[email protected]

* igt@gem_exec_whisper@basic-queues-priority:
- shard-glk: [DMESG-WARN][87] ([i915#118] / [i915#95]) -> [PASS][88]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-glk3/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-glk8/igt@[email protected]

* igt@i915_selftest@live@client:
- shard-glk: [DMESG-FAIL][89] ([i915#3047]) -> [PASS][90]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-glk9/igt@i915_selftest@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-glk4/igt@i915_selftest@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-64x21-random:
- shard-skl: [FAIL][91] ([i915#54]) -> [PASS][92] +6 similar issues
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl4/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl8/igt@[email protected]

* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-legacy:
- shard-hsw: [FAIL][93] ([i915#96]) -> [PASS][94]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-hsw1/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-hsw7/igt@[email protected]

* igt@kms_cursor_legacy@cursor-vs-flip-toggle:
- shard-hsw: [FAIL][95] ([i915#2370]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-hsw1/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-hsw6/igt@[email protected]

* igt@kms_cursor_legacy@flip-vs-cursor-busy-crc-atomic:
- shard-skl: [FAIL][97] ([i915#2346]) -> [PASS][98]
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl6/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl8/igt@[email protected]

* igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1:
- shard-tglb: [FAIL][99] ([i915#2598]) -> [PASS][100]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-tglb1/igt@kms_flip@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-tglb7/igt@kms_flip@[email protected]

* igt@kms_flip@flip-vs-suspend@a-dp1:
- shard-apl: [DMESG-WARN][101] ([i915#180]) -> [PASS][102] +5 similar issues
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl8/igt@kms_flip@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl7/igt@kms_flip@[email protected]

* igt@kms_hdr@bpc-switch:
- shard-skl: [FAIL][103] ([i915#1188]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl1/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl10/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-kbl: [INCOMPLETE][105] ([i915#155] / [i915#794]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl2/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl7/igt@[email protected]
- shard-skl: [INCOMPLETE][107] ([i915#198] / [i915#1982]) -> [PASS][108]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl3/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl1/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
- shard-kbl: [DMESG-WARN][109] ([i915#180]) -> [PASS][110] +1 similar issue
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl7/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl1/igt@[email protected]

* igt@kms_psr@psr2_cursor_plane_move:
- shard-iclb: [SKIP][111] ([fdo#109441]) -> [PASS][112] +2 similar issues
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb8/igt@kms_psr@psr2_cursor_plane_move.html
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb2/igt@kms_psr@psr2_cursor_plane_move.html

* igt@sysfs_clients@busy@vcs0:
- shard-skl: [FAIL][113] ([i915#3019]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl3/igt@sysfs_clients@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-skl4/igt@sysfs_clients@[email protected]

* {igt@sysfs_clients@recycle-many}:
- shard-tglb: [FAIL][115] ([i915#3028]) -> [PASS][116]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-tglb7/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-tglb6/igt@[email protected]

#### Warnings ####

* igt@i915_pm_backlight@fade:
- shard-hsw: [SKIP][117] ([fdo#109271]) -> [SKIP][118] ([fdo#109271] / [i915#3012])
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-hsw6/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-hsw7/igt@[email protected]

* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][119] ([i915#2684]) -> [WARN][120] ([i915#2681] / [i915#2684])
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb2/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb8/igt@[email protected]

* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1:
- shard-iclb: [SKIP][121] ([i915#658]) -> [SKIP][122] ([i915#2920]) +1 similar issue
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb8/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb2/igt@[email protected]

* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-4:
- shard-iclb: [SKIP][123] ([i915#2920]) -> [SKIP][124] ([i915#658]) +1 similar issue
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb2/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb3/igt@[email protected]

* igt@runner@aborted:
- shard-kbl: ([FAIL][125], [FAIL][126], [FAIL][127], [FAIL][128], [FAIL][129]) ([i915#1436] / [i915#1814] / [i915#2295] / [i915#3002] / [i915#602]) -> ([FAIL][130], [FAIL][131], [FAIL][132], [FAIL][133], [FAIL][134], [FAIL][135], [FAIL][136]) ([i915#1436] / [i915#1814] / [i915#2295] / [i915#2505] / [i915#2722] / [i915#3002] / [i915#92])
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl7/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl2/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl7/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl2/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-kbl7/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl7/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl6/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl6/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl1/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl7/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl4/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-kbl2/igt@[email protected]
- shard-iclb: ([FAIL][137], [FAIL][138], [FAIL][139], [FAIL][140]) ([i915#2295] / [i915#2426] / [i915#2724] / [i915#3002]) -> ([FAIL][141], [FAIL][142], [FAIL][143]) ([i915#2295] / [i915#2724] / [i915#3002])
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb6/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb1/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb4/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-iclb3/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb3/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb1/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-iclb4/igt@[email protected]
- shard-apl: ([FAIL][144], [FAIL][145], [FAIL][146], [FAIL][147], [FAIL][148], [FAIL][149], [FAIL][150], [FAIL][151]) ([fdo#109271] / [i915#1814] / [i915#2295] / [i915#3002]) -> ([FAIL][152], [FAIL][153], [FAIL][154], [FAIL][155], [FAIL][156], [FAIL][157], [FAIL][158]) ([i915#1610] / [i915#1814] / [i915#2295] / [i915#2426] / [i915#3002])
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl1/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl6/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl7/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl8/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl2/igt@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl3/igt@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl3/igt@[email protected]
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-apl8/igt@[email protected]
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl1/igt@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl4/igt@[email protected]
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl1/igt@[email protected]
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl3/igt@[email protected]
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl7/igt@[email protected]
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl7/igt@[email protected]
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_19612/shard-apl8/igt@[email protected]
- shard-skl: ([FAIL][159], [FAIL][160], [FAIL][161], [FAIL][162]) ([i915#1814] / [i915#2029] / [i915#2295] / [i915#3002]) -> ([FAIL][163], [FAIL][164], [FAIL][165], [FAIL][166], [FAIL][167], [FAIL][168]) ([i915#1436] / [i915#2029] / [i915#2295] / [i915#2426] / [i915#3002])
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9740/shard-skl2/igt@[email protected]
[160

== Logs ==

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

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

Reviewed-by on v1 1/1
#3 lore raw
In reply to Ville Syrjala
Quoted 35 lines · Ville Syrjala

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

We tend to use output_format!=RGB as a shorthand for YCbCr, but this fails if we have a disabled crtc where output_format==INVALID. We're now getting some fail from intel_color_check() when we have:
 hw.enable==false
 hw.ctm!=NULL
 output_format==INVALID

Let's avoid that by throwing INTEL_OUTPUT_FORMAT_INVALID to the dumpster, and thus everything defaults to RGB when the crtc is disabled.

This does beg the deeper question of how much of the state should we in fact be validating when hw/uapi.enable==false. And should we even be doing the uapi->hw copy when uapi.enable==false? So far I've not been able to come up with satisfactory answers for myself, so I'm putting it off for the moment.

Cc Lee Shawn C <[email protected]>
Fixes 0aa5c3835c8a ("drm/i915: support two CSC module on gen11 and later")

---

 drivers/gpu/drm/i915/display/intel_crtc.c          | 1 -
 drivers/gpu/drm/i915/display/intel_display.c       | 3 +--
 drivers/gpu/drm/i915/display/intel_display_types.h | 1 -
 3 files changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_crtc.c +0 -0
index 57b0a3ebe908..8e77ca7ddf11 100644

drivers/gpu/drm/i915/display/intel_crtc.c void intel_crtc_state_reset(struct intel_crtc_state *crtc_state, · line 112

Quoted 4 lines
drivers/gpu/drm/i915/display/intel_crtc.c +0 -1
@@ -109,7 +109,6 @@ void intel_crtc_state_reset(struct intel_crtc_state *crtc_state,
  	crtc_state->cpu_transcoder = INVALID_TRANSCODER;
  	crtc_state->master_transcoder = INVALID_TRANSCODER;
  	crtc_state->hsw_workaround_pipe = INVALID_PIPE;
-	crtc_state->output_format = INTEL_OUTPUT_FORMAT_INVALID;

Missing set output_format to INTEL_OUTPUT_FORMAT_RGB, kmalloc() don't set memory allocated to zero and INTEL_OUTPUT_FORMAT_INVALID was the index 0 and we were setting it during intel_crtc_state_reset() so we should now set it to INTEL_OUTPUT_FORMAT_RGB.
https://www.kernel.org/doc/htmldocs/kernel-api/mm.html

With that fixed:

Quoted 42 lines
drivers/gpu/drm/i915/display/intel_crtc.c +0 -0
  	crtc_state->scaler_state.scaler_id = -1;
  	crtc_state->mst_master_transcoder = INVALID_TRANSCODER;
  }
drivers/gpu/drm/i915/display/intel_display.c +0 -0
index 92c14f3f0abf..46d0093187f8 100644
@@ -10220,7 +10220,6 @@ static void snprintf_output_types(char *buf, size_t len,
  }

 static const char * const output_format_str[] = {

drivers/gpu/drm/i915/display/intel_display.c +0 -1
-	[INTEL_OUTPUT_FORMAT_INVALID] = "Invalid",

  [INTEL_OUTPUT_FORMAT_RGB] = "RGB", [INTEL_OUTPUT_FORMAT_YCBCR420] = "YCBCR4:2:0", [INTEL_OUTPUT_FORMAT_YCBCR444] = "YCBCR4:4:4",

drivers/gpu/drm/i915/display/intel_display.c +1 -1
@@ -10229,7 +10228,7 @@ static const char * const output_format_str[] = {
  static const char *output_formats(enum intel_output_format format)
  {
  	if (format >= ARRAY_SIZE(output_format_str))
-		format = INTEL_OUTPUT_FORMAT_INVALID;
+		return "invalid";
  	return output_format_str[format];
  }

drivers/gpu/drm/i915/display/intel_display_types.h +0 -0
index 307ff4b771f4..b3ac39fea6f0 100644
@@ -830,7 +830,6 @@ struct intel_crtc_wm_state {
  };

 enum intel_output_format {

drivers/gpu/drm/i915/display/intel_display_types.h +0 -1
-	INTEL_OUTPUT_FORMAT_INVALID,
Quoted 3 lines

  INTEL_OUTPUT_FORMAT_RGB,
  INTEL_OUTPUT_FORMAT_YCBCR420,
  INTEL_OUTPUT_FORMAT_YCBCR444,

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

#4 lore raw
Quoted 31 lines · Jose
Quoted 30 lines · Ville Syrjala

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

We tend to use output_format!=RGB as a shorthand for YCbCr, but this fails if we have a disabled crtc where output_format==INVALID. We're now getting some fail from intel_color_check() when we have:
 hw.enable==false
 hw.ctm!=NULL
 output_format==INVALID

Let's avoid that by throwing INTEL_OUTPUT_FORMAT_INVALID to the dumpster, and thus everything defaults to RGB when the crtc is disabled.

This does beg the deeper question of how much of the state should we in fact be validating when hw/uapi.enable==false. And should we even be doing the uapi->hw copy when uapi.enable==false? So far I've not been able to come up with satisfactory answers for myself, so I'm putting it off for the moment.

Cc Lee Shawn C <[email protected]>
Fixes 0aa5c3835c8a ("drm/i915: support two CSC module on gen11 and later")

---

 drivers/gpu/drm/i915/display/intel_crtc.c          | 1 -
 drivers/gpu/drm/i915/display/intel_display.c       | 3 +--
 drivers/gpu/drm/i915/display/intel_display_types.h | 1 -
 3 files changed, 1 insertion(+), 4 deletions(-)
Quoted 5 lines

drivers/gpu/drm/i915/display/intel_crtc.c void intel_crtc_state_reset(struct intel_crtc_state *crtc_state,

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_crtc.c +0 -0
index 57b0a3ebe908..8e77ca7ddf11 100644
@@ -109,7 +109,6 @@ void intel_crtc_state_reset(struct intel_crtc_state *crtc_state,

void intel_crtc_state_reset(struct intel_crtc_state *crtc_state,
struct intel_crtc *crtc)

{
        memset(crtc_state, 0, sizeof(*crtc_state));

...

Quoted 8 lines

drivers/gpu/drm/i915/display/intel_crtc.c void intel_crtc_state_reset(struct intel_crtc_state *crtc_state, · line 112

Quoted 4 lines

  crtc_state->cpu_transcoder = INVALID_TRANSCODER; crtc_state->master_transcoder = INVALID_TRANSCODER; crtc_state->hsw_workaround_pipe = INVALID_PIPE;

drivers/gpu/drm/i915/display/intel_crtc.c +0 -1
-	crtc_state->output_format = INTEL_OUTPUT_FORMAT_INVALID;

Missing set output_format to INTEL_OUTPUT_FORMAT_RGB, kmalloc() don't set memory allocated to zero and INTEL_OUTPUT_FORMAT_INVALID was the index 0 and we were setting it during intel_crtc_state_reset() so we should now set it to INTEL_OUTPUT_FORMAT_RGB.
https://www.kernel.org/doc/htmldocs/kernel-api/mm.html

ie. we zero out the whole thing. The reason why the explicit assignment was here I suppose is that I had assumed INTEL_OUTPUT_FORMAT_INVALID==-1, which is the case for INVALID_TRANSCODER/PIPE/etc.

Quoted 51 lines

With that fixed:

Quoted 45 lines

  crtc_state->scaler_state.scaler_id = -1; crtc_state->mst_master_transcoder = INVALID_TRANSCODER; }

drivers/gpu/drm/i915/display/intel_display.c +0 -0
index 92c14f3f0abf..46d0093187f8 100644
@@ -10220,7 +10220,6 @@ static void snprintf_output_types(char *buf, size_t len,
  }

 static const char * const output_format_str[] = {

drivers/gpu/drm/i915/display/intel_display.c +0 -1
-	[INTEL_OUTPUT_FORMAT_INVALID] = "Invalid",

  [INTEL_OUTPUT_FORMAT_RGB] = "RGB", [INTEL_OUTPUT_FORMAT_YCBCR420] = "YCBCR4:2:0", [INTEL_OUTPUT_FORMAT_YCBCR444] = "YCBCR4:4:4",

drivers/gpu/drm/i915/display/intel_display.c +1 -1
@@ -10229,7 +10228,7 @@ static const char * const output_format_str[] = {
  static const char *output_formats(enum intel_output_format format)
  {
  	if (format >= ARRAY_SIZE(output_format_str))
-		format = INTEL_OUTPUT_FORMAT_INVALID;
+		return "invalid";
  	return output_format_str[format];
  }

drivers/gpu/drm/i915/display/intel_display_types.h +0 -0
index 307ff4b771f4..b3ac39fea6f0 100644
@@ -830,7 +830,6 @@ struct intel_crtc_wm_state {
  };

 enum intel_output_format {

drivers/gpu/drm/i915/display/intel_display_types.h +0 -1
-	INTEL_OUTPUT_FORMAT_INVALID,

  INTEL_OUTPUT_FORMAT_RGB,
  INTEL_OUTPUT_FORMAT_YCBCR420,
  INTEL_OUTPUT_FORMAT_YCBCR444,

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

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

We tend to use output_format!=RGB as a shorthand for YCbCr, but this fails if we have a disabled crtc where output_format==INVALID. We're now getting some fail from intel_color_check() when we have:
 hw.enable==false
 hw.ctm!=NULL
 output_format==INVALID

Let's avoid that by throwing INTEL_OUTPUT_FORMAT_INVALID to the dumpster, and thus everything defaults to RGB when the crtc is disabled.

This does beg the deeper question of how much of the state should we in fact be validating when hw/uapi.enable==false. And should we even be doing the uapi->hw copy when uapi.enable==false? So far I've not been able to come up with satisfactory answers for myself, so I'm putting it off for the moment.

Cc Lee Shawn C <[email protected]>
Fixes 0aa5c3835c8a ("drm/i915: support two CSC module on gen11 and later")

---

 drivers/gpu/drm/i915/display/intel_crtc.c          | 1 -
 drivers/gpu/drm/i915/display/intel_display.c       | 3 +--
 drivers/gpu/drm/i915/display/intel_display_types.h | 1 -
 3 files changed, 1 insertion(+), 4 deletions(-)
Quoted 5 lines

drivers/gpu/drm/i915/display/intel_crtc.c void intel_crtc_state_reset(struct intel_crtc_state *crtc_state,

Quoted 5 lines
drivers/gpu/drm/i915/display/intel_crtc.c +0 -0
index 57b0a3ebe908..8e77ca7ddf11 100644
@@ -109,7 +109,6 @@ void intel_crtc_state_reset(struct intel_crtc_state *crtc_state,

void intel_crtc_state_reset(struct intel_crtc_state *crtc_state, struct intel_crtc *crtc)
{
        memset(crtc_state, 0, sizeof(*crtc_state));
...

Quoted 8 lines

drivers/gpu/drm/i915/display/intel_crtc.c void intel_crtc_state_reset(struct intel_crtc_state *crtc_state, · line 112

Quoted 4 lines
drivers/gpu/drm/i915/display/intel_crtc.c +0 -1
  	crtc_state->cpu_transcoder = INVALID_TRANSCODER;
  	crtc_state->master_transcoder = INVALID_TRANSCODER;
  	crtc_state->hsw_workaround_pipe = INVALID_PIPE;
-	crtc_state->output_format = INTEL_OUTPUT_FORMAT_INVALID;

Missing set output_format to INTEL_OUTPUT_FORMAT_RGB, kmalloc() don't set memory allocated to zero and INTEL_OUTPUT_FORMAT_INVALID was the index 0 and we were setting it during intel_crtc_state_reset() so we should now set it to INTEL_OUTPUT_FORMAT_RGB.
https://www.kernel.org/doc/htmldocs/kernel-api/mm.html

Quoted 3 lines

ie. we zero out the whole thing. The reason why the explicit assignment was here I suppose is that I had assumed INTEL_OUTPUT_FORMAT_INVALID==-1, which is the case for INVALID_TRANSCODER/PIPE/etc.

Ah okay, missed the memset().

Quoted 46 lines
Quoted 46 lines

With that fixed:

Quoted 40 lines
drivers/gpu/drm/i915/display/intel_crtc.c +0 -0
  	crtc_state->scaler_state.scaler_id = -1;
  	crtc_state->mst_master_transcoder = INVALID_TRANSCODER;
  }
drivers/gpu/drm/i915/display/intel_display.c +0 -0
index 92c14f3f0abf..46d0093187f8 100644
@@ -10220,7 +10220,6 @@ static void snprintf_output_types(char *buf, size_t len,
  }

 static const char * const output_format_str[] = {

drivers/gpu/drm/i915/display/intel_display.c +0 -1
-	[INTEL_OUTPUT_FORMAT_INVALID] = "Invalid",

  [INTEL_OUTPUT_FORMAT_RGB] = "RGB", [INTEL_OUTPUT_FORMAT_YCBCR420] = "YCBCR4:2:0", [INTEL_OUTPUT_FORMAT_YCBCR444] = "YCBCR4:4:4",

drivers/gpu/drm/i915/display/intel_display.c +1 -1
@@ -10229,7 +10228,7 @@ static const char * const output_format_str[] = {
  static const char *output_formats(enum intel_output_format format)
  {
  	if (format >= ARRAY_SIZE(output_format_str))
-		format = INTEL_OUTPUT_FORMAT_INVALID;
+		return "invalid";
  	return output_format_str[format];
  }

drivers/gpu/drm/i915/display/intel_display_types.h +0 -0
index 307ff4b771f4..b3ac39fea6f0 100644
@@ -830,7 +830,6 @@ struct intel_crtc_wm_state {
  };

Quoted 7 lines
Quoted 6 lines
Quoted 5 lines

 enum intel_output_format {

drivers/gpu/drm/i915/display/intel_display_types.h +0 -1
-	INTEL_OUTPUT_FORMAT_INVALID,

  INTEL_OUTPUT_FORMAT_RGB,
  INTEL_OUTPUT_FORMAT_YCBCR420,
  INTEL_OUTPUT_FORMAT_YCBCR444,

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