drm/i915: CTS fixes
Subsystems (2)
v2 cover drm/i915: CTS fixes
Rebased on drm-tip.
Cheers,
Lionel Landwerlin (2):
drm/i915: whitelist PS_(DEPTH|INVOCATION)_COUNT drm/i915/icl: whitelist PS_(DEPTH|INVOCATION)_COUNT
drivers/gpu/drm/i915/gt/intel_workarounds.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
--
2.21.0.392.gf8f6787159e
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 1/2 drm/i915: whitelist PS_(DEPTH|INVOCATION)_COUNT
CFL:C0+ changed the status of those registers which are now blacklisted by default.
This is breaking a number of CTS tests on GL & Vulkan :
KHR-GL45.pipeline_statistics_query_tests_ARB.functional_fragment_shader_invocations (GL)
dEQP-VK.query_pool.statistics_query.fragment_shader_invocations.* (Vulkan)
--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/intel_workarounds.c +9 -1
@@ -1092,10 +1092,18 @@ static void glk_whitelist_build(struct intel_engine_cs *engine)static void cfl_whitelist_build (struct intel_engine_cs *engine) { +struct i915_wa_list *w = &engine->whitelist; +if (engine->class !=RENDER_CLASS )return ; -gen9_whitelist_build (&engine->whitelist); +gen9_whitelist_build (w); + +/* WaAllowPMDepthAndInvocationCountAccessFromUMD:cfl,whl,cml,aml */ +whitelist_reg (w,PS_DEPTH_COUNT ); +whitelist_reg (w,PS_DEPTH_COUNT_UDW ); +whitelist_reg (w,PS_INVOCATION_COUNT ); +whitelist_reg (w,PS_INVOCATION_COUNT_UDW ); }static void cnl_whitelist_build (struct intel_engine_cs *engine)
Signature · 6 lines
2.21.0.392.gf8f6787159e _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v2 2/2 drm/i915/icl: whitelist PS_(DEPTH|INVOCATION)_COUNT
In reply to Lionel LandwerlinThe same tests failing on CFL+ platforms are also failing on ICL. Documentation doesn't list the WaAllowPMDepthAndInvocationCountAccessFromUMD workaround for ICL but applying it fixes the same tests as CFL.
--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/i915/gt/intel_workarounds.c +6 -0
@@ -1131,6 +1131,12 @@ static void icl_whitelist_build(struct intel_engine_cs *engine)/* WaEnableStateCacheRedirectToCS:icl */ whitelist_reg (w,GEN9_SLICE_COMMON_ECO_CHICKEN1 ); + +/* WaAllowPMDepthAndInvocationCountAccessFromUMD:icl */ +whitelist_reg (w,PS_DEPTH_COUNT ); +whitelist_reg (w,PS_DEPTH_COUNT_UDW ); +whitelist_reg (w,PS_INVOCATION_COUNT ); +whitelist_reg (w,PS_INVOCATION_COUNT_UDW );break ;case VIDEO_DECODE_CLASS :
Signature · 6 lines
2.21.0.392.gf8f6787159e _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH v2 2/2] drm/i915/icl: whitelist PS_(DEPTH|INVOCATION)_COUNT
Quoted 31 lines · Lionel Landwerlin
The same tests failing on CFL+ platforms are also failing on ICL. Documentation doesn't list the WaAllowPMDepthAndInvocationCountAccessFromUMD workaround for ICL but applying it fixes the same tests as CFL.
Signed-off-by Lionel Landwerlin <[email protected]>--- drivers/gpu/drm/i915/gt/intel_workarounds.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/gpu/drm/i915/gt/intel_workarounds.c +6
-1@@ -1131,6 +1131,12 @@ static void icl_whitelist_build(struct intel_engine_cs *engine)/* WaEnableStateCacheRedirectToCS:icl */ whitelist_reg (w,GEN9_SLICE_COMMON_ECO_CHICKEN1 ); + +/* WaAllowPMDepthAndInvocationCountAccessFromUMD:icl */ +whitelist_reg (w,PS_DEPTH_COUNT ); +whitelist_reg (w,PS_DEPTH_COUNT_UDW ); +whitelist_reg (w,PS_INVOCATION_COUNT ); +whitelist_reg (w,PS_INVOCATION_COUNT_UDW );break ;case VIDEO_DECODE_CLASS : --2.21.0.392.gf8f6787159e
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915: CTS fixes (rev2)
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915: CTS fixes (rev2)
URL : https://patchwork.freedesktop.org/series/62437/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 30b1f21843ec drm/i915: whitelist PS_(DEPTH|INVOCATION)_COUNT -:11: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #11: KHR-GL45.pipeline_statistics_query_tests_ARB.functional_fragment_shader_invocations (GL)
total: 0 errors, 1 warnings, 0 checks, 19 lines checked 2fb119ef10d5 drm/i915/icl: whitelist PS_(DEPTH|INVOCATION)_COUNT
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915: CTS fixes (rev2)
In reply to Lionel Landwerlin== Series Details ==
== Series Details ==
Series: drm/i915: CTS fixes (rev2)
URL : https://patchwork.freedesktop.org/series/62437/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_6312 -> Patchwork_13362
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_13362 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_13362, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_13362:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live_workarounds:
- fi-cfl-guc: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-cfl-guc/igt@i915_selftest@live_workarounds.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-cfl-guc/igt@i915_selftest@live_workarounds.html
- fi-cml-u: NOTRUN -> [DMESG-FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-cml-u/igt@i915_selftest@live_workarounds.html
- fi-cfl-8109u: [PASS][4] -> [DMESG-FAIL][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-cfl-8109u/igt@i915_selftest@live_workarounds.html
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-cfl-8109u/igt@i915_selftest@live_workarounds.html
- fi-whl-u: [PASS][6] -> [DMESG-FAIL][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-whl-u/igt@i915_selftest@live_workarounds.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-whl-u/igt@i915_selftest@live_workarounds.html
- fi-icl-dsi: NOTRUN -> [DMESG-FAIL][8]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-icl-dsi/igt@i915_selftest@live_workarounds.html
- fi-icl-u3: [PASS][9] -> [DMESG-FAIL][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-icl-u3/igt@i915_selftest@live_workarounds.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-icl-u3/igt@i915_selftest@live_workarounds.html
- fi-cfl-8700k: [PASS][11] -> [DMESG-FAIL][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-cfl-8700k/igt@i915_selftest@live_workarounds.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-cfl-8700k/igt@i915_selftest@live_workarounds.html
- fi-icl-u2: [PASS][13] -> [DMESG-FAIL][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-icl-u2/igt@i915_selftest@live_workarounds.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-icl-u2/igt@i915_selftest@live_workarounds.html
- fi-cml-u2: NOTRUN -> [DMESG-FAIL][15]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-cml-u2/igt@i915_selftest@live_workarounds.html
Known issues
------------
Here are the changes found in Patchwork_13362 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_mmap_gtt@basic-write-gtt:
- fi-icl-u3: [PASS][16] -> [DMESG-WARN][17] ([fdo#107724])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-icl-u3/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: [INCOMPLETE][18] ([fdo#107718]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-blb-e6850/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-blb-e6850/igt@[email protected]
* igt@i915_selftest@live_contexts:
- fi-bdw-gvtdvm: [DMESG-FAIL][20] ([fdo#110235]) -> [PASS][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-bdw-gvtdvm/igt@i915_selftest@live_contexts.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-bdw-gvtdvm/igt@i915_selftest@live_contexts.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][22] ([fdo#109485]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-kbl-7500u/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-kbl-7500u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-icl-u3: [FAIL][24] ([fdo#103167]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6312/fi-icl-u3/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/fi-icl-u3/igt@[email protected]
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#110235]: https://bugs.freedesktop.org/show_bug.cgi?id=110235
Participating hosts (49 -> 45)
------------------------------
Additional (5): fi-cml-u2 fi-bxt-j4205 fi-gdg-551 fi-icl-dsi fi-cml-u
Missing (9): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-skl-guc fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_6312 -> Patchwork_13362
CI_DRM_6312: 034e3ac6a2d180d188da927388b60c7e62c5655b @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5061: c88ced79a7b71aec58f1d9c5c599ac2f431bcf7a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13362: 2fb119ef10d5c1165b9a4a99a65a4f3d3476c434 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
2fb119ef10d5 drm/i915/icl: whitelist PS_(DEPTH|INVOCATION)_COUNT 30b1f21843ec drm/i915: whitelist PS_(DEPTH|INVOCATION)_COUNT
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13362/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✗ Fi.CI.BAT: failure for drm/i915: CTS fixes (rev2)
Quoting Patchwork (2019-06-20 14:35:27)
Quoted 8 lines
== Series Details ==
Series: drm/i915: CTS fixes (rev2)
URL : https://patchwork.freedesktop.org/series/62437/
State : failure== Summary ==
Quoted 7 lines
CI Bug Log - changes from
CI_DRM_6312->Patchwork_13362
====================================================Summary
-------**FAILURE**
They all complain about:
<3> [403.297791] rcs0: Unable to write to whitelisted register 2348 [PS_INVOCATION_COUNT]
Is the complaint valid?
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✗ Fi.CI.BAT: failure for drm/i915: CTS fixes (rev2)
Quoted 15 lines · Chris Wilson
Quoting Patchwork (2019-06-20 14:35:27)
Quoted 14 lines
== Series Details ==
Series: drm/i915: CTS fixes (rev2)
URL : https://patchwork.freedesktop.org/series/62437/
State : failure== Summary ==
CI Bug Log - changes from
CI_DRM_6312->Patchwork_13362
====================================================Summary
-------
Quoted 9 lines
Quoted 1 line
**FAILURE**They all complain about:
<3> [403.297791] rcs0: Unable to write to whitelisted register 2348 [
PS_INVOCATION_COUNT]Is the complaint valid?
-Chris
Documentation says the register should be R/W...
I don't think we ever write it in Mesa so I can't really tell.
-Lionel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✗ Fi.CI.BAT: failure for drm/i915: CTS fixes (rev2)
Quoting Lionel Landwerlin (2019-06-20 14:46:45)
Quoted 19 lines · Chris Wilson
Quoted 18 lines
Quoting Patchwork (2019-06-20 14:35:27)
Quoted 8 lines
== Series Details ==
Series: drm/i915: CTS fixes (rev2)
URL : https://patchwork.freedesktop.org/series/62437/
State : failure== Summary ==
Quoted 7 lines
CI Bug Log - changes from
CI_DRM_6312->Patchwork_13362
====================================================Summary
-------**FAILURE**They all complain about:
Quoted 7 lines
Quoted 6 lines
<3> [403.297791] rcs0: Unable to write to whitelisted register 2348 [
PS_INVOCATION_COUNT]Is the complaint valid?
-ChrisDocumentation says the register should be R/W...
Updated the test to do a pass with privileged writes, nada.
https://intel-gfx-ci.01.org/tree/drm-tip/Trybot_4468/fi-cfl-guc/igt@i915_selftest@live_workarounds.html
<3> [249.959633] rcs0: Unable to write to whitelisted register 2348 as root <6> [249.959656] rcs0: Whitelisted register: 2348, original value 00000000, rsvd 00000000 <6> [249.959657] Wrote 00000000, read 00000000, expect 00000000
<6> [249.959658] Wrote 01010101, read 00000000, expect 00000000
<6> [249.959659] Wrote 10100101, read 00000000, expect 00000000
<6> [249.959660] Wrote 03030303, read 00000000, expect 00000000
<6> [249.959661] Wrote 30300303, read 00000000, expect 00000000
<6> [249.959662] Wrote 05050505, read 00000000, expect 00000000
<6> [249.959663] Wrote 50500505, read 00000000, expect 00000000
<6> [249.959664] Wrote 0f0f0f0f, read 00000000, expect 00000000
<6> [249.959665] Wrote f00ff00f, read 00000000, expect 00000000
<6> [249.959666] Wrote 10101010, read 00000000, expect 00000000
<6> [249.959667] Wrote f0f01010, read 00000000, expect 00000000
<6> [249.959668] Wrote 30303030, read 00000000, expect 00000000
<6> [249.959669] Wrote a0a03030, read 00000000, expect 00000000
<6> [249.959670] Wrote 50505050, read 00000000, expect 00000000
<6> [249.959671] Wrote c0c05050, read 00000000, expect 00000000
<6> [249.959672] Wrote f0f0f0f0, read 00000000, expect 00000000
<6> [249.959673] Wrote 11111111, read 00000000, expect 00000000
<6> [249.959674] Wrote 33333333, read 00000000, expect 00000000
<6> [249.959675] Wrote 55555555, read 00000000, expect 00000000
<6> [249.959676] Wrote 0000ffff, read 00000000, expect 00000000
<6> [249.959677] Wrote 00ff00ff, read 00000000, expect 00000000
<6> [249.959678] Wrote ff0000ff, read 00000000, expect 00000000
<6> [249.959679] Wrote ffff00ff, read 00000000, expect 00000000
<6> [249.959679] Wrote ffffffff, read 00000000, expect 00000000
<6> [249.959680] Wrote ffffffff, read 00000000, expect 00000000
<6> [249.959681] Wrote fefefefe, read 00000000, expect 00000000
<6> [249.959682] Wrote efeffefe, read 00000000, expect 00000000
<6> [249.959683] Wrote fcfcfcfc, read 00000000, expect 00000000
<6> [249.959684] Wrote cfcffcfc, read 00000000, expect 00000000
<6> [249.959685] Wrote fafafafa, read 00000000, expect 00000000
<6> [249.959686] Wrote afaffafa, read 00000000, expect 00000000
<6> [249.959687] Wrote f0f0f0f0, read 00000000, expect 00000000
<6> [249.959688] Wrote 0ff00ff0, read 00000000, expect 00000000
<6> [249.959689] Wrote efefefef, read 00000000, expect 00000000
<6> [249.959690] Wrote 0f0fefef, read 00000000, expect 00000000
<6> [249.959691] Wrote cfcfcfcf, read 00000000, expect 00000000
<6> [249.959692] Wrote 5f5fcfcf, read 00000000, expect 00000000
<6> [249.959693] Wrote afafafaf, read 00000000, expect 00000000
<6> [249.959694] Wrote 3f3fafaf, read 00000000, expect 00000000
<6> [249.959695] Wrote 0f0f0f0f, read 00000000, expect 00000000
<6> [249.959696] Wrote eeeeeeee, read 00000000, expect 00000000
<6> [249.959696] Wrote cccccccc, read 00000000, expect 00000000
<6> [249.959697] Wrote aaaaaaaa, read 00000000, expect 00000000
<6> [249.959698] Wrote ffff0000, read 00000000, expect 00000000
<6> [249.959699] Wrote ff00ff00, read 00000000, expect 00000000
<6> [249.959700] Wrote 00ffff00, read 00000000, expect 00000000
<6> [249.959701] Wrote 0000ff00, read 00000000, expect 00000000
<6> [249.959702] Wrote 00000000, read 00000000, expect 00000000
Next plan was to do mmio writes then SRM.
I think someone should tell them it's actually a R/O register now ;) And we just have to update the test to ignore the lies. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx