Home
last modified time | relevance | path

Searched refs:xe_device (Results 1 – 25 of 96) sorted by relevance

1234

/linux/drivers/gpu/drm/xe/
H A Dxe_pm.h14 struct xe_device;
16 int xe_pm_suspend(struct xe_device *xe);
17 int xe_pm_resume(struct xe_device *xe);
19 int xe_pm_init_early(struct xe_device *xe);
20 int xe_pm_init(struct xe_device *xe);
21 void xe_pm_fini(struct xe_device *xe);
22 bool xe_pm_runtime_suspended(struct xe_device *xe);
23 int xe_pm_runtime_suspend(struct xe_device *xe);
24 int xe_pm_runtime_resume(struct xe_device *xe);
25 void xe_pm_runtime_get(struct xe_device *xe);
[all …]
H A Dxe_sriov_pf_migration.h12 struct xe_device;
15 int xe_sriov_pf_migration_init(struct xe_device *xe);
16 bool xe_sriov_pf_migration_supported(struct xe_device *xe);
17 void xe_sriov_pf_migration_disable(struct xe_device *xe, const char *fmt, ...);
18 int xe_sriov_pf_migration_restore_produce(struct xe_device *xe, unsigned int vfid,
21 xe_sriov_pf_migration_save_consume(struct xe_device *xe, unsigned int vfid);
22 ssize_t xe_sriov_pf_migration_size(struct xe_device *xe, unsigned int vfid);
23 wait_queue_head_t *xe_sriov_pf_migration_waitqueue(struct xe_device *xe, unsigned int vfid);
25 ssize_t xe_sriov_pf_migration_read(struct xe_device *xe, unsigned int vfid,
27 ssize_t xe_sriov_pf_migration_write(struct xe_device *xe, unsigned int vfid,
H A Dxe_pm.c131 int xe_pm_block_on_suspend(struct xe_device *xe) in xe_pm_block_on_suspend()
145 bool xe_rpm_reclaim_safe(const struct xe_device *xe) in xe_rpm_reclaim_safe()
150 static void xe_rpm_lockmap_acquire(const struct xe_device *xe) in xe_rpm_lockmap_acquire()
157 static void xe_rpm_lockmap_release(const struct xe_device *xe) in xe_rpm_lockmap_release()
170 int xe_pm_suspend(struct xe_device *xe) in xe_pm_suspend()
228 int xe_pm_resume(struct xe_device *xe) in xe_pm_resume()
288 static bool xe_pm_pci_d3cold_capable(struct xe_device *xe) in xe_pm_pci_d3cold_capable()
312 static void xe_pm_runtime_init(struct xe_device *xe) in xe_pm_runtime_init()
339 int xe_pm_init_early(struct xe_device *xe) in xe_pm_init_early()
358 static u32 vram_threshold_value(struct xe_device *xe) in vram_threshold_value()
[all …]
H A Dxe_irq.h13 struct xe_device;
17 int xe_irq_init(struct xe_device *xe);
18 int xe_irq_install(struct xe_device *xe);
19 void xe_irq_suspend(struct xe_device *xe);
20 void xe_irq_resume(struct xe_device *xe);
22 int xe_irq_msix_request_irq(struct xe_device *xe, irq_handler_t handler, void *irq_buf,
24 void xe_irq_msix_free_irq(struct xe_device *xe, u16 msix);
H A Dxe_sriov_pf_service.h12 struct xe_device;
14 void xe_sriov_pf_service_init(struct xe_device *xe);
15 void xe_sriov_pf_service_print_versions(struct xe_device *xe, struct drm_printer *p);
17 int xe_sriov_pf_service_handshake_vf(struct xe_device *xe, u32 vfid,
20 bool xe_sriov_pf_service_is_negotiated(struct xe_device *xe, u32 vfid, u32 major, u32 minor);
21 void xe_sriov_pf_service_reset_vf(struct xe_device *xe, unsigned int vfid);
H A Dxe_sriov_pf_migration.c19 static struct xe_sriov_migration_state *pf_pick_migration(struct xe_device *xe, unsigned int vfid) in pf_pick_migration()
34 wait_queue_head_t *xe_sriov_pf_migration_waitqueue(struct xe_device *xe, unsigned int vfid) in xe_sriov_pf_migration_waitqueue()
45 bool xe_sriov_pf_migration_supported(struct xe_device *xe) in xe_sriov_pf_migration_supported()
57 void xe_sriov_pf_migration_disable(struct xe_device *xe, const char *fmt, ...) in xe_sriov_pf_migration_disable()
76 static void pf_migration_check_support(struct xe_device *xe) in pf_migration_check_support()
97 int xe_sriov_pf_migration_init(struct xe_device *xe) in xe_sriov_pf_migration_init()
127 static bool pf_migration_data_ready(struct xe_device *xe, unsigned int vfid) in pf_migration_data_ready()
143 pf_migration_consume(struct xe_device *xe, unsigned int vfid) in pf_migration_consume()
178 xe_sriov_pf_migration_save_consume(struct xe_device *xe, unsigned int vfid) in xe_sriov_pf_migration_save_consume()
200 static int pf_handle_descriptor(struct xe_device *xe, unsigned int vfid, in pf_handle_descriptor()
[all …]
H A Dxe_device.c82 struct xe_device *xe = to_xe_device(dev); in xe_file_open()
163 struct xe_device *xe = to_xe_device(dev); in xe_file_close()
217 struct xe_device *xe = to_xe_device(file_priv->minor->dev); in xe_drm_ioctl()
235 struct xe_device *xe = to_xe_device(file_priv->minor->dev); in xe_drm_compat_ioctl()
319 struct xe_device *xe = to_xe_device(dev); in xe_pci_barrier_mmap()
404 struct xe_device *xe = to_xe_device(dev); in xe_device_destroy()
423 struct xe_device *xe_device_create(struct pci_dev *pdev, in xe_device_create()
426 struct xe_device *xe; in xe_device_create()
435 xe = devm_drm_dev_alloc(&pdev->dev, &driver, struct xe_device, drm); in xe_device_create()
515 static bool xe_driver_flr_disabled(struct xe_device *xe) in xe_driver_flr_disabled()
[all …]
H A Dxe_debugfs.c42 static void read_residency_counter(struct xe_device *xe, struct xe_mmio *mmio, in read_residency_counter()
59 static struct xe_device *node_to_xe(struct drm_info_node *node) in node_to_xe()
66 struct xe_device *xe = node_to_xe(m->private); in info()
104 struct xe_device *xe = node_to_xe(m->private); in sriov_info()
111 static int workarounds(struct xe_device *xe, struct drm_printer *p) in workarounds()
122 struct xe_device *xe = node_to_xe(m->private); in workaround_info()
131 struct xe_device *xe; in dgfx_pkg_residencies_show()
160 struct xe_device *xe; in dgfx_pcie_link_residencies_show()
198 struct xe_device *xe = inode->i_private; in forcewake_open()
230 struct xe_device *xe = inode->i_private; in forcewake_release()
[all …]
H A Dxe_gsc_submit.h12 struct xe_device;
15 u32 xe_gsc_emit_header(struct xe_device *xe, struct iosys_map *map, u32 offset,
17 void xe_gsc_poison_header(struct xe_device *xe, struct iosys_map *map, u32 offset);
19 bool xe_gsc_check_and_update_pending(struct xe_device *xe,
23 int xe_gsc_read_out_header(struct xe_device *xe,
H A Dxe_survivability_mode.c95 static void populate_survivability_info(struct xe_device *xe) in populate_survivability_info()
131 struct xe_device *xe = pdev_to_xe_device(pdev); in log_survivability_info()
145 static int check_boot_failure(struct xe_device *xe) in check_boot_failure()
157 struct xe_device *xe = pdev_to_xe_device(pdev); in survivability_mode_show()
181 struct xe_device *xe = arg; in xe_survivability_mode_fini()
191 struct xe_device *xe = pdev_to_xe_device(pdev); in create_survivability_sysfs()
212 struct xe_device *xe = pdev_to_xe_device(pdev); in enable_boot_survivability_mode()
242 static int init_survivability_mode(struct xe_device *xe) in init_survivability_mode()
267 bool xe_survivability_mode_is_boot_enabled(struct xe_device *xe) in xe_survivability_mode_is_boot_enabled()
284 bool xe_survivability_mode_is_requested(struct xe_device *xe) in xe_survivability_mode_is_requested()
[all …]
H A Dxe_bo_evict.c15 static int xe_bo_apply_to_pinned(struct xe_device *xe, in xe_bo_apply_to_pinned()
64 int xe_bo_notifier_prepare_all_pinned(struct xe_device *xe) in xe_bo_notifier_prepare_all_pinned()
92 void xe_bo_notifier_unprepare_all_pinned(struct xe_device *xe) in xe_bo_notifier_unprepare_all_pinned()
115 int xe_bo_evict_all_user(struct xe_device *xe) in xe_bo_evict_all_user()
160 int xe_bo_evict_all(struct xe_device *xe) in xe_bo_evict_all()
226 int xe_bo_restore_early(struct xe_device *xe) in xe_bo_restore_early()
243 int xe_bo_restore_late(struct xe_device *xe) in xe_bo_restore_late()
273 static void xe_bo_pci_dev_remove_pinned(struct xe_device *xe) in xe_bo_pci_dev_remove_pinned()
298 void xe_bo_pci_dev_remove_all(struct xe_device *xe) in xe_bo_pci_dev_remove_all()
322 struct xe_device *xe = arg; in xe_bo_pinned_fini()
[all …]
H A Dxe_late_bind_fw.c42 static struct xe_device *
45 return container_of(late_bind, struct xe_device, late_bind); in late_bind_to_xe()
48 static struct xe_device *
51 return container_of(lb_fw, struct xe_device, late_bind.late_bind_fw[lb_fw->id]); in late_bind_fw_to_xe()
58 struct xe_device *xe = late_bind_fw_to_xe(lb_fw); in parse_cpd_header()
115 struct xe_device *xe = late_bind_fw_to_xe(lb_fw); in parse_lb_layout()
189 struct xe_device *xe = late_bind_to_xe(late_bind); in xe_late_bind_fw_num_fans()
198 struct xe_device *xe = late_bind_to_xe(late_bind); in xe_late_bind_wait_for_worker_completion()
217 struct xe_device *xe = late_bind_to_xe(late_bind); in xe_late_bind_work()
274 struct xe_device *xe = late_bind_to_xe(late_bind); in xe_late_bind_fw_load()
[all …]
H A Dxe_vram.h11 struct xe_device;
14 void xe_vram_resize_bar(struct xe_device *xe);
15 int xe_vram_probe(struct xe_device *xe);
17 struct xe_vram_region *xe_vram_region_alloc(struct xe_device *xe, u8 id, u32 placement);
H A Dxe_sriov_vf_ccs.c121 static u64 get_ccs_bb_pool_size(struct xe_device *xe) in get_ccs_bb_pool_size()
144 struct xe_device *xe = tile_to_xe(tile); in alloc_bb_pool()
204 void xe_sriov_vf_ccs_rebase(struct xe_device *xe) in xe_sriov_vf_ccs_rebase()
247 int xe_sriov_vf_ccs_register_context(struct xe_device *xe) in xe_sriov_vf_ccs_register_context()
273 static bool vf_migration_ccs_bb_needed(struct xe_device *xe) in vf_migration_ccs_bb_needed()
288 static bool vf_migration_ccs_bb_support_check(struct xe_device *xe) in vf_migration_ccs_bb_support_check()
326 int xe_sriov_vf_ccs_init(struct xe_device *xe) in xe_sriov_vf_ccs_init()
396 struct xe_device *xe = xe_bo_device(bo); in xe_sriov_vf_ccs_attach_bo()
430 struct xe_device *xe = xe_bo_device(bo); in xe_sriov_vf_ccs_detach_bo()
458 void xe_sriov_vf_ccs_print(struct xe_device *xe, struct drm_printer *p) in xe_sriov_vf_ccs_print()
H A Dxe_sriov_vfio.c15 struct xe_device *xe_sriov_vfio_get_pf(struct pci_dev *pdev) in xe_sriov_vfio_get_pf()
21 bool xe_sriov_vfio_migration_supported(struct xe_device *xe) in xe_sriov_vfio_migration_supported()
31 _type xe_sriov_vfio_##_func(struct xe_device *xe, unsigned int vfid) \
54 ssize_t xe_sriov_vfio_data_read(struct xe_device *xe, unsigned int vfid, in xe_sriov_vfio_data_read()
68 ssize_t xe_sriov_vfio_data_write(struct xe_device *xe, unsigned int vfid, in xe_sriov_vfio_data_write()
H A Dxe_sriov_pf_service.c24 void xe_sriov_pf_service_init(struct xe_device *xe) in xe_sriov_pf_service_init()
41 static int pf_negotiate_version(struct xe_device *xe, in pf_negotiate_version()
87 static void pf_connect(struct xe_device *xe, u32 vfid, u32 major, u32 minor) in pf_connect()
96 static void pf_disconnect(struct xe_device *xe, u32 vfid) in pf_disconnect()
117 bool xe_sriov_pf_service_is_negotiated(struct xe_device *xe, u32 vfid, u32 major, u32 minor) in xe_sriov_pf_service_is_negotiated()
140 int xe_sriov_pf_service_handshake_vf(struct xe_device *xe, u32 vfid, in xe_sriov_pf_service_handshake_vf()
176 void xe_sriov_pf_service_reset_vf(struct xe_device *xe, unsigned int vfid) in xe_sriov_pf_service_reset_vf()
194 void xe_sriov_pf_service_print_versions(struct xe_device *xe, struct drm_printer *p) in xe_sriov_pf_service_print_versions()
H A Dxe_nvm.h9 struct xe_device;
11 int xe_nvm_init(struct xe_device *xe);
13 void xe_nvm_fini(struct xe_device *xe);
H A Dxe_debugfs.h9 struct xe_device;
12 void xe_debugfs_register(struct xe_device *xe);
14 static inline void xe_debugfs_register(struct xe_device *xe) { } in xe_debugfs_register()
H A Dxe_bo.c95 static bool resource_is_stolen_vram(struct xe_device *xe, struct ttm_resource *res) in resource_is_stolen_vram()
167 mem_type_to_migrate(struct xe_device *xe, u32 mem_type) in mem_type_to_migrate()
178 struct xe_device *xe = ttm_to_xe_device(res->bo->bdev); in res_to_mem_region()
189 static void try_add_system(struct xe_device *xe, struct xe_bo *bo, in try_add_system()
222 static u8 vram_bo_flag_to_tile_id(struct xe_device *xe, u32 vram_bo_flag) in vram_bo_flag_to_tile_id()
230 static u32 bo_vram_flags_to_vram_placement(struct xe_device *xe, u32 bo_flags, u32 vram_flag, in bo_vram_flags_to_vram_placement()
243 static void add_vram(struct xe_device *xe, struct xe_bo *bo, in add_vram()
274 static void try_add_vram(struct xe_device *xe, struct xe_bo *bo, in try_add_vram()
286 static void try_add_stolen(struct xe_device *xe, struct xe_bo *bo, in try_add_stolen()
301 static int __xe_bo_placement_for_flags(struct xe_device *xe, struct xe_bo *bo, in __xe_bo_placement_for_flags()
[all …]
H A Dxe_step.h13 struct xe_device;
15 struct xe_step_info xe_step_pre_gmdid_get(struct xe_device *xe);
16 struct xe_step_info xe_step_gmdid_get(struct xe_device *xe,
H A Dxe_exec_queue.h14 struct xe_device;
21 struct xe_exec_queue *xe_exec_queue_create(struct xe_device *xe, struct xe_vm *vm,
25 struct xe_exec_queue *xe_exec_queue_create_class(struct xe_device *xe, struct xe_gt *gt,
29 struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe,
82 enum xe_exec_queue_priority xe_exec_queue_device_get_max_priority(struct xe_device *xe);
H A Dxe_devcoredump.h12 struct xe_device;
18 int xe_devcoredump_init(struct xe_device *xe);
26 static inline int xe_devcoredump_init(struct xe_device *xe) in xe_devcoredump_init()
/linux/include/drm/intel/
H A Dxe_sriov_vfio.h12 struct xe_device;
20 struct xe_device *xe_sriov_vfio_get_pf(struct pci_dev *pdev);
28 bool xe_sriov_vfio_migration_supported(struct xe_device *xe);
40 int xe_sriov_vfio_wait_flr_done(struct xe_device *xe, unsigned int vfid);
51 int xe_sriov_vfio_suspend_device(struct xe_device *xe, unsigned int vfid);
62 int xe_sriov_vfio_resume_device(struct xe_device *xe, unsigned int vfid);
71 int xe_sriov_vfio_stop_copy_enter(struct xe_device *xe, unsigned int vfid);
80 int xe_sriov_vfio_stop_copy_exit(struct xe_device *xe, unsigned int vfid);
89 int xe_sriov_vfio_resume_data_enter(struct xe_device *xe, unsigned int vfid);
98 int xe_sriov_vfio_resume_data_exit(struct xe_device *xe, unsigned int vfid);
[all …]
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_kunit_helpers.c33 struct xe_device *xe_kunit_helper_alloc_xe_device(struct kunit *test, in xe_kunit_helper_alloc_xe_device()
36 struct xe_device *xe; in xe_kunit_helper_alloc_xe_device()
39 struct xe_device, in xe_kunit_helper_alloc_xe_device()
73 struct xe_device *xe; in xe_kunit_helper_xe_device_test_init()
94 KUNIT_DEFINE_ACTION_WRAPPER(put_xe_pm_runtime, xe_pm_runtime_put, struct xe_device *);
117 struct xe_device *xe = xe_device_const_cast(test->param_value); in xe_kunit_helper_xe_device_live_test_init()
H A Dxe_sriov_pf_service_kunit.c19 struct xe_device *xe; in pf_service_test_init()
45 struct xe_device *xe = test->priv; in pf_negotiate_any()
58 struct xe_device *xe = test->priv; in pf_negotiate_base_match()
72 struct xe_device *xe = test->priv; in pf_negotiate_base_newer()
90 struct xe_device *xe = test->priv; in pf_negotiate_base_next()
107 struct xe_device *xe = test->priv; in pf_negotiate_base_older()
122 struct xe_device *xe = test->priv; in pf_negotiate_base_prev()
133 struct xe_device *xe = test->priv; in pf_negotiate_latest_match()
147 struct xe_device *xe = test->priv; in pf_negotiate_latest_newer()
161 struct xe_device *xe = test->priv; in pf_negotiate_latest_next()
[all …]

1234