/linux/drivers/gpu/drm/i915/display/ |
A D | intel_bios.c | 584 (HAS_DDI(i915) || IS_VALLEYVIEW(i915))) in parse_general_features() 1615 struct drm_i915_private *i915 = devdata->i915; in sanitize_ddc_pin() local 1681 struct drm_i915_private *i915 = devdata->i915; in sanitize_aux_ch() local 1826 else if (IS_DG1(i915) || IS_ROCKETLAKE(i915)) in dvo_port_to_port() 1890 struct drm_i915_private *i915 = devdata->i915; in sanitize_device_type() local 2068 if (!HAS_DDI(i915) && !IS_CHERRYVIEW(i915)) in parse_ddi_ports() 2160 devdata->i915 = i915; in parse_general_definitions() 2220 if (!HAS_DDI(i915) && !IS_CHERRYVIEW(i915)) in init_vbt_missing_defaults() 2240 devdata->i915 = i915; in init_vbt_missing_defaults() 2935 else if (IS_DG1(i915) || IS_ROCKETLAKE(i915)) in intel_bios_port_aux_ch() [all …]
|
A D | intel_frontbuffer.c | 85 spin_lock(&i915->fb_tracking.lock); in frontbuffer_flush() 87 spin_unlock(&i915->fb_tracking.lock); in frontbuffer_flush() 115 spin_lock(&i915->fb_tracking.lock); in intel_frontbuffer_flip_prepare() 119 spin_unlock(&i915->fb_tracking.lock); in intel_frontbuffer_flip_prepare() 135 spin_lock(&i915->fb_tracking.lock); in intel_frontbuffer_flip_complete() 139 spin_unlock(&i915->fb_tracking.lock); in intel_frontbuffer_flip_complete() 159 spin_lock(&i915->fb_tracking.lock); in intel_frontbuffer_flip() 162 spin_unlock(&i915->fb_tracking.lock); in intel_frontbuffer_flip() 174 spin_lock(&i915->fb_tracking.lock); in __intel_fb_invalidate() 195 spin_lock(&i915->fb_tracking.lock); in __intel_fb_flush() [all …]
|
A D | intel_tc.c | 56 IS_ALDERLAKE_P(i915); in intel_tc_cold_requires_aux_pw() 186 drm_WARN_ON(&i915->drm, in intel_tc_port_set_fia_lane_count() 233 drm_dbg_kms(&i915->drm, in tc_port_fixup_legacy_flag() 252 drm_dbg_kms(&i915->drm, in icl_tc_port_live_status_mask() 306 if (IS_ALDERLAKE_P(i915)) in tc_port_live_status_mask() 329 drm_dbg_kms(&i915->drm, in icl_tc_phy_status_complete() 353 drm_dbg_kms(&i915->drm, in adl_tc_phy_status_complete() 366 if (IS_ALDERLAKE_P(i915)) in tc_phy_status_complete() 382 drm_dbg_kms(&i915->drm, in icl_tc_phy_take_ownership() 436 drm_dbg_kms(&i915->drm, in icl_tc_phy_is_owned() [all …]
|
A D | intel_quirks.c | 16 i915->quirks |= QUIRK_LVDS_SSC_DISABLE; in quirk_ssc_force_disable() 26 i915->quirks |= QUIRK_INVERT_BRIGHTNESS; in quirk_invert_brightness() 33 i915->quirks |= QUIRK_BACKLIGHT_PRESENT; in quirk_backlight_present() 42 i915->quirks |= QUIRK_INCREASE_T12_DELAY; in quirk_increase_t12_delay() 52 i915->quirks |= QUIRK_INCREASE_DDI_DISABLED_TIME; in quirk_increase_ddi_disabled_time() 58 i915->quirks |= QUIRK_NO_PPS_BACKLIGHT_POWER_HOOK; in quirk_no_pps_backlight_power_hook() 66 void (*hook)(struct drm_i915_private *i915); 71 void (*hook)(struct drm_i915_private *i915); 197 struct pci_dev *d = to_pci_dev(i915->drm.dev); in intel_init_quirks() 208 q->hook(i915); in intel_init_quirks() [all …]
|
A D | intel_vga.c | 17 if (IS_VALLEYVIEW(i915) || IS_CHERRYVIEW(i915)) in intel_vga_cntrl_reg() 19 else if (DISPLAY_VER(i915) >= 5) in intel_vga_cntrl_reg() 58 void intel_vga_redisable(struct drm_i915_private *i915) in intel_vga_redisable() argument 75 intel_vga_redisable_power_on(i915); in intel_vga_redisable() 82 struct pci_dev *pdev = to_pci_dev(i915->drm.dev); in intel_vga_reset_io_mem() 106 drm_err(&i915->drm, "failed to read control word\n"); in intel_vga_set_state() 129 struct drm_i915_private *i915 = pdev_to_i915(pdev); in intel_vga_set_decode() local 131 intel_vga_set_state(i915, enable_decode); in intel_vga_set_decode() 140 int intel_vga_register(struct drm_i915_private *i915) in intel_vga_register() argument 143 struct pci_dev *pdev = to_pci_dev(i915->drm.dev); in intel_vga_register() [all …]
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | mock_gem_device.c | 63 if (!i915->do_release) in mock_device_release() 66 mock_device_flush(i915); in mock_device_release() 144 if (IS_ERR(i915)) { in mock_gem_device() 178 mock_uncore_init(&i915->uncore, i915); in mock_gem_device() 180 i915_gem_init__mm(i915); in mock_gem_device() 181 intel_gt_init_early(&i915->gt, i915); in mock_gem_device() 190 if (!i915->wq) in mock_gem_device() 195 mock_init_ggtt(i915, &i915->ggtt); in mock_gem_device() 196 i915->gt.vm = i915_vm_get(&i915->ggtt.vm); in mock_gem_device() 201 i915->gt.engine[RCS0] = mock_engine(i915, "mock", RCS0); in mock_gem_device() [all …]
|
A D | i915_gem.c | 85 trash_stolen(i915); in simulate_hibernate() 92 i915_gem_suspend(i915); in igt_pm_prepare() 114 i915_gem_freeze(i915); in igt_pm_hibernate() 129 i915_gem_resume(i915); in igt_pm_resume() 140 file = mock_file(i915); in igt_gem_suspend() 155 igt_pm_suspend(i915); in igt_gem_suspend() 158 simulate_hibernate(i915); in igt_gem_suspend() 160 igt_pm_resume(i915); in igt_gem_suspend() 175 file = mock_file(i915); in igt_gem_hibernate() 190 igt_pm_hibernate(i915); in igt_gem_hibernate() [all …]
|
/linux/drivers/gpu/drm/i915/ |
A D | vlv_sideband.h | 34 vlv_iosf_sb_get(i915, BIT(VLV_IOSF_SB_BUNIT)); in vlv_bunit_get() 42 vlv_iosf_sb_put(i915, BIT(VLV_IOSF_SB_BUNIT)); in vlv_bunit_put() 47 vlv_iosf_sb_get(i915, BIT(VLV_IOSF_SB_CCK)); in vlv_cck_get() 55 vlv_iosf_sb_put(i915, BIT(VLV_IOSF_SB_CCK)); in vlv_cck_put() 60 vlv_iosf_sb_get(i915, BIT(VLV_IOSF_SB_CCU)); in vlv_ccu_get() 68 vlv_iosf_sb_put(i915, BIT(VLV_IOSF_SB_CCU)); in vlv_ccu_put() 73 vlv_iosf_sb_get(i915, BIT(VLV_IOSF_SB_DPIO)); in vlv_dpio_get() 82 vlv_iosf_sb_put(i915, BIT(VLV_IOSF_SB_DPIO)); in vlv_dpio_put() 100 vlv_iosf_sb_get(i915, BIT(VLV_IOSF_SB_NC)); in vlv_nc_get() 107 vlv_iosf_sb_put(i915, BIT(VLV_IOSF_SB_NC)); in vlv_nc_put() [all …]
|
A D | vlv_sideband.c | 43 if (IS_VALLEYVIEW(i915)) { in __vlv_punit_get() 51 if (IS_VALLEYVIEW(i915)) in __vlv_punit_put() 52 cpu_latency_qos_update_request(&i915->sb_qos, in __vlv_punit_put() 61 __vlv_punit_get(i915); in vlv_iosf_sb_get() 63 mutex_lock(&i915->sb_lock); in vlv_iosf_sb_get() 68 mutex_unlock(&i915->sb_lock); in vlv_iosf_sb_put() 71 __vlv_punit_put(i915); in vlv_iosf_sb_put() 78 struct intel_uncore *uncore = &i915->uncore; in vlv_sideband_rw() 82 lockdep_assert_held(&i915->sb_lock); in vlv_sideband_rw() 221 if (IS_CHERRYVIEW(i915)) in vlv_dpio_phy_iosf_port() [all …]
|
A D | intel_dram.c | 124 if (GRAPHICS_VER(i915) >= 11) { in skl_dram_get_dimm_info() 134 drm_dbg_kms(&i915->drm, in skl_dram_get_dimm_info() 365 drm_dbg_kms(&i915->drm, in bxt_get_dram_info() 472 if (GRAPHICS_VER(i915) < 9 || IS_DG2(i915) || !HAS_DISPLAY(i915)) in intel_dram_detect() 481 if (GRAPHICS_VER(i915) >= 12) in intel_dram_detect() 485 else if (IS_GEN9_LP(i915)) in intel_dram_detect() 512 if (!(IS_HASWELL(i915) || IS_BROADWELL(i915) || GRAPHICS_VER(i915) >= 9)) in intel_dram_edram_detect() 526 if (GRAPHICS_VER(i915) < 9) in intel_dram_edram_detect() 527 i915->edram_size_mb = 128; in intel_dram_edram_detect() 529 i915->edram_size_mb = gen9_edram_size_mb(i915, edram_cap); in intel_dram_edram_detect() [all …]
|
A D | i915_drv.c | 501 if (IS_I965G(i915) || IS_I965GM(i915)) in i915_set_dma_info() 771 if (IS_ERR(i915)) in i915_driver_create() 772 return i915; in i915_driver_create() 784 return i915; in i915_driver_create() 806 if (IS_ERR(i915)) in i915_driver_probe() 807 return PTR_ERR(i915); in i915_driver_probe() 879 i915_gem_suspend(i915); in i915_driver_probe() 919 i915_gem_suspend(i915); in i915_driver_remove() 994 if (HAS_DISPLAY(i915)) in i915_driver_lastclose() 1385 if (!i915) { in i915_pm_prepare() [all …]
|
A D | intel_pcode.c | 91 if (GRAPHICS_VER(i915) > 6) in __sandybridge_pcode_rw() 102 mutex_lock(&i915->sb_lock); in sandybridge_pcode_read() 106 mutex_unlock(&i915->sb_lock); in sandybridge_pcode_read() 109 drm_dbg(&i915->drm, in sandybridge_pcode_read() 124 mutex_lock(&i915->sb_lock); in sandybridge_pcode_write_timeout() 128 mutex_unlock(&i915->sb_lock); in sandybridge_pcode_write_timeout() 131 drm_dbg(&i915->drm, in sandybridge_pcode_write_timeout() 175 mutex_lock(&i915->sb_lock); in skl_pcode_request() 204 drm_dbg_kms(&i915->drm, in skl_pcode_request() 212 mutex_unlock(&i915->sb_lock); in skl_pcode_request() [all …]
|
A D | intel_wopcm.c | 81 if (!HAS_GT_UC(i915)) in intel_wopcm_init_early() 84 if (GRAPHICS_VER(i915) >= 11) in intel_wopcm_init_early() 94 if (IS_GEN9_LP(i915)) in context_reserved_size() 96 else if (GRAPHICS_VER(i915) >= 11) in context_reserved_size() 115 drm_err(&i915->drm, in gen9_check_dword_gap() 148 if (GRAPHICS_VER(i915) == 9 && !gen9_check_dword_gap(i915, guc_wopcm_base, in check_hw_restrictions() 152 if (GRAPHICS_VER(i915) == 9 && in check_hw_restrictions() 168 drm_err(&i915->drm, in __check_layout() 223 struct intel_gt *gt = &i915->gt; in intel_wopcm_init() 226 u32 ctx_rsvd = context_reserved_size(i915); in intel_wopcm_init() [all …]
|
A D | i915_pmu.c | 107 struct drm_i915_private *i915 = container_of(pmu, typeof(*i915), pmu); in pmu_needs_timer() local 146 struct drm_i915_private *i915 = gt->i915; in __get_rc6() local 154 if (HAS_RC6p(i915)) in __get_rc6() 157 if (HAS_RC6pp(i915)) in __get_rc6() 170 struct drm_i915_private *i915 = gt->i915; in get_rc6() local 210 struct drm_i915_private *i915 = container_of(pmu, typeof(*i915), pmu); in init_rc6() local 249 park_rc6(i915); in i915_pmu_gt_parked() 331 struct drm_i915_private *i915 = gt->i915; in engines_sample() local 374 struct drm_i915_private *i915 = gt->i915; in frequency_sample() local 483 if (IS_VALLEYVIEW(i915) || IS_CHERRYVIEW(i915)) in config_status() [all …]
|
A D | i915_getparam.c | 14 struct drm_i915_private *i915 = to_i915(dev); in i915_getparam_ioctl() local 34 value = i915->ggtt.num_fences; in i915_getparam_ioctl() 37 value = !!i915->overlay; in i915_getparam_ioctl() 40 value = !!intel_engine_lookup_user(i915, in i915_getparam_ioctl() 56 value = HAS_LLC(i915); in i915_getparam_ioctl() 59 value = HAS_WT(i915); in i915_getparam_ioctl() 62 value = INTEL_PPGTT(i915); in i915_getparam_ioctl() 85 intel_has_gpu_reset(&i915->gt); in i915_getparam_ioctl() 93 value = HAS_POOLED_EU(i915); in i915_getparam_ioctl() 111 value = i915->caps.scheduler; in i915_getparam_ioctl() [all …]
|
A D | i915_switcheroo.c | 14 struct drm_i915_private *i915 = pdev_to_i915(pdev); in i915_switcheroo_set_state() local 17 if (!i915) { in i915_switcheroo_set_state() 23 drm_info(&i915->drm, "switched on\n"); in i915_switcheroo_set_state() 27 i915_resume_switcheroo(i915); in i915_switcheroo_set_state() 28 i915->drm.switch_power_state = DRM_SWITCH_POWER_ON; in i915_switcheroo_set_state() 30 drm_info(&i915->drm, "switched off\n"); in i915_switcheroo_set_state() 32 i915_suspend_switcheroo(i915, pmm); in i915_switcheroo_set_state() 39 struct drm_i915_private *i915 = pdev_to_i915(pdev); in i915_switcheroo_can_switch() local 46 return i915 && atomic_read(&i915->drm.open_count) == 0; in i915_switcheroo_can_switch() 57 struct pci_dev *pdev = to_pci_dev(i915->drm.dev); in i915_switcheroo_register() [all …]
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_stolen.c | 88 !IS_G33(i915) && !IS_PINEVIEW(i915) && !IS_G4X(i915)) { in i915_adjust_stolen() 130 if (HAS_LMEM(i915)) in i915_adjust_stolen() 200 drm_WARN(&i915->drm, GRAPHICS_VER(i915) == 5, in g4x_get_stolen_reserved() 388 struct drm_i915_private *i915 = mem->i915; in i915_gem_init_stolen() local 414 if (i915_adjust_stolen(i915, &i915->dsm)) in i915_gem_init_stolen() 418 GEM_BUG_ON(i915->dsm.end <= i915->dsm.start); in i915_gem_init_stolen() 450 if (IS_LP(i915)) in i915_gem_init_stolen() 484 if (!resource_contains(&i915->dsm, &i915->dsm_reserved)) { in i915_gem_init_stolen() 487 &i915->dsm_reserved, &i915->dsm); in i915_gem_init_stolen() 504 drm_mm_init(&i915->mm.stolen, 0, i915->stolen_usable_size); in i915_gem_init_stolen() [all …]
|
A D | i915_gem_pm.c | 27 flush_workqueue(i915->wq); in i915_gem_suspend() 38 intel_gt_suspend_prepare(&i915->gt); in i915_gem_suspend() 40 i915_gem_drain_freed_objects(i915); in i915_gem_suspend() 94 i915_gem_suspend(i915); in i915_gem_backup_suspend() 120 lmem_recover(i915); in i915_gem_backup_suspend() 129 &i915->mm.shrink_list, in i915_gem_suspend_late() 130 &i915->mm.purge_list, in i915_gem_suspend_late() 156 intel_gt_suspend_late(&i915->gt); in i915_gem_suspend_late() 176 i915_gem_shrink_all(i915); in i915_gem_freeze() 218 ret = lmem_restore(i915, 0); in i915_gem_resume() [all …]
|
A D | i915_gem_shrinker.c | 102 struct drm_i915_private *i915, in i915_gem_shrink() argument 111 { &i915->mm.purge_list, ~0u }, in i915_gem_shrink() 113 &i915->mm.shrink_list, in i915_gem_shrink() 308 i915->mm.shrinker.batch = in i915_gem_shrinker_count() 426 drm_WARN_ON(&i915->drm, register_shrinker(&i915->mm.shrinker)); in i915_gem_driver_register__shrinker() 429 drm_WARN_ON(&i915->drm, register_oom_notifier(&i915->mm.oom_notifier)); in i915_gem_driver_register__shrinker() 432 drm_WARN_ON(&i915->drm, in i915_gem_driver_register__shrinker() 438 drm_WARN_ON(&i915->drm, in i915_gem_driver_unregister__shrinker() 440 drm_WARN_ON(&i915->drm, in i915_gem_driver_unregister__shrinker() 479 i915->mm.shrink_count--; in i915_gem_object_make_unshrinkable() [all …]
|
/linux/drivers/gpu/drm/i915/gt/ |
A D | intel_rps.c | 795 else if (IS_HASWELL(i915) || IS_BROADWELL(i915)) in gen6_rps_set() 832 if (IS_VALLEYVIEW(i915) || IS_CHERRYVIEW(i915)) in rps_set() 1017 if (IS_HASWELL(i915) || IS_BROADWELL(i915) || in gen6_rps_init() 1018 IS_GEN9_BC(i915) || GRAPHICS_VER(i915) >= 11) { in gen6_rps_init() 1031 if (IS_GEN9_BC(i915) || GRAPHICS_VER(i915) >= 11) { in gen6_rps_init() 1868 if (GRAPHICS_VER(i915) == 6 || IS_IVYBRIDGE(i915) || IS_HASWELL(i915)) { in intel_rps_init() 1922 if (IS_VALLEYVIEW(i915) || IS_CHERRYVIEW(i915)) in intel_rps_get_cagf() 1926 else if (IS_HASWELL(i915) || IS_BROADWELL(i915)) in intel_rps_get_cagf() 1943 if (IS_VALLEYVIEW(i915) || IS_CHERRYVIEW(i915)) { in read_cagf() 2208 if (i915 && !kref_get_unless_zero(&i915->drm.ref)) in mchdev_get() [all …]
|
A D | intel_workarounds.c | 283 struct drm_i915_private *i915 = engine->i915; in bdw_ctx_workarounds_init() local 323 struct drm_i915_private *i915 = engine->i915; in gen9_ctx_workarounds_init() local 480 struct drm_i915_private *i915 = engine->i915; in kbl_ctx_workarounds_init() local 711 struct drm_i915_private *i915 = engine->i915; in __intel_engine_init_ctx_wa() local 876 struct drm_i915_private *i915 = gt->i915; in gen9_gt_workarounds_init() local 1098 struct drm_i915_private *i915 = gt->i915; in icl_gt_workarounds_init() local 1190 struct drm_i915_private *i915 = gt->i915; in tgl_gt_workarounds_init() local 1215 struct drm_i915_private *i915 = gt->i915; in dg1_gt_workarounds_init() local 1247 struct drm_i915_private *i915 = gt->i915; in gt_init_workarounds() local 1742 if (IS_ALDERLAKE_P(i915) || IS_ALDERLAKE_S(i915) || IS_DG1(i915) || in rcs_engine_wa_init() [all …]
|
A D | intel_region_lmem.c | 17 struct drm_i915_private *i915 = mem->i915; in init_fake_lmem_bar() local 18 struct i915_ggtt *ggtt = &i915->ggtt; in init_fake_lmem_bar() 62 dma_unmap_resource(mem->i915->drm.dev, in release_fake_lmem_bar() 117 struct drm_i915_private *i915 = gt->i915; in intel_gt_setup_fake_lmem() local 124 if (!HAS_LMEM(i915)) in intel_gt_setup_fake_lmem() 127 if (!i915->params.fake_lmem_start) in intel_gt_setup_fake_lmem() 135 start = i915->params.fake_lmem_start; in intel_gt_setup_fake_lmem() 137 mem = intel_memory_region_create(i915, in intel_gt_setup_fake_lmem() 148 drm_info(&i915->drm, in intel_gt_setup_fake_lmem() 192 struct drm_i915_private *i915 = gt->i915; in setup_lmem() local [all …]
|
A D | intel_rc6.c | 48 return rc6_to_gt(rc)->i915; in rc6_to_i915() 253 if (HAS_RC6p(i915)) in gen6_rc6_enable() 255 if (HAS_RC6pp(i915)) in gen6_rc6_enable() 269 drm_dbg(&i915->drm, in gen6_rc6_enable() 276 drm_err(&i915->drm, in gen6_rc6_enable() 339 drm_dbg(&i915->drm, in vlv_rc6_init() 345 i915->dsm.start, in vlv_rc6_init() 449 drm_dbg(&i915->drm, in bxt_check_bios_rc6_setup() 478 if (!HAS_RC6(i915)) in rc6_supported() 520 drm_notice(&i915->drm, in pctx_corrupted() [all …]
|
/linux/drivers/gpu/drm/i915/gem/selftests/ |
A D | i915_gem_mman.c | 291 if (GRAPHICS_VER(i915) < 4) in setup_tile_size() 319 obj = huge_gem_object(i915, in igt_partial_tiling() 456 obj = huge_gem_object(i915, in igt_smoke_tiling() 578 if (HAS_LMEM(i915)) in default_mapping() 588 if (HAS_LMEM(i915)) { in create_sys_or_internal() 619 intel_gt_pm_get(&i915->gt); in disable_retire_worker() 625 igt_flush_test(i915); in restore_retire_worker() 659 mmap_offset_lock(i915); in igt_mmap_offset_exhaustion() 691 mmap_offset_unlock(i915); in igt_mmap_offset_exhaustion() 748 mmap_offset_lock(i915); in igt_mmap_offset_exhaustion() [all …]
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
A D | intel_uc.c | 20 struct drm_i915_private *i915 = uc_to_gt(uc)->i915; in uc_expand_default_options() local 32 if (IS_TIGERLAKE(i915) || IS_ROCKETLAKE(i915)) { in uc_expand_default_options() 75 struct drm_i915_private *i915 = uc_to_gt(uc)->i915; in __confirm_options() local 77 drm_dbg(&i915->drm, in __confirm_options() 94 drm_info(&i915->drm, in __confirm_options() 100 drm_info(&i915->drm, in __confirm_options() 106 drm_info(&i915->drm, in __confirm_options() 111 drm_info(&i915->drm, in __confirm_options() 221 struct drm_i915_private *i915 = gt->i915; in guc_enable_communication() local 252 struct drm_i915_private *i915 = guc_to_gt(guc)->i915; in guc_disable_communication() local [all …]
|