drm/i915/ehl: Add support for DPLL4 (v10)
Subsystems (3)
PATCH 1/1 drm/i915/ehl: Add support for DPLL4 (v10)
This patch adds support for DPLL4 on EHL that include the following restrictions:
- DPLL4 cannot be used with DDIA (combo port A internal eDP usage). DPLL4 can be used with other DDIs, including DDID (combo port A external usage).
- DPLL4 cannot be enabled when DC5 or DC6 are enabled.
- The DPLL4 enable, lock, power enabled, and power state are connected to the MGPLL1_ENABLE register.
v2: (suggestions from Bob Paauwe)
- Rework ehl_get_dpll() function to call intel_find_shared_dpll() and iterate twice: once for Combo plls and once for MG plls.
- Use MG pll funcs for DPLL4 instead of creating new ones and modify mg_pll_enable to include the restrictions for EHL.
v3: Fix compilation error
v4: (suggestions from Lucas and Ville)
- Treat DPLL4 as a combo phy PLL and not as MG PLL
- Disable DC states when this DPLL is being enabled
- Reuse icl_get_dpll instead of creating a separate one for EHL
v5: (suggestion from Ville)
- Refcount the DC OFF power domains during the enabling and disabling of this DPLL.
v6: rebase
v7: (suggestion from Imre)
- Add a new power domain instead of iterating over the domains assoicated with DC OFF power well.
v8: (Ville and Imre)
- Rename POWER_DOMAIN_DPLL4 TO POWER_DOMAIN_DPLL_DC_OFF
- Grab a reference in intel_modeset_setup_hw_state() if this DPLL was already enabled perhaps by BIOS.
- Check for the port type instead of the encoder
v9: (Ville)
- Move the block of code that grabs a reference to the power domain POWER_DOMAIN_DPLL_DC_OFF to intel_modeset_readout_hw_state() to ensure that there is a reference present before this DPLL might get disabled.
v10: rebase
--- drivers/gpu/drm/i915/display/intel_display.c | 7 +++ .../drm/i915/display/intel_display_power.c | 3 ++ .../drm/i915/display/intel_display_power.h | 1 + drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 47 +++++++++++++++++-- drivers/gpu/drm/i915/display/intel_dpll_mgr.h | 6 +++ 5 files changed, 60 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +7 -0
@@ -16653,6 +16653,13 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev) pll->on = pll->info->funcs->get_hw_state (dev_priv, pll, &pll->state.hw_state); + +if (IS_ELKHARTLAKE (dev_priv) && pll->on && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + pll->wakeref =intel_display_power_get (dev_priv, +POWER_DOMAIN_DPLL_DC_OFF ); + } + pll->state.crtc_mask =0 ;for_each_intel_crtc (dev, crtc) { struct intel_crtc_state *crtc_state =
drivers/gpu/drm/i915/display/intel_display_power.c +3 -0
@@ -118,6 +118,8 @@ intel_display_power_domain_str(enum intel_display_power_domain domain)return "MODESET" ;case POWER_DOMAIN_GT_IRQ :return "GT_IRQ" ; +case POWER_DOMAIN_DPLL_DC_OFF : +return "DPLL_DC_OFF" ;default :MISSING_CASE (domain);return "?" ;
@@ -2455,6 +2457,7 @@ void intel_display_power_put(struct drm_i915_private *dev_priv, ICL_PW_2_POWER_DOMAINS | \ BIT_ULL(POWER_DOMAIN_MODESET) | \ BIT_ULL(POWER_DOMAIN_AUX_A) | \ + BIT_ULL(POWER_DOMAIN_DPLL_DC_OFF) | \ BIT_ULL(POWER_DOMAIN_INIT))#define ICL_DDI_IO_A_POWER_DOMAINS ( \
drivers/gpu/drm/i915/display/intel_display_power.h +1 -0
@@ -59,6 +59,7 @@ enum intel_display_power_domain {POWER_DOMAIN_GMBUS ,POWER_DOMAIN_MODESET ,POWER_DOMAIN_GT_IRQ , +POWER_DOMAIN_DPLL_DC_OFF ,POWER_DOMAIN_INIT , POWER_DOMAIN_NUM,
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +43 -4
86 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_dpll_mgr.h +6 -0
@@ -28,6 +28,7 @@#include <linux/types.h> #include "intel_display.h" +#include "intel_wakeref.h" /*FIXME: Move this to a more appropriate place. */ #define abs_diff (a, b) ({ \
@@ -118,6 +119,10 @@ enum intel_dpll_id {* @DPLL_ID_ICL_DPLL1: ICL combo PHY DPLL1 */ DPLL_ID_ICL_DPLL1 =1 , +/** +* @DPLL_ID_EHL_DPLL4: EHL combo PHY DPLL4 +*/ + DPLL_ID_EHL_DPLL4 = 2,/** * @DPLL_ID_ICL_TBTPLL: ICL TBT PLL */
@@ -320,6 +325,7 @@ struct intel_shared_dpll {* @info: platform specific info */ const struct dpll_info *info; +intel_wakeref_t wakeref; };#define SKL_DPLL0 0
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/ehl: Add support for DPLL4 (v10)
== Series Details ==
== Series Details ==
Series: drm/i915/ehl: Add support for DPLL4 (v10)
URL : https://patchwork.freedesktop.org/series/63171/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6405 -> Patchwork_13517
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/
Known issues
------------
Here are the changes found in Patchwork_13517 that come from known issues:
### IGT changes ###
#### Possible fixes ####
* {igt@gem_ctx_switch@rcs0}:
- fi-icl-guc: [INCOMPLETE][1] ([fdo#107713]) -> [PASS][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/fi-icl-guc/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/fi-icl-guc/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#102505]: https://bugs.freedesktop.org/show_bug.cgi?id=102505
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
[fdo#111049]: https://bugs.freedesktop.org/show_bug.cgi?id=111049
Participating hosts (53 -> 44)
------------------------------
Additional (2): fi-hsw-4770r fi-cml-u2
Missing (11): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-icl-u2 fi-bsw-cyan fi-byt-clapper fi-icl-u3 fi-icl-y fi-icl-dsi fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_6405 -> Patchwork_13517
CI_DRM_6405: d395f3e20d154dfeabb95117f388f2e953c12ac9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5082: f7c51e6fbf8da0784b64a1edaee5266aa9b9f829 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13517: a1eedddb57a23f4e611d42d90e26748e6cc39846 @ git://anongit.freedesktop.org/gfx-ci/linux
== Kernel 32bit build ==
Warning: Kernel 32bit buildtest failed:
https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/build_32bit.log
CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh CHK include/generated/compile.h
Kernel: arch/x86/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST 112 modules
ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: "__divdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! scripts/Makefile.modpost:91: recipe for target '__modpost' failed make[1]: *** [__modpost] Error 1
Makefile:1287: recipe for target 'modules' failed
make: *** [modules] Error 2
== Linux commits ==
a1eedddb57a2 drm/i915/ehl: Add support for DPLL4 (v10)
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.IGT: failure for drm/i915/ehl: Add support for DPLL4 (v10)
In reply to Vivek Kasireddy== Series Details ==
== Series Details ==
Series: drm/i915/ehl: Add support for DPLL4 (v10)
URL : https://patchwork.freedesktop.org/series/63171/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_6405_full -> Patchwork_13517_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_13517_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_13517_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_13517_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_busy@close-race:
- shard-snb: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-snb4/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-snb6/igt@[email protected]
* igt@runner@aborted:
- shard-snb: NOTRUN -> [FAIL][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-snb6/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_13517_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_busy@close-race:
- shard-iclb: [PASS][4] -> [DMESG-FAIL][5] ([fdo#111063])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-iclb6/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-iclb7/igt@[email protected]
* igt@gem_workarounds@suspend-resume-context:
- shard-apl: [PASS][6] -> [DMESG-WARN][7] ([fdo#108566]) +5 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-apl6/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-apl3/igt@[email protected]
* igt@i915_pm_rpm@gem-execbuf-stress:
- shard-hsw: [PASS][8] -> [INCOMPLETE][9] ([fdo#103540] / [fdo#107803] / [fdo#107807])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-hsw7/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-hsw8/igt@[email protected]
* igt@i915_suspend@sysfs-reader:
- shard-skl: [PASS][10] -> [INCOMPLETE][11] ([fdo#104108])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-skl10/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-skl8/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank:
- shard-skl: [PASS][12] -> [FAIL][13] ([fdo#105363])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-skl8/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-skl1/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-skl: [PASS][14] -> [INCOMPLETE][15] ([fdo#109507])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-skl8/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-skl8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render:
- shard-iclb: [PASS][16] -> [FAIL][17] ([fdo#103167]) +1 similar issue
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes:
- shard-iclb: [PASS][18] -> [INCOMPLETE][19] ([fdo#107713] / [fdo#110042])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-iclb8/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-iclb3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [PASS][20] -> [FAIL][21] ([fdo#108145])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-skl8/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-skl8/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [PASS][22] -> [FAIL][23] ([fdo#103166])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-iclb3/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-iclb8/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [PASS][24] -> [SKIP][25] ([fdo#109441]) +3 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-iclb4/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_setmode@basic:
- shard-apl: [PASS][26] -> [FAIL][27] ([fdo#99912])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-apl4/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-apl4/igt@[email protected]
#### Possible fixes ####
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-apl: [DMESG-WARN][28] ([fdo#108566]) -> [PASS][29] +2 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-apl5/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-apl8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [FAIL][30] ([fdo#103167]) -> [PASS][31] +1 similar issue
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-iclb6/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-iclb5/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_plane_alpha_blend@pipe-b-constant-alpha-min:
- shard-skl: [FAIL][32] ([fdo#108145]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-skl8/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-skl1/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [SKIP][34] ([fdo#109441]) -> [PASS][35] +5 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-iclb3/igt@kms_psr@psr2_sprite_plane_move.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
* igt@kms_setmode@basic:
- shard-skl: [FAIL][36] ([fdo#99912]) -> [PASS][37]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-skl1/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-skl3/igt@[email protected]
#### Warnings ####
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [SKIP][38] ([fdo#109349]) -> [DMESG-WARN][39] ([fdo#107724])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-iclb3/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-iclb2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-tilingchange:
- shard-skl: [FAIL][40] ([fdo#108040]) -> [FAIL][41] ([fdo#103167])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-skl1/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-skl3/igt@[email protected]
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#107803]: https://bugs.freedesktop.org/show_bug.cgi?id=107803
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#108040]: https://bugs.freedesktop.org/show_bug.cgi?id=108040
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109507]: https://bugs.freedesktop.org/show_bug.cgi?id=109507
[fdo#110042]: https://bugs.freedesktop.org/show_bug.cgi?id=110042
[fdo#111063]: https://bugs.freedesktop.org/show_bug.cgi?id=111063
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_6405 -> Patchwork_13517
CI_DRM_6405: d395f3e20d154dfeabb95117f388f2e953c12ac9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5082: f7c51e6fbf8da0784b64a1edaee5266aa9b9f829 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13517: a1eedddb57a23f4e611d42d90e26748e6cc39846 @ 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_13517/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✗ Fi.CI.IGT: failure for drm/i915/ehl: Add support for DPLL4 (v10)
Quoted 30 lines · Patchwork
== Series Details ==
Series: drm/i915/ehl: Add support for DPLL4 (v10)
URL : https://patchwork.freedesktop.org/series/63171/
State : failure== Summary ==
CI Bug Log - changes from
CI_DRM_6405_full->Patchwork_13517_full
====================================================Summary
-------**FAILURE**
Serious unknown changes coming with
Patchwork_13517_fullabsolutely need to be verified manually.If you think the reported changes have nothing to do with the changes introduced in
Patchwork_13517_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.Possible new issues
-------------------Here are the unknown changes that may have been introduced in
Patchwork_13517_full:
Quoted 8 lines
### IGT changes ###
#### Possible regressions ####
* igt@gem_busy@close-race:
- shard-snb: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6405/shard-snb4/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13517/shard-snb6/igt@[email protected]
Some kind of gem fail. Nothing to do with this patch.
<4> [602.084517] general protection fault: 0000 [#1] PREEMPT SMP PTI
<4> [602.084530] CPU: 1 PID: 2824 Comm: gem_busy Tainted: G U 5.2.0-rc7-CI-Patchwork_13517+ #1
<4> [602.084542] Hardware name: Dell Inc. XPS 8300 /0Y2MRG, BIOS A06 10/17/2011 <4> [602.084611] RIP: 0010:i915_gem_busy_ioctl+0x136/0x5d0 [i915]
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 47 lines · Vivek Kasireddy
This patch adds support for DPLL4 on EHL that include the following restrictions:
- DPLL4 cannot be used with DDIA (combo port A internal eDP usage). DPLL4 can be used with other DDIs, including DDID (combo port A external usage).
- DPLL4 cannot be enabled when DC5 or DC6 are enabled.
- The DPLL4 enable, lock, power enabled, and power state are connected to the
MGPLL1_ENABLEregister.v2: (suggestions from Bob Paauwe)
- Reworkehl_get_dpll()function to callintel_find_shared_dpll()and iterate twice: once for Combo plls and once for MG plls.- Use MG pll funcs for DPLL4 instead of creating new ones and modify
mg_pll_enableto include the restrictions for EHL.v3: Fix compilation error
v4: (suggestions from Lucas and Ville)
- Treat DPLL4 as a combo phy PLL and not as MG PLL
- Disable DC states when this DPLL is being enabled
- Reuseicl_get_dpllinstead of creating a separate one for EHLv5: (suggestion from Ville)
- Refcount the DC OFF power domains during the enabling and disabling of this DPLL.v6: rebase
v7: (suggestion from Imre)
- Add a new power domain instead of iterating over the domains assoicated with DC OFF power well.v8: (Ville and Imre)
- RenamePOWER_DOMAIN_DPLL4TOPOWER_DOMAIN_DPLL_DC_OFF
- Grab a reference inintel_modeset_setup_hw_state()if this DPLL was already enabled perhaps by BIOS.
- Check for the port type instead of the encoderv9: (Ville)
- Move the block of code that grabs a reference to the power domainPOWER_DOMAIN_DPLL_DC_OFFtointel_modeset_readout_hw_state()to ensure that there is a reference present before this DPLL might get disabled.
Quoted 7 lines
v10: rebase
Cc José Roberto de Souza <[email protected]>Cc Ville Syrjälä <[email protected]>Cc Matt Roper <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Vivek Kasireddy <[email protected]>
lgtm. Picked up José's r-b from an earlier posting (in the future plese collect those yourself so they don't get lost), and pushed to dinq. Thanks for the patch.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 222 lines · Vivek Kasireddy
This patch adds support for DPLL4 on EHL that include the following restrictions:
- DPLL4 cannot be used with DDIA (combo port A internal eDP usage). DPLL4 can be used with other DDIs, including DDID (combo port A external usage).
- DPLL4 cannot be enabled when DC5 or DC6 are enabled.
- The DPLL4 enable, lock, power enabled, and power state are connected to the
MGPLL1_ENABLEregister.v2: (suggestions from Bob Paauwe)
- Reworkehl_get_dpll()function to callintel_find_shared_dpll()and iterate twice: once for Combo plls and once for MG plls.- Use MG pll funcs for DPLL4 instead of creating new ones and modify
mg_pll_enableto include the restrictions for EHL.v3: Fix compilation error
v4: (suggestions from Lucas and Ville)
- Treat DPLL4 as a combo phy PLL and not as MG PLL
- Disable DC states when this DPLL is being enabled
- Reuseicl_get_dpllinstead of creating a separate one for EHLv5: (suggestion from Ville)
- Refcount the DC OFF power domains during the enabling and disabling of this DPLL.v6: rebase
v7: (suggestion from Imre)
- Add a new power domain instead of iterating over the domains assoicated with DC OFF power well.v8: (Ville and Imre)
- RenamePOWER_DOMAIN_DPLL4TOPOWER_DOMAIN_DPLL_DC_OFF
- Grab a reference inintel_modeset_setup_hw_state()if this DPLL was already enabled perhaps by BIOS.
- Check for the port type instead of the encoderv9: (Ville)
- Move the block of code that grabs a reference to the power domainPOWER_DOMAIN_DPLL_DC_OFFtointel_modeset_readout_hw_state()to ensure that there is a reference present before this DPLL might get disabled.v10: rebase
Cc José Roberto de Souza <[email protected]>Cc Ville Syrjälä <[email protected]>Cc Matt Roper <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Vivek Kasireddy <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 7 +++ .../drm/i915/display/intel_display_power.c | 3 ++ .../drm/i915/display/intel_display_power.h | 1 + drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 47 +++++++++++++++++-- drivers/gpu/drm/i915/display/intel_dpll_mgr.h | 6 +++ 5 files changed, 60 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +7
-0@@ -16653,6 +16653,13 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev) pll->on = pll->info->funcs->get_hw_state (dev_priv, pll, &pll->state.hw_state); + +if (IS_ELKHARTLAKE (dev_priv) && pll->on && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + pll->wakeref =intel_display_power_get (dev_priv, +POWER_DOMAIN_DPLL_DC_OFF ); + } + pll->state.crtc_mask =0 ;for_each_intel_crtc (dev, crtc) { struct intel_crtc_state *crtc_state =drivers/gpu/drm/i915/display/intel_display_power.c +3
-0@@ -118,6 +118,8 @@ intel_display_power_domain_str(enum intel_display_power_domain domain)return "MODESET" ;case POWER_DOMAIN_GT_IRQ :return "GT_IRQ" ; +case POWER_DOMAIN_DPLL_DC_OFF : +return "DPLL_DC_OFF" ;default :MISSING_CASE (domain);return "?" ;@@ -2455,6 +2457,7 @@ void intel_display_power_put(struct drm_i915_private *dev_priv, ICL_PW_2_POWER_DOMAINS | \ BIT_ULL(POWER_DOMAIN_MODESET) | \ BIT_ULL(POWER_DOMAIN_AUX_A) | \ + BIT_ULL(POWER_DOMAIN_DPLL_DC_OFF) | \ BIT_ULL(POWER_DOMAIN_INIT))#define ICL_DDI_IO_A_POWER_DOMAINS ( \drivers/gpu/drm/i915/display/intel_display_power.h +1
-0@@ -59,6 +59,7 @@ enum intel_display_power_domain {POWER_DOMAIN_GMBUS ,POWER_DOMAIN_MODESET ,POWER_DOMAIN_GT_IRQ , +POWER_DOMAIN_DPLL_DC_OFF ,POWER_DOMAIN_INIT , POWER_DOMAIN_NUM,drivers/gpu/drm/i915/display/intel_dpll_mgr.c +43
-4@@ -2905,6 +2905,9 @@ static bool icl_get_combo_phy_dpll(struct intel_atomic_state *state,intel_atomic_get_new_crtc_state (state, crtc);struct icl_port_dpll *port_dpll = &crtc_state->icl_port_dplls[ICL_PORT_DPLL_DEFAULT ]; +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +enum port port = encoder->port; +bool has_dpll4 = false;if (!icl_calc_dpll_state (crtc_state, encoder, &port_dpll->hw_state)) {DRM_DEBUG_KMS ("Could not calculate combo PHY PLL state.\n" );@@ -2912,10 +2915,14 @@ static bool icl_get_combo_phy_dpll(struct intel_atomic_state *state,return false; } +if (IS_ELKHARTLAKE (dev_priv) && port !=PORT_A ) + has_dpll4 = true; + port_dpll->pll =intel_find_shared_dpll (state, crtc, &port_dpll->hw_state,DPLL_ID_ICL_DPLL0 , -DPLL_ID_ICL_DPLL1 ); + has_dpll4 ?DPLL_ID_EHL_DPLL4 + :DPLL_ID_ICL_DPLL1 );if (!port_dpll->pll) {DRM_DEBUG_KMS ("No combo PHY PLL found for port %c\n" ,port_name (encoder->port));@@ -3119,8 +3126,14 @@ static bool combo_pll_get_hw_state(struct drm_i915_private *dev_priv,struct intel_shared_dpll *pll, struct intel_dpll_hw_state *hw_state) { - return icl_pll_get_hw_state(dev_priv, pll, hw_state, - CNL_DPLL_ENABLE(pll->info->id)); + i915_reg_t enable_reg = CNL_DPLL_ENABLE(pll->info->id); + +if (IS_ELKHARTLAKE (dev_priv) && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + enable_reg =MG_PLL_ENABLE (0 ); + } + +return icl_pll_get_hw_state (dev_priv, pll, hw_state, enable_reg); } static bool tbt_pll_get_hw_state(struct drm_i915_private *dev_priv,@@ -3231,6 +3244,19 @@ static void combo_pll_enable(struct drm_i915_private *dev_priv, {i915_reg_t enable_reg =CNL_DPLL_ENABLE (pll->info->id); +if (IS_ELKHARTLAKE (dev_priv) && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + enable_reg =MG_PLL_ENABLE (0 ); + +/* +* We need to disable DC states when this DPLL is enabled. +* This can be done by taking a reference on DPLL4 power +* domain. +*/ + pll->wakeref =intel_display_power_get (dev_priv, +POWER_DOMAIN_DPLL_DC_OFF ); + } +icl_pll_power_enable (dev_priv, pll, enable_reg);icl_dpll_write (dev_priv, pll);@@ -3326,7 +3352,19 @@ static void icl_pll_disable(struct drm_i915_private *dev_priv,static void combo_pll_disable (struct drm_i915_private *dev_priv,struct intel_shared_dpll *pll) { -icl_pll_disable (dev_priv, pll,CNL_DPLL_ENABLE (pll->info->id)); +i915_reg_t enable_reg =CNL_DPLL_ENABLE (pll->info->id); + +if (IS_ELKHARTLAKE (dev_priv) && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + enable_reg =MG_PLL_ENABLE (0 ); +icl_pll_disable (dev_priv, pll, enable_reg); + +intel_display_power_put (dev_priv,POWER_DOMAIN_DPLL_DC_OFF , + pll->wakeref); +return ; + } + +icl_pll_disable (dev_priv, pll, enable_reg); } static void tbt_pll_disable(struct drm_i915_private *dev_priv,@@ -3406,6 +3444,7 @@ static const struct intel_dpll_mgr icl_pll_mgr = {static const struct dpll_info ehl_plls[] = { {"DPLL 0" , &combo_pll_funcs,DPLL_ID_ICL_DPLL0 ,0 }, {"DPLL 1" , &combo_pll_funcs,DPLL_ID_ICL_DPLL1 ,0 }, + {"DPLL 4" , &combo_pll_funcs,DPLL_ID_EHL_DPLL4 ,0 }, { }, };drivers/gpu/drm/i915/display/intel_dpll_mgr.h +1
-0@@ -28,6 +28,7 @@#include <linux/types.h> #include "intel_display.h" +#include "intel_wakeref.h" /*FIXME: Move this to a more appropriate place. */ #define abs_diff (a, b) ({ \
drivers/gpu/drm/i915/display/intel_dpll_mgr.h enum intel_dpll_id { · line 125
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_dpll_mgr.h +4
-0@@ -118,6 +119,10 @@ enum intel_dpll_id {* @DPLL_ID_ICL_DPLL1: ICL combo PHY DPLL1 */ DPLL_ID_ICL_DPLL1 =1 , +/** +* @DPLL_ID_EHL_DPLL4: EHL combo PHY DPLL4 +*/ + DPLL_ID_EHL_DPLL4 = 2,
While looking at the TGL stuff I noticed that this ID seems to be wrong. We use this to generate the register offsets but the docs show the following:
DPLL0_CFGCR0 0x164000DPLL1_CFGCR0 0x164080TBTPLL_CFGCR0 0x164100DPLL4_CFGCR0 0x164200
So the DPLL4 accesses will now land on TBTPLL. The ID if DPLL4 should really be 4 I guess.
Quoted 13 lines
drivers/gpu/drm/i915/display/intel_dpll_mgr.h +1
-0/** * @DPLL_ID_ICL_TBTPLL: ICL TBT PLL */ @@ -320,6 +325,7 @@ struct intel_shared_dpll {* @info: platform specific info */ const struct dpll_info *info; +intel_wakeref_t wakeref; };#define SKL_DPLL0 0Signature · 1 line
2.21.0
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
On Wed, 10 Jul 2019 21:47:52 +0300
Ville Syrjälä <[email protected]> wrote:
Hi Ville,
Quoted 248 lines · Vivek Kasireddy
Quoted 235 lines
This patch adds support for DPLL4 on EHL that include the following restrictions:
- DPLL4 cannot be used with DDIA (combo port A internal eDP usage). DPLL4 can be used with other DDIs, including DDID (combo port A external usage).
- DPLL4 cannot be enabled when DC5 or DC6 are enabled.
- The DPLL4 enable, lock, power enabled, and power state are connected to the
MGPLL1_ENABLEregister.v2: (suggestions from Bob Paauwe)
- Reworkehl_get_dpll()function to callintel_find_shared_dpll()and iterate twice: once for Combo plls and once for MG plls.- Use MG pll funcs for DPLL4 instead of creating new ones and modify
mg_pll_enableto include the restrictions for EHL.v3: Fix compilation error
v4: (suggestions from Lucas and Ville)
- Treat DPLL4 as a combo phy PLL and not as MG PLL
- Disable DC states when this DPLL is being enabled
- Reuseicl_get_dpllinstead of creating a separate one for EHLv5: (suggestion from Ville)
- Refcount the DC OFF power domains during the enabling and disabling of this DPLL.v6: rebase
v7: (suggestion from Imre)
- Add a new power domain instead of iterating over the domains assoicated with DC OFF power well.v8: (Ville and Imre)
- RenamePOWER_DOMAIN_DPLL4TOPOWER_DOMAIN_DPLL_DC_OFF
- Grab a reference inintel_modeset_setup_hw_state()if this DPLL was already enabled perhaps by BIOS.
- Check for the port type instead of the encoderv9: (Ville)
- Move the block of code that grabs a reference to the power domainPOWER_DOMAIN_DPLL_DC_OFFtointel_modeset_readout_hw_state()to
ensure that there is a reference present before this DPLL might get disabled.v10: rebase
Cc José Roberto de Souza <[email protected]>Cc Ville Syrjälä <[email protected]>Cc Matt Roper <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Vivek Kasireddy <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 7 +++ .../drm/i915/display/intel_display_power.c | 3 ++ .../drm/i915/display/intel_display_power.h | 1 + drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 47+++++++++++++++++--
drivers/gpu/drm/i915/display/intel_dpll_mgr.h| 6 +++ 5 files changed, 60 insertions(+), 4 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_display.cindex 919f5ac844c8..557462208462 100644 ---a/drivers/gpu/drm/i915/display/intel_display.c+++b/drivers/gpu/drm/i915/display/intel_display.c@@ -16653,6 +16653,13 @@ static voidintel_modeset_readout_hw_state(struct drm_device *dev)pll->on=pll->info->funcs->get_hw_state(dev_priv, pll, &pll->state.hw_state);drivers/gpu/drm/i915/display/intel_display.c +4
-0+ +if (IS_ELKHARTLAKE (dev_priv) && pll->on && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + pll->wakeref =intel_display_power_get(dev_priv,
+POWER_DOMAIN_DPLL_DC_OFF);drivers/gpu/drm/i915/display/intel_display.c +2
-0+ } + pll->state.crtc_mask =0 ;for_each_intel_crtc (dev, crtc) { struct intel_crtc_state *crtc_state =(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_display_power.cindexc19b958461ca..7437fc71d289100644 ---a/drivers/gpu/drm/i915/display/intel_display_power.c+++b/drivers/gpu/drm/i915/display/intel_display_power.c@@ -118,6 +118,8 @@intel_display_power_domain_str(enum intel_display_power_domain domain)return "MODESET"; casePOWER_DOMAIN_GT_IRQ: return "GT_IRQ";drivers/gpu/drm/i915/display/intel_display_power.c +2
-0+case POWER_DOMAIN_DPLL_DC_OFF : +return "DPLL_DC_OFF" ;default :MISSING_CASE (domain);return "?" ;@@ -2455,6 +2457,7 @@ void intel_display_power_put(struct
drm_i915_private*dev_priv,ICL_PW_2_POWER_DOMAINS| \ BIT_ULL(POWER_DOMAIN_MODESET) | \ BIT_ULL(POWER_DOMAIN_AUX_A) | \(quoted diff) +1
-0+ BIT_ULL(POWER_DOMAIN_DPLL_DC_OFF) |\
BIT_ULL(POWER_DOMAIN_INIT))#define
ICL_DDI_IO_A_POWER_DOMAINS( \(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_display_power.hindexff57b0a7fe59..8f43f7051a16100644 ---a/drivers/gpu/drm/i915/display/intel_display_power.h+++b/drivers/gpu/drm/i915/display/intel_display_power.h@@ -59,6 +59,7 @@ enumintel_display_power_domain{POWER_DOMAIN_GMBUS,drivers/gpu/drm/i915/display/intel_display_power.h +1
-0POWER_DOMAIN_MODESET ,POWER_DOMAIN_GT_IRQ , +POWER_DOMAIN_DPLL_DC_OFF ,POWER_DOMAIN_INIT , POWER_DOMAIN_NUM,(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_dpll_mgr.cindexf953971e7c3b..67cfe836286e100644 ---a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c+++b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c@@ -2905,6 +2905,9 @@ static bool icl_get_combo_phy_dpll(structintel_atomic_state*state,intel_atomic_get_new_crtc_state(state, crtc); structicl_port_dpll*port_dpll= &crtc_state->icl_port_dplls[ICL_PORT_DPLL_DEFAULT];(quoted diff) +1
-0+ struct drm_i915_private *dev_priv =
to_i915(crtc->base.dev);drivers/gpu/drm/i915/display/intel_dpll_mgr.c +2
-0+enum port port = encoder->port; +bool has_dpll4 = false; if (!icl_calc_dpll_state(crtc_state, encoder,
&port_dpll->hw_state)) {DRM_DEBUG_KMS("Could not calculate combo PHY PLL state.\n"); @@ -2912,10 +2915,14 @@ static bool icl_get_combo_phy_dpll(structintel_atomic_state*state, return false; }drivers/gpu/drm/i915/display/intel_dpll_mgr.c +4
-1+if (IS_ELKHARTLAKE (dev_priv) && port !=PORT_A ) + has_dpll4 = true; + port_dpll->pll = intel_find_shared_dpll(state, crtc, &port_dpll->hw_state, DPLL_ID_ICL_DPLL0, -DPLL_ID_ICL_DPLL1 ); + has_dpll4 ?
DPLL_ID_EHL_DPLL4(quoted diff) +1
-0+ :
DPLL_ID_ICL_DPLL1); if (!port_dpll->pll) {
DRM_DEBUG_KMS("No combo PHY PLL found for port
%c\n",port_name(encoder->port));drivers/gpu/drm/i915/display/intel_dpll_mgr.c +8
-2@@ -3119,8 +3126,14 @@ static bool combo_pll_get_hw_state(struct drm_i915_private *dev_priv, struct intel_shared_dpll *pll, struct intel_dpll_hw_state *hw_state) { - return icl_pll_get_hw_state(dev_priv, pll, hw_state, - CNL_DPLL_ENABLE(pll->info->id)); +i915_reg_t enable_reg =CNL_DPLL_ENABLE (pll->info->id); + +if (IS_ELKHARTLAKE (dev_priv) && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + enable_reg =MG_PLL_ENABLE (0 ); + } + +return icl_pll_get_hw_state (dev_priv, pll, hw_state, enable_reg); }static bool tbt_pll_get_hw_state(struct
drm_i915_private*dev_priv,drivers/gpu/drm/i915/display/intel_dpll_mgr.c +6
-0@@ -3231,6 +3244,19 @@ static void combo_pll_enable(struct drm_i915_private *dev_priv, {i915_reg_t enable_reg =CNL_DPLL_ENABLE (pll->info->id); +if (IS_ELKHARTLAKE (dev_priv) && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + enable_reg =MG_PLL_ENABLE (0 ); + +/* +* We need to disable DC states when this DPLL is enabled.
(quoted diff) +1
-0+ * This can be done by taking a reference on DPLL4power
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +4
-0+* domain. +*/ + pll->wakeref = intel_display_power_get(dev_priv, +
POWER_DOMAIN_DPLL_DC_OFF);drivers/gpu/drm/i915/display/intel_dpll_mgr.c +2
-0+ } +icl_pll_power_enable (dev_priv, pll, enable_reg);icl_dpll_write (dev_priv, pll);@@ -3326,7 +3352,19 @@ static void icl_pll_disable(struct
drm_i915_private*dev_priv, static voidcombo_pll_disable(struct drm_i915_private *dev_priv, struct intel_shared_dpll *pll)
{(quoted diff) +0
-1- icl_pll_disable(dev_priv, pll,
CNL_DPLL_ENABLE(pll->info->id));drivers/gpu/drm/i915/display/intel_dpll_mgr.c +8
-0+i915_reg_t enable_reg =CNL_DPLL_ENABLE (pll->info->id); + +if (IS_ELKHARTLAKE (dev_priv) && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + enable_reg =MG_PLL_ENABLE (0 ); +icl_pll_disable (dev_priv, pll, enable_reg); + + intel_display_power_put(dev_priv,
POWER_DOMAIN_DPLL_DC_OFF,drivers/gpu/drm/i915/display/intel_dpll_mgr.c +6
-0+ pll->wakeref); +return ; + } + +icl_pll_disable (dev_priv, pll, enable_reg); } static void tbt_pll_disable(struct drm_i915_private *dev_priv,@@ -3406,6 +3444,7 @@ static const struct intel_dpll_mgr icl_pll_mgr = { static const struct dpll_info ehl_plls[] = { {"DPLL 0" , &combo_pll_funcs,DPLL_ID_ICL_DPLL0 ,0 }, {"DPLL 1" , &combo_pll_funcs,DPLL_ID_ICL_DPLL1 ,0 }, + {"DPLL 4" , &combo_pll_funcs,DPLL_ID_EHL_DPLL4 ,0 }, { }, };(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_dpll_mgr.hindex1668f8116908..4c2c5e93aff3100644 ---a/drivers/gpu/drm/i915/display/intel_dpll_mgr.h+++b/drivers/gpu/drm/i915/display/intel_dpll_mgr.h@@ -28,6 +28,7 @@
#include <linux/types.h>#include "
intel_display.h"drivers/gpu/drm/i915/display/intel_dpll_mgr.h +1
-0+#include "intel_wakeref.h" /*FIXME: Move this to a more appropriate place. */ #define abs_diff (a, b) ({ \drivers/gpu/drm/i915/display/intel_dpll_mgr.h enum intel_dpll_id { · line 125
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_dpll_mgr.h +4
-0@@ -118,6 +119,10 @@ enum intel_dpll_id {* @DPLL_ID_ICL_DPLL1: ICL combo PHY DPLL1 */ DPLL_ID_ICL_DPLL1 =1 , +/** +* @DPLL_ID_EHL_DPLL4: EHL combo PHY DPLL4 +*/ + DPLL_ID_EHL_DPLL4 = 2,While looking at the TGL stuff I noticed that this ID seems to be wrong. We use this to generate the register offsets but the docs show the following:
Quoted 7 lines
DPLL0_CFGCR00x164000DPLL1_CFGCR00x164080TBTPLL_CFGCR00x164100DPLL4_CFGCR00x164200So the DPLL4 accesses will now land on TBTPLL. The ID if DPLL4 should really be 4 I guess.
Yes, looks like it should be 4 indeed. However, I was wondering what is the best way to address this issue. Simply changing the id to 4 isn't going to work as there are many places in intel_dpll_mgr.c that assume the dpll id to be the index in the dev_priv->shared_dplls array as stated in the definition of dpll_info:
/**
* @id: unique indentifier for this DPLL; should match the
index in the
* dev_priv->shared_dplls array
*/
enum intel_dpll_id id;Should I change all these places that make this assumption and fix them? Or, should I just simply add an if condition around cr0 and cr1 accesses in icl_dpll_write and icl_pll_get_hw_state?
Thanks,
Vivek
Quoted 11 lines
Quoted 11 lines
drivers/gpu/drm/i915/display/intel_dpll_mgr.h +1
-0/** * @DPLL_ID_ICL_TBTPLL: ICL TBT PLL */ @@ -320,6 +325,7 @@ struct intel_shared_dpll {* @info: platform specific info */ const struct dpll_info *info; +intel_wakeref_t wakeref; };
Quoted 4 lines
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_dpll_mgr.h +0
-0#define SKL_DPLL0 0Signature · 1 line
2.21.0
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 267 lines · Vivek Kasireddy
On Wed, 10 Jul 2019 21:47:52 +0300
Ville Syrjälä <[email protected]> wrote:
Hi Ville,Quoted 248 lines · Vivek Kasireddy
Quoted 235 lines
This patch adds support for DPLL4 on EHL that include the following restrictions:
- DPLL4 cannot be used with DDIA (combo port A internal eDP usage). DPLL4 can be used with other DDIs, including DDID (combo port A external usage).
- DPLL4 cannot be enabled when DC5 or DC6 are enabled.
- The DPLL4 enable, lock, power enabled, and power state are connected to the
MGPLL1_ENABLEregister.v2: (suggestions from Bob Paauwe)
- Reworkehl_get_dpll()function to callintel_find_shared_dpll()and iterate twice: once for Combo plls and once for MG plls.- Use MG pll funcs for DPLL4 instead of creating new ones and modify
mg_pll_enableto include the restrictions for EHL.v3: Fix compilation error
v4: (suggestions from Lucas and Ville)
- Treat DPLL4 as a combo phy PLL and not as MG PLL
- Disable DC states when this DPLL is being enabled
- Reuseicl_get_dpllinstead of creating a separate one for EHLv5: (suggestion from Ville)
- Refcount the DC OFF power domains during the enabling and disabling of this DPLL.v6: rebase
v7: (suggestion from Imre)
- Add a new power domain instead of iterating over the domains assoicated with DC OFF power well.v8: (Ville and Imre)
- RenamePOWER_DOMAIN_DPLL4TOPOWER_DOMAIN_DPLL_DC_OFF
- Grab a reference inintel_modeset_setup_hw_state()if this DPLL was already enabled perhaps by BIOS.
- Check for the port type instead of the encoderv9: (Ville)
- Move the block of code that grabs a reference to the power domainPOWER_DOMAIN_DPLL_DC_OFFtointel_modeset_readout_hw_state()to
ensure that there is a reference present before this DPLL might get disabled.v10: rebase
Cc José Roberto de Souza <[email protected]>Cc Ville Syrjälä <[email protected]>Cc Matt Roper <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Vivek Kasireddy <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 7 +++ .../drm/i915/display/intel_display_power.c | 3 ++ .../drm/i915/display/intel_display_power.h | 1 + drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 47+++++++++++++++++--
drivers/gpu/drm/i915/display/intel_dpll_mgr.h| 6 +++ 5 files changed, 60 insertions(+), 4 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_display.cindex 919f5ac844c8..557462208462 100644 ---a/drivers/gpu/drm/i915/display/intel_display.c+++b/drivers/gpu/drm/i915/display/intel_display.c@@ -16653,6 +16653,13 @@ static voidintel_modeset_readout_hw_state(struct drm_device *dev)pll->on=pll->info->funcs->get_hw_state(dev_priv, pll, &pll->state.hw_state);drivers/gpu/drm/i915/display/intel_display.c +4
-0+ +if (IS_ELKHARTLAKE (dev_priv) && pll->on && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + pll->wakeref =intel_display_power_get(dev_priv,
+POWER_DOMAIN_DPLL_DC_OFF);drivers/gpu/drm/i915/display/intel_display.c +2
-0+ } + pll->state.crtc_mask =0 ;for_each_intel_crtc (dev, crtc) { struct intel_crtc_state *crtc_state =(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_display_power.cindexc19b958461ca..7437fc71d289100644 ---a/drivers/gpu/drm/i915/display/intel_display_power.c+++b/drivers/gpu/drm/i915/display/intel_display_power.c@@ -118,6 +118,8 @@intel_display_power_domain_str(enum intel_display_power_domain domain)return "MODESET"; casePOWER_DOMAIN_GT_IRQ: return "GT_IRQ";drivers/gpu/drm/i915/display/intel_display_power.c +2
-0+case POWER_DOMAIN_DPLL_DC_OFF : +return "DPLL_DC_OFF" ;default :MISSING_CASE (domain);return "?" ;@@ -2455,6 +2457,7 @@ void intel_display_power_put(struct
drm_i915_private*dev_priv,ICL_PW_2_POWER_DOMAINS| \ BIT_ULL(POWER_DOMAIN_MODESET) | \ BIT_ULL(POWER_DOMAIN_AUX_A) | \(quoted diff) +1
-0+ BIT_ULL(POWER_DOMAIN_DPLL_DC_OFF) |\
BIT_ULL(POWER_DOMAIN_INIT))#define
ICL_DDI_IO_A_POWER_DOMAINS( \(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_display_power.hindexff57b0a7fe59..8f43f7051a16100644 ---a/drivers/gpu/drm/i915/display/intel_display_power.h+++b/drivers/gpu/drm/i915/display/intel_display_power.h@@ -59,6 +59,7 @@ enumintel_display_power_domain{POWER_DOMAIN_GMBUS,drivers/gpu/drm/i915/display/intel_display_power.h +1
-0POWER_DOMAIN_MODESET ,POWER_DOMAIN_GT_IRQ , +POWER_DOMAIN_DPLL_DC_OFF ,POWER_DOMAIN_INIT , POWER_DOMAIN_NUM,(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_dpll_mgr.cindexf953971e7c3b..67cfe836286e100644 ---a/drivers/gpu/drm/i915/display/intel_dpll_mgr.c+++b/drivers/gpu/drm/i915/display/intel_dpll_mgr.c@@ -2905,6 +2905,9 @@ static bool icl_get_combo_phy_dpll(structintel_atomic_state*state,intel_atomic_get_new_crtc_state(state, crtc); structicl_port_dpll*port_dpll= &crtc_state->icl_port_dplls[ICL_PORT_DPLL_DEFAULT];(quoted diff) +1
-0+ struct drm_i915_private *dev_priv =
to_i915(crtc->base.dev);drivers/gpu/drm/i915/display/intel_dpll_mgr.c +2
-0+enum port port = encoder->port; +bool has_dpll4 = false; if (!icl_calc_dpll_state(crtc_state, encoder,
&port_dpll->hw_state)) {DRM_DEBUG_KMS("Could not calculate combo PHY PLL state.\n"); @@ -2912,10 +2915,14 @@ static bool icl_get_combo_phy_dpll(structintel_atomic_state*state, return false; }drivers/gpu/drm/i915/display/intel_dpll_mgr.c +4
-1+if (IS_ELKHARTLAKE (dev_priv) && port !=PORT_A ) + has_dpll4 = true; + port_dpll->pll = intel_find_shared_dpll(state, crtc, &port_dpll->hw_state, DPLL_ID_ICL_DPLL0, -DPLL_ID_ICL_DPLL1 ); + has_dpll4 ?
DPLL_ID_EHL_DPLL4(quoted diff) +1
-0+ :
DPLL_ID_ICL_DPLL1); if (!port_dpll->pll) {
DRM_DEBUG_KMS("No combo PHY PLL found for port
%c\n",port_name(encoder->port));drivers/gpu/drm/i915/display/intel_dpll_mgr.c +8
-2@@ -3119,8 +3126,14 @@ static bool combo_pll_get_hw_state(struct drm_i915_private *dev_priv, struct intel_shared_dpll *pll, struct intel_dpll_hw_state *hw_state) { - return icl_pll_get_hw_state(dev_priv, pll, hw_state, - CNL_DPLL_ENABLE(pll->info->id)); +i915_reg_t enable_reg =CNL_DPLL_ENABLE (pll->info->id); + +if (IS_ELKHARTLAKE (dev_priv) && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + enable_reg =MG_PLL_ENABLE (0 ); + } + +return icl_pll_get_hw_state (dev_priv, pll, hw_state, enable_reg); }static bool tbt_pll_get_hw_state(struct
drm_i915_private*dev_priv,drivers/gpu/drm/i915/display/intel_dpll_mgr.c +6
-0@@ -3231,6 +3244,19 @@ static void combo_pll_enable(struct drm_i915_private *dev_priv, {i915_reg_t enable_reg =CNL_DPLL_ENABLE (pll->info->id); +if (IS_ELKHARTLAKE (dev_priv) && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + enable_reg =MG_PLL_ENABLE (0 ); + +/* +* We need to disable DC states when this DPLL is enabled.
(quoted diff) +1
-0+ * This can be done by taking a reference on DPLL4power
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +4
-0+* domain. +*/ + pll->wakeref = intel_display_power_get(dev_priv, +
POWER_DOMAIN_DPLL_DC_OFF);drivers/gpu/drm/i915/display/intel_dpll_mgr.c +2
-0+ } +icl_pll_power_enable (dev_priv, pll, enable_reg);icl_dpll_write (dev_priv, pll);@@ -3326,7 +3352,19 @@ static void icl_pll_disable(struct
drm_i915_private*dev_priv, static voidcombo_pll_disable(struct drm_i915_private *dev_priv, struct intel_shared_dpll *pll)
{(quoted diff) +0
-1- icl_pll_disable(dev_priv, pll,
CNL_DPLL_ENABLE(pll->info->id));drivers/gpu/drm/i915/display/intel_dpll_mgr.c +8
-0+i915_reg_t enable_reg =CNL_DPLL_ENABLE (pll->info->id); + +if (IS_ELKHARTLAKE (dev_priv) && + pll->info->id ==DPLL_ID_EHL_DPLL4 ) { + enable_reg =MG_PLL_ENABLE (0 ); +icl_pll_disable (dev_priv, pll, enable_reg); + + intel_display_power_put(dev_priv,
POWER_DOMAIN_DPLL_DC_OFF,drivers/gpu/drm/i915/display/intel_dpll_mgr.c +6
-0+ pll->wakeref); +return ; + } + +icl_pll_disable (dev_priv, pll, enable_reg); } static void tbt_pll_disable(struct drm_i915_private *dev_priv,@@ -3406,6 +3444,7 @@ static const struct intel_dpll_mgr icl_pll_mgr = { static const struct dpll_info ehl_plls[] = { {"DPLL 0" , &combo_pll_funcs,DPLL_ID_ICL_DPLL0 ,0 }, {"DPLL 1" , &combo_pll_funcs,DPLL_ID_ICL_DPLL1 ,0 }, + {"DPLL 4" , &combo_pll_funcs,DPLL_ID_EHL_DPLL4 ,0 }, { }, };(quoted diff) +0
-0
b/drivers/gpu/drm/i915/display/intel_dpll_mgr.hindex1668f8116908..4c2c5e93aff3100644 ---a/drivers/gpu/drm/i915/display/intel_dpll_mgr.h+++b/drivers/gpu/drm/i915/display/intel_dpll_mgr.h@@ -28,6 +28,7 @@
#include <linux/types.h>#include "
intel_display.h"drivers/gpu/drm/i915/display/intel_dpll_mgr.h +1
-0+#include "intel_wakeref.h" /*FIXME: Move this to a more appropriate place. */ #define abs_diff (a, b) ({ \drivers/gpu/drm/i915/display/intel_dpll_mgr.h enum intel_dpll_id { · line 125
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_dpll_mgr.h +4
-0@@ -118,6 +119,10 @@ enum intel_dpll_id {* @DPLL_ID_ICL_DPLL1: ICL combo PHY DPLL1 */ DPLL_ID_ICL_DPLL1 =1 , +/** +* @DPLL_ID_EHL_DPLL4: EHL combo PHY DPLL4 +*/ + DPLL_ID_EHL_DPLL4 = 2,While looking at the TGL stuff I noticed that this ID seems to be wrong. We use this to generate the register offsets but the docs show the following:
Quoted 7 lines
DPLL0_CFGCR00x164000DPLL1_CFGCR00x164080TBTPLL_CFGCR00x164100DPLL4_CFGCR00x164200So the DPLL4 accesses will now land on TBTPLL. The ID if DPLL4 should really be 4 I guess.
Yes, looks like it should be 4 indeed. However, I was wondering what is the best way to address this issue. Simply changing the id to 4 isn't going to work as there are many places in
intel_dpll_mgr.cthat assume the dpll id to be the index in thedev_priv->shared_dpllsarray as stated in the definition ofdpll_info:
/**
* @id: unique indentifier for this DPLL; should match the
index in the
Quoted 3 lines
* dev_priv->shared_dplls array
*/
enum intel_dpll_id id;Ugh. That's a bit unfortunate. I guess it would be nice to abstrace that away and either allow the array(s) to be sparsely populated, or decouple the index from the id.
Quoted 4 lines
Should I change all these places that make this assumption and fix them? Or, should I just simply add an if condition around cr0 and cr1 accesses in
icl_dpll_writeandicl_pll_get_hw_state?
I guess we can go with the simple solution as a quick fix.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 drm/i915/ehl: Use an id of 4 while accessing DPLL4's CR0 and CR1
In reply to Ville SyrjäläAlthough, DPLL4 enable and disable is associated with MGPLL1_ENABLE register, we can use ICL_DPLL_CFGCR0/CR1 macros to access this dpll's CR0 and CR1 registers by passing an id of 4 to these macros.
--- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +14 -4
@@ -3127,8 +3127,13 @@ static bool icl_pll_get_hw_state(struct drm_i915_private *dev_priv, hw_state->cfgcr0 =I915_READ (TGL_DPLL_CFGCR0 (id)); hw_state->cfgcr1 =I915_READ (TGL_DPLL_CFGCR1 (id)); }else { - hw_state->cfgcr0 =I915_READ (ICL_DPLL_CFGCR0 (id)); - hw_state->cfgcr1 =I915_READ (ICL_DPLL_CFGCR1 (id)); +if (IS_ELKHARTLAKE (dev_priv) && id ==DPLL_ID_EHL_DPLL4 ) { + hw_state->cfgcr0 =I915_READ (ICL_DPLL_CFGCR0 (4 )); + hw_state->cfgcr1 =I915_READ (ICL_DPLL_CFGCR1 (4 )); + }else { + hw_state->cfgcr0 =I915_READ (ICL_DPLL_CFGCR0 (id)); + hw_state->cfgcr1 =I915_READ (ICL_DPLL_CFGCR1 (id)); + } } ret = true;
@@ -3169,8 +3174,13 @@ static void icl_dpll_write(struct drm_i915_private *dev_priv, cfgcr0_reg =TGL_DPLL_CFGCR0 (id); cfgcr1_reg =TGL_DPLL_CFGCR1 (id); }else { - cfgcr0_reg =ICL_DPLL_CFGCR0 (id); - cfgcr1_reg =ICL_DPLL_CFGCR1 (id); +if (IS_ELKHARTLAKE (dev_priv) && id ==DPLL_ID_EHL_DPLL4 ) { + cfgcr0_reg =ICL_DPLL_CFGCR0 (4 ); + cfgcr1_reg =ICL_DPLL_CFGCR1 (4 ); + }else { + cfgcr0_reg =ICL_DPLL_CFGCR0 (id); + cfgcr1_reg =ICL_DPLL_CFGCR1 (id); + } }I915_WRITE (cfgcr0_reg, hw_state->cfgcr0);
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Ville Syrjälä
AppliedRe: [PATCH] drm/i915/ehl: Use an id of 4 while accessing DPLL4's CR0 and CR1
Quoted 37 lines · Vivek Kasireddy
Although, DPLL4 enable and disable is associated with
MGPLL1_ENABLEregister, we can use ICL_DPLL_CFGCR0/CR1 macros to access this dpll's CR0 and CR1 registers by passing an id of 4 to these macros.Reported-by Ville Syrjälä <[email protected]>Cc Ville Syrjälä <[email protected]>Cc José Roberto de Souza <[email protected]>Cc Matt Roper <[email protected]>Cc Imre Deak <[email protected]>Signed-off-by Vivek Kasireddy <[email protected]>--- drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_dpll_mgr.c +7
-2@@ -3127,8 +3127,13 @@ static bool icl_pll_get_hw_state(struct drm_i915_private *dev_priv, hw_state->cfgcr0 =I915_READ (TGL_DPLL_CFGCR0 (id)); hw_state->cfgcr1 =I915_READ (TGL_DPLL_CFGCR1 (id)); }else { - hw_state->cfgcr0 =I915_READ (ICL_DPLL_CFGCR0 (id)); - hw_state->cfgcr1 =I915_READ (ICL_DPLL_CFGCR1 (id)); +if (IS_ELKHARTLAKE (dev_priv) && id ==DPLL_ID_EHL_DPLL4 ) { + hw_state->cfgcr0 =I915_READ (ICL_DPLL_CFGCR0 (4 )); + hw_state->cfgcr1 =I915_READ (ICL_DPLL_CFGCR1 (4 )); + }else { + hw_state->cfgcr0 =I915_READ (ICL_DPLL_CFGCR0 (id)); + hw_state->cfgcr1 =I915_READ (ICL_DPLL_CFGCR1 (id)); + } } ret = true;@@ -3169,8 +3174,13 @@ static void icl_dpll_write(struct drm_i915_private *dev_priv, cfgcr0_reg =TGL_DPLL_CFGCR0 (id); cfgcr1_reg =TGL_DPLL_CFGCR1 (id);
drivers/gpu/drm/i915/display/intel_dpll_mgr.c static void icl_dpll_write(struct drm_i915_private *dev_priv, · line 3183
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +7
-2}else { - cfgcr0_reg =ICL_DPLL_CFGCR0 (id); - cfgcr1_reg =ICL_DPLL_CFGCR1 (id); +if (IS_ELKHARTLAKE (dev_priv) && id ==DPLL_ID_EHL_DPLL4 ) { + cfgcr0_reg =ICL_DPLL_CFGCR0 (4 ); + cfgcr1_reg =ICL_DPLL_CFGCR1 (4 ); + }else { + cfgcr0_reg =ICL_DPLL_CFGCR0 (id); + cfgcr1_reg =ICL_DPLL_CFGCR1 (id); + }
I was a bit worried this would also affect other parts of the code, but at least ICL_DPCLKA_CFGCR0_DDI_CLK_SEL() seems to do the right thing with the id==2, and I couldn't immediately spot other issues.
Also surprising that ci didn't get confused by the fact that this was posted as a reply to another series. Generally you should avoid replying with anything except direct replacements for the original patches in the series.
Pushed to dinq. Thanks for the patch.
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_dpll_mgr.c +0
-0}I915_WRITE (cfgcr0_reg, hw_state->cfgcr0);Signature · 1 line
2.21.0
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/ehl: Add support for DPLL4 (v10) (rev2)
In reply to Vivek Kasireddy== Series Details ==
== Series Details ==
Series: drm/i915/ehl: Add support for DPLL4 (v10) (rev2)
URL : https://patchwork.freedesktop.org/series/63171/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6495 -> Patchwork_13667
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/
Known issues
------------
Here are the changes found in Patchwork_13667 that come from known issues:
### IGT changes ###
#### Possible fixes ####
* igt@i915_module_load@reload-with-fault-injection:
- {fi-icl-u4}: [DMESG-WARN][1] ([fdo#105602] / [fdo#106107] / [fdo#106350]) -> [PASS][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/fi-icl-u4/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/fi-icl-u4/igt@[email protected]
* igt@i915_selftest@live_hangcheck:
- fi-icl-u2: [INCOMPLETE][3] ([fdo#107713] / [fdo#108569]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/fi-icl-u2/igt@i915_selftest@live_hangcheck.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/fi-icl-u2/igt@i915_selftest@live_hangcheck.html
* igt@kms_psr@sprite_plane_onoff:
- {fi-icl-u4}: [DMESG-WARN][5] ([fdo#105602]) -> [PASS][6] +30 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/fi-icl-u4/igt@kms_psr@sprite_plane_onoff.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/fi-icl-u4/igt@kms_psr@sprite_plane_onoff.html
* igt@prime_vgem@basic-fence-flip:
- fi-ilk-650: [DMESG-WARN][7] ([fdo#106387]) -> [PASS][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/fi-ilk-650/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/fi-ilk-650/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#102505]: https://bugs.freedesktop.org/show_bug.cgi?id=102505
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107
[fdo#106350]: https://bugs.freedesktop.org/show_bug.cgi?id=106350
[fdo#106387]: https://bugs.freedesktop.org/show_bug.cgi?id=106387
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045
[fdo#111046 ]: https://bugs.freedesktop.org/show_bug.cgi?id=111046
[fdo#111049]: https://bugs.freedesktop.org/show_bug.cgi?id=111049
Participating hosts (54 -> 47)
------------------------------
Additional (1): fi-icl-dsi
Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_6495 -> Patchwork_13667
CI_DRM_6495: b782c53ecfa06fdbe9b310dca3f0d477fc833496 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5100: 0ea68a1efbfcc4961f2f816ab59e4ad8136c6250 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13667: 8c1db3015d5380d54d1711f54325e7978cb4bf30 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
8c1db3015d53 drm/i915/ehl: Use an id of 4 while accessing DPLL4's CR0 and CR1
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915/ehl: Add support for DPLL4 (v10) (rev2)
In reply to Vivek Kasireddy== Series Details ==
== Series Details ==
Series: drm/i915/ehl: Add support for DPLL4 (v10) (rev2)
URL : https://patchwork.freedesktop.org/series/63171/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6495_full -> Patchwork_13667_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_13667_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_isolation@vecs0-s3:
- shard-apl: [PASS][1] -> [DMESG-WARN][2] ([fdo#108566]) +2 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-apl3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-apl7/igt@[email protected]
* igt@gem_tiled_swapping@non-threaded:
- shard-kbl: [PASS][3] -> [DMESG-WARN][4] ([fdo#108686])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-kbl6/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-kbl7/igt@[email protected]
* igt@i915_pm_rpm@system-suspend:
- shard-skl: [PASS][5] -> [INCOMPLETE][6] ([fdo#104108] / [fdo#107807])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-skl4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-skl10/igt@[email protected]
* igt@kms_flip@2x-plain-flip-ts-check:
- shard-glk: [PASS][7] -> [FAIL][8] ([fdo#100368])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-glk1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-glk3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-indfb-pgflip-blt:
- shard-glk: [PASS][9] -> [FAIL][10] ([fdo#103167])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-glk8/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-glk8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-fullscreen:
- shard-hsw: [PASS][11] -> [SKIP][12] ([fdo#109271])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-hsw7/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-fullscreen.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-hsw4/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-fullscreen.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-render:
- shard-iclb: [PASS][13] -> [FAIL][14] ([fdo#103167]) +4 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-render.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@fbcpsr-suspend:
- shard-skl: [PASS][15] -> [INCOMPLETE][16] ([fdo#104108] / [fdo#106978])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-skl6/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-skl4/igt@[email protected]
* igt@kms_plane_lowres@pipe-a-tiling-y:
- shard-iclb: [PASS][17] -> [FAIL][18] ([fdo#103166])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-iclb1/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-iclb1/igt@[email protected]
* igt@kms_setmode@basic:
- shard-apl: [PASS][19] -> [FAIL][20] ([fdo#99912])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-apl4/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-apl8/igt@[email protected]
#### Possible fixes ####
* igt@gem_mmap_gtt@basic-small-copy-odd:
- shard-iclb: [INCOMPLETE][21] ([fdo#107713]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-iclb7/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-iclb1/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-kbl: [SKIP][23] ([fdo#109271]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-kbl2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-kbl3/igt@[email protected]
- shard-snb: [SKIP][25] ([fdo#109271]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-snb2/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-snb6/igt@[email protected]
* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
- shard-hsw: [FAIL][27] ([fdo#105767]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-hsw6/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-hsw8/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank:
- shard-skl: [FAIL][29] ([fdo#105363]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-skl9/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-skl2/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-glk: [FAIL][31] ([fdo#105363]) -> [PASS][32] +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-glk6/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-glk2/igt@[email protected]
* igt@kms_flip@flip-vs-suspend:
- shard-snb: [INCOMPLETE][33] ([fdo#105411]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-snb1/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-snb7/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [FAIL][35] ([fdo#103167]) -> [PASS][36] +2 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-iclb1/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-iclb2/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-apl: [DMESG-WARN][37] ([fdo#108566]) -> [PASS][38] +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-apl7/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-apl8/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-c-planes:
- shard-skl: [INCOMPLETE][39] ([fdo#104108]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-skl3/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-skl10/igt@[email protected]
* igt@kms_psr@no_drrs:
- shard-iclb: [FAIL][41] ([fdo#108341]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-iclb1/igt@kms_psr@no_drrs.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-iclb2/igt@kms_psr@no_drrs.html
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [SKIP][43] ([fdo#109441]) -> [PASS][44] +2 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-iclb6/igt@kms_psr@psr2_primary_mmap_cpu.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@perf@polling:
- shard-skl: [FAIL][45] ([fdo#110728]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-skl1/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-skl1/igt@[email protected]
#### Warnings ####
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-mmap-wc:
- shard-skl: [FAIL][47] ([fdo#103167]) -> [FAIL][48] ([fdo#108040])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6495/shard-skl8/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-mmap-wc.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13667/shard-skl9/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-mmap-wc.html
[fdo#100368]: https://bugs.freedesktop.org/show_bug.cgi?id=100368
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#105767]: https://bugs.freedesktop.org/show_bug.cgi?id=105767
[fdo#106978]: https://bugs.freedesktop.org/show_bug.cgi?id=106978
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#108040]: https://bugs.freedesktop.org/show_bug.cgi?id=108040
[fdo#108341]: https://bugs.freedesktop.org/show_bug.cgi?id=108341
[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#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110728]: https://bugs.freedesktop.org/show_bug.cgi?id=110728
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_6495 -> Patchwork_13667
CI_DRM_6495: b782c53ecfa06fdbe9b310dca3f0d477fc833496 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5100: 0ea68a1efbfcc4961f2f816ab59e4ad8136c6250 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13667: 8c1db3015d5380d54d1711f54325e7978cb4bf30 @ 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_13667/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx