drm/i915: Move shared dpll code to a new file
Subsystems (2)
PATCH RESEND 1/6 drm/i915: Move shared dpll code to a new file
Create the new file intel_dpll_mgr.c and move the shared dpll code to it. Follow up patches that reorganize pll handling will move more code there and tweak the interface.
No functional changes.
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/intel_display.c | 348 +------------------------------- drivers/gpu/drm/i915/intel_dpll_mgr.c | 368 ++++++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_drv.h | 8 + 4 files changed, 379 insertions(+), 346 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_dpll_mgr.c
drivers/gpu/drm/i915/Makefile +1 -0
@@ -56,6 +56,7 @@ i915-y += intel_audio.o \ intel_atomic_plane.o \ intel_bios.o \ intel_display.o \ + intel_dpll_mgr.o \ intel_fbc.o \ intel_fifo_underrun.o \ intel_frontbuffer.o \
drivers/gpu/drm/i915/intel_display.c +2 -346
378 lines not on this page · raw message
drivers/gpu/drm/i915/intel_dpll_mgr.c new file +368 -0
368 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +8 -0
@@ -1168,6 +1168,9 @@ intel_rotation_90_or_270(unsigned int rotation)void intel_create_rotation_property (struct drm_device *dev,struct intel_plane *plane); +void assert_pch_transcoder_disabled (struct drm_i915_private *dev_priv, +enum pipe pipe); +/* shared dpll functions */ struct intel_shared_dpll *intel_crtc_to_shared_dpll (struct intel_crtc *crtc); void assert_shared_dpll(struct drm_i915_private *dev_priv,
@@ -1177,6 +1180,11 @@ void assert_shared_dpll(struct drm_i915_private *dev_priv,#define assert_shared_dpll_disabled (d, p) assert_shared_dpll(d, p, false)struct intel_shared_dpll *intel_get_shared_dpll (struct intel_crtc *crtc,struct intel_crtc_state *state); +void intel_prepare_shared_dpll (struct intel_crtc *crtc); +void intel_enable_shared_dpll (struct intel_crtc *crtc); +void intel_disable_shared_dpll (struct intel_crtc *crtc); +void intel_shared_dpll_commit (struct drm_atomic_state *state); +void intel_shared_dpll_init (struct drm_device *dev);int vlv_force_pll_on (struct drm_device *dev,enum pipe pipe,const struct dpll *dpll);
Signature · 6 lines
2.4.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for series starting with [RESEND,FOR,CI,1/6] drm/i915: Move shared dpll code to a new file
== Series Details ==
== Series Details ==
Series: series starting with [RESEND,FOR,CI,1/6] drm/i915: Move shared dpll code to a new file
URL : https://patchwork.freedesktop.org/series/4055/
State : failure
== Summary ==
Series 4055v1 Series without cover letter
http://patchwork.freedesktop.org/api/1.0/series/4055/revisions/1/mbox/
Test drv_module_reload_basic:
incomplete -> PASS (snb-dellxps)
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-b:
pass -> INCOMPLETE (hsw-gt2)bdw-nuci7 total:169 pass:158 dwarn:0 dfail:0 fail:0 skip:11 bdw-ultra total:169 pass:155 dwarn:0 dfail:0 fail:0 skip:14 bsw-nuc-2 total:169 pass:137 dwarn:1 dfail:0 fail:1 skip:30 byt-nuc total:169 pass:144 dwarn:0 dfail:0 fail:0 skip:25 hsw-brixbox total:169 pass:154 dwarn:0 dfail:0 fail:0 skip:15 hsw-gt2 total:54 pass:49 dwarn:0 dfail:0 fail:0 skip:4 ilk-hp8440p total:169 pass:119 dwarn:0 dfail:0 fail:0 skip:50 ivb-t430s total:169 pass:154 dwarn:0 dfail:0 fail:0 skip:15 skl-i5k-2 total:169 pass:153 dwarn:0 dfail:0 fail:0 skip:16 skl-i7k-2 total:169 pass:153 dwarn:0 dfail:0 fail:0 skip:16 snb-dellxps total:169 pass:145 dwarn:1 dfail:0 fail:0 skip:23 snb-x220t total:169 pass:145 dwarn:1 dfail:0 fail:1 skip:22
Results at /archive/results/CI_IGT_test/Patchwork_1522/
99ba2daf15b76f01916dc645b8d1b03dbbabf13c drm-intel-nightly: 2016y-03m-03d-08h-27m-26s UTC integration manifest 5b83e778a311602b2d0fd768ec68b981ffdca00f drm/i915: Move shared dpll function prototypes to intel_dpll_mgr.h 79ac3787085a9bb4b447ea0ef9f8fdc9326b4a1b drm/i915: Move shared dpll struct definitions to separate header file 800e835a449b6d57c87ee687ab2e8bc0f8fc0983 drm/i915: Store a direct pointer to shared dpll in intel_crtc_state 335e84b598184d8a061a949c3e1eecb27f0267c2 drm/i915: Split intel_get_shared_dpll() into smaller functions 86403971f58d7d8aeeb4a62b0171fbe895dd6c82 drm/i915: Move ddi shared dpll code to intel_dpll_mgr.c 6f2a88e92eb337f2e659beb74d19db9b30fa364e drm/i915: Move shared dpll code to a new file
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✗ Fi.CI.BAT: failure for series starting with [RESEND,FOR,CI,1/6] drm/i915: Move shared dpll code to a new file
Quoted 9 lines · Patchwork
== Series Details ==
Series: series starting with [RESEND,FOR,CI,1/6] drm/i915: Move shared dpll code to a new file
URL : https://patchwork.freedesktop.org/series/4055/
State : failure== Summary ==
Quoted 8 lines
Series 4055v1 Series without cover letter
http://patchwork.freedesktop.org/api/1.0/series/4055/revisions/1/mbox/Test
drv_module_reload_basic:incomplete -> PASS (snb-dellxps) Test kms_pipe_crc_basic: Subgroup suspend-read-crc-pipe-b: pass -> INCOMPLETE (hsw-gt2)
The exact opposite happened with the previous version of the series:
Test kms_pipe_crc_basic:
[...]
Subgroup suspend-read-crc-pipe-b:
incomplete -> PASS (hsw-gt2)Seems unrelated, but I'll leave the merging of these patches to a maintainer, just in case.
Ander
Quoted 31 lines
bdw-nuci7 total:169 pass:158 dwarn:0 dfail:0 fail:0 skip:11 bdw-ultra total:169 pass:155 dwarn:0 dfail:0 fail:0 skip:14 bsw-nuc-2 total:169 pass:137 dwarn:1 dfail:0 fail:1 skip:30 byt-nuc total:169 pass:144 dwarn:0 dfail:0 fail:0 skip:25 hsw-brixbox total:169 pass:154 dwarn:0 dfail:0 fail:0 skip:15 hsw-gt2 total:54 pass:49 dwarn:0 dfail:0 fail:0 skip:4 ilk-hp8440p total:169 pass:119 dwarn:0 dfail:0 fail:0 skip:50 ivb-t430s total:169 pass:154 dwarn:0 dfail:0 fail:0 skip:15 skl-i5k-2 total:169 pass:153 dwarn:0 dfail:0 fail:0 skip:16 skl-i7k-2 total:169 pass:153 dwarn:0 dfail:0 fail:0 skip:16 snb-dellxps total:169 pass:145 dwarn:1 dfail:0 fail:0 skip:23 snb-x220t total:169 pass:145 dwarn:1 dfail:0 fail:1 skip:22Results at /archive/results/CI_IGT_test/Patchwork_1522/
99ba2daf15b76f01916dc645b8d1b03dbbabf13cdrm-intel-nightly: 2016y-03m-03d-08h -27m-26s UTC integration manifest5b83e778a311602b2d0fd768ec68b981ffdca00fdrm/i915: Move shared dpll function prototypes tointel_dpll_mgr.h79ac3787085a9bb4b447ea0ef9f8fdc9326b4a1bdrm/i915: Move shared dpll struct definitions to separate header file800e835a449b6d57c87ee687ab2e8bc0f8fc0983drm/i915: Store a direct pointer to shared dpll inintel_crtc_state335e84b598184d8a061a949c3e1eecb27f0267c2drm/i915: Splitintel_get_shared_dpll()into smaller functions86403971f58d7d8aeeb4a62b0171fbe895dd6c82drm/i915: Move ddi shared dpll code tointel_dpll_mgr.c6f2a88e92eb337f2e659beb74d19db9b30fa364edrm/i915: Move shared dpll code to a new file
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH RESEND 2/6 drm/i915: Move ddi shared dpll code to intel_dpll_mgr.c
In reply to Ander Conselvan de OliveiraNo functional changes.
--- drivers/gpu/drm/i915/intel_ddi.c | 472 ---------------------------------- drivers/gpu/drm/i915/intel_dpll_mgr.c | 472 ++++++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_drv.h | 1 - 3 files changed, 472 insertions(+), 473 deletions(-)
drivers/gpu/drm/i915/intel_ddi.c +0 -472
@@ -2430,235 +2430,6 @@ static void intel_disable_ddi(struct intel_encoder *intel_encoder) } } -static void hsw_ddi_wrpll_enable (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll) -{ -I915_WRITE (WRPLL_CTL (pll->id), pll->config.hw_state.wrpll); -POSTING_READ (WRPLL_CTL (pll->id)); -udelay (20 ); -} - -static void hsw_ddi_spll_enable (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll) -{ -I915_WRITE (SPLL_CTL , pll->config.hw_state.spll); -POSTING_READ (SPLL_CTL ); -udelay (20 ); -} - -static void hsw_ddi_wrpll_disable (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll) -{ -uint32_t val; - - val =I915_READ (WRPLL_CTL (pll->id)); -I915_WRITE (WRPLL_CTL (pll->id), val & ~WRPLL_PLL_ENABLE ); -POSTING_READ (WRPLL_CTL (pll->id)); -} - -static void hsw_ddi_spll_disable (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll) -{ -uint32_t val; - - val =I915_READ (SPLL_CTL ); -I915_WRITE (SPLL_CTL , val & ~SPLL_PLL_ENABLE ); -POSTING_READ (SPLL_CTL ); -} - -static bool hsw_ddi_wrpll_get_hw_state (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll, -struct intel_dpll_hw_state *hw_state) -{ -uint32_t val; - -if (!intel_display_power_get_if_enabled (dev_priv,POWER_DOMAIN_PLLS )) -return false; - - val =I915_READ (WRPLL_CTL (pll->id)); - hw_state->wrpll = val; - -intel_display_power_put (dev_priv,POWER_DOMAIN_PLLS ); - -return val &WRPLL_PLL_ENABLE ; -} - -static bool hsw_ddi_spll_get_hw_state (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll, -struct intel_dpll_hw_state *hw_state) -{ -uint32_t val; - -if (!intel_display_power_get_if_enabled (dev_priv,POWER_DOMAIN_PLLS )) -return false; - - val =I915_READ (SPLL_CTL ); - hw_state->spll = val; - -intel_display_power_put (dev_priv,POWER_DOMAIN_PLLS ); - -return val &SPLL_PLL_ENABLE ; -} - - -static const char *const hsw_ddi_pll_names[] = { -"WRPLL 1" , -"WRPLL 2" , -"SPLL" -}; - -static void hsw_shared_dplls_init (struct drm_i915_private *dev_priv) -{ -int i; - - dev_priv->num_shared_dpll =3 ; - -for (i =0 ; i <2 ; i++) { - dev_priv->shared_dplls[i].id = i; - dev_priv->shared_dplls[i].name = hsw_ddi_pll_names[i]; - dev_priv->shared_dplls[i].disable = hsw_ddi_wrpll_disable; - dev_priv->shared_dplls[i].enable = hsw_ddi_wrpll_enable; - dev_priv->shared_dplls[i].get_hw_state = - hsw_ddi_wrpll_get_hw_state; - } - -/* SPLL is special, but needs to be initialized anyway.. */ - dev_priv->shared_dplls[i].id = i; - dev_priv->shared_dplls[i].name = hsw_ddi_pll_names[i]; - dev_priv->shared_dplls[i].disable = hsw_ddi_spll_disable; - dev_priv->shared_dplls[i].enable = hsw_ddi_spll_enable; - dev_priv->shared_dplls[i].get_hw_state = hsw_ddi_spll_get_hw_state; - -} - -static const char *const skl_ddi_pll_names[] = { -"DPLL 1" , -"DPLL 2" , -"DPLL 3" , -}; - -struct skl_dpll_regs { -i915_reg_t ctl, cfgcr1, cfgcr2; -}; - -/* this array is indexed by the *shared* pll id */ -static const struct skl_dpll_regs skl_dpll_regs[3 ] = { - { -/* DPLL 1 */ - .ctl =LCPLL2_CTL , - .cfgcr1 =DPLL_CFGCR1 (SKL_DPLL1 ), - .cfgcr2 =DPLL_CFGCR2 (SKL_DPLL1 ), - }, - { -/* DPLL 2 */ - .ctl =WRPLL_CTL (0 ), - .cfgcr1 =DPLL_CFGCR1 (SKL_DPLL2 ), - .cfgcr2 =DPLL_CFGCR2 (SKL_DPLL2 ), - }, - { -/* DPLL 3 */ - .ctl =WRPLL_CTL (1 ), - .cfgcr1 =DPLL_CFGCR1 (SKL_DPLL3 ), - .cfgcr2 =DPLL_CFGCR2 (SKL_DPLL3 ), - }, -}; - -static void skl_ddi_pll_enable (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll) -{ -uint32_t val; -unsigned int dpll; -const struct skl_dpll_regs *regs = skl_dpll_regs; - -/* DPLL0 is not part of the shared DPLLs, so pll->id is 0 for DPLL1 */ - dpll = pll->id +1 ; - - val =I915_READ (DPLL_CTRL1 ); - - val &= ~(DPLL_CTRL1_HDMI_MODE (dpll) |DPLL_CTRL1_SSC (dpll) | -DPLL_CTRL1_LINK_RATE_MASK (dpll)); - val |= pll->config.hw_state.ctrl1 << (dpll *6 ); - -I915_WRITE (DPLL_CTRL1 , val); -POSTING_READ (DPLL_CTRL1 ); - -I915_WRITE (regs[pll->id].cfgcr1, pll->config.hw_state.cfgcr1); -I915_WRITE (regs[pll->id].cfgcr2, pll->config.hw_state.cfgcr2); -POSTING_READ (regs[pll->id].cfgcr1); -POSTING_READ (regs[pll->id].cfgcr2); - -/* the enable bit is always bit 31 */ -I915_WRITE (regs[pll->id].ctl, -I915_READ (regs[pll->id].ctl) |LCPLL_PLL_ENABLE ); - -if (wait_for (I915_READ (DPLL_STATUS ) &DPLL_LOCK (dpll),5 )) -DRM_ERROR ("DPLL %d not locked\n" , dpll); -} - -static void skl_ddi_pll_disable (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll) -{ -const struct skl_dpll_regs *regs = skl_dpll_regs; - -/* the enable bit is always bit 31 */ -I915_WRITE (regs[pll->id].ctl, -I915_READ (regs[pll->id].ctl) & ~LCPLL_PLL_ENABLE ); -POSTING_READ (regs[pll->id].ctl); -} - -static bool skl_ddi_pll_get_hw_state (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll, -struct intel_dpll_hw_state *hw_state) -{ -uint32_t val; -unsigned int dpll; -const struct skl_dpll_regs *regs = skl_dpll_regs; -bool ret; - -if (!intel_display_power_get_if_enabled (dev_priv,POWER_DOMAIN_PLLS )) -return false; - - ret = false; - -/* DPLL0 is not part of the shared DPLLs, so pll->id is 0 for DPLL1 */ - dpll = pll->id +1 ; - - val =I915_READ (regs[pll->id].ctl); -if (!(val &LCPLL_PLL_ENABLE )) - goto out; - - val =I915_READ (DPLL_CTRL1 ); - hw_state->ctrl1 = (val >> (dpll *6 )) &0x3f ; - -/* avoid reading back stale values if HDMI mode is not enabled */ -if (val &DPLL_CTRL1_HDMI_MODE (dpll)) { - hw_state->cfgcr1 =I915_READ (regs[pll->id].cfgcr1); - hw_state->cfgcr2 =I915_READ (regs[pll->id].cfgcr2); - } - ret = true; - -out: -intel_display_power_put (dev_priv,POWER_DOMAIN_PLLS ); - -return ret; -} - -static void skl_shared_dplls_init (struct drm_i915_private *dev_priv) -{ -int i; - - dev_priv->num_shared_dpll =3 ; - -for (i =0 ; i < dev_priv->num_shared_dpll; i++) { - dev_priv->shared_dplls[i].id = i; - dev_priv->shared_dplls[i].name = skl_ddi_pll_names[i]; - dev_priv->shared_dplls[i].disable = skl_ddi_pll_disable; - dev_priv->shared_dplls[i].enable = skl_ddi_pll_enable; - dev_priv->shared_dplls[i].get_hw_state = - skl_ddi_pll_get_hw_state; - } -} -static void broxton_phy_init (struct drm_i915_private *dev_priv,enum dpio_phy phy) {
@@ -2783,249 +2554,6 @@ void broxton_ddi_phy_uninit(struct drm_device *dev)I915_WRITE (BXT_P_CR_GT_DISP_PWRON ,0 ); } -static const char *const bxt_ddi_pll_names[] = { -"PORT PLL A" , -"PORT PLL B" , -"PORT PLL C" , -}; - -static void bxt_ddi_pll_enable (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll) -{ -uint32_t temp; -enum port port = (enum port )pll->id;/* 1:1 port->PLL mapping */ - - temp =I915_READ (BXT_PORT_PLL_ENABLE (port)); - temp &= ~PORT_PLL_REF_SEL ; -/* Non-SSC reference */ -I915_WRITE (BXT_PORT_PLL_ENABLE (port), temp); - -/* Disable 10 bit clock */ - temp =I915_READ (BXT_PORT_PLL_EBB_4 (port)); - temp &= ~PORT_PLL_10BIT_CLK_ENABLE ; -I915_WRITE (BXT_PORT_PLL_EBB_4 (port), temp); - -/* Write P1 & P2 */ - temp =I915_READ (BXT_PORT_PLL_EBB_0 (port)); - temp &= ~(PORT_PLL_P1_MASK |PORT_PLL_P2_MASK ); - temp |= pll->config.hw_state.ebb0; -I915_WRITE (BXT_PORT_PLL_EBB_0 (port), temp); - -/* Write M2 integer */ - temp =I915_READ (BXT_PORT_PLL (port,0 )); - temp &= ~PORT_PLL_M2_MASK ; - temp |= pll->config.hw_state.pll0; -I915_WRITE (BXT_PORT_PLL (port,0 ), temp); - -/* Write N */ - temp =I915_READ (BXT_PORT_PLL (port,1 )); - temp &= ~PORT_PLL_N_MASK ; - temp |= pll->config.hw_state.pll1; -I915_WRITE (BXT_PORT_PLL (port,1 ), temp); - -/* Write M2 fraction */ - temp =I915_READ (BXT_PORT_PLL (port,2 )); - temp &= ~PORT_PLL_M2_FRAC_MASK ; - temp |= pll->config.hw_state.pll2; -I915_WRITE (BXT_PORT_PLL (port,2 ), temp); - -/* Write M2 fraction enable */ - temp =I915_READ (BXT_PORT_PLL (port,3 )); - temp &= ~PORT_PLL_M2_FRAC_ENABLE ; - temp |= pll->config.hw_state.pll3; -I915_WRITE (BXT_PORT_PLL (port,3 ), temp); - -/* Write coeff */ - temp =I915_READ (BXT_PORT_PLL (port,6 )); - temp &= ~PORT_PLL_PROP_COEFF_MASK ; - temp &= ~PORT_PLL_INT_COEFF_MASK ; - temp &= ~PORT_PLL_GAIN_CTL_MASK ; - temp |= pll->config.hw_state.pll6; -I915_WRITE (BXT_PORT_PLL (port,6 ), temp); - -/* Write calibration val */ - temp =I915_READ (BXT_PORT_PLL (port,8 )); - temp &= ~PORT_PLL_TARGET_CNT_MASK ; - temp |= pll->config.hw_state.pll8; -I915_WRITE (BXT_PORT_PLL (port,8 ), temp); - - temp =I915_READ (BXT_PORT_PLL (port,9 )); - temp &= ~PORT_PLL_LOCK_THRESHOLD_MASK ; - temp |= pll->config.hw_state.pll9; -I915_WRITE (BXT_PORT_PLL (port,9 ), temp); - - temp =I915_READ (BXT_PORT_PLL (port,10 )); - temp &= ~PORT_PLL_DCO_AMP_OVR_EN_H ; - temp &= ~PORT_PLL_DCO_AMP_MASK ; - temp |= pll->config.hw_state.pll10; -I915_WRITE (BXT_PORT_PLL (port,10 ), temp); - -/* Recalibrate with new settings */ - temp =I915_READ (BXT_PORT_PLL_EBB_4 (port)); - temp |=PORT_PLL_RECALIBRATE ; -I915_WRITE (BXT_PORT_PLL_EBB_4 (port), temp); - temp &= ~PORT_PLL_10BIT_CLK_ENABLE ; - temp |= pll->config.hw_state.ebb4; -I915_WRITE (BXT_PORT_PLL_EBB_4 (port), temp); - -/* Enable PLL */ - temp =I915_READ (BXT_PORT_PLL_ENABLE (port)); - temp |=PORT_PLL_ENABLE ; -I915_WRITE (BXT_PORT_PLL_ENABLE (port), temp); -POSTING_READ (BXT_PORT_PLL_ENABLE (port)); - -if (wait_for_atomic_us ((I915_READ (BXT_PORT_PLL_ENABLE (port)) & -PORT_PLL_LOCK ),200 )) -DRM_ERROR ("PLL %d not locked\n" , port); - -/* -* While we write to the group register to program all lanes at once we -* can read only lane registers and we pick lanes 0/1 for that. -*/ - temp =I915_READ (BXT_PORT_PCS_DW12_LN01 (port)); - temp &= ~LANE_STAGGER_MASK ; - temp &= ~LANESTAGGER_STRAP_OVRD ; - temp |= pll->config.hw_state.pcsdw12; -I915_WRITE (BXT_PORT_PCS_DW12_GRP (port), temp); -} - -static void bxt_ddi_pll_disable (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll) -{ -enum port port = (enum port )pll->id;/* 1:1 port->PLL mapping */ -uint32_t temp; - - temp =I915_READ (BXT_PORT_PLL_ENABLE (port)); - temp &= ~PORT_PLL_ENABLE ; -I915_WRITE (BXT_PORT_PLL_ENABLE (port), temp); -POSTING_READ (BXT_PORT_PLL_ENABLE (port)); -} - -static bool bxt_ddi_pll_get_hw_state (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll, -struct intel_dpll_hw_state *hw_state) -{ -enum port port = (enum port )pll->id;/* 1:1 port->PLL mapping */ -uint32_t val; -bool ret; - -if (!intel_display_power_get_if_enabled (dev_priv,POWER_DOMAIN_PLLS )) -return false; - - ret = false; - - val =I915_READ (BXT_PORT_PLL_ENABLE (port)); -if (!(val &PORT_PLL_ENABLE )) - goto out; - - hw_state->ebb0 =I915_READ (BXT_PORT_PLL_EBB_0 (port)); - hw_state->ebb0 &=PORT_PLL_P1_MASK |PORT_PLL_P2_MASK ; - - hw_state->ebb4 =I915_READ (BXT_PORT_PLL_EBB_4 (port)); - hw_state->ebb4 &=PORT_PLL_10BIT_CLK_ENABLE ; - - hw_state->pll0 =I915_READ (BXT_PORT_PLL (port,0 )); - hw_state->pll0 &=PORT_PLL_M2_MASK ; - - hw_state->pll1 =I915_READ (BXT_PORT_PLL (port,1 )); - hw_state->pll1 &=PORT_PLL_N_MASK ; - - hw_state->pll2 =I915_READ (BXT_PORT_PLL (port,2 )); - hw_state->pll2 &=PORT_PLL_M2_FRAC_MASK ; - - hw_state->pll3 =I915_READ (BXT_PORT_PLL (port,3 )); - hw_state->pll3 &=PORT_PLL_M2_FRAC_ENABLE ; - - hw_state->pll6 =I915_READ (BXT_PORT_PLL (port,6 )); - hw_state->pll6 &=PORT_PLL_PROP_COEFF_MASK | -PORT_PLL_INT_COEFF_MASK | -PORT_PLL_GAIN_CTL_MASK ; - - hw_state->pll8 =I915_READ (BXT_PORT_PLL (port,8 )); - hw_state->pll8 &=PORT_PLL_TARGET_CNT_MASK ; - - hw_state->pll9 =I915_READ (BXT_PORT_PLL (port,9 )); - hw_state->pll9 &=PORT_PLL_LOCK_THRESHOLD_MASK ; - - hw_state->pll10 =I915_READ (BXT_PORT_PLL (port,10 )); - hw_state->pll10 &=PORT_PLL_DCO_AMP_OVR_EN_H | -PORT_PLL_DCO_AMP_MASK ; - -/* -* While we write to the group register to program all lanes at once we -* can read only lane registers. We configure all lanes the same way, so -* here just read out lanes 0/1 and output a note if lanes 2/3 differ. -*/ - hw_state->pcsdw12 =I915_READ (BXT_PORT_PCS_DW12_LN01 (port)); -if (I915_READ (BXT_PORT_PCS_DW12_LN23 (port)) != hw_state->pcsdw12) -DRM_DEBUG_DRIVER ("lane stagger config different for lane 01 (%08x) and 23 (%08x)\n" , - hw_state->pcsdw12, -I915_READ (BXT_PORT_PCS_DW12_LN23 (port))); - hw_state->pcsdw12 &=LANE_STAGGER_MASK |LANESTAGGER_STRAP_OVRD ; - - ret = true; - -out: -intel_display_power_put (dev_priv,POWER_DOMAIN_PLLS ); - -return ret; -} - -static void bxt_shared_dplls_init (struct drm_i915_private *dev_priv) -{ -int i; - - dev_priv->num_shared_dpll =3 ; - -for (i =0 ; i < dev_priv->num_shared_dpll; i++) { - dev_priv->shared_dplls[i].id = i; - dev_priv->shared_dplls[i].name = bxt_ddi_pll_names[i]; - dev_priv->shared_dplls[i].disable = bxt_ddi_pll_disable; - dev_priv->shared_dplls[i].enable = bxt_ddi_pll_enable; - dev_priv->shared_dplls[i].get_hw_state = - bxt_ddi_pll_get_hw_state; - } -} - -void intel_ddi_pll_init (struct drm_device *dev) -{ -struct drm_i915_private *dev_priv = dev->dev_private; -uint32_t val =I915_READ (LCPLL_CTL ); - -if (IS_SKYLAKE (dev) ||IS_KABYLAKE (dev)) -skl_shared_dplls_init (dev_priv); -else if (IS_BROXTON (dev)) -bxt_shared_dplls_init (dev_priv); -else -hsw_shared_dplls_init (dev_priv); - -if (IS_SKYLAKE (dev) ||IS_KABYLAKE (dev)) { -int cdclk_freq; - - cdclk_freq = dev_priv->display.get_display_clock_speed (dev); - dev_priv->skl_boot_cdclk = cdclk_freq; -if (skl_sanitize_cdclk (dev_priv)) -DRM_DEBUG_KMS ("Sanitized cdclk programmed by pre-os\n" ); -if (!(I915_READ (LCPLL1_CTL ) &LCPLL_PLL_ENABLE )) -DRM_ERROR ("LCPLL1 is disabled\n" ); - }else if (IS_BROXTON (dev)) { -broxton_init_cdclk (dev); -broxton_ddi_phy_init (dev); - }else { -/* -* The LCPLL register should be turned on by the BIOS. For now -* let's just check its state and print errors in case -* something is wrong. Don't even try to turn it on. -*/ - -if (val &LCPLL_CD_SOURCE_FCLK ) -DRM_ERROR ("CDCLK source is not LCPLL\n" ); - -if (val &LCPLL_PLL_DISABLE ) -DRM_ERROR ("LCPLL is disabled\n" ); - } -} -void intel_ddi_prepare_link_retrain (struct intel_dp *intel_dp) {struct intel_digital_port *intel_dig_port =dp_to_dig_port (intel_dp);
drivers/gpu/drm/i915/intel_dpll_mgr.c +472 -0
478 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +0 -1
@@ -1031,7 +1031,6 @@ void hsw_fdi_link_train(struct drm_crtc *crtc);void intel_ddi_init (struct drm_device *dev,enum port port);enum port intel_ddi_get_encoder_port (struct intel_encoder *intel_encoder);bool intel_ddi_get_hw_state (struct intel_encoder *encoder,enum pipe *pipe); -void intel_ddi_pll_init (struct drm_device *dev);void intel_ddi_enable_transcoder_func (struct drm_crtc *crtc);void intel_ddi_disable_transcoder_func (struct drm_i915_private *dev_priv,enum transcoder cpu_transcoder);
Signature · 6 lines
2.4.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH RESEND 3/6 drm/i915: Split intel_get_shared_dpll() into smaller functions
In reply to Ander Conselvan de OliveiraMake the code neater by splitting the code for platforms with fixed PLL to their own functions and splitting the logic for finding a shareable or unused pll from the logic for setting it up.
--- drivers/gpu/drm/i915/intel_dpll_mgr.c | 109 +++++++++++++++++++++++----------- 1 file changed, 74 insertions(+), 35 deletions(-)
drivers/gpu/drm/i915/intel_dpll_mgr.c +74 -35
@@ -145,52 +145,65 @@ void intel_disable_shared_dpll(struct intel_crtc *crtc)intel_display_power_put (dev_priv,POWER_DOMAIN_PLLS ); } -struct intel_shared_dpll *intel_get_shared_dpll (struct intel_crtc *crtc, -struct intel_crtc_state *crtc_state) +static enum intel_dpll_id +ibx_get_fixed_dpll (struct intel_crtc *crtc, +struct intel_crtc_state *crtc_state) { -struct drm_i915_private *dev_priv = crtc->base.dev->dev_private; +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_shared_dpll *pll; -struct intel_shared_dpll_config *shared_dpll;enum intel_dpll_id i; -int max = dev_priv->num_shared_dpll; - shared_dpll =intel_atomic_get_shared_dpll_state (crtc_state->base.state); +/* Ironlake PCH has a fixed PLL->PCH pipe mapping. */ + i = (enum intel_dpll_id ) crtc->pipe; + pll = &dev_priv->shared_dplls[i]; -if (HAS_PCH_IBX (dev_priv->dev)) { -/* Ironlake PCH has a fixed PLL->PCH pipe mapping. */ - i = (enum intel_dpll_id ) crtc->pipe; - pll = &dev_priv->shared_dplls[i]; +DRM_DEBUG_KMS ("CRTC:%d using pre-allocated %s\n" , + crtc->base.base.id, pll->name); -DRM_DEBUG_KMS ("CRTC:%d using pre-allocated %s\n" , - crtc->base.base.id, pll->name); +return i; +} -WARN_ON (shared_dpll[i].crtc_mask); +static enum intel_dpll_id +bxt_get_fixed_dpll (struct intel_crtc *crtc, +struct intel_crtc_state *crtc_state) +{ +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +struct intel_encoder *encoder; +struct intel_digital_port *intel_dig_port; +struct intel_shared_dpll *pll; +enum intel_dpll_id i; - goto found; - } +/* PLL is attached to port in bxt */ + encoder =intel_ddi_get_crtc_new_encoder (crtc_state); +if (WARN_ON (!encoder)) +return DPLL_ID_PRIVATE ; -if (IS_BROXTON (dev_priv->dev)) { -/* PLL is attached to port in bxt */ -struct intel_encoder *encoder; -struct intel_digital_port *intel_dig_port; + intel_dig_port =enc_to_dig_port (&encoder->base); +/* 1:1 mapping between ports and PLLs */ + i = (enum intel_dpll_id )intel_dig_port->port; + pll = &dev_priv->shared_dplls[i]; +DRM_DEBUG_KMS ("CRTC:%d using pre-allocated %s\n" , + crtc->base.base.id, pll->name); - encoder =intel_ddi_get_crtc_new_encoder (crtc_state); -if (WARN_ON (!encoder)) -return NULL ; +return i; +} - intel_dig_port =enc_to_dig_port (&encoder->base); -/* 1:1 mapping between ports and PLLs */ - i = (enum intel_dpll_id )intel_dig_port->port; - pll = &dev_priv->shared_dplls[i]; -DRM_DEBUG_KMS ("CRTC:%d using pre-allocated %s\n" , - crtc->base.base.id, pll->name); -WARN_ON (shared_dpll[i].crtc_mask); +static enum intel_dpll_id +intel_find_shared_dpll (struct intel_crtc *crtc, +struct intel_crtc_state *crtc_state) +{ +struct drm_i915_private *dev_priv = crtc->base.dev->dev_private; +struct intel_shared_dpll *pll; +struct intel_shared_dpll_config *shared_dpll; +enum intel_dpll_id i; +int max = dev_priv->num_shared_dpll; - goto found; - }else if (INTEL_INFO (dev_priv)->gen <9 &&HAS_DDI (dev_priv)) +if (INTEL_INFO (dev_priv)->gen <9 &&HAS_DDI (dev_priv))/* Do not consider SPLL */ max =2 ; + shared_dpll =intel_atomic_get_shared_dpll_state (crtc_state->base.state); +for (i =0 ; i < max; i++) { pll = &dev_priv->shared_dplls[i];
@@ -205,7 +218,7 @@ struct intel_shared_dpll *intel_get_shared_dpll(struct intel_crtc *crtc, crtc->base.base.id, pll->name, shared_dpll[i].crtc_mask, pll->active); - goto found; +return i; } }
@@ -215,13 +228,39 @@ struct intel_shared_dpll *intel_get_shared_dpll(struct intel_crtc *crtc,if (shared_dpll[i].crtc_mask ==0 ) {DRM_DEBUG_KMS ("CRTC:%d allocated %s\n" , crtc->base.base.id, pll->name); - goto found; +return i; } } -return NULL ; +return DPLL_ID_PRIVATE ; +} + +struct intel_shared_dpll * +intel_get_shared_dpll (struct intel_crtc *crtc, +struct intel_crtc_state *crtc_state) +{ +struct drm_i915_private *dev_priv = crtc->base.dev->dev_private; +struct intel_shared_dpll *pll; +struct intel_shared_dpll_config *shared_dpll; +enum intel_dpll_id i; + + shared_dpll =intel_atomic_get_shared_dpll_state (crtc_state->base.state); + +if (HAS_PCH_IBX (dev_priv->dev)) { + i =ibx_get_fixed_dpll (crtc, crtc_state); +WARN_ON (shared_dpll[i].crtc_mask); + }else if (IS_BROXTON (dev_priv->dev)) { + i =bxt_get_fixed_dpll (crtc, crtc_state); +WARN_ON (shared_dpll[i].crtc_mask); + }else { + i =intel_find_shared_dpll (crtc, crtc_state); + } + +if (i <0 ) +return NULL ; + + pll = &dev_priv->shared_dplls[i]; -found:if (shared_dpll[i].crtc_mask ==0 ) shared_dpll[i].hw_state = crtc_state->dpll_hw_state;
Signature · 6 lines
2.4.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH RESEND 4/6 drm/i915: Store a direct pointer to shared dpll in intel_crtc_state
In reply to Ander Conselvan de OliveiraChange the type of intel_crtc_state->shared_dpll to be a pointer to a shared dpll. With this there is no need to first convert the id stored in the crtc state to a pointer in order to use it. It does introduce a bit of hassle on doing the opposite.
The long term objective is to hide details about dpll ids behind the shared dpll interface.
--- drivers/gpu/drm/i915/intel_ddi.c | 4 +- drivers/gpu/drm/i915/intel_display.c | 108 ++++++++++++++++++++++------------ drivers/gpu/drm/i915/intel_dpll_mgr.c | 51 ++++++++++++---- drivers/gpu/drm/i915/intel_drv.h | 19 +++++- drivers/gpu/drm/i915/intel_lvds.c | 2 +- 5 files changed, 132 insertions(+), 52 deletions(-)
drivers/gpu/drm/i915/intel_ddi.c +3 -1
@@ -1209,6 +1209,7 @@ hsw_ddi_pll_select(struct intel_crtc *intel_crtc,struct intel_crtc_state *crtc_state, struct intel_encoder *intel_encoder) { + struct drm_i915_private *dev_priv = to_i915(intel_crtc->base.dev);int clock = crtc_state->port_clock;if (intel_encoder->type ==INTEL_OUTPUT_HDMI ) {
@@ -1244,7 +1245,8 @@ hsw_ddi_pll_select(struct intel_crtc *intel_crtc, WARN_ON(spll->hw_state.spll != crtc_state->dpll_hw_state.spll))return false; - crtc_state->shared_dpll =DPLL_ID_SPLL ; + crtc_state->shared_dpll = +intel_get_shared_dpll_by_id (dev_priv,DPLL_ID_SPLL ); spll->hw_state.spll = crtc_state->dpll_hw_state.spll; spll->crtc_mask |=1 << intel_crtc->pipe; }
drivers/gpu/drm/i915/intel_display.c +72 -36
287 lines not on this page · raw message
drivers/gpu/drm/i915/intel_dpll_mgr.c +40 -11
93 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +16 -3
@@ -448,8 +448,8 @@ struct intel_crtc_state {* haswell. */ struct dpll dpll; -/* Selected dpll when shared or DPLL_ID_PRIVATE. */ -enum intel_dpll_id shared_dpll; +/* Selected dpll when shared or NULL. */ +struct intel_shared_dpll *shared_dpll;/* * - PORT_CLK_SEL for DDI ports on HSW/BDW.
@@ -1171,7 +1171,20 @@ void assert_pch_transcoder_disabled(struct drm_i915_private *dev_priv, enum pipe pipe);/* shared dpll functions */ -struct intel_shared_dpll *intel_crtc_to_shared_dpll (struct intel_crtc *crtc); +struct intel_shared_dpll * +intel_get_shared_dpll_by_id (struct drm_i915_private *dev_priv, +enum intel_dpll_id id); +enum intel_dpll_id +intel_get_shared_dpll_id (struct drm_i915_private *dev_priv, +struct intel_shared_dpll *pll); +void +intel_shared_dpll_config_get (struct intel_shared_dpll_config *config, +struct intel_shared_dpll *pll, +struct intel_crtc *crtc); +void +intel_shared_dpll_config_put (struct intel_shared_dpll_config *config, +struct intel_shared_dpll *pll, +struct intel_crtc *crtc);void assert_shared_dpll (struct drm_i915_private *dev_priv,struct intel_shared_dpll *pll,bool state);
drivers/gpu/drm/i915/intel_lvds.c +1 -1
@@ -145,7 +145,7 @@ static void intel_pre_enable_lvds(struct intel_encoder *encoder)if (HAS_PCH_SPLIT (dev)) {assert_fdi_rx_pll_disabled (dev_priv, pipe);assert_shared_dpll_disabled (dev_priv, -intel_crtc_to_shared_dpll (crtc)); + crtc->config->shared_dpll); }else {assert_pll_disabled (dev_priv, pipe); }
Signature · 6 lines
2.4.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH RESEND 5/6 drm/i915: Move shared dpll struct definitions to separate header file
In reply to Ander Conselvan de OliveiraMove the declarations related to shared dplls from i915_drv.h to their own header file.
The code that became the shared dpll infrastructre was first introcude in commit ee7b9f93fd96 ("drm/i915: manage PCH PLLs separately from pipes"), hence the 2012-2016 copyright years in the new header file.
--- drivers/gpu/drm/i915/i915_drv.h | 76 +----------------------- drivers/gpu/drm/i915/intel_dpll_mgr.h | 106 ++++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+), 75 deletions(-) create mode 100644 drivers/gpu/drm/i915/intel_dpll_mgr.h
drivers/gpu/drm/i915/i915_drv.h +1 -75
@@ -53,6 +53,7 @@#include <linux/kref.h> #include <linux/pm_qos.h> #include "intel_guc.h" +#include "intel_dpll_mgr.h" /* General customization: */
@@ -340,81 +341,6 @@ struct drm_i915_file_private {unsigned int bsd_ring; }; -enum intel_dpll_id { -DPLL_ID_PRIVATE =-1 ,/* non-shared dpll in use */ -/* real shared dpll ids must be >= 0 */ -DPLL_ID_PCH_PLL_A =0 , -DPLL_ID_PCH_PLL_B =1 , -/* hsw/bdw */ -DPLL_ID_WRPLL1 =0 , -DPLL_ID_WRPLL2 =1 , -DPLL_ID_SPLL =2 , - -/* skl */ -DPLL_ID_SKL_DPLL1 =0 , -DPLL_ID_SKL_DPLL2 =1 , -DPLL_ID_SKL_DPLL3 =2 , -}; -#define I915_NUM_PLLS 3 - -struct intel_dpll_hw_state { -/* i9xx, pch plls */ -uint32_t dpll; -uint32_t dpll_md; -uint32_t fp0; -uint32_t fp1; - -/* hsw, bdw */ -uint32_t wrpll; -uint32_t spll; - -/* skl */ -/* -* DPLL_CTRL1 has 6 bits for each each this DPLL. We store those in -* lower part of ctrl1 and they get shifted into position when writing -* the register. This allows us to easily compare the state to share -* the DPLL. -*/ -uint32_t ctrl1; -/* HDMI only, 0 when used for DP */ -uint32_t cfgcr1, cfgcr2; - -/* bxt */ -uint32_t ebb0, ebb4, pll0, pll1, pll2, pll3, pll6, pll8, pll9, pll10, - pcsdw12; -}; - -struct intel_shared_dpll_config { -unsigned crtc_mask;/* mask of CRTCs sharing this PLL */ -struct intel_dpll_hw_state hw_state; -}; - -struct intel_shared_dpll { -struct intel_shared_dpll_config config; - -int active;/* count of number of active CRTCs (i.e. DPMS on) */ -bool on;/* is the PLL actually active? Disabled during modeset */ -const char *name; -/* should match the index in the dev_priv->shared_dplls array */ -enum intel_dpll_id id; -/* The mode_set hook is optional and should be used together with the -* intel_prepare_shared_dpll function. */ -void (*mode_set)(struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll); -void (*enable)(struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll); -void (*disable)(struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll); -bool (*get_hw_state)(struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll, -struct intel_dpll_hw_state *hw_state); -}; - -#define SKL_DPLL0 0 -#define SKL_DPLL1 1 -#define SKL_DPLL2 2 -#define SKL_DPLL3 3 -/* Used by dp and fdi links */ struct intel_link_m_n {uint32_t tu;
drivers/gpu/drm/i915/intel_dpll_mgr.h new file +106 -0
106 lines not on this page · raw message
Signature · 6 lines
2.4.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH RESEND 6/6 drm/i915: Move shared dpll function prototypes to intel_dpll_mgr.h
In reply to Ander Conselvan de OliveiraMove shared dpll function prototype together with other shared dpll definitions.
--- drivers/gpu/drm/i915/intel_dpll_mgr.h | 30 ++++++++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_drv.h | 28 ---------------------------- 2 files changed, 30 insertions(+), 28 deletions(-)
drivers/gpu/drm/i915/intel_dpll_mgr.h +30 -0
@@ -26,6 +26,8 @@#define _INTEL_DPLL_MGR_H_struct drm_i915_private ; +struct intel_crtc ; +struct intel_crtc_state ;enum intel_dpll_id {DPLL_ID_PRIVATE =-1 ,/* non-shared dpll in use */
@@ -102,5 +104,33 @@ struct intel_shared_dpll {#define SKL_DPLL2 2#define SKL_DPLL3 3 +/* shared dpll functions */ +struct intel_shared_dpll * +intel_get_shared_dpll_by_id (struct drm_i915_private *dev_priv, +enum intel_dpll_id id); +enum intel_dpll_id +intel_get_shared_dpll_id (struct drm_i915_private *dev_priv, +struct intel_shared_dpll *pll); +void +intel_shared_dpll_config_get (struct intel_shared_dpll_config *config, +struct intel_shared_dpll *pll, +struct intel_crtc *crtc); +void +intel_shared_dpll_config_put (struct intel_shared_dpll_config *config, +struct intel_shared_dpll *pll, +struct intel_crtc *crtc); +void assert_shared_dpll (struct drm_i915_private *dev_priv, +struct intel_shared_dpll *pll, +bool state); +#define assert_shared_dpll_enabled (d, p) assert_shared_dpll(d, p, true) +#define assert_shared_dpll_disabled (d, p) assert_shared_dpll(d, p, false) +struct intel_shared_dpll *intel_get_shared_dpll (struct intel_crtc *crtc, +struct intel_crtc_state *state); +void intel_prepare_shared_dpll (struct intel_crtc *crtc); +void intel_enable_shared_dpll (struct intel_crtc *crtc); +void intel_disable_shared_dpll (struct intel_crtc *crtc); +void intel_shared_dpll_commit (struct drm_atomic_state *state); +void intel_shared_dpll_init (struct drm_device *dev); +#endif /* _INTEL_DPLL_MGR_H_ */
drivers/gpu/drm/i915/intel_drv.h +0 -28
@@ -1170,34 +1170,6 @@ void intel_create_rotation_property(struct drm_device *dev,void assert_pch_transcoder_disabled (struct drm_i915_private *dev_priv,enum pipe pipe); -/* shared dpll functions */ -struct intel_shared_dpll * -intel_get_shared_dpll_by_id (struct drm_i915_private *dev_priv, -enum intel_dpll_id id); -enum intel_dpll_id -intel_get_shared_dpll_id (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll); -void -intel_shared_dpll_config_get (struct intel_shared_dpll_config *config, -struct intel_shared_dpll *pll, -struct intel_crtc *crtc); -void -intel_shared_dpll_config_put (struct intel_shared_dpll_config *config, -struct intel_shared_dpll *pll, -struct intel_crtc *crtc); -void assert_shared_dpll (struct drm_i915_private *dev_priv, -struct intel_shared_dpll *pll, -bool state); -#define assert_shared_dpll_enabled (d, p) assert_shared_dpll(d, p, true) -#define assert_shared_dpll_disabled (d, p) assert_shared_dpll(d, p, false) -struct intel_shared_dpll *intel_get_shared_dpll (struct intel_crtc *crtc, -struct intel_crtc_state *state); -void intel_prepare_shared_dpll (struct intel_crtc *crtc); -void intel_enable_shared_dpll (struct intel_crtc *crtc); -void intel_disable_shared_dpll (struct intel_crtc *crtc); -void intel_shared_dpll_commit (struct drm_atomic_state *state); -void intel_shared_dpll_init (struct drm_device *dev); -int vlv_force_pll_on (struct drm_device *dev,enum pipe pipe,const struct dpll *dpll);void vlv_force_pll_off (struct drm_device *dev,enum pipe pipe);
Signature · 6 lines
2.4.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx