Lines Matching refs:uncore
89 intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR1_1, in gen9_init_clock_gating()
90 intel_uncore_read(&dev_priv->uncore, CHICKEN_PAR1_1) | in gen9_init_clock_gating()
100 intel_uncore_rmw(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe), in gen9_init_clock_gating()
105 intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR1_1, in gen9_init_clock_gating()
106 intel_uncore_read(&dev_priv->uncore, CHICKEN_PAR1_1) | SKL_EDP_PSR_FIX_RDWRAP); in gen9_init_clock_gating()
109 intel_uncore_write(&dev_priv->uncore, GEN8_CHICKEN_DCPR_1, in gen9_init_clock_gating()
110 intel_uncore_read(&dev_priv->uncore, GEN8_CHICKEN_DCPR_1) | MASK_WAKEMEM); in gen9_init_clock_gating()
116 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in gen9_init_clock_gating()
125 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in bxt_init_clock_gating()
132 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in bxt_init_clock_gating()
139 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_0, intel_uncore_read(&dev_priv->uncore, GEN… in bxt_init_clock_gating()
148 intel_uncore_write(&dev_priv->uncore, RM_TIMEOUT, MMIO_TIMEOUT_US(950)); in bxt_init_clock_gating()
154 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in bxt_init_clock_gating()
161 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in bxt_init_clock_gating()
174 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_0, intel_uncore_read(&dev_priv->uncore, GEN… in glk_init_clock_gating()
182 tmp = intel_uncore_read(&dev_priv->uncore, CLKCFG); in pnv_get_mem_freq()
212 tmp = intel_uncore_read(&dev_priv->uncore, CSHRDDR3CTL); in pnv_get_mem_freq()
220 ddrpll = intel_uncore_read16(&dev_priv->uncore, DDRMPLL1); in ilk_get_mem_freq()
221 csipll = intel_uncore_read16(&dev_priv->uncore, CSIPLL0); in ilk_get_mem_freq()
383 was_enabled = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF_VLV) & FW_CSPWRDWNEN; in _intel_set_memory_cxsr()
384 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF_VLV, enable ? FW_CSPWRDWNEN : 0); in _intel_set_memory_cxsr()
385 intel_uncore_posting_read(&dev_priv->uncore, FW_BLC_SELF_VLV); in _intel_set_memory_cxsr()
387 was_enabled = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF) & FW_BLC_SELF_EN; in _intel_set_memory_cxsr()
388 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, enable ? FW_BLC_SELF_EN : 0); in _intel_set_memory_cxsr()
389 intel_uncore_posting_read(&dev_priv->uncore, FW_BLC_SELF); in _intel_set_memory_cxsr()
391 val = intel_uncore_read(&dev_priv->uncore, DSPFW3); in _intel_set_memory_cxsr()
397 intel_uncore_write(&dev_priv->uncore, DSPFW3, val); in _intel_set_memory_cxsr()
398 intel_uncore_posting_read(&dev_priv->uncore, DSPFW3); in _intel_set_memory_cxsr()
400 was_enabled = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF) & FW_BLC_SELF_EN; in _intel_set_memory_cxsr()
403 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, val); in _intel_set_memory_cxsr()
404 intel_uncore_posting_read(&dev_priv->uncore, FW_BLC_SELF); in _intel_set_memory_cxsr()
411 was_enabled = intel_uncore_read(&dev_priv->uncore, INSTPM) & INSTPM_SELF_EN; in _intel_set_memory_cxsr()
414 intel_uncore_write(&dev_priv->uncore, INSTPM, val); in _intel_set_memory_cxsr()
415 intel_uncore_posting_read(&dev_priv->uncore, INSTPM); in _intel_set_memory_cxsr()
511 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in vlv_get_fifo_size()
512 dsparb2 = intel_uncore_read(&dev_priv->uncore, DSPARB2); in vlv_get_fifo_size()
517 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in vlv_get_fifo_size()
518 dsparb2 = intel_uncore_read(&dev_priv->uncore, DSPARB2); in vlv_get_fifo_size()
523 dsparb2 = intel_uncore_read(&dev_priv->uncore, DSPARB2); in vlv_get_fifo_size()
524 dsparb3 = intel_uncore_read(&dev_priv->uncore, DSPARB3); in vlv_get_fifo_size()
542 u32 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in i9xx_get_fifo_size()
558 u32 dsparb = intel_uncore_read(&dev_priv->uncore, DSPARB); in i830_get_fifo_size()
575 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()
2017 struct intel_uncore *uncore = &dev_priv->uncore; in vlv_atomic_update_fifo() local
2046 spin_lock(&uncore->lock); in vlv_atomic_update_fifo()
2050 dsparb = intel_uncore_read_fw(uncore, DSPARB); in vlv_atomic_update_fifo()
2051 dsparb2 = intel_uncore_read_fw(uncore, DSPARB2); in vlv_atomic_update_fifo()
2063 intel_uncore_write_fw(uncore, DSPARB, dsparb); in vlv_atomic_update_fifo()
2064 intel_uncore_write_fw(uncore, DSPARB2, dsparb2); in vlv_atomic_update_fifo()
2067 dsparb = intel_uncore_read_fw(uncore, DSPARB); in vlv_atomic_update_fifo()
2068 dsparb2 = intel_uncore_read_fw(uncore, DSPARB2); in vlv_atomic_update_fifo()
2080 intel_uncore_write_fw(uncore, DSPARB, dsparb); in vlv_atomic_update_fifo()
2081 intel_uncore_write_fw(uncore, DSPARB2, dsparb2); in vlv_atomic_update_fifo()
2084 dsparb3 = intel_uncore_read_fw(uncore, DSPARB3); in vlv_atomic_update_fifo()
2085 dsparb2 = intel_uncore_read_fw(uncore, DSPARB2); in vlv_atomic_update_fifo()
2097 intel_uncore_write_fw(uncore, DSPARB3, dsparb3); in vlv_atomic_update_fifo()
2098 intel_uncore_write_fw(uncore, DSPARB2, dsparb2); in vlv_atomic_update_fifo()
2104 intel_uncore_posting_read_fw(uncore, DSPARB); in vlv_atomic_update_fifo()
2106 spin_unlock(&uncore->lock); in vlv_atomic_update_fifo()
2329 intel_uncore_write(&dev_priv->uncore, DSPFW1, FW_WM(srwm, SR) | in i965_update_wm()
2333 intel_uncore_write(&dev_priv->uncore, DSPFW2, FW_WM(8, CURSORA) | in i965_update_wm()
2336 intel_uncore_write(&dev_priv->uncore, DSPFW3, FW_WM(cursor_sr, CURSOR_SR)); in i965_update_wm()
2466 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, in i9xx_update_wm()
2469 intel_uncore_write(&dev_priv->uncore, FW_BLC_SELF, srwm & 0x3f); in i9xx_update_wm()
2483 intel_uncore_write(&dev_priv->uncore, FW_BLC, fwater_lo); in i9xx_update_wm()
2484 intel_uncore_write(&dev_priv->uncore, FW_BLC2, fwater_hi); in i9xx_update_wm()
2507 fwater_lo = intel_uncore_read(&dev_priv->uncore, FW_BLC) & ~0xfff; in i845_update_wm()
2513 intel_uncore_write(&dev_priv->uncore, FW_BLC, fwater_lo); in i845_update_wm()
2868 struct intel_uncore *uncore = &dev_priv->uncore; in intel_read_wm_latency() local
2953 u64 sskpd = intel_uncore_read64(uncore, MCH_SSKPD); in intel_read_wm_latency()
2963 u32 sskpd = intel_uncore_read(uncore, MCH_SSKPD); in intel_read_wm_latency()
2970 u32 mltr = intel_uncore_read(uncore, MLTR_ILK); in intel_read_wm_latency()
3558 intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, previous->wm_lp[2]); in _ilk_disable_lp_wm()
3563 intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, previous->wm_lp[1]); in _ilk_disable_lp_wm()
3568 intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, previous->wm_lp[0]); in _ilk_disable_lp_wm()
3598 intel_uncore_write(&dev_priv->uncore, WM0_PIPE_ILK(PIPE_A), results->wm_pipe[0]); in ilk_write_wm_values()
3600 intel_uncore_write(&dev_priv->uncore, WM0_PIPE_ILK(PIPE_B), results->wm_pipe[1]); in ilk_write_wm_values()
3602 intel_uncore_write(&dev_priv->uncore, WM0_PIPE_ILK(PIPE_C), results->wm_pipe[2]); in ilk_write_wm_values()
3606 val = intel_uncore_read(&dev_priv->uncore, WM_MISC); in ilk_write_wm_values()
3611 intel_uncore_write(&dev_priv->uncore, WM_MISC, val); in ilk_write_wm_values()
3613 val = intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL2); in ilk_write_wm_values()
3618 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL2, val); in ilk_write_wm_values()
3623 val = intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL); in ilk_write_wm_values()
3628 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, val); in ilk_write_wm_values()
3633 intel_uncore_write(&dev_priv->uncore, WM1S_LP_ILK, results->wm_lp_spr[0]); in ilk_write_wm_values()
3637 intel_uncore_write(&dev_priv->uncore, WM2S_LP_IVB, results->wm_lp_spr[1]); in ilk_write_wm_values()
3639 intel_uncore_write(&dev_priv->uncore, WM3S_LP_IVB, results->wm_lp_spr[2]); in ilk_write_wm_values()
3643 intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, results->wm_lp[0]); in ilk_write_wm_values()
3645 intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, results->wm_lp[1]); in ilk_write_wm_values()
3647 intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, results->wm_lp[2]); in ilk_write_wm_values()
3663 if (intel_uncore_read(&dev_priv->uncore, in intel_enabled_dbuf_slices_mask()
4305 val = intel_uncore_read(&dev_priv->uncore, CUR_BUF_CFG(pipe)); in skl_ddb_get_hw_plane_state()
4310 val = intel_uncore_read(&dev_priv->uncore, PLANE_CTL(pipe, plane_id)); in skl_ddb_get_hw_plane_state()
4319 val = intel_uncore_read(&dev_priv->uncore, PLANE_BUF_CFG(pipe, plane_id)); in skl_ddb_get_hw_plane_state()
4322 val = intel_uncore_read(&dev_priv->uncore, PLANE_BUF_CFG(pipe, plane_id)); in skl_ddb_get_hw_plane_state()
4323 val2 = intel_uncore_read(&dev_priv->uncore, PLANE_NV12_BUF_CFG(pipe, plane_id)); in skl_ddb_get_hw_plane_state()
6558 val = intel_uncore_read(&dev_priv->uncore, PLANE_WM(pipe, plane_id, level)); in skl_pipe_wm_get_hw_state()
6560 val = intel_uncore_read(&dev_priv->uncore, CUR_WM(pipe, level)); in skl_pipe_wm_get_hw_state()
6566 val = intel_uncore_read(&dev_priv->uncore, PLANE_WM_TRANS(pipe, plane_id)); in skl_pipe_wm_get_hw_state()
6568 val = intel_uncore_read(&dev_priv->uncore, CUR_WM_TRANS(pipe)); in skl_pipe_wm_get_hw_state()
6574 val = intel_uncore_read(&dev_priv->uncore, in skl_pipe_wm_get_hw_state()
6577 val = intel_uncore_read(&dev_priv->uncore, in skl_pipe_wm_get_hw_state()
6583 val = intel_uncore_read(&dev_priv->uncore, in skl_pipe_wm_get_hw_state()
6586 val = intel_uncore_read(&dev_priv->uncore, in skl_pipe_wm_get_hw_state()
6664 hw->wm_pipe[pipe] = intel_uncore_read(&dev_priv->uncore, WM0_PIPE_ILK(pipe)); in ilk_pipe_wm_get_hw_state()
6708 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW1); in g4x_read_wm_values()
6714 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW2); in g4x_read_wm_values()
6722 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW3); in g4x_read_wm_values()
6736 tmp = intel_uncore_read(&dev_priv->uncore, VLV_DDL(pipe)); in vlv_read_wm_values()
6748 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW1); in vlv_read_wm_values()
6754 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW2); in vlv_read_wm_values()
6759 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW3); in vlv_read_wm_values()
6763 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW7_CHV); in vlv_read_wm_values()
6767 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW8_CHV); in vlv_read_wm_values()
6771 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW9_CHV); in vlv_read_wm_values()
6775 tmp = intel_uncore_read(&dev_priv->uncore, DSPHOWM); in vlv_read_wm_values()
6787 tmp = intel_uncore_read(&dev_priv->uncore, DSPFW7); in vlv_read_wm_values()
6791 tmp = intel_uncore_read(&dev_priv->uncore, DSPHOWM); in vlv_read_wm_values()
6812 wm->cxsr = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF) & FW_BLC_SELF_EN; in g4x_wm_get_hw_state()
6956 wm->cxsr = intel_uncore_read(&dev_priv->uncore, FW_BLC_SELF_VLV) & FW_CSPWRDWNEN; in vlv_wm_get_hw_state()
7103 …intel_uncore_write(&dev_priv->uncore, WM3_LP_ILK, intel_uncore_read(&dev_priv->uncore, WM3_LP_ILK)… in ilk_init_lp_watermarks()
7104 …intel_uncore_write(&dev_priv->uncore, WM2_LP_ILK, intel_uncore_read(&dev_priv->uncore, WM2_LP_ILK)… in ilk_init_lp_watermarks()
7105 …intel_uncore_write(&dev_priv->uncore, WM1_LP_ILK, intel_uncore_read(&dev_priv->uncore, WM1_LP_ILK)… in ilk_init_lp_watermarks()
7123 hw->wm_lp[0] = intel_uncore_read(&dev_priv->uncore, WM1_LP_ILK); in ilk_wm_get_hw_state()
7124 hw->wm_lp[1] = intel_uncore_read(&dev_priv->uncore, WM2_LP_ILK); in ilk_wm_get_hw_state()
7125 hw->wm_lp[2] = intel_uncore_read(&dev_priv->uncore, WM3_LP_ILK); in ilk_wm_get_hw_state()
7127 hw->wm_lp_spr[0] = intel_uncore_read(&dev_priv->uncore, WM1S_LP_ILK); in ilk_wm_get_hw_state()
7129 hw->wm_lp_spr[1] = intel_uncore_read(&dev_priv->uncore, WM2S_LP_IVB); in ilk_wm_get_hw_state()
7130 hw->wm_lp_spr[2] = intel_uncore_read(&dev_priv->uncore, WM3S_LP_IVB); in ilk_wm_get_hw_state()
7134 hw->partitioning = (intel_uncore_read(&dev_priv->uncore, WM_MISC) & WM_MISC_DATA_PARTITION_5_6) ? in ilk_wm_get_hw_state()
7137 …hw->partitioning = (intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL2) & DISP_DATA_PARTITION_5_6)… in ilk_wm_get_hw_state()
7141 !(intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL) & DISP_FBC_WM_DIS); in ilk_wm_get_hw_state()
7192 val = intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL2); in intel_enable_ipc()
7199 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL2, val); in intel_enable_ipc()
7234 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, PCH_DPLSUNIT_CLOCK_GATE_DISABLE); in ibx_init_clock_gating()
7242 intel_uncore_write(&dev_priv->uncore, DSPCNTR(pipe), in g4x_disable_trickle_feed()
7243 intel_uncore_read(&dev_priv->uncore, DSPCNTR(pipe)) | in g4x_disable_trickle_feed()
7246 …intel_uncore_write(&dev_priv->uncore, DSPSURF(pipe), intel_uncore_read(&dev_priv->uncore, DSPSURF(… in g4x_disable_trickle_feed()
7247 intel_uncore_posting_read(&dev_priv->uncore, DSPSURF(pipe)); in g4x_disable_trickle_feed()
7263 intel_uncore_write(&dev_priv->uncore, PCH_3DCGDIS0, in ilk_init_clock_gating()
7266 intel_uncore_write(&dev_priv->uncore, PCH_3DCGDIS1, in ilk_init_clock_gating()
7276 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in ilk_init_clock_gating()
7277 (intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in ilk_init_clock_gating()
7280 intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, in ilk_init_clock_gating()
7281 (intel_uncore_read(&dev_priv->uncore, DISP_ARB_CTL) | in ilk_init_clock_gating()
7293 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1, in ilk_init_clock_gating()
7294 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1) | in ilk_init_clock_gating()
7296 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in ilk_init_clock_gating()
7297 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in ilk_init_clock_gating()
7301 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, dspclk_gate); in ilk_init_clock_gating()
7303 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in ilk_init_clock_gating()
7304 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in ilk_init_clock_gating()
7322 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, PCH_DPLSUNIT_CLOCK_GATE_DISABLE | in cpt_init_clock_gating()
7325 …intel_uncore_write(&dev_priv->uncore, SOUTH_CHICKEN2, intel_uncore_read(&dev_priv->uncore, SOUTH_C… in cpt_init_clock_gating()
7331 val = intel_uncore_read(&dev_priv->uncore, TRANS_CHICKEN2(pipe)); in cpt_init_clock_gating()
7338 intel_uncore_write(&dev_priv->uncore, TRANS_CHICKEN2(pipe), val); in cpt_init_clock_gating()
7342 intel_uncore_write(&dev_priv->uncore, TRANS_CHICKEN1(pipe), in cpt_init_clock_gating()
7351 tmp = intel_uncore_read(&dev_priv->uncore, MCH_SSKPD); in gen6_check_mch_setup()
7362 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, dspclk_gate); in gen6_init_clock_gating()
7364 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in gen6_init_clock_gating()
7365 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in gen6_init_clock_gating()
7368 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, in gen6_init_clock_gating()
7369 intel_uncore_read(&dev_priv->uncore, GEN6_UCGCTL1) | in gen6_init_clock_gating()
7386 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL2, in gen6_init_clock_gating()
7401 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1, in gen6_init_clock_gating()
7402 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1) | in gen6_init_clock_gating()
7404 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2, in gen6_init_clock_gating()
7405 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN2) | in gen6_init_clock_gating()
7407 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, in gen6_init_clock_gating()
7408 intel_uncore_read(&dev_priv->uncore, ILK_DSPCLK_GATE_D) | in gen6_init_clock_gating()
7426 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, in lpt_init_clock_gating()
7427 intel_uncore_read(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D) | in lpt_init_clock_gating()
7431 intel_uncore_write(&dev_priv->uncore, TRANS_CHICKEN1(PIPE_A), in lpt_init_clock_gating()
7432 intel_uncore_read(&dev_priv->uncore, TRANS_CHICKEN1(PIPE_A)) | in lpt_init_clock_gating()
7439 u32 val = intel_uncore_read(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D); in lpt_suspend_hw()
7442 intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, val); in lpt_suspend_hw()
7454 misccpctl = intel_uncore_read(&dev_priv->uncore, GEN7_MISCCPCTL); in gen8_set_l3sqc_credits()
7455 intel_uncore_write(&dev_priv->uncore, GEN7_MISCCPCTL, misccpctl & ~GEN7_DOP_CLOCK_GATE_ENABLE); in gen8_set_l3sqc_credits()
7457 val = intel_uncore_read(&dev_priv->uncore, GEN8_L3SQCREG1); in gen8_set_l3sqc_credits()
7461 intel_uncore_write(&dev_priv->uncore, GEN8_L3SQCREG1, val); in gen8_set_l3sqc_credits()
7467 intel_uncore_posting_read(&dev_priv->uncore, GEN8_L3SQCREG1); in gen8_set_l3sqc_credits()
7469 intel_uncore_write(&dev_priv->uncore, GEN7_MISCCPCTL, misccpctl); in gen8_set_l3sqc_credits()
7475 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, in icl_init_clock_gating()
7479 intel_uncore_rmw(&dev_priv->uncore, GEN8_CHICKEN_DCPR_1, in icl_init_clock_gating()
7488 intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, in gen12lp_init_clock_gating()
7493 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_3, intel_uncore_read(&dev_priv->uncore, GEN… in gen12lp_init_clock_gating()
7498 intel_uncore_rmw(&dev_priv->uncore, CLKREQ_POLICY, in gen12lp_init_clock_gating()
7516 …intel_uncore_write(&dev_priv->uncore, GEN9_CLKGATE_DIS_3, intel_uncore_read(&dev_priv->uncore, GEN… in dg1_init_clock_gating()
7526 …intel_uncore_write(&dev_priv->uncore, SOUTH_DSPCLK_GATE_D, intel_uncore_read(&dev_priv->uncore, SO… in cnp_init_clock_gating()
7536 …intel_uncore_write(&dev_priv->uncore, FBC_LLC_READ_CTRL, intel_uncore_read(&dev_priv->uncore, FBC_… in cfl_init_clock_gating()
7543 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in cfl_init_clock_gating()
7550 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in cfl_init_clock_gating()
7559 …intel_uncore_write(&dev_priv->uncore, FBC_LLC_READ_CTRL, intel_uncore_read(&dev_priv->uncore, FBC_… in kbl_init_clock_gating()
7564 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in kbl_init_clock_gating()
7569 …intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, intel_uncore_read(&dev_priv->uncore, GEN6_UCGC… in kbl_init_clock_gating()
7576 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in kbl_init_clock_gating()
7583 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in kbl_init_clock_gating()
7592 …intel_uncore_write(&dev_priv->uncore, GEN7_MISCCPCTL, intel_uncore_read(&dev_priv->uncore, GEN7_MI… in skl_init_clock_gating()
7596 …intel_uncore_write(&dev_priv->uncore, FBC_LLC_READ_CTRL, intel_uncore_read(&dev_priv->uncore, FBC_… in skl_init_clock_gating()
7603 …intel_uncore_write(&dev_priv->uncore, DISP_ARB_CTL, intel_uncore_read(&dev_priv->uncore, DISP_ARB_… in skl_init_clock_gating()
7610 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in skl_init_clock_gating()
7617 …intel_uncore_write(&dev_priv->uncore, ILK_DPFC_CHICKEN, intel_uncore_read(&dev_priv->uncore, ILK_D… in skl_init_clock_gating()
7626 intel_uncore_write(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A), in bdw_init_clock_gating()
7627 intel_uncore_read(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A)) | in bdw_init_clock_gating()
7631 …intel_uncore_write(&dev_priv->uncore, GAM_ECOCHK, intel_uncore_read(&dev_priv->uncore, GAM_ECOCHK)… in bdw_init_clock_gating()
7634 intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR1_1, in bdw_init_clock_gating()
7635 intel_uncore_read(&dev_priv->uncore, CHICKEN_PAR1_1) | DPA_MASK_VBLANK_SRD); in bdw_init_clock_gating()
7639 intel_uncore_write(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe), in bdw_init_clock_gating()
7640 intel_uncore_read(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe)) | in bdw_init_clock_gating()
7645 intel_uncore_rmw(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe), in bdw_init_clock_gating()
7651 intel_uncore_write(&dev_priv->uncore, GEN7_FF_THREAD_MODE, in bdw_init_clock_gating()
7652 intel_uncore_read(&dev_priv->uncore, GEN7_FF_THREAD_MODE) & in bdw_init_clock_gating()
7655 intel_uncore_write(&dev_priv->uncore, GEN6_RC_SLEEP_PSMI_CONTROL, in bdw_init_clock_gating()
7659 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in bdw_init_clock_gating()
7666 …intel_uncore_write(&dev_priv->uncore, CHICKEN_PAR2_1, intel_uncore_read(&dev_priv->uncore, CHICKEN… in bdw_init_clock_gating()
7676 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, in bdw_init_clock_gating()
7677 intel_uncore_read(&dev_priv->uncore, GEN6_UCGCTL1) | GEN6_EU_TCUNIT_CLOCK_GATE_DISABLE); in bdw_init_clock_gating()
7685 intel_uncore_write(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A), in hsw_init_clock_gating()
7686 intel_uncore_read(&dev_priv->uncore, CHICKEN_PIPESL_1(PIPE_A)) | in hsw_init_clock_gating()
7692 intel_uncore_rmw(&dev_priv->uncore, CHICKEN_PIPESL_1(pipe), in hsw_init_clock_gating()
7697 intel_uncore_write(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, in hsw_init_clock_gating()
7698 intel_uncore_read(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) | in hsw_init_clock_gating()
7702 …intel_uncore_write(&dev_priv->uncore, GAM_ECOCHK, intel_uncore_read(&dev_priv->uncore, GAM_ECOCHK)… in hsw_init_clock_gating()
7711 intel_uncore_write(&dev_priv->uncore, ILK_DSPCLK_GATE_D, ILK_VRHUNIT_CLOCK_GATE_DISABLE); in ivb_init_clock_gating()
7714 intel_uncore_write(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1, in ivb_init_clock_gating()
7715 intel_uncore_read(&dev_priv->uncore, ILK_DISPLAY_CHICKEN1) | in ivb_init_clock_gating()
7719 intel_uncore_write(&dev_priv->uncore, IVB_CHICKEN3, in ivb_init_clock_gating()
7724 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2, in ivb_init_clock_gating()
7728 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2, in ivb_init_clock_gating()
7730 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2_GT2, in ivb_init_clock_gating()
7738 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL2, in ivb_init_clock_gating()
7742 intel_uncore_write(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, in ivb_init_clock_gating()
7743 intel_uncore_read(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) | in ivb_init_clock_gating()
7748 snpcr = intel_uncore_read(&dev_priv->uncore, GEN6_MBCUNIT_SNPCR); in ivb_init_clock_gating()
7751 intel_uncore_write(&dev_priv->uncore, GEN6_MBCUNIT_SNPCR, snpcr); in ivb_init_clock_gating()
7762 intel_uncore_write(&dev_priv->uncore, IVB_CHICKEN3, in vlv_init_clock_gating()
7767 intel_uncore_write(&dev_priv->uncore, GEN7_ROW_CHICKEN2, in vlv_init_clock_gating()
7771 intel_uncore_write(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG, in vlv_init_clock_gating()
7772 intel_uncore_read(&dev_priv->uncore, GEN7_SQ_CHICKEN_MBCUNIT_CONFIG) | in vlv_init_clock_gating()
7779 intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL2, in vlv_init_clock_gating()
7785 intel_uncore_write(&dev_priv->uncore, GEN7_UCGCTL4, in vlv_init_clock_gating()
7786 intel_uncore_read(&dev_priv->uncore, GEN7_UCGCTL4) | GEN7_L3BANK2X_CLOCK_GATE_DISABLE); in vlv_init_clock_gating()
7793 intel_uncore_write(&dev_priv->uncore, VLV_GUNIT_CLOCK_GATE, GCFG_DIS); in vlv_init_clock_gating()
7800 intel_uncore_write(&dev_priv->uncore, GEN7_FF_THREAD_MODE, in chv_init_clock_gating()
7801 intel_uncore_read(&dev_priv->uncore, GEN7_FF_THREAD_MODE) & in chv_init_clock_gating()
7805 intel_uncore_write(&dev_priv->uncore, GEN6_RC_SLEEP_PSMI_CONTROL, in chv_init_clock_gating()
7809 …intel_uncore_write(&dev_priv->uncore, GEN6_UCGCTL1, intel_uncore_read(&dev_priv->uncore, GEN6_UCGC… in chv_init_clock_gating()
7813 …intel_uncore_write(&dev_priv->uncore, GEN8_UCGCTL6, intel_uncore_read(&dev_priv->uncore, GEN8_UCGC… in chv_init_clock_gating()
7828 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D1, 0); in g4x_init_clock_gating()
7829 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D2, VF_UNIT_CLOCK_GATE_DISABLE | in g4x_init_clock_gating()
7832 intel_uncore_write(&dev_priv->uncore, RAMCLK_GATE_D, 0); in g4x_init_clock_gating()
7838 intel_uncore_write(&dev_priv->uncore, DSPCLK_GATE_D, dspclk_gate); in g4x_init_clock_gating()
7845 struct intel_uncore *uncore = &dev_priv->uncore; in i965gm_init_clock_gating() local
7847 intel_uncore_write(uncore, RENCLK_GATE_D1, I965_RCC_CLOCK_GATE_DISABLE); in i965gm_init_clock_gating()
7848 intel_uncore_write(uncore, RENCLK_GATE_D2, 0); in i965gm_init_clock_gating()
7849 intel_uncore_write(uncore, DSPCLK_GATE_D, 0); in i965gm_init_clock_gating()
7850 intel_uncore_write(uncore, RAMCLK_GATE_D, 0); in i965gm_init_clock_gating()
7851 intel_uncore_write16(uncore, DEUC, 0); in i965gm_init_clock_gating()
7852 intel_uncore_write(uncore, in i965gm_init_clock_gating()
7859 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D1, I965_RCZ_CLOCK_GATE_DISABLE | in i965g_init_clock_gating()
7864 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D2, 0); in i965g_init_clock_gating()
7865 intel_uncore_write(&dev_priv->uncore, MI_ARB_STATE, in i965g_init_clock_gating()
7871 u32 dstate = intel_uncore_read(&dev_priv->uncore, D_STATE); in gen3_init_clock_gating()
7875 intel_uncore_write(&dev_priv->uncore, D_STATE, dstate); in gen3_init_clock_gating()
7878 intel_uncore_write(&dev_priv->uncore, ECOSKPD, _MASKED_BIT_ENABLE(ECO_GATING_CX_ONLY)); in gen3_init_clock_gating()
7881 intel_uncore_write(&dev_priv->uncore, ECOSKPD, _MASKED_BIT_DISABLE(ECO_FLIP_DONE)); in gen3_init_clock_gating()
7884 intel_uncore_write(&dev_priv->uncore, INSTPM, _MASKED_BIT_ENABLE(INSTPM_AGPBUSY_INT_EN)); in gen3_init_clock_gating()
7887 intel_uncore_write(&dev_priv->uncore, MI_ARB_STATE, _MASKED_BIT_ENABLE(MI_ARB_C3_LP_WRITE_ENABLE)); in gen3_init_clock_gating()
7889 intel_uncore_write(&dev_priv->uncore, MI_ARB_STATE, in gen3_init_clock_gating()
7895 intel_uncore_write(&dev_priv->uncore, RENCLK_GATE_D1, SV_CLOCK_GATE_DISABLE); in i85x_init_clock_gating()
7898 intel_uncore_write(&dev_priv->uncore, MI_STATE, _MASKED_BIT_ENABLE(MI_AGPBUSY_INT_EN) | in i85x_init_clock_gating()
7901 intel_uncore_write(&dev_priv->uncore, MEM_MODE, in i85x_init_clock_gating()
7911 intel_uncore_write(&dev_priv->uncore, SCPD0, in i85x_init_clock_gating()
7917 intel_uncore_write(&dev_priv->uncore, MEM_MODE, in i830_init_clock_gating()