Lines Matching refs:uncore

61 		intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR1_1,  in gen9_init_clock_gating()
62 intel_uncore_read(&dev_priv->uncore, CHICKEN_PAR1_1) | in gen9_init_clock_gating()
67 intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR1_1, in gen9_init_clock_gating()
68 intel_uncore_read(&dev_priv->uncore, CHICKEN_PAR1_1) | SKL_EDP_PSR_FIX_RDWRAP); in gen9_init_clock_gating()
71 intel_uncore_write(&dev_priv->uncore, GEN8_CHICKEN_DCPR_1, in gen9_init_clock_gating()
72 intel_uncore_read(&dev_priv->uncore, GEN8_CHICKEN_DCPR_1) | MASK_WAKEMEM); in gen9_init_clock_gating()
78 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in gen9_init_clock_gating()
87 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in bxt_init_clock_gating()
94 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in bxt_init_clock_gating()
101 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_0, intel_uncore_read(&dev_priv->uncore, GEN… in bxt_init_clock_gating()
110 intel_uncore_write(&dev_priv->uncore, RM_TIMEOUT, MMIO_TIMEOUT_US(950)); in bxt_init_clock_gating()
116 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in bxt_init_clock_gating()
123 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A), in bxt_init_clock_gating()
124 intel_uncore_read(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A)) | in bxt_init_clock_gating()
137 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_0, intel_uncore_read(&dev_priv->uncore, GEN… in glk_init_clock_gating()
145 tmp = intel_uncore_read(&dev_priv->uncore, CLKCFG); in pnv_get_mem_freq()
175 tmp = intel_uncore_read(&dev_priv->uncore, CSHRDDR3CTL); in pnv_get_mem_freq()
183 ddrpll = intel_uncore_read16(&dev_priv->uncore, DDRMPLL1); in ilk_get_mem_freq()
184 csipll = intel_uncore_read16(&dev_priv->uncore, CSIPLL0); in ilk_get_mem_freq()
346 was_enabled = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF_VLV) & FW_CSPWRDWNEN; in _intel_set_memory_cxsr()
347 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF_VLV, enable ? FW_CSPWRDWNEN : 0); in _intel_set_memory_cxsr()
348 intel_uncore_posting_read(&dev_priv->uncore, FW_BLC_SELF_VLV); in _intel_set_memory_cxsr()
350 was_enabled = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF) & FW_BLC_SELF_EN; in _intel_set_memory_cxsr()
351 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, enable ? FW_BLC_SELF_EN : 0); in _intel_set_memory_cxsr()
352 intel_uncore_posting_read(&dev_priv->uncore, FW_BLC_SELF); in _intel_set_memory_cxsr()
354 val = intel_uncore_read(&dev_priv->uncore, DSPFW3); in _intel_set_memory_cxsr()
360 intel_uncore_write(&dev_priv->uncore, DSPFW3, val); in _intel_set_memory_cxsr()
361 intel_uncore_posting_read(&dev_priv->uncore, DSPFW3); in _intel_set_memory_cxsr()
363 was_enabled = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF) & FW_BLC_SELF_EN; in _intel_set_memory_cxsr()
366 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, val); in _intel_set_memory_cxsr()
367 intel_uncore_posting_read(&dev_priv->uncore, FW_BLC_SELF); in _intel_set_memory_cxsr()
374 was_enabled = intel_uncore_read(&dev_priv->uncore, INSTPM) & INSTPM_SELF_EN; in _intel_set_memory_cxsr()
377 intel_uncore_write(&dev_priv->uncore, INSTPM, val); in _intel_set_memory_cxsr()
378 intel_uncore_posting_read(&dev_priv->uncore, INSTPM); in _intel_set_memory_cxsr()
474 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in vlv_get_fifo_size()
475 dsparb2 = intel_uncore_read(&dev_priv->uncore, DSPARB2); in vlv_get_fifo_size()
480 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in vlv_get_fifo_size()
481 dsparb2 = intel_uncore_read(&dev_priv->uncore, DSPARB2); in vlv_get_fifo_size()
486 dsparb2 = intel_uncore_read(&dev_priv->uncore, DSPARB2); in vlv_get_fifo_size()
487 dsparb3 = intel_uncore_read(&dev_priv->uncore, DSPARB3); in vlv_get_fifo_size()
505 u32 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in i9xx_get_fifo_size()
521 u32 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in i830_get_fifo_size()
538 u32 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in i845_get_fifo_size()
888 reg = intel_uncore_read(&dev_priv->uncore, DSPFW1); in pnv_update_wm()
891 intel_uncore_write(&dev_priv->uncore, DSPFW1, reg); in pnv_update_wm()
898 reg = intel_uncore_read(&dev_priv->uncore, DSPFW3); in pnv_update_wm()
901 intel_uncore_write(&dev_priv->uncore, DSPFW3, reg); in pnv_update_wm()
907 reg = intel_uncore_read(&dev_priv->uncore, DSPFW3); in pnv_update_wm()
910 intel_uncore_write(&dev_priv->uncore, DSPFW3, reg); in pnv_update_wm()
916 reg = intel_uncore_read(&dev_priv->uncore, DSPFW3); in pnv_update_wm()
919 intel_uncore_write(&dev_priv->uncore, DSPFW3, reg); in pnv_update_wm()
953 intel_uncore_write(&dev_priv->uncore, DSPFW1, in g4x_write_wm_values()
958 intel_uncore_write(&dev_priv->uncore, DSPFW2, in g4x_write_wm_values()
965 intel_uncore_write(&dev_priv->uncore, DSPFW3, in g4x_write_wm_values()
971 intel_uncore_posting_read(&dev_priv->uncore, DSPFW1); in g4x_write_wm_values()
985 intel_uncore_write(&dev_priv->uncore, VLV_DDL(pipe), in vlv_write_wm_values()
997 intel_uncore_write(&dev_priv->uncore, DSPHOWM, 0); in vlv_write_wm_values()
998 intel_uncore_write(&dev_priv->uncore, DSPHOWM1, 0); in vlv_write_wm_values()
999 intel_uncore_write(&dev_priv->uncore, DSPFW4, 0); in vlv_write_wm_values()
1000 intel_uncore_write(&dev_priv->uncore, DSPFW5, 0); in vlv_write_wm_values()
1001 intel_uncore_write(&dev_priv->uncore, DSPFW6, 0); in vlv_write_wm_values()
1003 intel_uncore_write(&dev_priv->uncore, DSPFW1, in vlv_write_wm_values()
1008 intel_uncore_write(&dev_priv->uncore, DSPFW2, in vlv_write_wm_values()
1012 intel_uncore_write(&dev_priv->uncore, DSPFW3, in vlv_write_wm_values()
1016 intel_uncore_write(&dev_priv->uncore, DSPFW7_CHV, in vlv_write_wm_values()
1019 intel_uncore_write(&dev_priv->uncore, DSPFW8_CHV, in vlv_write_wm_values()
1022 intel_uncore_write(&dev_priv->uncore, DSPFW9_CHV, in vlv_write_wm_values()
1025 intel_uncore_write(&dev_priv->uncore, DSPHOWM, in vlv_write_wm_values()
1037 intel_uncore_write(&dev_priv->uncore, DSPFW7, in vlv_write_wm_values()
1040 intel_uncore_write(&dev_priv->uncore, DSPHOWM, in vlv_write_wm_values()
1050 intel_uncore_posting_read(&dev_priv->uncore, DSPFW1); in vlv_write_wm_values()
1971 struct intel_uncore *uncore = &dev_priv->uncore; in vlv_atomic_update_fifo() local
2000 spin_lock(&uncore->lock); in vlv_atomic_update_fifo()
2004 dsparb = intel_uncore_read_fw(uncore, DSPARB); in vlv_atomic_update_fifo()
2005 dsparb2 = intel_uncore_read_fw(uncore, DSPARB2); in vlv_atomic_update_fifo()
2017 intel_uncore_write_fw(uncore, DSPARB, dsparb); in vlv_atomic_update_fifo()
2018 intel_uncore_write_fw(uncore, DSPARB2, dsparb2); in vlv_atomic_update_fifo()
2021 dsparb = intel_uncore_read_fw(uncore, DSPARB); in vlv_atomic_update_fifo()
2022 dsparb2 = intel_uncore_read_fw(uncore, DSPARB2); in vlv_atomic_update_fifo()
2034 intel_uncore_write_fw(uncore, DSPARB, dsparb); in vlv_atomic_update_fifo()
2035 intel_uncore_write_fw(uncore, DSPARB2, dsparb2); in vlv_atomic_update_fifo()
2038 dsparb3 = intel_uncore_read_fw(uncore, DSPARB3); in vlv_atomic_update_fifo()
2039 dsparb2 = intel_uncore_read_fw(uncore, DSPARB2); in vlv_atomic_update_fifo()
2051 intel_uncore_write_fw(uncore, DSPARB3, dsparb3); in vlv_atomic_update_fifo()
2052 intel_uncore_write_fw(uncore, DSPARB2, dsparb2); in vlv_atomic_update_fifo()
2058 intel_uncore_posting_read_fw(uncore, DSPARB); in vlv_atomic_update_fifo()
2060 spin_unlock(&uncore->lock); in vlv_atomic_update_fifo()
2282 intel_uncore_write(&dev_priv->uncore, DSPFW1, FW_WM(srwm, SR) | in i965_update_wm()
2286 intel_uncore_write(&dev_priv->uncore, DSPFW2, FW_WM(8, CURSORA) | in i965_update_wm()
2289 intel_uncore_write(&dev_priv->uncore, DSPFW3, FW_WM(cursor_sr, CURSOR_SR)); in i965_update_wm()
2430 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, in i9xx_update_wm()
2433 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, srwm & 0x3f); in i9xx_update_wm()
2447 intel_uncore_write(&dev_priv->uncore, FW_BLC, fwater_lo); in i9xx_update_wm()
2448 intel_uncore_write(&dev_priv->uncore, FW_BLC2, fwater_hi); in i9xx_update_wm()
2468 fwater_lo = intel_uncore_read(&dev_priv->uncore, FW_BLC) & ~0xfff; in i845_update_wm()
2474 intel_uncore_write(&dev_priv->uncore, FW_BLC, fwater_lo); in i845_update_wm()
2830 sskpd = intel_uncore_read64(&i915->uncore, MCH_SSKPD); in hsw_read_wm_latency()
2845 sskpd = intel_uncore_read(&i915->uncore, MCH_SSKPD); in snb_read_wm_latency()
2857 mltr = intel_uncore_read(&i915->uncore, MLTR_ILK); in ilk_read_wm_latency()
3430 intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, previous->wm_lp[2]); in _ilk_disable_lp_wm()
3435 intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, previous->wm_lp[1]); in _ilk_disable_lp_wm()
3440 intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, previous->wm_lp[0]); in _ilk_disable_lp_wm()
3470 intel_uncore_write(&dev_priv->uncore, WM0_PIPE_ILK(PIPE_A), results->wm_pipe[0]); in ilk_write_wm_values()
3472 intel_uncore_write(&dev_priv->uncore, WM0_PIPE_ILK(PIPE_B), results->wm_pipe[1]); in ilk_write_wm_values()
3474 intel_uncore_write(&dev_priv->uncore, WM0_PIPE_ILK(PIPE_C), results->wm_pipe[2]); in ilk_write_wm_values()
3478 val = intel_uncore_read(&dev_priv->uncore, WM_MISC); in ilk_write_wm_values()
3483 intel_uncore_write(&dev_priv->uncore, WM_MISC, val); in ilk_write_wm_values()
3485 val = intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL2); in ilk_write_wm_values()
3490 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL2, val); in ilk_write_wm_values()
3495 val = intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL); in ilk_write_wm_values()
3500 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, val); in ilk_write_wm_values()
3505 intel_uncore_write(&dev_priv->uncore, WM1S_LP_ILK, results->wm_lp_spr[0]); in ilk_write_wm_values()
3509 intel_uncore_write(&dev_priv->uncore, WM2S_LP_IVB, results->wm_lp_spr[1]); in ilk_write_wm_values()
3511 intel_uncore_write(&dev_priv->uncore, WM3S_LP_IVB, results->wm_lp_spr[2]); in ilk_write_wm_values()
3515 intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, results->wm_lp[0]); in ilk_write_wm_values()
3517 intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, results->wm_lp[1]); in ilk_write_wm_values()
3519 intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, results->wm_lp[2]); in ilk_write_wm_values()
3617 hw->wm_pipe[pipe] = intel_uncore_read(&dev_priv->uncore, WM0_PIPE_ILK(pipe)); in ilk_pipe_wm_get_hw_state()
3661 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW1); in g4x_read_wm_values()
3667 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW2); in g4x_read_wm_values()
3675 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW3); in g4x_read_wm_values()
3689 tmp = intel_uncore_read(&dev_priv->uncore, VLV_DDL(pipe)); in vlv_read_wm_values()
3701 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW1); in vlv_read_wm_values()
3707 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW2); in vlv_read_wm_values()
3712 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW3); in vlv_read_wm_values()
3716 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW7_CHV); in vlv_read_wm_values()
3720 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW8_CHV); in vlv_read_wm_values()
3724 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW9_CHV); in vlv_read_wm_values()
3728 tmp = intel_uncore_read(&dev_priv->uncore, DSPHOWM); in vlv_read_wm_values()
3740 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW7); in vlv_read_wm_values()
3744 tmp = intel_uncore_read(&dev_priv->uncore, DSPHOWM); in vlv_read_wm_values()
3765 wm->cxsr = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF) & FW_BLC_SELF_EN; in g4x_wm_get_hw_state()
3913 wm->cxsr = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF_VLV) & FW_CSPWRDWNEN; in vlv_wm_get_hw_state()
4060 …intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, intel_uncore_read(&dev_priv->uncore, WM3_LP_ILK)… in ilk_init_lp_watermarks()
4061 …intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, intel_uncore_read(&dev_priv->uncore, WM2_LP_ILK)… in ilk_init_lp_watermarks()
4062 …intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, intel_uncore_read(&dev_priv->uncore, WM1_LP_ILK)… in ilk_init_lp_watermarks()
4080 hw->wm_lp[0] = intel_uncore_read(&dev_priv->uncore, WM1_LP_ILK); in ilk_wm_get_hw_state()
4081 hw->wm_lp[1] = intel_uncore_read(&dev_priv->uncore, WM2_LP_ILK); in ilk_wm_get_hw_state()
4082 hw->wm_lp[2] = intel_uncore_read(&dev_priv->uncore, WM3_LP_ILK); in ilk_wm_get_hw_state()
4084 hw->wm_lp_spr[0] = intel_uncore_read(&dev_priv->uncore, WM1S_LP_ILK); in ilk_wm_get_hw_state()
4086 hw->wm_lp_spr[1] = intel_uncore_read(&dev_priv->uncore, WM2S_LP_IVB); in ilk_wm_get_hw_state()
4087 hw->wm_lp_spr[2] = intel_uncore_read(&dev_priv->uncore, WM3S_LP_IVB); in ilk_wm_get_hw_state()
4091 hw->partitioning = (intel_uncore_read(&dev_priv->uncore, WM_MISC) & WM_MISC_DATA_PARTITION_5_6) ? in ilk_wm_get_hw_state()
4094 …hw->partitioning = (intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL2) & DISP_DATA_PARTITION_5_6)… in ilk_wm_get_hw_state()
4098 !(intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL) & DISP_FBC_WM_DIS); in ilk_wm_get_hw_state()
4108 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, PCH_DPLSUNIT_CLOCK_GATE_DISABLE); in ibx_init_clock_gating()
4116 intel_uncore_write(&dev_priv->uncore, DSPCNTR(pipe), in g4x_disable_trickle_feed()
4117 intel_uncore_read(&dev_priv->uncore, DSPCNTR(pipe)) | in g4x_disable_trickle_feed()
4120 …intel_uncore_write(&dev_priv->uncore, DSPSURF(pipe), intel_uncore_read(&dev_priv->uncore, DSPSURF(… in g4x_disable_trickle_feed()
4121 intel_uncore_posting_read(&dev_priv->uncore, DSPSURF(pipe)); in g4x_disable_trickle_feed()
4137 intel_uncore_write(&dev_priv->uncore, PCH_3DCGDIS0, in ilk_init_clock_gating()
4140 intel_uncore_write(&dev_priv->uncore, PCH_3DCGDIS1, in ilk_init_clock_gating()
4150 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in ilk_init_clock_gating()
4151 (intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in ilk_init_clock_gating()
4154 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, in ilk_init_clock_gating()
4155 (intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL) | in ilk_init_clock_gating()
4167 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1, in ilk_init_clock_gating()
4168 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1) | in ilk_init_clock_gating()
4170 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in ilk_init_clock_gating()
4171 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in ilk_init_clock_gating()
4175 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, dspclk_gate); in ilk_init_clock_gating()
4177 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in ilk_init_clock_gating()
4178 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in ilk_init_clock_gating()
4196 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, PCH_DPLSUNIT_CLOCK_GATE_DISABLE | in cpt_init_clock_gating()
4199 …intel_uncore_write(&dev_priv->uncore, SOUTH_CHICKEN2, intel_uncore_read(&dev_priv->uncore, SOUTH_C… in cpt_init_clock_gating()
4205 val = intel_uncore_read(&dev_priv->uncore, TRANS_CHICKEN2(pipe)); in cpt_init_clock_gating()
4212 intel_uncore_write(&dev_priv->uncore, TRANS_CHICKEN2(pipe), val); in cpt_init_clock_gating()
4216 intel_uncore_write(&dev_priv->uncore, TRANS_CHICKEN1(pipe), in cpt_init_clock_gating()
4225 tmp = intel_uncore_read(&dev_priv->uncore, MCH_SSKPD); in gen6_check_mch_setup()
4236 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, dspclk_gate); in gen6_init_clock_gating()
4238 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in gen6_init_clock_gating()
4239 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in gen6_init_clock_gating()
4242 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, in gen6_init_clock_gating()
4243 intel_uncore_read(&dev_priv->uncore, GEN6_UCGCTL1) | in gen6_init_clock_gating()
4260 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL2, in gen6_init_clock_gating()
4275 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1, in gen6_init_clock_gating()
4276 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1) | in gen6_init_clock_gating()
4278 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in gen6_init_clock_gating()
4279 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in gen6_init_clock_gating()
4281 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, in gen6_init_clock_gating()
4282 intel_uncore_read(&dev_priv->uncore, ILK_DSPCLK_GATE_D) | in gen6_init_clock_gating()
4300 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, in lpt_init_clock_gating()
4301 intel_uncore_read(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D) | in lpt_init_clock_gating()
4305 intel_uncore_write(&dev_priv->uncore, TRANS_CHICKEN1(PIPE_A), in lpt_init_clock_gating()
4306 intel_uncore_read(&dev_priv->uncore, TRANS_CHICKEN1(PIPE_A)) | in lpt_init_clock_gating()
4313 u32 val = intel_uncore_read(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D); in lpt_suspend_hw()
4316 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, val); in lpt_suspend_hw()
4328 misccpctl = intel_uncore_read(&dev_priv->uncore, GEN7_MISCCPCTL); in gen8_set_l3sqc_credits()
4329 intel_uncore_write(&dev_priv->uncore, GEN7_MISCCPCTL, misccpctl & ~GEN7_DOP_CLOCK_GATE_ENABLE); in gen8_set_l3sqc_credits()
4331 val = intel_uncore_read(&dev_priv->uncore, GEN8_L3SQCREG1); in gen8_set_l3sqc_credits()
4335 intel_uncore_write(&dev_priv->uncore, GEN8_L3SQCREG1, val); in gen8_set_l3sqc_credits()
4341 intel_uncore_posting_read(&dev_priv->uncore, GEN8_L3SQCREG1); in gen8_set_l3sqc_credits()
4343 intel_uncore_write(&dev_priv->uncore, GEN7_MISCCPCTL, misccpctl); in gen8_set_l3sqc_credits()
4349 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A), in icl_init_clock_gating()
4353 intel_uncore_rmw(&dev_priv->uncore, GEN8_CHICKEN_DCPR_1, in icl_init_clock_gating()
4361 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A), in gen12lp_init_clock_gating()
4366 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_3, intel_uncore_read(&dev_priv->uncore, GEN… in gen12lp_init_clock_gating()
4371 intel_uncore_rmw(&dev_priv->uncore, CLKREQ_POLICY, in gen12lp_init_clock_gating()
4392 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_3, intel_uncore_read(&dev_priv->uncore, GEN… in dg1_init_clock_gating()
4400 intel_uncore_rmw(&dev_priv->uncore, XEHP_CLOCK_GATE_DIS, 0, SGR_DIS); in xehpsdv_init_clock_gating()
4406 intel_uncore_rmw(&i915->uncore, XEHP_CLOCK_GATE_DIS, 0, in dg2_init_clock_gating()
4414 intel_uncore_rmw(&i915->uncore, XEHP_CLOCK_GATE_DIS, 0, in dg2_init_clock_gating()
4422 intel_uncore_rmw(&dev_priv->uncore, XEHP_CLOCK_GATE_DIS, 0, SGR_DIS); in pvc_init_clock_gating()
4426 intel_uncore_rmw(&dev_priv->uncore, XEHP_CLOCK_GATE_DIS, 0, SGSI_SIDECLK_DIS); in pvc_init_clock_gating()
4435 …intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, intel_uncore_read(&dev_priv->uncore, SO… in cnp_init_clock_gating()
4445 …intel_uncore_write(&dev_priv->uncore, FBC_LLC_READ_CTRL, intel_uncore_read(&dev_priv->uncore, FBC_… in cfl_init_clock_gating()
4452 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in cfl_init_clock_gating()
4459 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A), in cfl_init_clock_gating()
4460 intel_uncore_read(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A)) | in cfl_init_clock_gating()
4469 …intel_uncore_write(&dev_priv->uncore, FBC_LLC_READ_CTRL, intel_uncore_read(&dev_priv->uncore, FBC_… in kbl_init_clock_gating()
4474 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in kbl_init_clock_gating()
4479 …intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, intel_uncore_read(&dev_priv->uncore, GEN6_UCGC… in kbl_init_clock_gating()
4486 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in kbl_init_clock_gating()
4493 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A), in kbl_init_clock_gating()
4494 intel_uncore_read(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A)) | in kbl_init_clock_gating()
4503 …intel_uncore_write(&dev_priv->uncore, GEN7_MISCCPCTL, intel_uncore_read(&dev_priv->uncore, GEN7_MI… in skl_init_clock_gating()
4507 …intel_uncore_write(&dev_priv->uncore, FBC_LLC_READ_CTRL, intel_uncore_read(&dev_priv->uncore, FBC_… in skl_init_clock_gating()
4514 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in skl_init_clock_gating()
4521 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A), in skl_init_clock_gating()
4522 intel_uncore_read(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A)) | in skl_init_clock_gating()
4529 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A), in skl_init_clock_gating()
4530 intel_uncore_read(&dev_priv->uncore, ILK_DPFC_CHICKEN(INTEL_FBC_A)) | in skl_init_clock_gating()
4539 intel_uncore_write(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A), in bdw_init_clock_gating()
4540 intel_uncore_read(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A)) | in bdw_init_clock_gating()
4544 …intel_uncore_write(&dev_priv->uncore, GAM_ECOCHK, intel_uncore_read(&dev_priv->uncore, GAM_ECOCHK)… in bdw_init_clock_gating()
4547 intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR1_1, in bdw_init_clock_gating()
4548 intel_uncore_read(&dev_priv->uncore, CHICKEN_PAR1_1) | DPA_MASK_VBLANK_SRD); in bdw_init_clock_gating()
4552 intel_uncore_write(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe), in bdw_init_clock_gating()
4553 intel_uncore_read(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe)) | in bdw_init_clock_gating()
4559 intel_uncore_write(&dev_priv->uncore, GEN7_FF_THREAD_MODE, in bdw_init_clock_gating()
4560 intel_uncore_read(&dev_priv->uncore, GEN7_FF_THREAD_MODE) & in bdw_init_clock_gating()
4563 intel_uncore_write(&dev_priv->uncore, RING_PSMI_CTL(RENDER_RING_BASE), in bdw_init_clock_gating()
4567 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in bdw_init_clock_gating()
4574 …intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR2_1, intel_uncore_read(&dev_priv->uncore, CHICKEN… in bdw_init_clock_gating()
4584 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, in bdw_init_clock_gating()
4585 intel_uncore_read(&dev_priv->uncore, GEN6_UCGCTL1) | GEN6_EU_TCUNIT_CLOCK_GATE_DISABLE); in bdw_init_clock_gating()
4591 intel_uncore_write(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A), in hsw_init_clock_gating()
4592 intel_uncore_read(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A)) | in hsw_init_clock_gating()
4596 intel_uncore_write(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, in hsw_init_clock_gating()
4597 intel_uncore_read(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) | in hsw_init_clock_gating()
4601 …intel_uncore_write(&dev_priv->uncore, GAM_ECOCHK, intel_uncore_read(&dev_priv->uncore, GAM_ECOCHK)… in hsw_init_clock_gating()
4610 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, ILK_VRHUNIT_CLOCK_GATE_DISABLE); in ivb_init_clock_gating()
4613 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1, in ivb_init_clock_gating()
4614 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1) | in ivb_init_clock_gating()
4618 intel_uncore_write(&dev_priv->uncore, IVB_CHICKEN3, in ivb_init_clock_gating()
4623 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2, in ivb_init_clock_gating()
4627 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2, in ivb_init_clock_gating()
4629 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2_GT2, in ivb_init_clock_gating()
4637 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL2, in ivb_init_clock_gating()
4641 intel_uncore_write(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, in ivb_init_clock_gating()
4642 intel_uncore_read(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) | in ivb_init_clock_gating()
4647 snpcr = intel_uncore_read(&dev_priv->uncore, GEN6_MBCUNIT_SNPCR); in ivb_init_clock_gating()
4650 intel_uncore_write(&dev_priv->uncore, GEN6_MBCUNIT_SNPCR, snpcr); in ivb_init_clock_gating()
4661 intel_uncore_write(&dev_priv->uncore, IVB_CHICKEN3, in vlv_init_clock_gating()
4666 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2, in vlv_init_clock_gating()
4670 intel_uncore_write(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, in vlv_init_clock_gating()
4671 intel_uncore_read(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) | in vlv_init_clock_gating()
4678 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL2, in vlv_init_clock_gating()
4684 intel_uncore_write(&dev_priv->uncore, GEN7_UCGCTL4, in vlv_init_clock_gating()
4685 intel_uncore_read(&dev_priv->uncore, GEN7_UCGCTL4) | GEN7_L3BANK2X_CLOCK_GATE_DISABLE); in vlv_init_clock_gating()
4692 intel_uncore_write(&dev_priv->uncore, VLV_GUNIT_CLOCK_GATE, GCFG_DIS); in vlv_init_clock_gating()
4699 intel_uncore_write(&dev_priv->uncore, GEN7_FF_THREAD_MODE, in chv_init_clock_gating()
4700 intel_uncore_read(&dev_priv->uncore, GEN7_FF_THREAD_MODE) & in chv_init_clock_gating()
4704 intel_uncore_write(&dev_priv->uncore, RING_PSMI_CTL(RENDER_RING_BASE), in chv_init_clock_gating()
4708 …intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, intel_uncore_read(&dev_priv->uncore, GEN6_UCGC… in chv_init_clock_gating()
4712 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in chv_init_clock_gating()
4727 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D1, 0); in g4x_init_clock_gating()
4728 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D2, VF_UNIT_CLOCK_GATE_DISABLE | in g4x_init_clock_gating()
4731 intel_uncore_write(&dev_priv->uncore, RAMCLK_GATE_D, 0); in g4x_init_clock_gating()
4737 intel_uncore_write(&dev_priv->uncore, DSPCLK_GATE_D(dev_priv), dspclk_gate); in g4x_init_clock_gating()
4744 struct intel_uncore *uncore = &dev_priv->uncore; in i965gm_init_clock_gating() local
4746 intel_uncore_write(uncore, RENCLK_GATE_D1, I965_RCC_CLOCK_GATE_DISABLE); in i965gm_init_clock_gating()
4747 intel_uncore_write(uncore, RENCLK_GATE_D2, 0); in i965gm_init_clock_gating()
4748 intel_uncore_write(uncore, DSPCLK_GATE_D(dev_priv), 0); in i965gm_init_clock_gating()
4749 intel_uncore_write(uncore, RAMCLK_GATE_D, 0); in i965gm_init_clock_gating()
4750 intel_uncore_write16(uncore, DEUC, 0); in i965gm_init_clock_gating()
4751 intel_uncore_write(uncore, in i965gm_init_clock_gating()
4758 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D1, I965_RCZ_CLOCK_GATE_DISABLE | in i965g_init_clock_gating()
4763 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D2, 0); in i965g_init_clock_gating()
4764 intel_uncore_write(&dev_priv->uncore, MI_ARB_STATE, in i965g_init_clock_gating()
4770 u32 dstate = intel_uncore_read(&dev_priv->uncore, D_STATE); in gen3_init_clock_gating()
4774 intel_uncore_write(&dev_priv->uncore, D_STATE, dstate); in gen3_init_clock_gating()
4777 intel_uncore_write(&dev_priv->uncore, ECOSKPD(RENDER_RING_BASE), in gen3_init_clock_gating()
4781 intel_uncore_write(&dev_priv->uncore, ECOSKPD(RENDER_RING_BASE), in gen3_init_clock_gating()
4785 intel_uncore_write(&dev_priv->uncore, INSTPM, _MASKED_BIT_ENABLE(INSTPM_AGPBUSY_INT_EN)); in gen3_init_clock_gating()
4788 intel_uncore_write(&dev_priv->uncore, MI_ARB_STATE, _MASKED_BIT_ENABLE(MI_ARB_C3_LP_WRITE_ENABLE)); in gen3_init_clock_gating()
4790 intel_uncore_write(&dev_priv->uncore, MI_ARB_STATE, in gen3_init_clock_gating()
4796 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D1, SV_CLOCK_GATE_DISABLE); in i85x_init_clock_gating()
4799 intel_uncore_write(&dev_priv->uncore, MI_STATE, _MASKED_BIT_ENABLE(MI_AGPBUSY_INT_EN) | in i85x_init_clock_gating()
4802 intel_uncore_write(&dev_priv->uncore, MEM_MODE, in i85x_init_clock_gating()
4812 intel_uncore_write(&dev_priv->uncore, SCPD0, in i85x_init_clock_gating()
4818 intel_uncore_write(&dev_priv->uncore, MEM_MODE, in i830_init_clock_gating()