drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend
Subsystems (3)
PATCH 1/1 drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend
When audio power domain is suspended, the display driver must save state of AUD_FREQ_CNTRL on Tiger Lake and Ice Lake systems. The initial value of the register is set by BIOS and is read by driver during the audio component init sequence.
--- drivers/gpu/drm/i915/display/intel_audio.c | 17 +++++++++++++++-- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_audio.c +15 -2
@@ -852,10 +852,17 @@ static unsigned long i915_audio_component_get_power(struct device *kdev) ret =intel_display_power_get (dev_priv,POWER_DOMAIN_AUDIO ); -/* Force CDCLK to 2*BCLK as long as we need audio to be powered. */ -if (dev_priv->audio_power_refcount++ ==0 ) +if (dev_priv->audio_power_refcount++ ==0 ) { +if (IS_TIGERLAKE (dev_priv) ||IS_ICELAKE (dev_priv)) { +I915_WRITE (AUD_FREQ_CNTRL , dev_priv->audio_freq_cntrl); +DRM_DEBUG_KMS ("restored AUD_FREQ_CNTRL to 0x%x\n" , + dev_priv->audio_freq_cntrl); + } + +/* 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); + }return ret; }
@@ -1116,6 +1123,12 @@ static void i915_audio_component_init(struct drm_i915_private *dev_priv)return ; } +if (IS_TIGERLAKE (dev_priv) ||IS_ICELAKE (dev_priv)) { + dev_priv->audio_freq_cntrl =I915_READ (AUD_FREQ_CNTRL ); +DRM_DEBUG_KMS ("init value of AUD_FREQ_CNTRL of 0x%x\n" , + dev_priv->audio_freq_cntrl); + } + dev_priv->audio_component_registered = true; }
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -1540,6 +1540,7 @@ struct drm_i915_private {*/ struct mutex av_mutex;int audio_power_refcount; +u32 audio_freq_cntrl;struct {struct mutex mutex;
drivers/gpu/drm/i915/i915_reg.h +2 -0
@@ -9119,6 +9119,8 @@ enum {#define HSW_AUD_CHICKENBIT _MMIO(0x65f10)#define SKL_AUD_CODEC_WAKE_SIGNAL (1 << 15) +#define AUD_FREQ_CNTRL _MMIO(0x65900) +/* * HSW - ICL power wells *
Signature · 6 lines
2.18.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 8 lines · Kai Vehmanen
When audio power domain is suspended, the display driver must save state of
AUD_FREQ_CNTRLon Tiger Lake and Ice Lake systems. The initial value of the register is set by BIOS and is read by driver during the audio component init sequence.Cc Jani Nikula <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Kai Vehmanen <[email protected]>
Thanks for the patch, let's wait for the CI results.
Quoted 68 lines
--- drivers/gpu/drm/i915/display/intel_audio.c | 17 +++++++++++++++-- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_audio.c +15
-2@@ -852,10 +852,17 @@ static unsigned long i915_audio_component_get_power(struct device *kdev) ret =intel_display_power_get (dev_priv,POWER_DOMAIN_AUDIO ); -/* Force CDCLK to 2*BCLK as long as we need audio to be powered. */ -if (dev_priv->audio_power_refcount++ ==0 ) +if (dev_priv->audio_power_refcount++ ==0 ) { +if (IS_TIGERLAKE (dev_priv) ||IS_ICELAKE (dev_priv)) { +I915_WRITE (AUD_FREQ_CNTRL , dev_priv->audio_freq_cntrl); +DRM_DEBUG_KMS ("restored AUD_FREQ_CNTRL to 0x%x\n" , + dev_priv->audio_freq_cntrl); + } + +/* 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); + }return ret; }@@ -1116,6 +1123,12 @@ static void i915_audio_component_init(struct drm_i915_private *dev_priv)return ; } +if (IS_TIGERLAKE (dev_priv) ||IS_ICELAKE (dev_priv)) { + dev_priv->audio_freq_cntrl =I915_READ (AUD_FREQ_CNTRL ); +DRM_DEBUG_KMS ("init value of AUD_FREQ_CNTRL of 0x%x\n" , + dev_priv->audio_freq_cntrl); + } + dev_priv->audio_component_registered = true; }drivers/gpu/drm/i915/i915_drv.h +1
-0@@ -1540,6 +1540,7 @@ struct drm_i915_private {*/ struct mutex av_mutex;int audio_power_refcount; +u32 audio_freq_cntrl;struct {struct mutex mutex;drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -9119,6 +9119,8 @@ enum {#define HSW_AUD_CHICKENBIT _MMIO(0x65f10)#define SKL_AUD_CODEC_WAKE_SIGNAL (1 << 15) +#define AUD_FREQ_CNTRL _MMIO(0x65900) +/* * 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
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend
In reply to Kai Vehmanen== Series Details ==
== Series Details ==
Series: drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend
URL : https://patchwork.freedesktop.org/series/66991/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6928 -> Patchwork_14472
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/
Known issues
------------
Here are the changes found in Patchwork_14472 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_mmap_gtt@basic-small-bo:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/fi-icl-u3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/fi-icl-u3/igt@[email protected]
* igt@i915_module_load@reload:
- fi-icl-u3: [PASS][3] -> [DMESG-WARN][4] ([fdo#107724] / [fdo#111214])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/fi-icl-u3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/fi-icl-u3/igt@[email protected]
* igt@kms_chamelium@dp-edid-read:
- fi-kbl-7500u: [PASS][5] -> [WARN][6] ([fdo#109483])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/fi-kbl-7500u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_switch@legacy-render:
- fi-icl-u2: [INCOMPLETE][7] ([fdo#107713] / [fdo#111381]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/fi-icl-u2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/fi-icl-u2/igt@[email protected]
* igt@i915_module_load@reload:
- fi-blb-e6850: [INCOMPLETE][9] ([fdo#107718]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/fi-blb-e6850/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/fi-blb-e6850/igt@[email protected]
* igt@kms_addfb_basic@addfb25-x-tiled:
- fi-icl-u3: [DMESG-WARN][11] ([fdo#107724]) -> [PASS][12] +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/fi-icl-u3/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/fi-icl-u3/igt@[email protected]
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#111214]: https://bugs.freedesktop.org/show_bug.cgi?id=111214
[fdo#111381]: https://bugs.freedesktop.org/show_bug.cgi?id=111381
Participating hosts (54 -> 47)
------------------------------
Additional (1): fi-hsw-4770r
Missing (8): 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
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6928 -> Patchwork_14472
CI-20190529: 20190529
CI_DRM_6928: 74bb5b031ca11c7036f7be21f42a73a057fc8da8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5194: 531d3d02d5e7a2a84d61b92b28fa01b822afc399 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14472: 475f7d6ead72e2bbce59c1e39d52e7b8701bebaa @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
475f7d6ead72 drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend
In reply to Kai Vehmanen== Series Details ==
== Series Details ==
Series: drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend
URL : https://patchwork.freedesktop.org/series/66991/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6928_full -> Patchwork_14472_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_14472_full:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@gem_eio@kms}:
- shard-snb: [INCOMPLETE][1] ([fdo#105411]) -> [DMESG-WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-snb1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-snb4/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_14472_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_basic@gtt-vecs0:
- shard-apl: [PASS][3] -> [INCOMPLETE][4] ([fdo#103927])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-apl1/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-apl3/igt@[email protected]
* igt@gem_exec_schedule@reorder-wide-bsd:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#111325]) +6 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb2/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-apl: [PASS][7] -> [DMESG-WARN][8] ([fdo#108566]) +4 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-apl1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-apl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- shard-iclb: [PASS][9] -> [FAIL][10] ([fdo#103167]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb6/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb2/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: [PASS][11] -> [FAIL][12] ([fdo#103166])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb6/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb5/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][13] -> [SKIP][14] ([fdo#109441]) +4 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb6/igt@kms_psr@psr2_sprite_plane_move.html
* igt@kms_setmode@basic:
- shard-kbl: [PASS][15] -> [FAIL][16] ([fdo#99912])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-kbl7/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-kbl6/igt@[email protected]
* igt@prime_busy@after-bsd2:
- shard-iclb: [PASS][17] -> [SKIP][18] ([fdo#109276]) +29 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb6/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [SKIP][19] ([fdo#111325]) -> [PASS][20] +7 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb2/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb8/igt@[email protected]
* igt@gem_tiled_swapping@non-threaded:
- shard-glk: [DMESG-WARN][21] ([fdo#108686]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-glk4/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-glk3/igt@[email protected]
* igt@i915_suspend@sysfs-reader:
- shard-apl: [DMESG-WARN][23] ([fdo#108566]) -> [PASS][24] +3 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-apl1/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-apl4/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-skl: [INCOMPLETE][25] ([fdo#110741]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-skl6/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-skl2/igt@[email protected]
* igt@kms_flip@flip-vs-dpms-interruptible:
- shard-iclb: [INCOMPLETE][27] ([fdo#107713]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb1/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb5/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-snb: [DMESG-WARN][29] ([fdo#102365]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-snb4/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-snb6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite:
- shard-iclb: [FAIL][31] ([fdo#103167]) -> [PASS][32] +2 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb3/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@psr-suspend:
- shard-skl: [INCOMPLETE][33] ([fdo#104108] / [fdo#106978]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-skl9/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-skl5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [FAIL][35] ([fdo#108145] / [fdo#110403]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-skl4/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-skl1/igt@[email protected]
* igt@kms_plane_cursor@pipe-a-primary-size-128:
- shard-kbl: [DMESG-WARN][37] ([fdo#103558] / [fdo#105602]) -> [PASS][38] +37 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-kbl6/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-kbl7/igt@[email protected]
* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: [SKIP][39] ([fdo#109441]) -> [PASS][40] +3 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb1/igt@kms_psr@psr2_sprite_mmap_gtt.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html
* igt@kms_setmode@basic:
- shard-glk: [FAIL][41] ([fdo#99912]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-glk3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-glk4/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [INCOMPLETE][43] ([fdo#103927]) -> [PASS][44] +3 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-apl4/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-apl2/igt@[email protected]
* igt@prime_busy@hang-bsd2:
- shard-iclb: [SKIP][45] ([fdo#109276]) -> [PASS][46] +18 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb8/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb1/igt@[email protected]
#### Warnings ####
* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-iclb: [FAIL][47] ([fdo#111329]) -> [SKIP][48] ([fdo#109276])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb4/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb3/igt@[email protected]
* igt@gem_mocs_settings@mocs-settings-bsd2:
- shard-iclb: [SKIP][49] ([fdo#109276]) -> [FAIL][50] ([fdo#111330])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-iclb6/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-iclb2/igt@[email protected]
* igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-d:
- shard-kbl: [SKIP][51] ([fdo#105602] / [fdo#109271] / [fdo#109278]) -> [SKIP][52] ([fdo#109271] / [fdo#109278]) +3 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-kbl6/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-kbl7/igt@[email protected]
* igt@kms_panel_fitting@legacy:
- shard-kbl: [SKIP][53] ([fdo#105602] / [fdo#109271]) -> [SKIP][54] ([fdo#109271]) +30 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6928/shard-kbl6/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_14472/shard-kbl7/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#102365]: https://bugs.freedesktop.org/show_bug.cgi?id=102365
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#106978]: https://bugs.freedesktop.org/show_bug.cgi?id=106978
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110741]: https://bugs.freedesktop.org/show_bug.cgi?id=110741
[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#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (9 -> 9)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_6928 -> Patchwork_14472
CI-20190529: 20190529
CI_DRM_6928: 74bb5b031ca11c7036f7be21f42a73a057fc8da8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5194: 531d3d02d5e7a2a84d61b92b28fa01b822afc399 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_14472: 475f7d6ead72e2bbce59c1e39d52e7b8701bebaa @ 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_14472/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
AppliedQuoted 8 lines · Kai Vehmanen
When audio power domain is suspended, the display driver must save state of
AUD_FREQ_CNTRLon Tiger Lake and Ice Lake systems. The initial value of the register is set by BIOS and is read by driver during the audio component init sequence.Cc Jani Nikula <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Kai Vehmanen <[email protected]>
Pushed to drm-intel-next-queued (and thus drm-tip), thanks for the patch!
BR,
Jani.
Quoted 68 lines
--- drivers/gpu/drm/i915/display/intel_audio.c | 17 +++++++++++++++-- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_audio.c +15
-2@@ -852,10 +852,17 @@ static unsigned long i915_audio_component_get_power(struct device *kdev) ret =intel_display_power_get (dev_priv,POWER_DOMAIN_AUDIO ); -/* Force CDCLK to 2*BCLK as long as we need audio to be powered. */ -if (dev_priv->audio_power_refcount++ ==0 ) +if (dev_priv->audio_power_refcount++ ==0 ) { +if (IS_TIGERLAKE (dev_priv) ||IS_ICELAKE (dev_priv)) { +I915_WRITE (AUD_FREQ_CNTRL , dev_priv->audio_freq_cntrl); +DRM_DEBUG_KMS ("restored AUD_FREQ_CNTRL to 0x%x\n" , + dev_priv->audio_freq_cntrl); + } + +/* 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); + }return ret; }@@ -1116,6 +1123,12 @@ static void i915_audio_component_init(struct drm_i915_private *dev_priv)return ; } +if (IS_TIGERLAKE (dev_priv) ||IS_ICELAKE (dev_priv)) { + dev_priv->audio_freq_cntrl =I915_READ (AUD_FREQ_CNTRL ); +DRM_DEBUG_KMS ("init value of AUD_FREQ_CNTRL of 0x%x\n" , + dev_priv->audio_freq_cntrl); + } + dev_priv->audio_component_registered = true; }drivers/gpu/drm/i915/i915_drv.h +1
-0@@ -1540,6 +1540,7 @@ struct drm_i915_private {*/ struct mutex av_mutex;int audio_power_refcount; +u32 audio_freq_cntrl;struct {struct mutex mutex;drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -9119,6 +9119,8 @@ enum {#define HSW_AUD_CHICKENBIT _MMIO(0x65f10)#define SKL_AUD_CODEC_WAKE_SIGNAL (1 << 15) +#define AUD_FREQ_CNTRL _MMIO(0x65900) +/* * 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
Quoted 8 lines · Kai Vehmanen
When audio power domain is suspended, the display driver must save state of
AUD_FREQ_CNTRLon Tiger Lake and Ice Lake systems. The initial value of the register is set by BIOS and is read by driver during the audio component init sequence.Cc Jani Nikula <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Kai Vehmanen <[email protected]>
Hi Kai.
I realize this patch landed several months ago, but I was just glancing through places in the driver where we call out specific platforms with IS_FOO() rather than using generation tests and noticed this one. Should this programming be specific to just ICL and TGL, or should it also apply to other recent platforms like EHL/JSL?
Our convention in i915 is to usually just assume that future platforms will follow the lead of the current latest platform until we find out otherwise. So we may want to add another patch to change the test to use either an
if (INTEL_GEN(dev_priv) >= 11)
or a
if (INTEL_GEN(dev_priv) >= 12 || IS_ICELAKE(dev_priv))
depending on whether EHL/JSL also need this.
Thanks!
Matt
Quoted 75 lines
--- drivers/gpu/drm/i915/display/intel_audio.c | 17 +++++++++++++++-- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_reg.h | 2 ++ 3 files changed, 18 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/display/intel_audio.c +15
-2@@ -852,10 +852,17 @@ static unsigned long i915_audio_component_get_power(struct device *kdev) ret =intel_display_power_get (dev_priv,POWER_DOMAIN_AUDIO ); -/* Force CDCLK to 2*BCLK as long as we need audio to be powered. */ -if (dev_priv->audio_power_refcount++ ==0 ) +if (dev_priv->audio_power_refcount++ ==0 ) { +if (IS_TIGERLAKE (dev_priv) ||IS_ICELAKE (dev_priv)) { +I915_WRITE (AUD_FREQ_CNTRL , dev_priv->audio_freq_cntrl); +DRM_DEBUG_KMS ("restored AUD_FREQ_CNTRL to 0x%x\n" , + dev_priv->audio_freq_cntrl); + } + +/* 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); + }return ret; }@@ -1116,6 +1123,12 @@ static void i915_audio_component_init(struct drm_i915_private *dev_priv)return ; } +if (IS_TIGERLAKE (dev_priv) ||IS_ICELAKE (dev_priv)) { + dev_priv->audio_freq_cntrl =I915_READ (AUD_FREQ_CNTRL ); +DRM_DEBUG_KMS ("init value of AUD_FREQ_CNTRL of 0x%x\n" , + dev_priv->audio_freq_cntrl); + } + dev_priv->audio_component_registered = true; }drivers/gpu/drm/i915/i915_drv.h +1
-0@@ -1540,6 +1540,7 @@ struct drm_i915_private {*/ struct mutex av_mutex;int audio_power_refcount; +u32 audio_freq_cntrl;struct {struct mutex mutex;drivers/gpu/drm/i915/i915_reg.h +2
-0@@ -9119,6 +9119,8 @@ enum {#define HSW_AUD_CHICKENBIT _MMIO(0x65f10)#define SKL_AUD_CODEC_WAKE_SIGNAL (1 << 15) +#define AUD_FREQ_CNTRL _MMIO(0x65900) +/* * HSW - ICL power wells * Signature · 6 lines
2.18.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 9 lines
Matt Roper Graphics Software Engineer VTT-OSGC Platform Enablement Intel Corporation (916) 356-2795 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Hey Matt,
Quoted 10 lines · Matt Roper
Quoted 3 lines
When audio power domain is suspended, the display driver must save state of
AUD_FREQ_CNTRLon Tiger Lake and Ice Lake systems. The initial value of the register is set by BIOS andI realize this patch landed several months ago, but I was just glancing through places in the driver where we call out specific platforms with
IS_FOO()rather than using generation tests and noticed this one. Should this programming be specific to just ICL and TGL, or should it also apply to other recent platforms like EHL/JSL?
Quoted 3 lines
Our convention in i915 is to usually just assume that future platforms will follow the lead of the current latest platform until we find out otherwise. So we may want to add another patch to change the test to
this is a valid point. The current check is very limited as the issue has been only observed on these platforms (but was very severe on these devices so a quick response was needed).
I did observe originally that specs would indicate the register should be saved on many other platforms as well. I was hesitant to add this to the patch, as there are many platforms that have been shipping for years with no issues reported on this.
But, but, I think we should just proceed and extend the check to all documented platforms, past and future (basicly INTEL_GEN>=9).
I can make a patch and let's see how it fares in CI.
Br, Kai
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx