/linux-5.19.10/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() 190 atomic_inc(&to_gt(i915)->wakeref.count); /* disable; no hw support */ in mock_gem_device() 191 to_gt(i915)->awake = -ENODEV; in mock_gem_device() 205 ret = intel_gt_assign_ggtt(to_gt(i915)); in mock_gem_device() 209 mock_init_ggtt(to_gt(i915)); in mock_gem_device() 210 to_gt(i915)->vm = i915_vm_get(&to_gt(i915)->ggtt->vm); in mock_gem_device() 213 to_gt(i915)->info.engine_mask = BIT(0); in mock_gem_device() 215 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-5.19.10/drivers/gpu/drm/i915/ |
D | i915_debugfs.c | 72 intel_gt_info_print(&to_gt(i915)->info, &p); in i915_capabilities() 312 gpu = i915_gpu_coredump(to_gt(i915), ALL_ENGINES, CORE_DUMP_FLAG_NONE); in i915_gpu_info_open() 371 struct intel_gt *gt = to_gt(i915); in i915_frequency_info() 410 swizzle_string(to_gt(dev_priv)->ggtt->bit_6_swizzle_x)); in i915_swizzle_info() 412 swizzle_string(to_gt(dev_priv)->ggtt->bit_6_swizzle_y)); in i915_swizzle_info() 459 struct intel_rps *rps = &to_gt(dev_priv)->rps; in i915_rps_boost_info() 465 seq_printf(m, "GPU busy? %s\n", str_yes_no(to_gt(dev_priv)->awake)); in i915_rps_boost_info() 498 seq_printf(m, "GPU idle: %s\n", str_yes_no(!to_gt(dev_priv)->awake)); in i915_runtime_pm_status() 530 str_yes_no(to_gt(i915)->awake), in i915_engine_info() 531 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() 163 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() 850 for (i = 0; i < to_gt(i915)->ggtt->num_fences; i++) { in i915_gem_runtime_suspend() 851 struct i915_fence_reg *reg = &to_gt(i915)->ggtt->fence_regs[i]; in i915_gem_runtime_suspend() 892 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_gem_object_ggtt_pin_ww() 1101 intel_uc_fetch_firmwares(&to_gt(dev_priv)->uc); in i915_gem_init() [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_driver.c | 303 __intel_gt_reset(to_gt(i915), ALL_ENGINES); in sanitize_gpu() 440 ret = intel_gt_init_mmio(to_gt(dev_priv)); in i915_driver_mmio_probe() 571 ret = intel_gt_assign_ggtt(to_gt(dev_priv)); in i915_driver_hw_probe() 718 intel_gt_driver_register(to_gt(dev_priv)); in i915_driver_register() 746 intel_gt_driver_unregister(to_gt(dev_priv)); in i915_driver_unregister() 780 intel_gt_info_print(&to_gt(dev_priv)->info, &p); in i915_welcome_messages() 1155 i915_ggtt_suspend(to_gt(dev_priv)->ggtt); in i915_drm_suspend() 1271 i915_ggtt_resume(to_gt(dev_priv)->ggtt); in i915_drm_resume() 1384 intel_gt_check_and_clear_faults(to_gt(dev_priv)); in i915_drm_resume_early() 1566 intel_gt_runtime_suspend(to_gt(dev_priv)); in intel_runtime_suspend() [all …]
|
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-5.19.10/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)->ggtt->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)->ggtt->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() 668 err = intel_gt_retire_requests_timeout(to_gt(i915), MAX_SCHEDULE_TIMEOUT, in mmap_offset_attach() 762 else if (!i915_ggtt_has_aperture(to_gt(i915)->ggtt)) in i915_gem_dumb_mmap_offset() 810 if (!i915_ggtt_has_aperture(to_gt(i915)->ggtt)) in i915_gem_mmap_offset_ioctl()
|
D | i915_gem_ttm_move.c | 180 if (!to_gt(i915)->migrate.context || intel_gt_is_wedged(to_gt(i915))) in i915_ttm_accel_move() 193 intel_engine_pm_get(to_gt(i915)->migrate.context->engine); in i915_ttm_accel_move() 194 ret = intel_context_migrate_clear(to_gt(i915)->migrate.context, deps, in i915_ttm_accel_move() 206 intel_engine_pm_get(to_gt(i915)->migrate.context->engine); in i915_ttm_accel_move() 207 ret = intel_context_migrate_copy(to_gt(i915)->migrate.context, in i915_ttm_accel_move() 218 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-5.19.10/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 | intel_ggtt.c | 89 ret = ggtt_init_hw(to_gt(i915)->ggtt); in i915_ggtt_init_hw() 482 ret = init_ggtt(to_gt(i915)->ggtt); in i915_init_ggtt() 487 ret = init_aliasing_ppgtt(to_gt(i915)->ggtt); in i915_init_ggtt() 489 cleanup_init_ggtt(to_gt(i915)->ggtt); in i915_init_ggtt() 542 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_ggtt_driver_release() 557 struct i915_ggtt *ggtt = to_gt(i915)->ggtt; in i915_ggtt_driver_late_release() 626 ret = ggtt_probe_hw(to_gt(i915)->ggtt, to_gt(i915)); in i915_ggtt_probe_hw()
|
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_slpc.c | 42 struct intel_gt *gt = to_gt(i915); in live_slpc_clamp_min() 169 struct intel_gt *gt = to_gt(i915); in live_slpc_clamp_max() 307 if (intel_gt_is_wedged(to_gt(i915))) in intel_slpc_live_selftests()
|
D | selftest_engine.c | 15 struct intel_gt *gt = to_gt(i915); in intel_engine_live_selftests()
|
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-5.19.10/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_mman.c | 151 intel_gt_flush_ggtt_writes(to_gt(i915)); in check_partial_mapping() 247 intel_gt_flush_ggtt_writes(to_gt(i915)); in check_partial_mappings() 320 if (!i915_ggtt_has_aperture(to_gt(i915)->ggtt)) in igt_partial_tiling() 333 (1 + next_prime_number(to_gt(i915)->ggtt->vm.total >> PAGE_SHIFT)) << PAGE_SHIFT); in igt_partial_tiling() 379 tile.swizzle = to_gt(i915)->ggtt->bit_6_swizzle_x; in igt_partial_tiling() 382 tile.swizzle = to_gt(i915)->ggtt->bit_6_swizzle_y; in igt_partial_tiling() 453 if (!i915_ggtt_has_aperture(to_gt(i915)->ggtt)) in igt_smoke_tiling() 470 (1 + next_prime_number(to_gt(i915)->ggtt->vm.total >> PAGE_SHIFT)) << PAGE_SHIFT); in igt_smoke_tiling() 499 tile.swizzle = to_gt(i915)->ggtt->bit_6_swizzle_x; in igt_smoke_tiling() 502 tile.swizzle = to_gt(i915)->ggtt->bit_6_swizzle_y; in igt_smoke_tiling() [all …]
|