/Linux-v6.1/drivers/gpu/drm/i915/selftests/ |
D | mock_gem_device.c | 48 struct intel_gt *gt = to_gt(i915); in mock_device_flush() 67 intel_gt_driver_remove(to_gt(i915)); in mock_device_release() 72 mock_fini_ggtt(to_gt(i915)->ggtt); in mock_device_release() 191 atomic_inc(&to_gt(i915)->wakeref.count); /* disable; no hw support */ in mock_gem_device() 192 to_gt(i915)->awake = -ENODEV; in mock_gem_device() 206 ret = intel_gt_assign_ggtt(to_gt(i915)); in mock_gem_device() 210 mock_init_ggtt(to_gt(i915)); in mock_gem_device() 211 to_gt(i915)->vm = i915_vm_get(&to_gt(i915)->ggtt->vm); in mock_gem_device() 214 to_gt(i915)->info.engine_mask = BIT(0); in mock_gem_device() 216 to_gt(i915)->engine[RCS0] = mock_engine(i915, "mock", RCS0); in mock_gem_device() [all …]
|
D | i915_gem.c | 45 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in trash_stolen() 103 i915_ggtt_suspend(to_gt(i915)->ggtt); in igt_pm_suspend() 113 i915_ggtt_suspend(to_gt(i915)->ggtt); in igt_pm_hibernate() 129 i915_ggtt_resume(to_gt(i915)->ggtt); in igt_pm_resume() 252 if (intel_gt_is_wedged(to_gt(i915))) in i915_gem_live_selftests()
|
D | igt_live_test.c | 19 struct intel_gt *gt = to_gt(i915); in igt_live_test_begin() 60 for_each_engine(engine, to_gt(i915), id) { in igt_live_test_end()
|
D | igt_flush_test.c | 17 struct intel_gt *gt = to_gt(i915); in igt_flush_test()
|
D | mock_uncore.c | 45 intel_uncore_init_early(uncore, to_gt(i915)); in mock_uncore_init()
|
/Linux-v6.1/drivers/gpu/drm/i915/ |
D | i915_debugfs.c | 71 intel_gt_info_print(&to_gt(i915)->info, &p); in i915_capabilities() 311 gpu = i915_gpu_coredump(to_gt(i915), ALL_ENGINES, CORE_DUMP_FLAG_NONE); in i915_gpu_info_open() 370 struct intel_gt *gt = to_gt(i915); in i915_frequency_info() 409 swizzle_string(to_gt(dev_priv)->ggtt->bit_6_swizzle_x)); in i915_swizzle_info() 411 swizzle_string(to_gt(dev_priv)->ggtt->bit_6_swizzle_y)); in i915_swizzle_info() 458 struct intel_rps *rps = &to_gt(dev_priv)->rps; in i915_rps_boost_info() 464 seq_printf(m, "GPU busy? %s\n", str_yes_no(to_gt(dev_priv)->awake)); in i915_rps_boost_info() 497 seq_printf(m, "GPU idle: %s\n", str_yes_no(!to_gt(dev_priv)->awake)); in i915_runtime_pm_status() 529 str_yes_no(to_gt(i915)->awake), in i915_engine_info() 530 atomic_read(&to_gt(i915)->wakeref.count), in i915_engine_info() [all …]
|
D | i915_getparam.c | 18 const struct sseu_dev_info *sseu = &to_gt(i915)->info.sseu; in i915_getparam_ioctl() 36 value = to_gt(i915)->ggtt->num_fences; in i915_getparam_ioctl() 87 intel_has_gpu_reset(to_gt(i915)); in i915_getparam_ioctl() 88 if (value && intel_has_reset_engine(to_gt(i915))) in i915_getparam_ioctl() 101 value = intel_huc_check_status(&to_gt(i915)->uc.huc); in i915_getparam_ioctl() 170 value = to_gt(i915)->clock_frequency; in i915_getparam_ioctl()
|
D | i915_gem.c | 96 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_gem_get_aperture_ioctl() 308 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_gem_gtt_prepare() 369 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_gem_gtt_cleanup() 385 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_gem_gtt_pread() 541 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_gem_gtt_pwrite_fast() 842 &to_gt(i915)->ggtt->userfault_list, userfault_link) in i915_gem_runtime_suspend() 846 &to_gt(i915)->lmem_userfault_list, userfault_link) in i915_gem_runtime_suspend() 854 for (i = 0; i < to_gt(i915)->ggtt->num_fences; i++) { in i915_gem_runtime_suspend() 855 struct i915_fence_reg *reg = &to_gt(i915)->ggtt->fence_regs[i]; in i915_gem_runtime_suspend() 896 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_gem_object_ggtt_pin_ww() [all …]
|
D | i915_gem_gtt.c | 60 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_gem_gtt_finish_pages() 109 GEM_BUG_ON(vm == &to_gt(vm->i915)->ggtt->alias->vm); in i915_gem_gtt_reserve() 209 GEM_BUG_ON(vm == &to_gt(vm->i915)->ggtt->alias->vm); in i915_gem_gtt_insert()
|
D | i915_irq.c | 1044 struct intel_gt *gt = to_gt(dev_priv); in ivb_parity_work() 1722 gen6_gt_irq_handler(to_gt(dev_priv), gt_iir); in valleyview_irq_handler() 1724 gen6_rps_irq_handler(&to_gt(dev_priv)->rps, pm_iir); in valleyview_irq_handler() 1781 gen8_gt_irq_handler(to_gt(dev_priv), master_ctl); in cherryview_irq_handler() 2112 gen5_rps_irq_handler(&to_gt(dev_priv)->rps); in ilk_display_irq_handler() 2193 gen6_gt_irq_handler(to_gt(i915), gt_iir); in ilk_irq_handler() 2195 gen5_gt_irq_handler(to_gt(i915), gt_iir); in ilk_irq_handler() 2213 gen6_rps_irq_handler(&to_gt(i915)->rps, pm_iir); in ilk_irq_handler() 2639 gen8_gt_irq_handler(to_gt(dev_priv), master_ctl); in gen8_irq_handler() 2719 struct intel_gt *gt = to_gt(i915); in gen11_irq_handler() [all …]
|
D | i915_pmu.c | 212 with_intel_runtime_pm(to_gt(i915)->uncore->rpm, wakeref) { in init_rc6() 213 pmu->sample[__I915_SAMPLE_RC6].cur = __get_rc6(to_gt(i915)); in init_rc6() 224 pmu->sample[__I915_SAMPLE_RC6].cur = __get_rc6(to_gt(i915)); in park_rc6() 421 struct intel_gt *gt = to_gt(i915); in i915_sample() 478 struct intel_gt *gt = to_gt(i915); in config_status() 603 val = get_rc6(to_gt(i915)); in __i915_pmu_event_read() 606 val = ktime_to_ns(intel_gt_get_awake_time(to_gt(i915))); in __i915_pmu_event_read()
|
/Linux-v6.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_tiling.c | 187 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_gem_object_fence_prepare() 226 return to_gt(i915)->ggtt->bit_6_swizzle_x == I915_BIT_6_SWIZZLE_9_10_17 && in i915_gem_object_needs_bit17_swizzle() 350 if (!to_gt(dev_priv)->ggtt->num_fences) in i915_gem_set_tiling_ioctl() 376 args->swizzle_mode = to_gt(dev_priv)->ggtt->bit_6_swizzle_x; in i915_gem_set_tiling_ioctl() 378 args->swizzle_mode = to_gt(dev_priv)->ggtt->bit_6_swizzle_y; in i915_gem_set_tiling_ioctl() 433 if (!to_gt(dev_priv)->ggtt->num_fences) in i915_gem_get_tiling_ioctl() 449 args->swizzle_mode = to_gt(dev_priv)->ggtt->bit_6_swizzle_x; in i915_gem_get_tiling_ioctl() 452 args->swizzle_mode = to_gt(dev_priv)->ggtt->bit_6_swizzle_y; in i915_gem_get_tiling_ioctl()
|
D | i915_gem_pm.c | 27 intel_wakeref_auto(&to_gt(i915)->userfault_wakeref, 0); in i915_gem_suspend() 39 intel_gt_suspend_prepare(to_gt(i915)); in i915_gem_suspend() 157 intel_gt_suspend_late(to_gt(i915)); in i915_gem_suspend_late() 227 intel_gt_resume(to_gt(i915)); in i915_gem_resume()
|
D | i915_gem_mman.c | 301 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in vm_fault_gtt() 407 mutex_lock(&to_gt(i915)->ggtt->vm.mutex); in vm_fault_gtt() 409 list_add(&obj->userfault_link, &to_gt(i915)->ggtt->userfault_list); in vm_fault_gtt() 410 mutex_unlock(&to_gt(i915)->ggtt->vm.mutex); in vm_fault_gtt() 416 intel_wakeref_auto(&to_gt(i915)->userfault_wakeref, in vm_fault_gtt() 531 mutex_lock(&to_gt(i915)->ggtt->vm.mutex); in i915_gem_object_release_mmap_gtt() 549 mutex_unlock(&to_gt(i915)->ggtt->vm.mutex); in i915_gem_object_release_mmap_gtt() 592 mutex_lock(&to_gt(to_i915(obj->base.dev))->lmem_userfault_lock); in i915_gem_object_release_mmap_offset() 594 mutex_unlock(&to_gt(to_i915(obj->base.dev))->lmem_userfault_lock); in i915_gem_object_release_mmap_offset() 689 err = intel_gt_retire_requests_timeout(to_gt(i915), MAX_SCHEDULE_TIMEOUT, in mmap_offset_attach() [all …]
|
D | i915_gem_ttm_move.c | 186 if (!to_gt(i915)->migrate.context || intel_gt_is_wedged(to_gt(i915))) in i915_ttm_accel_move() 199 intel_engine_pm_get(to_gt(i915)->migrate.context->engine); in i915_ttm_accel_move() 200 ret = intel_context_migrate_clear(to_gt(i915)->migrate.context, deps, in i915_ttm_accel_move() 212 intel_engine_pm_get(to_gt(i915)->migrate.context->engine); in i915_ttm_accel_move() 213 ret = intel_context_migrate_copy(to_gt(i915)->migrate.context, in i915_ttm_accel_move() 224 intel_engine_pm_put(to_gt(i915)->migrate.context->engine); in i915_ttm_accel_move()
|
D | i915_gem_shrinker.c | 152 intel_gt_retire_requests(to_gt(i915)); in i915_gem_shrink() 400 mutex_lock(&to_gt(i915)->ggtt->vm.mutex); in i915_gem_shrinker_vmap() 402 &to_gt(i915)->ggtt->vm.bound_list, vm_link) { in i915_gem_shrinker_vmap() 417 mutex_unlock(&to_gt(i915)->ggtt->vm.mutex); in i915_gem_shrinker_vmap()
|
D | i915_gem_phys.c | 78 intel_gt_chipset_flush(to_gt(i915)); in i915_gem_object_get_pages_phys() 165 intel_gt_chipset_flush(to_gt(i915)); in i915_gem_object_pwrite_phys()
|
/Linux-v6.1/drivers/gpu/drm/i915/gt/ |
D | selftest_gt_pm.c | 197 if (intel_gt_is_wedged(to_gt(i915))) in intel_gt_pm_live_selftests() 200 return intel_gt_live_subtests(tests, to_gt(i915)); in intel_gt_pm_live_selftests() 214 if (intel_gt_is_wedged(to_gt(i915))) in intel_gt_pm_late_selftests() 217 return intel_gt_live_subtests(tests, to_gt(i915)); in intel_gt_pm_late_selftests()
|
D | selftest_slpc.c | 273 struct intel_gt *gt = to_gt(i915); in live_slpc_vary_min() 281 struct intel_gt *gt = to_gt(i915); in live_slpc_vary_max() 290 struct intel_gt *gt = to_gt(i915); in live_slpc_max_granted() 303 if (intel_gt_is_wedged(to_gt(i915))) in intel_slpc_live_selftests()
|
D | mock_engine.c | 348 GEM_BUG_ON(!to_gt(i915)->uncore); in mock_engine() 356 engine->base.gt = to_gt(i915); in mock_engine() 357 engine->base.uncore = to_gt(i915)->uncore; in mock_engine() 380 to_gt(i915)->engine[id] = &engine->base; in mock_engine() 381 to_gt(i915)->engine_class[0][id] = &engine->base; in mock_engine()
|
D | selftest_engine.c | 15 struct intel_gt *gt = to_gt(i915); in intel_engine_live_selftests()
|
D | intel_ggtt.c | 100 ret = ggtt_init_hw(to_gt(i915)->ggtt); in i915_ggtt_init_hw() 736 ret = init_ggtt(to_gt(i915)->ggtt); in i915_init_ggtt() 741 ret = init_aliasing_ppgtt(to_gt(i915)->ggtt); in i915_init_ggtt() 743 cleanup_init_ggtt(to_gt(i915)->ggtt); in i915_init_ggtt() 796 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_ggtt_driver_release() 811 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_ggtt_driver_late_release() 1201 ret = ggtt_probe_hw(to_gt(i915)->ggtt, to_gt(i915)); in i915_ggtt_probe_hw() 1318 to_gt(i915)->ggtt->pte_lost = val; in i915_ggtt_mark_pte_lost()
|
D | intel_sa_media.c | 24 gt->irq_lock = to_gt(i915)->irq_lock; in intel_sa_mediagt_setup()
|
D | selftest_ring_submission.c | 294 if (to_gt(i915)->submission_method > INTEL_SUBMISSION_RING) in intel_ring_submission_live_selftests() 297 return intel_gt_live_subtests(tests, to_gt(i915)); in intel_ring_submission_live_selftests()
|
/Linux-v6.1/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_mman.c | 153 intel_gt_flush_ggtt_writes(to_gt(i915)); in check_partial_mapping() 249 intel_gt_flush_ggtt_writes(to_gt(i915)); in check_partial_mappings() 322 if (!i915_ggtt_has_aperture(to_gt(i915)->ggtt)) in igt_partial_tiling() 335 (1 + next_prime_number(to_gt(i915)->ggtt->vm.total >> PAGE_SHIFT)) << PAGE_SHIFT); in igt_partial_tiling() 381 tile.swizzle = to_gt(i915)->ggtt->bit_6_swizzle_x; in igt_partial_tiling() 384 tile.swizzle = to_gt(i915)->ggtt->bit_6_swizzle_y; in igt_partial_tiling() 455 if (!i915_ggtt_has_aperture(to_gt(i915)->ggtt)) in igt_smoke_tiling() 472 (1 + next_prime_number(to_gt(i915)->ggtt->vm.total >> PAGE_SHIFT)) << PAGE_SHIFT); in igt_smoke_tiling() 501 tile.swizzle = to_gt(i915)->ggtt->bit_6_swizzle_x; in igt_smoke_tiling() 504 tile.swizzle = to_gt(i915)->ggtt->bit_6_swizzle_y; in igt_smoke_tiling() [all …]
|