| /openbsd/src/sys/dev/pci/drm/i915/ |
| D | intel_uncore.c | 43 fw_domains_get(struct intel_uncore *uncore, enum forcewake_domains fw_domains) in fw_domains_get() argument 45 uncore->fw_get_funcs->force_wake_get(uncore, fw_domains); in fw_domains_get() 54 i915->uncore.debug = &i915->mmio_debug; in intel_uncore_mmio_debug_init_early() 57 static void mmio_debug_suspend(struct intel_uncore *uncore) in mmio_debug_suspend() argument 59 if (!uncore->debug) in mmio_debug_suspend() 62 spin_lock(&uncore->debug->lock); in mmio_debug_suspend() 65 if (!uncore->debug->suspend_count++) { in mmio_debug_suspend() 66 uncore->debug->saved_mmio_check = uncore->debug->unclaimed_mmio_check; in mmio_debug_suspend() 67 uncore->debug->unclaimed_mmio_check = 0; in mmio_debug_suspend() 70 spin_unlock(&uncore->debug->lock); in mmio_debug_suspend() [all …]
|
| D | vlv_suspend.c | 111 struct intel_uncore *uncore = &i915->uncore; in vlv_save_gunit_s0ix_state() local 118 s->wr_watermark = intel_uncore_read(uncore, GEN7_WR_WATERMARK); in vlv_save_gunit_s0ix_state() 119 s->gfx_prio_ctrl = intel_uncore_read(uncore, GEN7_GFX_PRIO_CTRL); in vlv_save_gunit_s0ix_state() 120 s->arb_mode = intel_uncore_read(uncore, ARB_MODE); in vlv_save_gunit_s0ix_state() 121 s->gfx_pend_tlb0 = intel_uncore_read(uncore, GEN7_GFX_PEND_TLB0); in vlv_save_gunit_s0ix_state() 122 s->gfx_pend_tlb1 = intel_uncore_read(uncore, GEN7_GFX_PEND_TLB1); in vlv_save_gunit_s0ix_state() 125 s->lra_limits[i] = intel_uncore_read(uncore, GEN7_LRA_LIMITS(i)); in vlv_save_gunit_s0ix_state() 127 s->media_max_req_count = intel_uncore_read(uncore, GEN7_MEDIA_MAX_REQ_COUNT); in vlv_save_gunit_s0ix_state() 128 s->gfx_max_req_count = intel_uncore_read(uncore, GEN7_GFX_MAX_REQ_COUNT); in vlv_save_gunit_s0ix_state() 130 s->render_hwsp = intel_uncore_read(uncore, RENDER_HWS_PGA_GEN7); in vlv_save_gunit_s0ix_state() [all …]
|
| D | intel_clock_gating.c | 56 intel_uncore_rmw(&i915->uncore, CHICKEN_PAR1_1, 0, SKL_DE_COMPRESSED_HASH_MODE); in gen9_init_clock_gating() 60 intel_uncore_rmw(&i915->uncore, CHICKEN_PAR1_1, 0, SKL_EDP_PSR_FIX_RDWRAP); in gen9_init_clock_gating() 63 intel_uncore_rmw(&i915->uncore, GEN8_CHICKEN_DCPR_1, 0, MASK_WAKEMEM); in gen9_init_clock_gating() 69 intel_uncore_rmw(&i915->uncore, DISP_ARB_CTL, 0, DISP_FBC_MEMORY_WAKE); in gen9_init_clock_gating() 77 intel_uncore_rmw(&i915->uncore, GEN8_UCGCTL6, 0, GEN8_SDEUNIT_CLOCK_GATE_DISABLE); in bxt_init_clock_gating() 83 intel_uncore_rmw(&i915->uncore, GEN8_UCGCTL6, 0, GEN8_HDCUNIT_CLOCK_GATE_DISABLE_HDCREQ); in bxt_init_clock_gating() 89 intel_uncore_write(&i915->uncore, GEN9_CLKGATE_DIS_0, in bxt_init_clock_gating() 90 intel_uncore_read(&i915->uncore, GEN9_CLKGATE_DIS_0) | in bxt_init_clock_gating() 99 intel_uncore_write(&i915->uncore, RM_TIMEOUT, MMIO_TIMEOUT_US(950)); in bxt_init_clock_gating() 105 intel_uncore_rmw(&i915->uncore, DISP_ARB_CTL, 0, DISP_FBC_WM_DIS); in bxt_init_clock_gating() [all …]
|
| D | intel_uncore.h | 92 void (*force_wake_get)(struct intel_uncore *uncore, 97 enum forcewake_domains (*read_fw_domains)(struct intel_uncore *uncore, 99 enum forcewake_domains (*write_fw_domains)(struct intel_uncore *uncore, 102 u8 (*mmio_readb)(struct intel_uncore *uncore, 104 u16 (*mmio_readw)(struct intel_uncore *uncore, 106 u32 (*mmio_readl)(struct intel_uncore *uncore, 108 u64 (*mmio_readq)(struct intel_uncore *uncore, 111 void (*mmio_writeb)(struct intel_uncore *uncore, 113 void (*mmio_writew)(struct intel_uncore *uncore, 115 void (*mmio_writel)(struct intel_uncore *uncore, [all …]
|
| D | intel_pcode.c | 55 static int __snb_pcode_rw(struct intel_uncore *uncore, u32 mbox, in __snb_pcode_rw() argument 60 lockdep_assert_held(&uncore->i915->sb_lock); in __snb_pcode_rw() 68 if (intel_uncore_read_fw(uncore, GEN6_PCODE_MAILBOX) & GEN6_PCODE_READY) in __snb_pcode_rw() 71 intel_uncore_write_fw(uncore, GEN6_PCODE_DATA, *val); in __snb_pcode_rw() 72 intel_uncore_write_fw(uncore, GEN6_PCODE_DATA1, val1 ? *val1 : 0); in __snb_pcode_rw() 73 intel_uncore_write_fw(uncore, in __snb_pcode_rw() 76 if (__intel_wait_for_register_fw(uncore, in __snb_pcode_rw() 85 *val = intel_uncore_read_fw(uncore, GEN6_PCODE_DATA); in __snb_pcode_rw() 87 *val1 = intel_uncore_read_fw(uncore, GEN6_PCODE_DATA1); in __snb_pcode_rw() 89 if (GRAPHICS_VER(uncore->i915) > 6) in __snb_pcode_rw() [all …]
|
| D | i915_irq.c | 80 void gen3_irq_reset(struct intel_uncore *uncore, i915_reg_t imr, in gen3_irq_reset() argument 83 intel_uncore_write(uncore, imr, 0xffffffff); in gen3_irq_reset() 84 intel_uncore_posting_read(uncore, imr); in gen3_irq_reset() 86 intel_uncore_write(uncore, ier, 0); in gen3_irq_reset() 89 intel_uncore_write(uncore, iir, 0xffffffff); in gen3_irq_reset() 90 intel_uncore_posting_read(uncore, iir); in gen3_irq_reset() 91 intel_uncore_write(uncore, iir, 0xffffffff); in gen3_irq_reset() 92 intel_uncore_posting_read(uncore, iir); in gen3_irq_reset() 95 static void gen2_irq_reset(struct intel_uncore *uncore) in gen2_irq_reset() argument 97 intel_uncore_write16(uncore, GEN2_IMR, 0xffff); in gen2_irq_reset() [all …]
|
| D | i915_hwmon.c | 55 struct intel_uncore *uncore; member 80 struct intel_uncore *uncore = ddat->uncore; in hwm_locked_with_pm_intel_uncore_rmw() local 83 with_intel_runtime_pm(uncore->rpm, wakeref) { in hwm_locked_with_pm_intel_uncore_rmw() 86 intel_uncore_rmw(uncore, reg, clear, set); in hwm_locked_with_pm_intel_uncore_rmw() 101 struct intel_uncore *uncore = ddat->uncore; in hwm_field_read_and_scale() local 105 with_intel_runtime_pm(uncore->rpm, wakeref) in hwm_field_read_and_scale() 106 reg_value = intel_uncore_read(uncore, rgadr); in hwm_field_read_and_scale() 136 struct intel_uncore *uncore = ddat->uncore; in hwm_energy() local 148 with_intel_runtime_pm(uncore->rpm, wakeref) { in hwm_energy() 151 reg_val = intel_uncore_read(uncore, rgaddr); in hwm_energy() [all …]
|
| D | i915_irq.h | 43 void gen3_assert_iir_is_zero(struct intel_uncore *uncore, i915_reg_t reg); 45 void gen3_irq_reset(struct intel_uncore *uncore, i915_reg_t imr, 48 void gen3_irq_init(struct intel_uncore *uncore, 53 #define GEN8_IRQ_RESET_NDX(uncore, type, which) \ argument 56 gen3_irq_reset((uncore), GEN8_##type##_IMR(which_), \ 60 #define GEN3_IRQ_RESET(uncore, type) \ argument 61 gen3_irq_reset((uncore), type##IMR, type##IIR, type##IER) 63 #define GEN8_IRQ_INIT_NDX(uncore, type, which, imr_val, ier_val) \ argument 66 gen3_irq_init((uncore), \ 72 #define GEN3_IRQ_INIT(uncore, type, imr_val, ier_val) \ argument [all …]
|
| D | intel_pcode.h | 13 int snb_pcode_read(struct intel_uncore *uncore, u32 mbox, u32 *val, u32 *val1); 14 int snb_pcode_write_timeout(struct intel_uncore *uncore, u32 mbox, u32 val, 16 #define snb_pcode_write(uncore, mbox, val) \ argument 17 snb_pcode_write_timeout(uncore, mbox, val, 500, 0) 19 int skl_pcode_request(struct intel_uncore *uncore, u32 mbox, u32 request, 22 int intel_pcode_init(struct intel_uncore *uncore); 27 int snb_pcode_read_p(struct intel_uncore *uncore, u32 mbcmd, u32 p1, u32 p2, u32 *val); 28 int snb_pcode_write_p(struct intel_uncore *uncore, u32 mbcmd, u32 p1, u32 p2, u32 val);
|
| /openbsd/src/sys/dev/pci/drm/i915/gt/ |
| D | intel_rc6.c | 48 return rc6_to_gt(rc)->uncore; in rc6_to_uncore() 59 struct intel_uncore *uncore = gt->uncore; in gen11_rc6_enable() local 70 intel_uncore_write_fw(uncore, GEN6_RC6_WAKE_RATE_LIMIT, 54 << 16 | 85); in gen11_rc6_enable() 71 intel_uncore_write_fw(uncore, GEN10_MEDIA_WAKE_RATE_LIMIT, 150); in gen11_rc6_enable() 73 intel_uncore_write_fw(uncore, GEN6_RC_EVALUATION_INTERVAL, 125000); /* 12500 * 1280ns */ in gen11_rc6_enable() 74 intel_uncore_write_fw(uncore, GEN6_RC_IDLE_HYSTERSIS, 25); /* 25 * 1280ns */ in gen11_rc6_enable() 76 intel_uncore_write_fw(uncore, RING_MAX_IDLE(engine->mmio_base), 10); in gen11_rc6_enable() 78 intel_uncore_write_fw(uncore, GUC_MAX_IDLE_COUNT, 0xA); in gen11_rc6_enable() 80 intel_uncore_write_fw(uncore, GEN6_RC_SLEEP, 0); in gen11_rc6_enable() 82 intel_uncore_write_fw(uncore, GEN6_RC6_THRESHOLD, 50000); /* 50/125ms per EI */ in gen11_rc6_enable() [all …]
|
| D | intel_gt_clock_utils.c | 14 static u32 read_reference_ts_freq(struct intel_uncore *uncore) in read_reference_ts_freq() argument 16 u32 ts_override = intel_uncore_read(uncore, GEN9_TIMESTAMP_OVERRIDE); in read_reference_ts_freq() 31 static u32 gen11_get_crystal_clock_freq(struct intel_uncore *uncore, in gen11_get_crystal_clock_freq() argument 57 static u32 gen11_read_clock_frequency(struct intel_uncore *uncore) in gen11_read_clock_frequency() argument 59 u32 ctc_reg = intel_uncore_read(uncore, CTC_MODE); in gen11_read_clock_frequency() 72 freq = read_reference_ts_freq(uncore); in gen11_read_clock_frequency() 74 u32 c0 = intel_uncore_read(uncore, RPM_CONFIG0); in gen11_read_clock_frequency() 76 freq = gen11_get_crystal_clock_freq(uncore, c0); in gen11_read_clock_frequency() 90 static u32 gen9_read_clock_frequency(struct intel_uncore *uncore) in gen9_read_clock_frequency() argument 92 u32 ctc_reg = intel_uncore_read(uncore, CTC_MODE); in gen9_read_clock_frequency() [all …]
|
| D | intel_gt_irq.c | 34 void __iomem * const regs = intel_uncore_regs(gt->uncore); in gen11_gt_engine_identity() 151 void __iomem * const regs = intel_uncore_regs(gt->uncore); in gen11_gt_bank_handler() 186 void __iomem * const regs = intel_uncore_regs(gt->uncore); in gen11_gt_reset_one_iir() 215 struct intel_uncore *uncore = gt->uncore; in gen11_gt_irq_reset() local 218 intel_uncore_write(uncore, GEN11_RENDER_COPY_INTR_ENABLE, 0); in gen11_gt_irq_reset() 219 intel_uncore_write(uncore, GEN11_VCS_VECS_INTR_ENABLE, 0); in gen11_gt_irq_reset() 221 intel_uncore_write(uncore, GEN12_CCS_RSVD_INTR_ENABLE, 0); in gen11_gt_irq_reset() 223 intel_uncore_write(uncore, GEN11_GUNIT_CSME_INTR_ENABLE, 0); in gen11_gt_irq_reset() 226 intel_uncore_write(uncore, GEN11_RCS0_RSVD_INTR_MASK, ~0); in gen11_gt_irq_reset() 227 intel_uncore_write(uncore, GEN11_BCS_RSVD_INTR_MASK, ~0); in gen11_gt_irq_reset() [all …]
|
| D | intel_gt_pm_debugfs.c | 34 intel_uncore_forcewake_user_get(gt->uncore); in intel_gt_pm_debugfs_forcewake_user_open() 40 intel_uncore_forcewake_user_put(gt->uncore); in intel_gt_pm_debugfs_forcewake_user_release() 72 struct intel_uncore *uncore = gt->uncore; in fw_domains_show() local 76 spin_lock_irq(&uncore->lock); in fw_domains_show() 79 uncore->user_forcewake_count); in fw_domains_show() 81 for_each_fw_domain(fw_domain, uncore, tmp) in fw_domains_show() 86 spin_unlock_irq(&uncore->lock); in fw_domains_show() 95 struct intel_uncore *uncore = gt->uncore; in vlv_drpc() local 98 mt_fwake_req = intel_uncore_read_fw(uncore, FORCEWAKE_MT); in vlv_drpc() 99 pw_status = intel_uncore_read(uncore, VLV_GTLC_PW_STATUS); in vlv_drpc() [all …]
|
| D | intel_gtt.c | 438 struct intel_uncore *uncore = gt->uncore; in gtt_write_workarounds() local 447 intel_uncore_write(uncore, in gtt_write_workarounds() 451 intel_uncore_write(uncore, in gtt_write_workarounds() 455 intel_uncore_write(uncore, in gtt_write_workarounds() 459 intel_uncore_write(uncore, in gtt_write_workarounds() 476 intel_uncore_rmw(uncore, in gtt_write_workarounds() 494 intel_uncore_write(uncore, in gtt_write_workarounds() 498 intel_uncore_read(uncore, in gtt_write_workarounds() 503 static void xelpmp_setup_private_ppat(struct intel_uncore *uncore) in xelpmp_setup_private_ppat() argument 505 intel_uncore_write(uncore, XELPMP_PAT_INDEX(0), in xelpmp_setup_private_ppat() [all …]
|
| D | intel_rps.c | 50 return rps_to_gt(rps)->uncore; in rps_to_uncore() 72 static void set(struct intel_uncore *uncore, i915_reg_t reg, u32 val) in set() argument 74 intel_uncore_write_fw(uncore, reg, val); in set() 209 intel_uncore_write(gt->uncore, in rps_enable_interrupts() 242 intel_uncore_write(gt->uncore, in rps_disable_interrupts() 280 struct intel_uncore *uncore = rps_to_uncore(rps); in gen5_rps_init() local 301 rgvmodectl = intel_uncore_read(uncore, MEMMODECTL); in gen5_rps_init() 319 struct intel_uncore *uncore = in __ips_chipset_val() local 338 total = intel_uncore_read(uncore, DMIEC); in __ips_chipset_val() 339 total += intel_uncore_read(uncore, DDREC); in __ips_chipset_val() [all …]
|
| D | intel_gt_mcr.c | 125 (intel_uncore_read(gt->uncore, GEN10_MIRROR_FUSE3) & in intel_gt_mcr_init() 139 intel_uncore_read(gt->uncore, in intel_gt_mcr_init() 143 intel_uncore_read(gt->uncore, XEHP_FUSE4)); in intel_gt_mcr_init() 167 ~intel_uncore_read(gt->uncore, GEN10_MIRROR_FUSE3) & in intel_gt_mcr_init() 211 struct intel_uncore *uncore = gt->uncore; in rw_with_mcr_steering_fw() local 216 if (GRAPHICS_VER_FULL(uncore->i915) >= IP_VER(12, 70)) { in rw_with_mcr_steering_fw() 224 intel_uncore_write_fw(uncore, MTL_MCR_SELECTOR, in rw_with_mcr_steering_fw() 228 } else if (GRAPHICS_VER(uncore->i915) >= 11) { in rw_with_mcr_steering_fw() 247 mcr = intel_uncore_read_fw(uncore, GEN8_MCR_SELECTOR); in rw_with_mcr_steering_fw() 252 intel_uncore_write_fw(uncore, GEN8_MCR_SELECTOR, mcr); in rw_with_mcr_steering_fw() [all …]
|
| D | intel_sa_media.c | 16 struct intel_uncore *uncore; in intel_sa_mediagt_setup() local 18 uncore = drmm_kzalloc(&i915->drm, sizeof(*uncore), GFP_KERNEL); in intel_sa_mediagt_setup() 19 if (!uncore) in intel_sa_mediagt_setup() 22 uncore->gsi_offset = gsi_offset; in intel_sa_mediagt_setup() 26 intel_uncore_init_early(uncore, gt); in intel_sa_mediagt_setup() 32 uncore->regs = intel_uncore_regs(&i915->uncore); in intel_sa_mediagt_setup() 33 if (drm_WARN_ON(&i915->drm, uncore->regs == NULL)) in intel_sa_mediagt_setup() 36 gt->uncore = uncore; in intel_sa_mediagt_setup()
|
| D | intel_gt.c | 74 gt->uncore = &i915->uncore; in intel_root_gt_init_early() 144 struct intel_uncore *uncore = gt->uncore; in init_unused_ring() local 146 intel_uncore_write(uncore, RING_CTL(base), 0); in init_unused_ring() 147 intel_uncore_write(uncore, RING_HEAD(base), 0); in init_unused_ring() 148 intel_uncore_write(uncore, RING_TAIL(base), 0); in init_unused_ring() 149 intel_uncore_write(uncore, RING_START(base), 0); in init_unused_ring() 174 struct intel_uncore *uncore = gt->uncore; in intel_gt_init_hw() local 180 intel_uncore_forcewake_get(uncore, FORCEWAKE_ALL); in intel_gt_init_hw() 183 intel_uncore_rmw(uncore, HSW_IDICR, 0, IDIHASHMSK(0xf)); in intel_gt_init_hw() 186 intel_uncore_write(uncore, in intel_gt_init_hw() [all …]
|
| D | intel_ggtt_fencing.c | 56 return fence->ggtt->vm.gt->uncore; in fence_to_uncore() 92 struct intel_uncore *uncore = fence_to_uncore(fence); in i965_write_fence_reg() local 104 intel_uncore_write_fw(uncore, fence_reg_lo, 0); in i965_write_fence_reg() 105 intel_uncore_posting_read_fw(uncore, fence_reg_lo); in i965_write_fence_reg() 107 intel_uncore_write_fw(uncore, fence_reg_hi, upper_32_bits(val)); in i965_write_fence_reg() 108 intel_uncore_write_fw(uncore, fence_reg_lo, lower_32_bits(val)); in i965_write_fence_reg() 109 intel_uncore_posting_read_fw(uncore, fence_reg_lo); in i965_write_fence_reg() 139 struct intel_uncore *uncore = fence_to_uncore(fence); in i915_write_fence_reg() local 142 intel_uncore_write_fw(uncore, reg, val); in i915_write_fence_reg() 143 intel_uncore_posting_read_fw(uncore, reg); in i915_write_fence_reg() [all …]
|
| D | intel_gt_pm_irq.c | 16 struct intel_uncore *uncore = gt->uncore; in write_pm_imr() local 29 intel_uncore_write(uncore, reg, mask); in write_pm_imr() 64 struct intel_uncore *uncore = gt->uncore; in gen6_gt_pm_reset_iir() local 69 intel_uncore_write(uncore, reg, reset_mask); in gen6_gt_pm_reset_iir() 70 intel_uncore_write(uncore, reg, reset_mask); in gen6_gt_pm_reset_iir() 71 intel_uncore_posting_read(uncore, reg); in gen6_gt_pm_reset_iir() 77 struct intel_uncore *uncore = gt->uncore; in write_pm_ier() local 90 intel_uncore_write(uncore, reg, mask); in write_pm_ier()
|
| D | intel_reset.c | 202 struct intel_uncore *uncore = gt->uncore; in g4x_do_reset() local 206 intel_uncore_rmw_fw(uncore, VDECCLK_GATE_D, 0, VCP_UNIT_CLOCK_GATE_DISABLE); in g4x_do_reset() 207 intel_uncore_posting_read_fw(uncore, VDECCLK_GATE_D); in g4x_do_reset() 228 intel_uncore_rmw_fw(uncore, VDECCLK_GATE_D, VCP_UNIT_CLOCK_GATE_DISABLE, 0); in g4x_do_reset() 229 intel_uncore_posting_read_fw(uncore, VDECCLK_GATE_D); in g4x_do_reset() 237 struct intel_uncore *uncore = gt->uncore; in ilk_do_reset() local 240 intel_uncore_write_fw(uncore, ILK_GDSR, in ilk_do_reset() 242 ret = __intel_wait_for_register_fw(uncore, ILK_GDSR, in ilk_do_reset() 251 intel_uncore_write_fw(uncore, ILK_GDSR, in ilk_do_reset() 253 ret = __intel_wait_for_register_fw(uncore, ILK_GDSR, in ilk_do_reset() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/gt/uc/ |
| D | intel_guc_fw.c | 22 struct intel_uncore *uncore = gt->uncore; in guc_prepare_xfer() local 29 if (GRAPHICS_VER_FULL(uncore->i915) < IP_VER(12, 55)) in guc_prepare_xfer() 34 intel_uncore_write(uncore, GUC_SHIM_CONTROL, shim_flags); in guc_prepare_xfer() 36 if (IS_GEN9_LP(uncore->i915)) in guc_prepare_xfer() 37 intel_uncore_write(uncore, GEN9LP_GT_PM_CONFIG, GT_DOORBELL_ENABLE); in guc_prepare_xfer() 39 intel_uncore_write(uncore, GEN9_GT_PM_CONFIG, GT_DOORBELL_ENABLE); in guc_prepare_xfer() 41 if (GRAPHICS_VER(uncore->i915) == 9) { in guc_prepare_xfer() 43 intel_uncore_rmw(uncore, GEN7_MISCCPCTL, 0, in guc_prepare_xfer() 47 intel_uncore_write(uncore, GUC_ARAT_C6DIS, 0x1FF); in guc_prepare_xfer() 52 struct intel_uncore *uncore) in guc_xfer_rsa_mmio() argument [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/display/ |
| D | intel_display_irq.c | 56 intel_uncore_write(&dev_priv->uncore, DEIMR, dev_priv->irq_mask); in ilk_update_display_irq() 57 intel_uncore_posting_read(&dev_priv->uncore, DEIMR); in ilk_update_display_irq() 90 old_val = intel_uncore_read(&dev_priv->uncore, GEN8_DE_PORT_IMR); in bdw_update_port_irq() 97 intel_uncore_write(&dev_priv->uncore, GEN8_DE_PORT_IMR, new_val); in bdw_update_port_irq() 98 intel_uncore_posting_read(&dev_priv->uncore, GEN8_DE_PORT_IMR); in bdw_update_port_irq() 128 intel_uncore_write(&dev_priv->uncore, GEN8_DE_PIPE_IMR(pipe), in bdw_update_pipe_irq() 130 intel_uncore_posting_read(&dev_priv->uncore, GEN8_DE_PIPE_IMR(pipe)); in bdw_update_pipe_irq() 156 u32 sdeimr = intel_uncore_read(&dev_priv->uncore, SDEIMR); in ibx_display_interrupt_update() 168 intel_uncore_write(&dev_priv->uncore, SDEIMR, sdeimr); in ibx_display_interrupt_update() 169 intel_uncore_posting_read(&dev_priv->uncore, SDEIMR); in ibx_display_interrupt_update() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/selftests/ |
| D | intel_uncore.c | 164 struct intel_uncore *uncore = gt->uncore; in live_forcewake_ops() local 200 wakeref = intel_runtime_pm_get(uncore->rpm); in live_forcewake_ops() 202 for_each_fw_domain(domain, uncore, tmp) { in live_forcewake_ops() 212 u32 __iomem *reg = intel_uncore_regs(uncore) + engine->mmio_base + r->offset; in live_forcewake_ops() 219 fw_domains = intel_uncore_forcewake_for_reg(uncore, mmio, in live_forcewake_ops() 224 for_each_fw_domain_masked(domain, fw_domains, uncore, tmp) { in live_forcewake_ops() 234 intel_uncore_forcewake_get(uncore, fw_domains); in live_forcewake_ops() 236 intel_uncore_forcewake_put(uncore, fw_domains); in live_forcewake_ops() 239 for_each_fw_domain_masked(domain, fw_domains, uncore, tmp) { in live_forcewake_ops() 271 intel_runtime_pm_put(uncore->rpm, wakeref); in live_forcewake_ops() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/gvt/ |
| D | aperture_gm.c | 134 struct intel_uncore *uncore = gvt->gt->uncore; in intel_vgpu_write_fence() local 138 assert_rpm_wakelock_held(uncore->rpm); in intel_vgpu_write_fence() 150 intel_uncore_write(uncore, fence_reg_lo, 0); in intel_vgpu_write_fence() 151 intel_uncore_posting_read(uncore, fence_reg_lo); in intel_vgpu_write_fence() 153 intel_uncore_write(uncore, fence_reg_hi, upper_32_bits(value)); in intel_vgpu_write_fence() 154 intel_uncore_write(uncore, fence_reg_lo, lower_32_bits(value)); in intel_vgpu_write_fence() 155 intel_uncore_posting_read(uncore, fence_reg_lo); in intel_vgpu_write_fence() 169 struct intel_uncore *uncore = gvt->gt->uncore; in free_vgpu_fence() local 177 wakeref = intel_runtime_pm_get(uncore->rpm); in free_vgpu_fence() 188 intel_runtime_pm_put(uncore->rpm, wakeref); in free_vgpu_fence() [all …]
|