Lines Matching refs:uncore

90 		intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR1_1,  in gen9_init_clock_gating()
91 intel_uncore_read(&dev_priv->uncore, CHICKEN_PAR1_1) | in gen9_init_clock_gating()
101 intel_uncore_rmw(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe), in gen9_init_clock_gating()
106 intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR1_1, in gen9_init_clock_gating()
107 intel_uncore_read(&dev_priv->uncore, CHICKEN_PAR1_1) | SKL_EDP_PSR_FIX_RDWRAP); in gen9_init_clock_gating()
110 intel_uncore_write(&dev_priv->uncore, GEN8_CHICKEN_DCPR_1, in gen9_init_clock_gating()
111 intel_uncore_read(&dev_priv->uncore, GEN8_CHICKEN_DCPR_1) | MASK_WAKEMEM); in gen9_init_clock_gating()
117 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in gen9_init_clock_gating()
126 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in bxt_init_clock_gating()
133 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in bxt_init_clock_gating()
140 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_0, intel_uncore_read(&dev_priv->uncore, GEN… in bxt_init_clock_gating()
149 intel_uncore_write(&dev_priv->uncore, RM_TIMEOUT, MMIO_TIMEOUT_US(950)); in bxt_init_clock_gating()
155 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in bxt_init_clock_gating()
162 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in bxt_init_clock_gating()
175 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_0, intel_uncore_read(&dev_priv->uncore, GEN… in glk_init_clock_gating()
183 tmp = intel_uncore_read(&dev_priv->uncore, CLKCFG); in pnv_get_mem_freq()
213 tmp = intel_uncore_read(&dev_priv->uncore, CSHRDDR3CTL); in pnv_get_mem_freq()
221 ddrpll = intel_uncore_read16(&dev_priv->uncore, DDRMPLL1); in ilk_get_mem_freq()
222 csipll = intel_uncore_read16(&dev_priv->uncore, CSIPLL0); in ilk_get_mem_freq()
384 was_enabled = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF_VLV) & FW_CSPWRDWNEN; in _intel_set_memory_cxsr()
385 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF_VLV, enable ? FW_CSPWRDWNEN : 0); in _intel_set_memory_cxsr()
386 intel_uncore_posting_read(&dev_priv->uncore, FW_BLC_SELF_VLV); in _intel_set_memory_cxsr()
388 was_enabled = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF) & FW_BLC_SELF_EN; in _intel_set_memory_cxsr()
389 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, enable ? FW_BLC_SELF_EN : 0); in _intel_set_memory_cxsr()
390 intel_uncore_posting_read(&dev_priv->uncore, FW_BLC_SELF); in _intel_set_memory_cxsr()
392 val = intel_uncore_read(&dev_priv->uncore, DSPFW3); in _intel_set_memory_cxsr()
398 intel_uncore_write(&dev_priv->uncore, DSPFW3, val); in _intel_set_memory_cxsr()
399 intel_uncore_posting_read(&dev_priv->uncore, DSPFW3); in _intel_set_memory_cxsr()
401 was_enabled = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF) & FW_BLC_SELF_EN; in _intel_set_memory_cxsr()
404 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, val); in _intel_set_memory_cxsr()
405 intel_uncore_posting_read(&dev_priv->uncore, FW_BLC_SELF); in _intel_set_memory_cxsr()
412 was_enabled = intel_uncore_read(&dev_priv->uncore, INSTPM) & INSTPM_SELF_EN; in _intel_set_memory_cxsr()
415 intel_uncore_write(&dev_priv->uncore, INSTPM, val); in _intel_set_memory_cxsr()
416 intel_uncore_posting_read(&dev_priv->uncore, INSTPM); in _intel_set_memory_cxsr()
512 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in vlv_get_fifo_size()
513 dsparb2 = intel_uncore_read(&dev_priv->uncore, DSPARB2); in vlv_get_fifo_size()
518 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in vlv_get_fifo_size()
519 dsparb2 = intel_uncore_read(&dev_priv->uncore, DSPARB2); in vlv_get_fifo_size()
524 dsparb2 = intel_uncore_read(&dev_priv->uncore, DSPARB2); in vlv_get_fifo_size()
525 dsparb3 = intel_uncore_read(&dev_priv->uncore, DSPARB3); in vlv_get_fifo_size()
543 u32 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in i9xx_get_fifo_size()
559 u32 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in i830_get_fifo_size()
576 u32 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in i845_get_fifo_size()
928 reg = intel_uncore_read(&dev_priv->uncore, DSPFW1); in pnv_update_wm()
931 intel_uncore_write(&dev_priv->uncore, DSPFW1, reg); in pnv_update_wm()
938 reg = intel_uncore_read(&dev_priv->uncore, DSPFW3); in pnv_update_wm()
941 intel_uncore_write(&dev_priv->uncore, DSPFW3, reg); in pnv_update_wm()
947 reg = intel_uncore_read(&dev_priv->uncore, DSPFW3); in pnv_update_wm()
950 intel_uncore_write(&dev_priv->uncore, DSPFW3, reg); in pnv_update_wm()
956 reg = intel_uncore_read(&dev_priv->uncore, DSPFW3); in pnv_update_wm()
959 intel_uncore_write(&dev_priv->uncore, DSPFW3, reg); in pnv_update_wm()
993 intel_uncore_write(&dev_priv->uncore, DSPFW1, in g4x_write_wm_values()
998 intel_uncore_write(&dev_priv->uncore, DSPFW2, in g4x_write_wm_values()
1005 intel_uncore_write(&dev_priv->uncore, DSPFW3, in g4x_write_wm_values()
1011 intel_uncore_posting_read(&dev_priv->uncore, DSPFW1); in g4x_write_wm_values()
1025 intel_uncore_write(&dev_priv->uncore, VLV_DDL(pipe), in vlv_write_wm_values()
1037 intel_uncore_write(&dev_priv->uncore, DSPHOWM, 0); in vlv_write_wm_values()
1038 intel_uncore_write(&dev_priv->uncore, DSPHOWM1, 0); in vlv_write_wm_values()
1039 intel_uncore_write(&dev_priv->uncore, DSPFW4, 0); in vlv_write_wm_values()
1040 intel_uncore_write(&dev_priv->uncore, DSPFW5, 0); in vlv_write_wm_values()
1041 intel_uncore_write(&dev_priv->uncore, DSPFW6, 0); in vlv_write_wm_values()
1043 intel_uncore_write(&dev_priv->uncore, DSPFW1, in vlv_write_wm_values()
1048 intel_uncore_write(&dev_priv->uncore, DSPFW2, in vlv_write_wm_values()
1052 intel_uncore_write(&dev_priv->uncore, DSPFW3, in vlv_write_wm_values()
1056 intel_uncore_write(&dev_priv->uncore, DSPFW7_CHV, in vlv_write_wm_values()
1059 intel_uncore_write(&dev_priv->uncore, DSPFW8_CHV, in vlv_write_wm_values()
1062 intel_uncore_write(&dev_priv->uncore, DSPFW9_CHV, in vlv_write_wm_values()
1065 intel_uncore_write(&dev_priv->uncore, DSPHOWM, in vlv_write_wm_values()
1077 intel_uncore_write(&dev_priv->uncore, DSPFW7, in vlv_write_wm_values()
1080 intel_uncore_write(&dev_priv->uncore, DSPHOWM, in vlv_write_wm_values()
1090 intel_uncore_posting_read(&dev_priv->uncore, DSPFW1); in vlv_write_wm_values()
2012 struct intel_uncore *uncore = &dev_priv->uncore; in vlv_atomic_update_fifo() local
2041 spin_lock(&uncore->lock); in vlv_atomic_update_fifo()
2045 dsparb = intel_uncore_read_fw(uncore, DSPARB); in vlv_atomic_update_fifo()
2046 dsparb2 = intel_uncore_read_fw(uncore, DSPARB2); in vlv_atomic_update_fifo()
2058 intel_uncore_write_fw(uncore, DSPARB, dsparb); in vlv_atomic_update_fifo()
2059 intel_uncore_write_fw(uncore, DSPARB2, dsparb2); in vlv_atomic_update_fifo()
2062 dsparb = intel_uncore_read_fw(uncore, DSPARB); in vlv_atomic_update_fifo()
2063 dsparb2 = intel_uncore_read_fw(uncore, DSPARB2); in vlv_atomic_update_fifo()
2075 intel_uncore_write_fw(uncore, DSPARB, dsparb); in vlv_atomic_update_fifo()
2076 intel_uncore_write_fw(uncore, DSPARB2, dsparb2); in vlv_atomic_update_fifo()
2079 dsparb3 = intel_uncore_read_fw(uncore, DSPARB3); in vlv_atomic_update_fifo()
2080 dsparb2 = intel_uncore_read_fw(uncore, DSPARB2); in vlv_atomic_update_fifo()
2092 intel_uncore_write_fw(uncore, DSPARB3, dsparb3); in vlv_atomic_update_fifo()
2093 intel_uncore_write_fw(uncore, DSPARB2, dsparb2); in vlv_atomic_update_fifo()
2099 intel_uncore_posting_read_fw(uncore, DSPARB); in vlv_atomic_update_fifo()
2101 spin_unlock(&uncore->lock); in vlv_atomic_update_fifo()
2323 intel_uncore_write(&dev_priv->uncore, DSPFW1, FW_WM(srwm, SR) | in i965_update_wm()
2327 intel_uncore_write(&dev_priv->uncore, DSPFW2, FW_WM(8, CURSORA) | in i965_update_wm()
2330 intel_uncore_write(&dev_priv->uncore, DSPFW3, FW_WM(cursor_sr, CURSOR_SR)); in i965_update_wm()
2465 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, in i9xx_update_wm()
2468 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, srwm & 0x3f); in i9xx_update_wm()
2482 intel_uncore_write(&dev_priv->uncore, FW_BLC, fwater_lo); in i9xx_update_wm()
2483 intel_uncore_write(&dev_priv->uncore, FW_BLC2, fwater_hi); in i9xx_update_wm()
2505 fwater_lo = intel_uncore_read(&dev_priv->uncore, FW_BLC) & ~0xfff; in i845_update_wm()
2511 intel_uncore_write(&dev_priv->uncore, FW_BLC, fwater_lo); in i845_update_wm()
2866 struct intel_uncore *uncore = &dev_priv->uncore; in intel_read_wm_latency() local
2952 u64 sskpd = intel_uncore_read64(uncore, MCH_SSKPD); in intel_read_wm_latency()
2962 u32 sskpd = intel_uncore_read(uncore, MCH_SSKPD); in intel_read_wm_latency()
2969 u32 mltr = intel_uncore_read(uncore, MLTR_ILK); in intel_read_wm_latency()
3557 intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, previous->wm_lp[2]); in _ilk_disable_lp_wm()
3562 intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, previous->wm_lp[1]); in _ilk_disable_lp_wm()
3567 intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, previous->wm_lp[0]); in _ilk_disable_lp_wm()
3597 intel_uncore_write(&dev_priv->uncore, WM0_PIPE_ILK(PIPE_A), results->wm_pipe[0]); in ilk_write_wm_values()
3599 intel_uncore_write(&dev_priv->uncore, WM0_PIPE_ILK(PIPE_B), results->wm_pipe[1]); in ilk_write_wm_values()
3601 intel_uncore_write(&dev_priv->uncore, WM0_PIPE_ILK(PIPE_C), results->wm_pipe[2]); in ilk_write_wm_values()
3605 val = intel_uncore_read(&dev_priv->uncore, WM_MISC); in ilk_write_wm_values()
3610 intel_uncore_write(&dev_priv->uncore, WM_MISC, val); in ilk_write_wm_values()
3612 val = intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL2); in ilk_write_wm_values()
3617 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL2, val); in ilk_write_wm_values()
3622 val = intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL); in ilk_write_wm_values()
3627 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, val); in ilk_write_wm_values()
3632 intel_uncore_write(&dev_priv->uncore, WM1S_LP_ILK, results->wm_lp_spr[0]); in ilk_write_wm_values()
3636 intel_uncore_write(&dev_priv->uncore, WM2S_LP_IVB, results->wm_lp_spr[1]); in ilk_write_wm_values()
3638 intel_uncore_write(&dev_priv->uncore, WM3S_LP_IVB, results->wm_lp_spr[2]); in ilk_write_wm_values()
3642 intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, results->wm_lp[0]); in ilk_write_wm_values()
3644 intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, results->wm_lp[1]); in ilk_write_wm_values()
3646 intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, results->wm_lp[2]); in ilk_write_wm_values()
3662 if (intel_uncore_read(&dev_priv->uncore, in intel_enabled_dbuf_slices_mask()
4304 val = intel_uncore_read(&dev_priv->uncore, CUR_BUF_CFG(pipe)); in skl_ddb_get_hw_plane_state()
4309 val = intel_uncore_read(&dev_priv->uncore, PLANE_CTL(pipe, plane_id)); in skl_ddb_get_hw_plane_state()
4318 val = intel_uncore_read(&dev_priv->uncore, PLANE_BUF_CFG(pipe, plane_id)); in skl_ddb_get_hw_plane_state()
4321 val = intel_uncore_read(&dev_priv->uncore, PLANE_BUF_CFG(pipe, plane_id)); in skl_ddb_get_hw_plane_state()
4322 val2 = intel_uncore_read(&dev_priv->uncore, PLANE_NV12_BUF_CFG(pipe, plane_id)); in skl_ddb_get_hw_plane_state()
6557 val = intel_uncore_read(&dev_priv->uncore, PLANE_WM(pipe, plane_id, level)); in skl_pipe_wm_get_hw_state()
6559 val = intel_uncore_read(&dev_priv->uncore, CUR_WM(pipe, level)); in skl_pipe_wm_get_hw_state()
6565 val = intel_uncore_read(&dev_priv->uncore, PLANE_WM_TRANS(pipe, plane_id)); in skl_pipe_wm_get_hw_state()
6567 val = intel_uncore_read(&dev_priv->uncore, CUR_WM_TRANS(pipe)); in skl_pipe_wm_get_hw_state()
6573 val = intel_uncore_read(&dev_priv->uncore, in skl_pipe_wm_get_hw_state()
6576 val = intel_uncore_read(&dev_priv->uncore, in skl_pipe_wm_get_hw_state()
6582 val = intel_uncore_read(&dev_priv->uncore, in skl_pipe_wm_get_hw_state()
6585 val = intel_uncore_read(&dev_priv->uncore, in skl_pipe_wm_get_hw_state()
6663 hw->wm_pipe[pipe] = intel_uncore_read(&dev_priv->uncore, WM0_PIPE_ILK(pipe)); in ilk_pipe_wm_get_hw_state()
6707 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW1); in g4x_read_wm_values()
6713 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW2); in g4x_read_wm_values()
6721 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW3); in g4x_read_wm_values()
6735 tmp = intel_uncore_read(&dev_priv->uncore, VLV_DDL(pipe)); in vlv_read_wm_values()
6747 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW1); in vlv_read_wm_values()
6753 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW2); in vlv_read_wm_values()
6758 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW3); in vlv_read_wm_values()
6762 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW7_CHV); in vlv_read_wm_values()
6766 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW8_CHV); in vlv_read_wm_values()
6770 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW9_CHV); in vlv_read_wm_values()
6774 tmp = intel_uncore_read(&dev_priv->uncore, DSPHOWM); in vlv_read_wm_values()
6786 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW7); in vlv_read_wm_values()
6790 tmp = intel_uncore_read(&dev_priv->uncore, DSPHOWM); in vlv_read_wm_values()
6811 wm->cxsr = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF) & FW_BLC_SELF_EN; in g4x_wm_get_hw_state()
6958 wm->cxsr = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF_VLV) & FW_CSPWRDWNEN; in vlv_wm_get_hw_state()
7105 …intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, intel_uncore_read(&dev_priv->uncore, WM3_LP_ILK)… in ilk_init_lp_watermarks()
7106 …intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, intel_uncore_read(&dev_priv->uncore, WM2_LP_ILK)… in ilk_init_lp_watermarks()
7107 …intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, intel_uncore_read(&dev_priv->uncore, WM1_LP_ILK)… in ilk_init_lp_watermarks()
7125 hw->wm_lp[0] = intel_uncore_read(&dev_priv->uncore, WM1_LP_ILK); in ilk_wm_get_hw_state()
7126 hw->wm_lp[1] = intel_uncore_read(&dev_priv->uncore, WM2_LP_ILK); in ilk_wm_get_hw_state()
7127 hw->wm_lp[2] = intel_uncore_read(&dev_priv->uncore, WM3_LP_ILK); in ilk_wm_get_hw_state()
7129 hw->wm_lp_spr[0] = intel_uncore_read(&dev_priv->uncore, WM1S_LP_ILK); in ilk_wm_get_hw_state()
7131 hw->wm_lp_spr[1] = intel_uncore_read(&dev_priv->uncore, WM2S_LP_IVB); in ilk_wm_get_hw_state()
7132 hw->wm_lp_spr[2] = intel_uncore_read(&dev_priv->uncore, WM3S_LP_IVB); in ilk_wm_get_hw_state()
7136 hw->partitioning = (intel_uncore_read(&dev_priv->uncore, WM_MISC) & WM_MISC_DATA_PARTITION_5_6) ? in ilk_wm_get_hw_state()
7139 …hw->partitioning = (intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL2) & DISP_DATA_PARTITION_5_6)… in ilk_wm_get_hw_state()
7143 !(intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL) & DISP_FBC_WM_DIS); in ilk_wm_get_hw_state()
7153 val = intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL2); in intel_enable_ipc()
7160 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL2, val); in intel_enable_ipc()
7195 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, PCH_DPLSUNIT_CLOCK_GATE_DISABLE); in ibx_init_clock_gating()
7203 intel_uncore_write(&dev_priv->uncore, DSPCNTR(pipe), in g4x_disable_trickle_feed()
7204 intel_uncore_read(&dev_priv->uncore, DSPCNTR(pipe)) | in g4x_disable_trickle_feed()
7207 …intel_uncore_write(&dev_priv->uncore, DSPSURF(pipe), intel_uncore_read(&dev_priv->uncore, DSPSURF(… in g4x_disable_trickle_feed()
7208 intel_uncore_posting_read(&dev_priv->uncore, DSPSURF(pipe)); in g4x_disable_trickle_feed()
7224 intel_uncore_write(&dev_priv->uncore, PCH_3DCGDIS0, in ilk_init_clock_gating()
7227 intel_uncore_write(&dev_priv->uncore, PCH_3DCGDIS1, in ilk_init_clock_gating()
7237 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in ilk_init_clock_gating()
7238 (intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in ilk_init_clock_gating()
7241 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, in ilk_init_clock_gating()
7242 (intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL) | in ilk_init_clock_gating()
7254 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1, in ilk_init_clock_gating()
7255 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1) | in ilk_init_clock_gating()
7257 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in ilk_init_clock_gating()
7258 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in ilk_init_clock_gating()
7262 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, dspclk_gate); in ilk_init_clock_gating()
7264 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in ilk_init_clock_gating()
7265 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in ilk_init_clock_gating()
7283 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, PCH_DPLSUNIT_CLOCK_GATE_DISABLE | in cpt_init_clock_gating()
7286 …intel_uncore_write(&dev_priv->uncore, SOUTH_CHICKEN2, intel_uncore_read(&dev_priv->uncore, SOUTH_C… in cpt_init_clock_gating()
7292 val = intel_uncore_read(&dev_priv->uncore, TRANS_CHICKEN2(pipe)); in cpt_init_clock_gating()
7299 intel_uncore_write(&dev_priv->uncore, TRANS_CHICKEN2(pipe), val); in cpt_init_clock_gating()
7303 intel_uncore_write(&dev_priv->uncore, TRANS_CHICKEN1(pipe), in cpt_init_clock_gating()
7312 tmp = intel_uncore_read(&dev_priv->uncore, MCH_SSKPD); in gen6_check_mch_setup()
7323 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, dspclk_gate); in gen6_init_clock_gating()
7325 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in gen6_init_clock_gating()
7326 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in gen6_init_clock_gating()
7329 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, in gen6_init_clock_gating()
7330 intel_uncore_read(&dev_priv->uncore, GEN6_UCGCTL1) | in gen6_init_clock_gating()
7347 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL2, in gen6_init_clock_gating()
7362 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1, in gen6_init_clock_gating()
7363 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1) | in gen6_init_clock_gating()
7365 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in gen6_init_clock_gating()
7366 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in gen6_init_clock_gating()
7368 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, in gen6_init_clock_gating()
7369 intel_uncore_read(&dev_priv->uncore, ILK_DSPCLK_GATE_D) | in gen6_init_clock_gating()
7387 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, in lpt_init_clock_gating()
7388 intel_uncore_read(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D) | in lpt_init_clock_gating()
7392 intel_uncore_write(&dev_priv->uncore, TRANS_CHICKEN1(PIPE_A), in lpt_init_clock_gating()
7393 intel_uncore_read(&dev_priv->uncore, TRANS_CHICKEN1(PIPE_A)) | in lpt_init_clock_gating()
7400 u32 val = intel_uncore_read(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D); in lpt_suspend_hw()
7403 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, val); in lpt_suspend_hw()
7415 misccpctl = intel_uncore_read(&dev_priv->uncore, GEN7_MISCCPCTL); in gen8_set_l3sqc_credits()
7416 intel_uncore_write(&dev_priv->uncore, GEN7_MISCCPCTL, misccpctl & ~GEN7_DOP_CLOCK_GATE_ENABLE); in gen8_set_l3sqc_credits()
7418 val = intel_uncore_read(&dev_priv->uncore, GEN8_L3SQCREG1); in gen8_set_l3sqc_credits()
7422 intel_uncore_write(&dev_priv->uncore, GEN8_L3SQCREG1, val); in gen8_set_l3sqc_credits()
7428 intel_uncore_posting_read(&dev_priv->uncore, GEN8_L3SQCREG1); in gen8_set_l3sqc_credits()
7430 intel_uncore_write(&dev_priv->uncore, GEN7_MISCCPCTL, misccpctl); in gen8_set_l3sqc_credits()
7436 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, in icl_init_clock_gating()
7440 intel_uncore_rmw(&dev_priv->uncore, GEN8_CHICKEN_DCPR_1, in icl_init_clock_gating()
7449 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, in gen12lp_init_clock_gating()
7454 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_3, intel_uncore_read(&dev_priv->uncore, GEN… in gen12lp_init_clock_gating()
7459 intel_uncore_rmw(&dev_priv->uncore, CLKREQ_POLICY, in gen12lp_init_clock_gating()
7477 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_3, intel_uncore_read(&dev_priv->uncore, GEN… in dg1_init_clock_gating()
7487 …intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, intel_uncore_read(&dev_priv->uncore, SO… in cnp_init_clock_gating()
7497 …intel_uncore_write(&dev_priv->uncore, FBC_LLC_READ_CTRL, intel_uncore_read(&dev_priv->uncore, FBC_… in cfl_init_clock_gating()
7504 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in cfl_init_clock_gating()
7511 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in cfl_init_clock_gating()
7520 …intel_uncore_write(&dev_priv->uncore, FBC_LLC_READ_CTRL, intel_uncore_read(&dev_priv->uncore, FBC_… in kbl_init_clock_gating()
7525 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in kbl_init_clock_gating()
7530 …intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, intel_uncore_read(&dev_priv->uncore, GEN6_UCGC… in kbl_init_clock_gating()
7537 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in kbl_init_clock_gating()
7544 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in kbl_init_clock_gating()
7553 …intel_uncore_write(&dev_priv->uncore, GEN7_MISCCPCTL, intel_uncore_read(&dev_priv->uncore, GEN7_MI… in skl_init_clock_gating()
7557 …intel_uncore_write(&dev_priv->uncore, FBC_LLC_READ_CTRL, intel_uncore_read(&dev_priv->uncore, FBC_… in skl_init_clock_gating()
7564 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in skl_init_clock_gating()
7571 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in skl_init_clock_gating()
7578 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in skl_init_clock_gating()
7587 intel_uncore_write(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A), in bdw_init_clock_gating()
7588 intel_uncore_read(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A)) | in bdw_init_clock_gating()
7592 …intel_uncore_write(&dev_priv->uncore, GAM_ECOCHK, intel_uncore_read(&dev_priv->uncore, GAM_ECOCHK)… in bdw_init_clock_gating()
7595 intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR1_1, in bdw_init_clock_gating()
7596 intel_uncore_read(&dev_priv->uncore, CHICKEN_PAR1_1) | DPA_MASK_VBLANK_SRD); in bdw_init_clock_gating()
7600 intel_uncore_write(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe), in bdw_init_clock_gating()
7601 intel_uncore_read(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe)) | in bdw_init_clock_gating()
7607 intel_uncore_write(&dev_priv->uncore, GEN7_FF_THREAD_MODE, in bdw_init_clock_gating()
7608 intel_uncore_read(&dev_priv->uncore, GEN7_FF_THREAD_MODE) & in bdw_init_clock_gating()
7611 intel_uncore_write(&dev_priv->uncore, GEN6_RC_SLEEP_PSMI_CONTROL, in bdw_init_clock_gating()
7615 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in bdw_init_clock_gating()
7622 …intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR2_1, intel_uncore_read(&dev_priv->uncore, CHICKEN… in bdw_init_clock_gating()
7632 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, in bdw_init_clock_gating()
7633 intel_uncore_read(&dev_priv->uncore, GEN6_UCGCTL1) | GEN6_EU_TCUNIT_CLOCK_GATE_DISABLE); in bdw_init_clock_gating()
7639 intel_uncore_write(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A), in hsw_init_clock_gating()
7640 intel_uncore_read(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A)) | in hsw_init_clock_gating()
7644 intel_uncore_write(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, in hsw_init_clock_gating()
7645 intel_uncore_read(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) | in hsw_init_clock_gating()
7649 …intel_uncore_write(&dev_priv->uncore, GAM_ECOCHK, intel_uncore_read(&dev_priv->uncore, GAM_ECOCHK)… in hsw_init_clock_gating()
7658 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, ILK_VRHUNIT_CLOCK_GATE_DISABLE); in ivb_init_clock_gating()
7661 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1, in ivb_init_clock_gating()
7662 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1) | in ivb_init_clock_gating()
7666 intel_uncore_write(&dev_priv->uncore, IVB_CHICKEN3, in ivb_init_clock_gating()
7671 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2, in ivb_init_clock_gating()
7675 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2, in ivb_init_clock_gating()
7677 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2_GT2, in ivb_init_clock_gating()
7685 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL2, in ivb_init_clock_gating()
7689 intel_uncore_write(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, in ivb_init_clock_gating()
7690 intel_uncore_read(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) | in ivb_init_clock_gating()
7695 snpcr = intel_uncore_read(&dev_priv->uncore, GEN6_MBCUNIT_SNPCR); in ivb_init_clock_gating()
7698 intel_uncore_write(&dev_priv->uncore, GEN6_MBCUNIT_SNPCR, snpcr); in ivb_init_clock_gating()
7709 intel_uncore_write(&dev_priv->uncore, IVB_CHICKEN3, in vlv_init_clock_gating()
7714 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2, in vlv_init_clock_gating()
7718 intel_uncore_write(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, in vlv_init_clock_gating()
7719 intel_uncore_read(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) | in vlv_init_clock_gating()
7726 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL2, in vlv_init_clock_gating()
7732 intel_uncore_write(&dev_priv->uncore, GEN7_UCGCTL4, in vlv_init_clock_gating()
7733 intel_uncore_read(&dev_priv->uncore, GEN7_UCGCTL4) | GEN7_L3BANK2X_CLOCK_GATE_DISABLE); in vlv_init_clock_gating()
7740 intel_uncore_write(&dev_priv->uncore, VLV_GUNIT_CLOCK_GATE, GCFG_DIS); in vlv_init_clock_gating()
7747 intel_uncore_write(&dev_priv->uncore, GEN7_FF_THREAD_MODE, in chv_init_clock_gating()
7748 intel_uncore_read(&dev_priv->uncore, GEN7_FF_THREAD_MODE) & in chv_init_clock_gating()
7752 intel_uncore_write(&dev_priv->uncore, GEN6_RC_SLEEP_PSMI_CONTROL, in chv_init_clock_gating()
7756 …intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, intel_uncore_read(&dev_priv->uncore, GEN6_UCGC… in chv_init_clock_gating()
7760 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in chv_init_clock_gating()
7775 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D1, 0); in g4x_init_clock_gating()
7776 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D2, VF_UNIT_CLOCK_GATE_DISABLE | in g4x_init_clock_gating()
7779 intel_uncore_write(&dev_priv->uncore, RAMCLK_GATE_D, 0); in g4x_init_clock_gating()
7785 intel_uncore_write(&dev_priv->uncore, DSPCLK_GATE_D, dspclk_gate); in g4x_init_clock_gating()
7792 struct intel_uncore *uncore = &dev_priv->uncore; in i965gm_init_clock_gating() local
7794 intel_uncore_write(uncore, RENCLK_GATE_D1, I965_RCC_CLOCK_GATE_DISABLE); in i965gm_init_clock_gating()
7795 intel_uncore_write(uncore, RENCLK_GATE_D2, 0); in i965gm_init_clock_gating()
7796 intel_uncore_write(uncore, DSPCLK_GATE_D, 0); in i965gm_init_clock_gating()
7797 intel_uncore_write(uncore, RAMCLK_GATE_D, 0); in i965gm_init_clock_gating()
7798 intel_uncore_write16(uncore, DEUC, 0); in i965gm_init_clock_gating()
7799 intel_uncore_write(uncore, in i965gm_init_clock_gating()
7806 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D1, I965_RCZ_CLOCK_GATE_DISABLE | in i965g_init_clock_gating()
7811 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D2, 0); in i965g_init_clock_gating()
7812 intel_uncore_write(&dev_priv->uncore, MI_ARB_STATE, in i965g_init_clock_gating()
7818 u32 dstate = intel_uncore_read(&dev_priv->uncore, D_STATE); in gen3_init_clock_gating()
7822 intel_uncore_write(&dev_priv->uncore, D_STATE, dstate); in gen3_init_clock_gating()
7825 intel_uncore_write(&dev_priv->uncore, ECOSKPD, _MASKED_BIT_ENABLE(ECO_GATING_CX_ONLY)); in gen3_init_clock_gating()
7828 intel_uncore_write(&dev_priv->uncore, ECOSKPD, _MASKED_BIT_DISABLE(ECO_FLIP_DONE)); in gen3_init_clock_gating()
7831 intel_uncore_write(&dev_priv->uncore, INSTPM, _MASKED_BIT_ENABLE(INSTPM_AGPBUSY_INT_EN)); in gen3_init_clock_gating()
7834 intel_uncore_write(&dev_priv->uncore, MI_ARB_STATE, _MASKED_BIT_ENABLE(MI_ARB_C3_LP_WRITE_ENABLE)); in gen3_init_clock_gating()
7836 intel_uncore_write(&dev_priv->uncore, MI_ARB_STATE, in gen3_init_clock_gating()
7842 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D1, SV_CLOCK_GATE_DISABLE); in i85x_init_clock_gating()
7845 intel_uncore_write(&dev_priv->uncore, MI_STATE, _MASKED_BIT_ENABLE(MI_AGPBUSY_INT_EN) | in i85x_init_clock_gating()
7848 intel_uncore_write(&dev_priv->uncore, MEM_MODE, in i85x_init_clock_gating()
7858 intel_uncore_write(&dev_priv->uncore, SCPD0, in i85x_init_clock_gating()
7864 intel_uncore_write(&dev_priv->uncore, MEM_MODE, in i830_init_clock_gating()