drm/i915/tgl: Add Wa_1606054188:tgl
Subsystems (3)
PATCH v2 1/1 drm/i915/tgl: Add Wa_1606054188:tgl
On Tiger Lake we do not support source keying in the pixel formats P010, P012, P016.
v2: Move WA to end of function. Create helper function for format check. Less verbose debugging messaging.
Bspec: 52890
--- drivers/gpu/drm/i915/display/intel_sprite.c | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+)
drivers/gpu/drm/i915/display/intel_sprite.c +22 -0
@@ -2070,6 +2070,18 @@ vlv_sprite_check(struct intel_crtc_state *crtc_state,return 0 ; } +static bool intel_format_is_p01x (int format) +{ +switch (format){ +case DRM_FORMAT_P010 : +case DRM_FORMAT_P012 : +case DRM_FORMAT_P016 : +return true; +default : +return false; + } +} +static int skl_plane_check_fb (const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state) {
@@ -2143,6 +2155,16 @@ static int skl_plane_check_fb(const struct intel_crtc_state *crtc_state,return -EINVAL ; } +/* Wa_1606054188:tgl +* +* TODO: Add format RGB64i when implemented. +* +*/ +if (IS_GEN (dev_priv,12 ) && + plane_state->ckey.flags &I915_SET_COLORKEY_SOURCE && +intel_format_is_p01x (fb->format->format)) +DRM_DEBUG_KMS ("Source color keying not supported with P01x formats\n" ); +return 0 ; }
Signature · 6 lines
2.21.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Matt Atwood
On Tiger Lake we do not support source keying in the pixel formats P010, P012, P016.
v2: Move WA to end of function. Create helper function for format check. Less verbose debugging messaging.
Bspec: 52890
Cc: Matt Roper <[email protected]>
Cc: Manasi Navare <[email protected]>
CC: Ville Syrjälä <[email protected]>
Wrong address
Quoted 10 lines
Signed-off-by Matt Atwood <[email protected]>--- drivers/gpu/drm/i915/display/intel_sprite.c | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+)drivers/gpu/drm/i915/display/intel_sprite.c +0
-0
drivers/gpu/drm/i915/display/intel_sprite.c vlv_sprite_check(struct intel_crtc_state *crtc_state, · line 2073
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_sprite.c +1
-0@@ -2070,6 +2070,18 @@ vlv_sprite_check(struct intel_crtc_state *crtc_state,return 0 ; } +static bool intel_format_is_p01x (int format)
^^^
u32
drivers/gpu/drm/i915/display/intel_sprite.c vlv_sprite_check(struct intel_crtc_state *crtc_state, · line 2075
Quoted 2 lines
drivers/gpu/drm/i915/display/intel_sprite.c +2
-0+{ +switch (format){
Missing spaces
drivers/gpu/drm/i915/display/intel_sprite.c vlv_sprite_check(struct intel_crtc_state *crtc_state, · line 2081
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_sprite.c +6
-0+case DRM_FORMAT_P010 : +case DRM_FORMAT_P012 : +case DRM_FORMAT_P016 : +return true; +default : +return false;
Wrong indentantion
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_sprite.c +3
-0+ } +} +static int skl_plane_check_fb (const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state) {
drivers/gpu/drm/i915/display/intel_sprite.c static int skl_plane_check_fb(const struct intel_crtc_state *crtc_state, · line 2162
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_sprite.c +5
-0@@ -2143,6 +2155,16 @@ static int skl_plane_check_fb(const struct intel_crtc_state *crtc_state,return -EINVAL ; } +/* Wa_1606054188:tgl +* +* TODO: Add format RGB64i when implemented. +* +*/
Wrong comment format
drivers/gpu/drm/i915/display/intel_sprite.c static int skl_plane_check_fb(const struct intel_crtc_state *crtc_state, · line 2163
Quoted 1 line
drivers/gpu/drm/i915/display/intel_sprite.c +1
-0+ if(IS_GEN(dev_priv, 12) &&
Missing space
drivers/gpu/drm/i915/display/intel_sprite.c static int skl_plane_check_fb(const struct intel_crtc_state *crtc_state, · line 2166
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_sprite.c +3
-0+ plane_state->ckey.flags & I915_SET_COLORKEY_SOURCE && + intel_format_is_p01x(fb->format->format)) +DRM_DEBUG_KMS ("Source color keying not supported with P01x formats\n" );
Missing error return.
Was also going to suggest you should use drm_dbg_kms() now, but looks like this file hasn't been converted yet. Well, I guess there'd be no harm in using drm_dbg_kms() anyway if you want.
As for the w/a itself, not sure it's any more broken than any other planar format (don't have the hw to test it right now). But I just tried my wip colorkey test on glk with nv12/p010 and while it more or less seems to work the chroma upsampling is definitely making it impossible to test with crcs. I guess we'll get to testing out eventually to see if it is actually more broken than that. Certainly wouldn't be the first time the hw has issues with the >8bpc to 8bpc conversion for the key match. Just a bit surprising that it would be limited to just the specific combo of tgl and P01x formats.
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_sprite.c +1
-0+return 0 ; }Signature · 6 lines
2.21.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
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/tgl: Add Wa_1606054188:tgl
In reply to Matt Atwood== Series Details ==
== Series Details ==
Series: drm/i915/tgl: Add Wa_1606054188:tgl
URL : https://patchwork.freedesktop.org/series/72839/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
53bdc3c76702 drm/i915/tgl: Add Wa_1606054188:tgl
-:31: ERROR:SWITCH_CASE_INDENT_LEVEL: switch and case should be at the same indent
#31: FILE: drivers/gpu/drm/i915/display/intel_sprite.c:2075:
+ switch(format){
+ case DRM_FORMAT_P010:
+ case DRM_FORMAT_P012:
+ case DRM_FORMAT_P016:
[...]
+ default:-:31: ERROR:SPACING: space required before the open brace '{' #31: FILE: drivers/gpu/drm/i915/display/intel_sprite.c:2075:
+ switch(format){
-:31: ERROR:SPACING: space required before the open parenthesis '(' #31: FILE: drivers/gpu/drm/i915/display/intel_sprite.c:2075:
+ switch(format){
-:53: ERROR:SPACING: space required before the open parenthesis '(' #53: FILE: drivers/gpu/drm/i915/display/intel_sprite.c:2163:
+ if(IS_GEN(dev_priv, 12) &&
total: 4 errors, 0 warnings, 0 checks, 34 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/tgl: Add Wa_1606054188:tgl
In reply to Matt Atwood== Series Details ==
== Series Details ==
Series: drm/i915/tgl: Add Wa_1606054188:tgl
URL : https://patchwork.freedesktop.org/series/72839/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_7853 -> Patchwork_16364
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/index.html
Known issues
------------
Here are the changes found in Patchwork_16364 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live_gem_contexts:
- fi-hsw-peppy: [PASS][1] -> [DMESG-FAIL][2] ([i915#722])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7853/fi-hsw-peppy/igt@i915_selftest@live_gem_contexts.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/fi-hsw-peppy/igt@i915_selftest@live_gem_contexts.html
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [PASS][3] -> [DMESG-WARN][4] ([i915#44])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7853/fi-hsw-peppy/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/fi-hsw-peppy/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- fi-icl-u2: [FAIL][5] ([fdo#103375]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7853/fi-icl-u2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/fi-icl-u2/igt@[email protected]
* igt@gem_exec_suspend@basic-s4-devices:
- fi-icl-u2: [FAIL][7] ([fdo#111550]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7853/fi-icl-u2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/fi-icl-u2/igt@[email protected]
* igt@i915_selftest@live_execlists:
- fi-icl-y: [DMESG-FAIL][9] ([fdo#108569]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7853/fi-icl-y/igt@i915_selftest@live_execlists.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/fi-icl-y/igt@i915_selftest@live_execlists.html
#### Warnings ####
* igt@i915_pm_rpm@basic-rte:
- fi-kbl-guc: [FAIL][11] ([i915#579]) -> [SKIP][12] ([fdo#109271])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7853/fi-kbl-guc/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/fi-kbl-guc/igt@[email protected]
* igt@i915_selftest@live_blt:
- fi-hsw-4770: [DMESG-FAIL][13] ([i915#563]) -> [DMESG-FAIL][14] ([i915#553] / [i915#725])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7853/fi-hsw-4770/igt@i915_selftest@live_blt.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/fi-hsw-4770/igt@i915_selftest@live_blt.html
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-icl-u2: [FAIL][15] ([fdo#103375]) -> [DMESG-WARN][16] ([IGT#4] / [i915#263])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7853/fi-icl-u2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/fi-icl-u2/igt@[email protected]
[IGT#4]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/4
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#111550]: https://bugs.freedesktop.org/show_bug.cgi?id=111550
[i915#263]: https://gitlab.freedesktop.org/drm/intel/issues/263
[i915#44]: https://gitlab.freedesktop.org/drm/intel/issues/44
[i915#553]: https://gitlab.freedesktop.org/drm/intel/issues/553
[i915#563]: https://gitlab.freedesktop.org/drm/intel/issues/563
[i915#579]: https://gitlab.freedesktop.org/drm/intel/issues/579
[i915#722]: https://gitlab.freedesktop.org/drm/intel/issues/722
[i915#725]: https://gitlab.freedesktop.org/drm/intel/issues/725
Participating hosts (47 -> 38)
------------------------------
Additional (4): fi-gdg-551 fi-cfl-8109u fi-skl-6700k2 fi-snb-2600
Missing (13): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-bwr-2160 fi-snb-2520m fi-kbl-7500u fi-whl-u fi-ivb-3770 fi-byt-n2820 fi-byt-clapper fi-bdw-samus fi-kbl-r
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7853 -> Patchwork_16364
CI-20190529: 20190529
CI_DRM_7853: 1df04205c16923e525efe9c26d6e98612d38c9b3 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5409: 93aefe6baa3fabf8c0cabe83e185f7b8f8d8753d @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_16364: 53bdc3c76702c5244ff81472ccf855a836b956b9 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
53bdc3c76702 drm/i915/tgl: Add Wa_1606054188:tgl
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16364/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx