drm/i915: Fix audio power up sequence for gen10/11
Subsystems (3)
PATCH 1/2 drm/i915: Fix audio power up sequence for gen10/11
On gen10/11 platforms, driver must set the enable bit of AUD_PIN_BUF_CTL as part of audio power up sequence.
Failing to do this resulted in errors during display audio codec probe, and failures during resume from suspend.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111214
--- drivers/gpu/drm/i915/display/intel_audio.c | 5 +++++ drivers/gpu/drm/i915/i915_reg.h | 2 ++ 2 files changed, 7 insertions(+)
drivers/gpu/drm/i915/display/intel_audio.c +5 -0
@@ -862,6 +862,11 @@ static unsigned long i915_audio_component_get_power(struct device *kdev)/* Force CDCLK to 2*BCLK as long as we need audio powered. */ if (IS_CANNONLAKE (dev_priv) ||IS_GEMINILAKE (dev_priv))glk_force_audio_cdclk (dev_priv, true); + +if (INTEL_GEN (dev_priv) ==11 ||INTEL_GEN (dev_priv) ==10 ) +I915_WRITE (AUD_PIN_BUF_CTL , + (I915_READ (AUD_PIN_BUF_CTL ) | +AUD_PIN_BUF_ENABLE )); }return ret;
drivers/gpu/drm/i915/i915_reg.h +2 -0
@@ -9133,6 +9133,8 @@ enum {#define SKL_AUD_CODEC_WAKE_SIGNAL (1 << 15)#define AUD_FREQ_CNTRL _MMIO(0x65900) +#define AUD_PIN_BUF_CTL _MMIO(0x48414) +#define AUD_PIN_BUF_ENABLE BIT(31)/* * HSW - ICL power wells
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915: extend audio CDCLK>=2*BCLK constraint to more platforms
The CDCLK>=2*BCLK constraint applies to all generations since gen10. Extend the constraint logic in audio get/put_power().
--- drivers/gpu/drm/i915/display/intel_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_audio.c +1 -1
@@ -860,7 +860,7 @@ static unsigned long i915_audio_component_get_power(struct device *kdev) }/* Force CDCLK to 2*BCLK as long as we need audio powered. */ -if (IS_CANNONLAKE (dev_priv) ||IS_GEMINILAKE (dev_priv)) +if (INTEL_GEN (dev_priv) >=10 )glk_force_audio_cdclk (dev_priv, true);if (INTEL_GEN (dev_priv) ==11 ||INTEL_GEN (dev_priv) ==10 )
Signature · 6 lines
2.17.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: extend audio CDCLK>=2*BCLK constraint to more platforms
Quoting Kai Vehmanen (2019-10-01 17:35:55)
Quoted 13 lines
The CDCLK>=2*BCLK constraint applies to all generations since gen10. Extend the constraint logic in audio get/put_power().
Signed-off-by Kai Vehmanen <[email protected]>--- drivers/gpu/drm/i915/display/intel_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/display/intel_audio.c +0
-0
drivers/gpu/drm/i915/display/intel_audio.c static unsigned long i915_audio_component_get_power(struct device *kdev) · line 863
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_audio.c +1
-1@@ -860,7 +860,7 @@ static unsigned long i915_audio_component_get_power(struct device *kdev) }/* Force CDCLK to 2*BCLK as long as we need audio powered. */ -if (IS_CANNONLAKE (dev_priv) ||IS_GEMINILAKE (dev_priv)) +if (INTEL_GEN (dev_priv) >=10 )
glk is only gen9
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Fix audio power up sequence for gen10/11
In reply to Kai Vehmanen== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915: Fix audio power up sequence for gen10/11
URL : https://patchwork.freedesktop.org/series/67460/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6986 -> Patchwork_14617
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/index.html
Known issues
------------
Here are the changes found in Patchwork_14617 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload-no-display:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: [INCOMPLETE][3] ([fdo#107718]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/fi-blb-e6850/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/fi-blb-e6850/igt@[email protected]
* igt@gem_linear_blits@basic:
- fi-icl-u3: [DMESG-WARN][5] ([fdo#107724]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/fi-icl-u3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/fi-icl-u3/igt@[email protected]
* igt@i915_module_load@reload:
- fi-icl-u3: [DMESG-WARN][7] ([fdo#107724] / [fdo#111214]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/fi-icl-u3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/fi-icl-u3/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#111214]: https://bugs.freedesktop.org/show_bug.cgi?id=111214
Participating hosts (54 -> 43)
------------------------------
Missing (11): fi-ilk-m540 fi-cml-h fi-tgl-u2 fi-hsw-4200u fi-byt-squawks fi-icl-u2 fi-bsw-cyan fi-byt-clapper fi-icl-y fi-icl-dsi fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6986 -> Patchwork_14617
CI-20190529: 20190529
CI_DRM_6986: 9300459553e8c1032f10ec1953e1a375a99aba13 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5208: c0131b4f132acf287d9d05b0f5078003d3159e1c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14617: eb4770433c09ab208e1500bfa62b21db7dce58d6 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
eb4770433c09 drm/i915: extend audio CDCLK>=2*BCLK constraint to more platforms 1554bddd7fee drm/i915: Fix audio power up sequence for gen10/11
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915: Fix audio power up sequence for gen10/11
In reply to Kai Vehmanen== Series Details ==
== Series Details ==
Series: series starting with [1/2] drm/i915: Fix audio power up sequence for gen10/11
URL : https://patchwork.freedesktop.org/series/67460/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6986_full -> Patchwork_14617_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
New tests
---------
New tests have been introduced between CI_DRM_6986_full and Patchwork_14617_full:
### New Piglit tests (7) ###
* spec@arb_gpu_shader5@texturegather@vs-rgba-2-int-2darray:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_gpu_shader5@texturegather@vs-rgba-3-int-2darray:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_gpu_shader5@texturegatheroffset@vs-rgba-0-int-2darray:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_gpu_shader5@texturegatheroffsets@vs-rgba-0-int-2d:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_gpu_shader5@texturegatheroffsets@vs-rgba-1-int-2d:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_gpu_shader5@texturegatheroffsets@vs-rgba-2-int-2d:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
* spec@arb_gpu_shader5@texturegatheroffsets@vs-rgba-3-int-2d:
- Statuses : 1 incomplete(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in Patchwork_14617_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_isolation@bcs0-s3:
- shard-apl: [PASS][1] -> [DMESG-WARN][2] ([fdo#108566]) +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-apl2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-apl3/igt@[email protected]
* igt@gem_exec_create@forked:
- shard-apl: [PASS][3] -> [INCOMPLETE][4] ([fdo#103927]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-apl2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-apl1/igt@[email protected]
* igt@gem_exec_schedule@promotion-bsd1:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#109276]) +14 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb5/igt@[email protected]
* igt@gem_exec_schedule@wide-bsd:
- shard-iclb: [PASS][7] -> [SKIP][8] ([fdo#111325]) +3 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb1/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy:
- shard-skl: [PASS][9] -> [DMESG-WARN][10] ([fdo#111870])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-skl9/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-skl3/igt@[email protected]
- shard-kbl: [PASS][11] -> [DMESG-WARN][12] ([fdo#111870])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-kbl3/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-kbl1/igt@[email protected]
* igt@gem_userptr_blits@sync-unmap:
- shard-snb: [PASS][13] -> [DMESG-WARN][14] ([fdo#111870])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-snb4/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-snb2/igt@[email protected]
- shard-glk: [PASS][15] -> [DMESG-WARN][16] ([fdo#111870])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-glk2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-glk4/igt@[email protected]
* igt@gem_userptr_blits@sync-unmap-after-close:
- shard-apl: [PASS][17] -> [DMESG-WARN][18] ([fdo#109385] / [fdo#111870]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-apl6/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-apl1/igt@[email protected]
* igt@kms_draw_crc@draw-method-rgb565-mmap-gtt-xtiled:
- shard-skl: [PASS][19] -> [FAIL][20] ([fdo#103184] / [fdo#103232])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-skl5/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-skl10/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite:
- shard-iclb: [PASS][21] -> [FAIL][22] ([fdo#103167]) +3 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_plane@plane-panning-bottom-right-pipe-a-planes:
- shard-skl: [PASS][23] -> [FAIL][24] ([fdo#103166])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-skl5/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-skl10/igt@[email protected]
* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: [PASS][25] -> [SKIP][26] ([fdo#109441]) +2 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb5/igt@kms_psr@psr2_sprite_mmap_gtt.html
* igt@kms_setmode@basic:
- shard-apl: [PASS][27] -> [FAIL][28] ([fdo#99912])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-apl6/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-apl8/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_schedule@independent-bsd2:
- shard-iclb: [SKIP][29] ([fdo#109276]) -> [PASS][30] +21 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb8/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb4/igt@[email protected]
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [SKIP][31] ([fdo#111325]) -> [PASS][32] +2 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb1/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb7/igt@[email protected]
* igt@gem_request_retire@retire-vma-not-inactive:
- shard-hsw: [INCOMPLETE][33] ([fdo#103540]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-hsw4/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-hsw7/igt@[email protected]
* igt@gem_softpin@noreloc-s3:
- shard-skl: [INCOMPLETE][35] ([fdo#104108] / [fdo#107773]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-skl6/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-skl9/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-kbl: [DMESG-WARN][37] ([fdo#111870]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-kbl4/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-kbl3/igt@[email protected]
- shard-apl: [DMESG-WARN][39] ([fdo#109385] / [fdo#111870]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-apl8/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-apl4/igt@[email protected]
- shard-skl: [DMESG-WARN][41] ([fdo#111870]) -> [PASS][42] +1 similar issue
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-skl7/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-skl5/igt@[email protected]
* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy:
- shard-snb: [DMESG-WARN][43] ([fdo#110789] / [fdo#111870]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-snb7/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-snb7/igt@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [DMESG-WARN][45] ([fdo#108566]) -> [PASS][46] +3 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-apl4/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-apl1/igt@[email protected]
* igt@i915_suspend@sysfs-reader:
- shard-kbl: [INCOMPLETE][47] ([fdo#103665] / [fdo#108767]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-kbl4/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-kbl7/igt@[email protected]
* igt@kms_flip@2x-dpms-vs-vblank-race-interruptible:
- shard-hsw: [DMESG-FAIL][49] ([fdo#102614]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-hsw5/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-hsw6/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-skl: [INCOMPLETE][51] ([fdo#109507]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-skl8/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-skl3/igt@[email protected]
* igt@kms_flip@plain-flip-fb-recreate:
- shard-skl: [FAIL][53] ([fdo#100368]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-skl2/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-skl9/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
- shard-iclb: [FAIL][55] ([fdo#103167]) -> [PASS][56] +6 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb4/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [FAIL][57] ([fdo#108145] / [fdo#110403]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-skl7/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-skl3/igt@[email protected]
* igt@kms_psr2_su@page_flip:
- shard-iclb: [SKIP][59] ([fdo#109642] / [fdo#111068]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb7/igt@kms_psr2_su@page_flip.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb2/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_no_drrs:
- shard-iclb: [SKIP][61] ([fdo#109441]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb7/igt@kms_psr@psr2_no_drrs.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb2/igt@kms_psr@psr2_no_drrs.html
* igt@kms_setmode@basic:
- shard-kbl: [FAIL][63] ([fdo#99912]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-kbl6/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-kbl6/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [INCOMPLETE][65] ([fdo#103665]) -> [PASS][66] +1 similar issue
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-kbl4/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-kbl6/igt@[email protected]
* igt@kms_vblank@pipe-b-ts-continuation-dpms-suspend:
- shard-skl: [INCOMPLETE][67] ([fdo#104108]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-skl1/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-skl8/igt@[email protected]
#### Warnings ####
* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-iclb: [SKIP][69] ([fdo#109276]) -> [FAIL][70] ([fdo#111329])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb8/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb4/igt@[email protected]
* igt@gem_mocs_settings@mocs-isolation-bsd2:
- shard-iclb: [SKIP][71] ([fdo#109276]) -> [FAIL][72] ([fdo#111330])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb7/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb2/igt@[email protected]
* igt@gem_mocs_settings@mocs-reset-bsd2:
- shard-iclb: [FAIL][73] ([fdo#111330]) -> [SKIP][74] ([fdo#109276]) +1 similar issue
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6986/shard-iclb4/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/shard-iclb6/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#100368]: https://bugs.freedesktop.org/show_bug.cgi?id=100368
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103184]: https://bugs.freedesktop.org/show_bug.cgi?id=103184
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#107773]: https://bugs.freedesktop.org/show_bug.cgi?id=107773
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108767]: https://bugs.freedesktop.org/show_bug.cgi?id=108767
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109385]: https://bugs.freedesktop.org/show_bug.cgi?id=109385
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109507]: https://bugs.freedesktop.org/show_bug.cgi?id=109507
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110789]: https://bugs.freedesktop.org/show_bug.cgi?id=110789
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#111870]: https://bugs.freedesktop.org/show_bug.cgi?id=111870
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (16 -> 10)
------------------------------
Missing (6): shard-tglb1 shard-tglb2 shard-tglb3 shard-tglb4 shard-tglb5 shard-tglb6
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6986 -> Patchwork_14617
CI-20190529: 20190529
CI_DRM_6986: 9300459553e8c1032f10ec1953e1a375a99aba13 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5208: c0131b4f132acf287d9d05b0f5078003d3159e1c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14617: eb4770433c09ab208e1500bfa62b21db7dce58d6 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14617/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Kai Vehmanen (2019-10-01 17:35:54)
Quoted 18 lines
On gen10/11 platforms, driver must set the enable bit of
AUD_PIN_BUF_CTLas part of audio power up sequence.Failing to do this resulted in errors during display audio codec probe, and failures during resume from suspend.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111214
Signed-off-by Kai Vehmanen <[email protected]>--- drivers/gpu/drm/i915/display/intel_audio.c | 5 +++++ drivers/gpu/drm/i915/i915_reg.h | 2 ++ 2 files changed, 7 insertions(+)drivers/gpu/drm/i915/display/intel_audio.c +0
-0
drivers/gpu/drm/i915/display/intel_audio.c static unsigned long i915_audio_component_get_power(struct device *kdev) · line 869
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_audio.c +5
-0@@ -862,6 +862,11 @@ static unsigned long i915_audio_component_get_power(struct device *kdev)/* Force CDCLK to 2*BCLK as long as we need audio powered. */ if (IS_CANNONLAKE (dev_priv) ||IS_GEMINILAKE (dev_priv))glk_force_audio_cdclk (dev_priv, true); + +if (INTEL_GEN (dev_priv) ==11 ||INTEL_GEN (dev_priv) ==10 ) +I915_WRITE (AUD_PIN_BUF_CTL , + (I915_READ (AUD_PIN_BUF_CTL ) | +AUD_PIN_BUF_ENABLE ));
From the observation that this reduces the module reload time from 196s to 2s, I'd say this works.
Do you need to disable the bit later?
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hey,
Quoted 7 lines · Chris Wilson
drivers/gpu/drm/i915/display/intel_audio.c static unsigned long i915_audio_component_get_power(struct device *kdev) · line 869
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_audio.c +4
-0+if (INTEL_GEN (dev_priv) ==11 ||INTEL_GEN (dev_priv) ==10 ) +I915_WRITE (AUD_PIN_BUF_CTL , + (I915_READ (AUD_PIN_BUF_CTL ) | +AUD_PIN_BUF_ENABLE ));From the observation that this reduces the module reload time from 196s to 2s, I'd say this works.
yes indeed, the CI results look very promising. The problem does not occur every time, so this has been bugging us for a long time, but in scenarios and systems where this happens, the patch seems to help.
Upon further investigation, I believe this needs to be applied on GLK as well. This would explain some of the other sightings. E.g. here's one from from audio/SOF CI from this week:
https://sof-ci.01.org/sofpr/PR1864/build3366/devicetest/GLK_BOB_DA7219/verify-pcm-list.sh/dmesg.txt
I'll update both patches to include GLK.
Quoted 1 line
Do you need to disable the bit later?
Now that is trickier. I'm still digging more info about this. Based on info I have, to avoid unsolicited wakes from i915 audio codec, we should clear the bit after we have turned off i915 audio power domain. In practise onsystems I have for testing, this results in frequent probe failures, so I left this out from the patch. I will try to search for more info on this (especially if we get still some failures with the patch).
But enabling it every time does seem to help and so far has not caused any regressions elsewhere, so at least this part seems good.
Br, Kai
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Kai Vehmanen
On gen10/11 platforms, driver must set the enable bit of
AUD_PIN_BUF_CTLas part of audio power up sequence.Failing to do this resulted in errors during display audio codec probe, and failures during resume from suspend.
Good catch, seems to match bspec 21352 (and 49280 for GEN12+).
Before setting this bit the sequence has an other step done in the HDA driver (LCTL reg write in sound/pci/hda/hda_intel.c, intel_init_lctl()) before setting this bit. If that order is important we'd need another hook in drm_audio_component_ops (and also clear the bit).
Quoted 44 lines
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111214
Signed-off-by Kai Vehmanen <[email protected]>--- drivers/gpu/drm/i915/display/intel_audio.c | 5 +++++ drivers/gpu/drm/i915/i915_reg.h | 2 ++ 2 files changed, 7 insertions(+)drivers/gpu/drm/i915/display/intel_audio.c +5
-0@@ -862,6 +862,11 @@ static unsigned long i915_audio_component_get_power(struct device *kdev)/* Force CDCLK to 2*BCLK as long as we need audio powered. */ if (IS_CANNONLAKE (dev_priv) ||IS_GEMINILAKE (dev_priv))glk_force_audio_cdclk (dev_priv, true); + +if (INTEL_GEN (dev_priv) ==11 ||INTEL_GEN (dev_priv) ==10 ) +I915_WRITE (AUD_PIN_BUF_CTL , + (I915_READ (AUD_PIN_BUF_CTL ) | +AUD_PIN_BUF_ENABLE )); }return ret;drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -9133,6 +9133,8 @@ enum {#define SKL_AUD_CODEC_WAKE_SIGNAL (1 << 15)#define AUD_FREQ_CNTRL _MMIO(0x65900) +#define AUD_PIN_BUF_CTL _MMIO(0x48414) +#define AUD_PIN_BUF_ENABLE BIT(31)/* * HSW - ICL power wells Signature · 6 lines
2.17.1 _______________________________________________ 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
Hey,
Quoted 10 lines · Imre Deak
Quoted 2 lines · Kai Vehmanen
On gen10/11 platforms, driver must set the enable bit of
AUD_PIN_BUF_CTLas part of audio power up sequence.Good catch, seems to match bspec 21352 (and 49280 for GEN12+).
Before setting this bit the sequence has an other step done in the HDA driver (LCTL reg write in
sound/pci/hda/hda_intel.c,intel_init_lctl()) before setting this bit. If that order is important we'd need another hook indrm_audio_component_ops(and also clear the bit).
that is true. The full sequences to avoid unsolicited responses are quite awkward as there are multiple (new) hops between display and hda drivers. I don't think we strictly need these on Linux, but it's definitely a problem if we don't ensure AUD_PIN_BUF_CTL is set.
I have one failing case left on ICL where v1 patchset does not seem sufficient. The test case involves a loop of doing S3 suspend, resume, unload driver, load driver, play audio via HDMI and repeat. I get systematically better results with this patch, but it still fails before 100 iterations. It's a definite improvement, so probably this patch should go in in any case.
I have a wip patch to HDA driver side that seems to cure the remaining issue as well. The problem seems slightly different -- we miss an IRQ but the display-pch transactions are functional, so this can be a different problem. I'll continue testing a bit and once confident enough, send out the v2 patch.
Br, Kai
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hi,
Quoted 6 lines · Kai Vehmanen
I have one failing case left on ICL where v1 patchset does not seem sufficient. The test case involves a loop of doing S3 suspend, resume, unload driver, load driver, play audio via HDMI and repeat. I get systematically better results with this patch, but it still fails before 100 iterations. It's a definite improvement, so probably this patch should go in in any case.
ok, this turned out to be an issue on HDA driver side and only happens with SOF driver (not with the snd_hda_intel non-DSP HDA codec driver).
So the v2 version of the patch is ready to go.
Br, Kai
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 34 lines · Kai Vehmanen
On gen10/11 platforms, driver must set the enable bit of
AUD_PIN_BUF_CTLas part of audio power up sequence.Failing to do this resulted in errors during display audio codec probe, and failures during resume from suspend.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111214
Signed-off-by Kai Vehmanen <[email protected]>--- drivers/gpu/drm/i915/display/intel_audio.c | 5 +++++ drivers/gpu/drm/i915/i915_reg.h | 2 ++ 2 files changed, 7 insertions(+)drivers/gpu/drm/i915/display/intel_audio.c +5
-0@@ -862,6 +862,11 @@ static unsigned long i915_audio_component_get_power(struct device *kdev)/* Force CDCLK to 2*BCLK as long as we need audio powered. */ if (IS_CANNONLAKE (dev_priv) ||IS_GEMINILAKE (dev_priv))glk_force_audio_cdclk (dev_priv, true); + +if (INTEL_GEN (dev_priv) ==11 ||INTEL_GEN (dev_priv) ==10 ) +I915_WRITE (AUD_PIN_BUF_CTL , + (I915_READ (AUD_PIN_BUF_CTL ) | +AUD_PIN_BUF_ENABLE )); }return ret;drivers/gpu/drm/i915/i915_reg.h +0
-0
drivers/gpu/drm/i915/i915_reg.h enum { · line 9137
Quoted 5 lines
drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -9133,6 +9133,8 @@ enum {#define SKL_AUD_CODEC_WAKE_SIGNAL (1 << 15)#define AUD_FREQ_CNTRL _MMIO(0x65900) +#define AUD_PIN_BUF_CTL _MMIO(0x48414) +#define AUD_PIN_BUF_ENABLE BIT(31)
Drive-by comment, please use REG_BIT() in i915_reg.h. BIT becomes UL which in turn can cause trouble later on.
BR,
Jani.
Quoted 3 lines
drivers/gpu/drm/i915/i915_reg.h +0
-0/* * HSW - ICL power wells
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx