Home
last modified time | relevance | path

Searched refs:to_gt (Results 1 – 25 of 89) sorted by relevance

1234

/linux-5.19.10/drivers/gpu/drm/i915/selftests/
Dmock_gem_device.c48 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 …]
Di915_gem.c45 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()
Digt_live_test.c19 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()
Digt_flush_test.c17 struct intel_gt *gt = to_gt(i915); in igt_flush_test()
Dmock_uncore.c45 intel_uncore_init_early(uncore, to_gt(i915)); in mock_uncore_init()
/linux-5.19.10/drivers/gpu/drm/i915/
Di915_debugfs.c72 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 …]
Di915_getparam.c18 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()
Di915_gem.c96 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 …]
Di915_gem_gtt.c60 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()
Di915_driver.c303 __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 …]
Di915_irq.c1044 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 …]
Di915_pmu.c212 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/
Di915_gem_tiling.c187 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()
Di915_gem_pm.c27 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()
Di915_gem_mman.c301 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()
Di915_gem_ttm_move.c180 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()
Di915_gem_shrinker.c152 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()
Di915_gem_phys.c78 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/
Dselftest_gt_pm.c197 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()
Dintel_ggtt.c89 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()
Dmock_engine.c348 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()
Dselftest_slpc.c42 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()
Dselftest_engine.c15 struct intel_gt *gt = to_gt(i915); in intel_engine_live_selftests()
Dselftest_ring_submission.c294 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/
Di915_gem_mman.c151 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 …]

1234