| /drivers/gpu/drm/xe/display/ |
| A D | xe_display.h | 18 int xe_display_probe(struct xe_device *xe); 20 int xe_display_init_early(struct xe_device *xe); 21 int xe_display_init(struct xe_device *xe); 23 void xe_display_register(struct xe_device *xe); 24 void xe_display_unregister(struct xe_device *xe); 28 void xe_display_irq_reset(struct xe_device *xe); 31 void xe_display_pm_suspend(struct xe_device *xe); 32 void xe_display_pm_shutdown(struct xe_device *xe); 33 void xe_display_pm_suspend_late(struct xe_device *xe); 35 void xe_display_pm_resume_early(struct xe_device *xe); [all …]
|
| A D | xe_display.c | 40 static bool has_display(struct xe_device *xe) in has_display() 93 struct xe_device *xe = arg; in xe_display_fini_early() 105 int xe_display_init_early(struct xe_device *xe) in xe_display_init_early() 152 struct xe_device *xe = arg; in xe_display_fini() 161 int xe_display_init(struct xe_device *xe) in xe_display_init() 176 void xe_display_register(struct xe_device *xe) in xe_display_register() 187 void xe_display_unregister(struct xe_device *xe) in xe_display_unregister() 222 void xe_display_irq_reset(struct xe_device *xe) in xe_display_irq_reset() 320 void xe_display_pm_suspend(struct xe_device *xe) in xe_display_pm_suspend() 455 void xe_display_pm_resume(struct xe_device *xe) in xe_display_pm_resume() [all …]
|
| /drivers/gpu/drm/xe/ |
| A D | xe_pm.h | 13 struct xe_device; 15 int xe_pm_suspend(struct xe_device *xe); 16 int xe_pm_resume(struct xe_device *xe); 18 int xe_pm_init_early(struct xe_device *xe); 19 int xe_pm_init(struct xe_device *xe); 20 void xe_pm_fini(struct xe_device *xe); 21 bool xe_pm_runtime_suspended(struct xe_device *xe); 22 int xe_pm_runtime_suspend(struct xe_device *xe); 23 int xe_pm_runtime_resume(struct xe_device *xe); 24 void xe_pm_runtime_get(struct xe_device *xe); [all …]
|
| A D | xe_device.h | 17 return container_of(dev, struct xe_device, drm); in to_xe_device() 34 static inline struct xe_device *xe_device_const_cast(const struct xe_device *xe) in xe_device_const_cast() 36 return (struct xe_device *)xe; in xe_device_const_cast() 41 return container_of(ttm, struct xe_device, ttm); in ttm_to_xe_device() 46 int xe_device_probe_early(struct xe_device *xe); 47 int xe_device_probe(struct xe_device *xe); 48 void xe_device_remove(struct xe_device *xe); 49 void xe_device_shutdown(struct xe_device *xe); 51 void xe_device_wmb(struct xe_device *xe); 182 void xe_device_td_flush(struct xe_device *xe); [all …]
|
| A D | xe_pm.c | 92 bool xe_rpm_reclaim_safe(const struct xe_device *xe) in xe_rpm_reclaim_safe() 117 int xe_pm_suspend(struct xe_device *xe) in xe_pm_suspend() 169 int xe_pm_resume(struct xe_device *xe) in xe_pm_resume() 265 int xe_pm_init_early(struct xe_device *xe) in xe_pm_init_early() 296 struct xe_device *xe = container_of(nb, struct xe_device, pm_notifier); in xe_pm_notifier_callback() 337 int xe_pm_init(struct xe_device *xe) in xe_pm_init() 378 void xe_pm_fini(struct xe_device *xe) in xe_pm_fini() 429 int xe_pm_runtime_suspend(struct xe_device *xe) in xe_pm_runtime_suspend() 516 int xe_pm_runtime_resume(struct xe_device *xe) in xe_pm_runtime_resume() 613 void xe_pm_runtime_get(struct xe_device *xe) in xe_pm_runtime_get() [all …]
|
| A D | xe_bo_evict.h | 9 struct xe_device; 11 int xe_bo_evict_all(struct xe_device *xe); 12 int xe_bo_evict_all_user(struct xe_device *xe); 13 int xe_bo_notifier_prepare_all_pinned(struct xe_device *xe); 14 void xe_bo_notifier_unprepare_all_pinned(struct xe_device *xe); 15 int xe_bo_restore_early(struct xe_device *xe); 16 int xe_bo_restore_late(struct xe_device *xe); 18 void xe_bo_pci_dev_remove_all(struct xe_device *xe); 20 int xe_bo_pinned_init(struct xe_device *xe);
|
| A D | xe_sriov_pf.h | 13 struct xe_device; 16 bool xe_sriov_pf_readiness(struct xe_device *xe); 17 int xe_sriov_pf_init_early(struct xe_device *xe); 18 int xe_sriov_pf_wait_ready(struct xe_device *xe); 19 void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root); 20 void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p); 22 static inline bool xe_sriov_pf_readiness(struct xe_device *xe) in xe_sriov_pf_readiness() 27 static inline int xe_sriov_pf_init_early(struct xe_device *xe) in xe_sriov_pf_init_early() 32 static inline void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root) in xe_sriov_pf_debugfs_register()
|
| A D | xe_i2c.h | 16 struct xe_device; 51 int xe_i2c_probe(struct xe_device *xe); 52 void xe_i2c_irq_handler(struct xe_device *xe, u32 master_ctl); 53 void xe_i2c_pm_suspend(struct xe_device *xe); 54 void xe_i2c_pm_resume(struct xe_device *xe, bool d3cold); 56 static inline int xe_i2c_probe(struct xe_device *xe) { return 0; } in xe_i2c_probe() 57 static inline void xe_i2c_irq_handler(struct xe_device *xe, u32 master_ctl) { } in xe_i2c_irq_handler() 58 static inline void xe_i2c_pm_suspend(struct xe_device *xe) { } in xe_i2c_pm_suspend() 59 static inline void xe_i2c_pm_resume(struct xe_device *xe, bool d3cold) { } in xe_i2c_pm_resume()
|
| A D | xe_irq.c | 139 struct xe_device *xe = gt_to_xe(gt); in xe_irq_enable_hwe() 227 gt_engine_identity(struct xe_device *xe, in gt_engine_identity() 283 struct xe_device *xe = tile_to_xe(tile); in pick_engine_gt() 311 struct xe_device *xe = tile_to_xe(tile); in gt_irq_handler() 369 struct xe_device *xe = arg; in xelp_irq_handler() 431 struct xe_device *xe = arg; in dg1_irq_handler() 675 struct xe_device *xe = arg; in vf_mem_irq_handler() 732 struct xe_device *xe = arg; in irq_uninstall() 745 int xe_irq_init(struct xe_device *xe) in xe_irq_init() 848 struct xe_device *xe = arg; in guc2host_irq_handler() [all …]
|
| A D | xe_irq.h | 13 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);
|
| A D | xe_sriov.h | 18 void xe_sriov_probe_early(struct xe_device *xe); 19 void xe_sriov_print_info(struct xe_device *xe, struct drm_printer *p); 20 int xe_sriov_init(struct xe_device *xe); 22 static inline enum xe_sriov_mode xe_device_sriov_mode(const struct xe_device *xe) in xe_device_sriov_mode() 28 static inline bool xe_device_is_sriov_pf(const struct xe_device *xe) in xe_device_is_sriov_pf() 33 static inline bool xe_device_is_sriov_vf(const struct xe_device *xe) in xe_device_is_sriov_vf() 41 #define IS_SRIOV_PF(xe) (typecheck(struct xe_device *, (xe)) && false)
|
| A D | xe_sriov_pf.c | 20 static unsigned int wanted_max_vfs(struct xe_device *xe) in wanted_max_vfs() 25 static int pf_reduce_totalvfs(struct xe_device *xe, int limit) in pf_reduce_totalvfs() 38 static bool pf_continue_as_native(struct xe_device *xe, const char *why) in pf_continue_as_native() 54 bool xe_sriov_pf_readiness(struct xe_device *xe) in xe_sriov_pf_readiness() 86 int xe_sriov_pf_init_early(struct xe_device *xe) in xe_sriov_pf_init_early() 114 int xe_sriov_pf_wait_ready(struct xe_device *xe) in xe_sriov_pf_wait_ready() 139 void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p) in xe_sriov_pf_print_vfs_summary() 155 struct xe_device *xe = parent->d_inode->i_private; in simple_show() 156 void (*print)(struct xe_device *, struct drm_printer *) = node->info_ent->data; in simple_show() 174 void xe_sriov_pf_debugfs_register(struct xe_device *xe, struct dentry *root) in xe_sriov_pf_debugfs_register()
|
| A D | xe_device.c | 76 struct xe_device *xe = to_xe_device(dev); in xe_file_open() 157 struct xe_device *xe = to_xe_device(dev); in xe_file_close() 310 struct xe_device *xe = to_xe_device(dev); in xe_pci_barrier_mmap() 395 struct xe_device *xe = to_xe_device(dev); in xe_device_destroy() 417 struct xe_device *xe; in xe_device_create() 586 struct xe_device *xe = arg; in xe_driver_flr_fini() 594 struct xe_device *xe = arg; in xe_device_sanitize() 770 int xe_device_probe(struct xe_device *xe) in xe_device_probe() 932 void xe_device_remove(struct xe_device *xe) in xe_device_remove() 974 void xe_device_wmb(struct xe_device *xe) in xe_device_wmb() [all …]
|
| A D | xe_sriov_pf_service.h | 12 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);
|
| A D | xe_map.h | 23 static inline void xe_map_memcpy_to(struct xe_device *xe, struct iosys_map *dst, in xe_map_memcpy_to() 31 static inline void xe_map_memcpy_from(struct xe_device *xe, void *dst, in xe_map_memcpy_from() 39 static inline void xe_map_memset(struct xe_device *xe, in xe_map_memset() 48 static inline u32 xe_map_read32(struct xe_device *xe, struct iosys_map *map) in xe_map_read32() 58 static inline void xe_map_write32(struct xe_device *xe, struct iosys_map *map, in xe_map_write32() 70 struct xe_device *__xe = xe__; \ 76 struct xe_device *__xe = xe__; \ 100 struct xe_device *__xe = xe__; \ 106 struct xe_device *__xe = xe__; \
|
| A D | xe_sriov_vf.c | 127 static bool vf_migration_supported(struct xe_device *xe) in vf_migration_supported() 142 void xe_sriov_vf_init_early(struct xe_device *xe) in xe_sriov_vf_init_early() 160 static int vf_post_migration_notify_resfix_done(struct xe_device *xe, unsigned long gt_flags) in vf_post_migration_notify_resfix_done() 183 static int vf_get_next_migrated_gt_id(struct xe_device *xe) in vf_get_next_migrated_gt_id() 226 static void vf_post_migration_recovery(struct xe_device *xe) in vf_post_migration_recovery() 265 struct xe_device *xe = container_of(w, struct xe_device, in migration_worker_func() 278 static bool vf_ready_to_recovery_on_any_gts(struct xe_device *xe) in vf_ready_to_recovery_on_any_gts() 296 void xe_sriov_vf_start_migration_recovery(struct xe_device *xe) in xe_sriov_vf_start_migration_recovery()
|
| A D | xe_bo_evict.c | 15 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() 87 void xe_bo_notifier_unprepare_all_pinned(struct xe_device *xe) in xe_bo_notifier_unprepare_all_pinned() 106 int xe_bo_evict_all_user(struct xe_device *xe) in xe_bo_evict_all_user() 151 int xe_bo_evict_all(struct xe_device *xe) in xe_bo_evict_all() 185 struct xe_device *xe = xe_bo_device(bo); in xe_bo_restore_and_map_ggtt() 225 int xe_bo_restore_early(struct xe_device *xe) in xe_bo_restore_early() 242 int xe_bo_restore_late(struct xe_device *xe) in xe_bo_restore_late() 297 void xe_bo_pci_dev_remove_all(struct xe_device *xe) in xe_bo_pci_dev_remove_all() 321 struct xe_device *xe = arg; in xe_bo_pinned_fini() [all …]
|
| A D | xe_pci_sriov.c | 34 static int pf_provision_vfs(struct xe_device *xe, unsigned int num_vfs) in pf_provision_vfs() 50 static void pf_unprovision_vfs(struct xe_device *xe, unsigned int num_vfs) in pf_unprovision_vfs() 61 static void pf_reset_vfs(struct xe_device *xe, unsigned int num_vfs) in pf_reset_vfs() 72 static struct pci_dev *xe_pci_pf_get_vf_dev(struct xe_device *xe, unsigned int vf_id) in xe_pci_pf_get_vf_dev() 84 static void pf_link_vfs(struct xe_device *xe, int num_vfs) in pf_link_vfs() 121 static void pf_engine_activity_stats(struct xe_device *xe, unsigned int num_vfs, bool enable) in pf_engine_activity_stats() 135 static int resize_vf_vram_bar(struct xe_device *xe, int num_vfs) in resize_vf_vram_bar() 147 static int pf_enable_vfs(struct xe_device *xe, int num_vfs) in pf_enable_vfs() 205 static int pf_disable_vfs(struct xe_device *xe) in pf_disable_vfs() 246 struct xe_device *xe = pdev_to_xe_device(pdev); in xe_pci_sriov_configure()
|
| A D | xe_ttm_stolen_mgr.h | 13 struct xe_device; 15 int xe_ttm_stolen_mgr_init(struct xe_device *xe); 16 int xe_ttm_stolen_io_mem_reserve(struct xe_device *xe, struct ttm_resource *mem); 17 bool xe_ttm_stolen_cpu_access_needs_ggtt(struct xe_device *xe); 19 u64 xe_ttm_stolen_gpu_offset(struct xe_device *xe);
|
| A D | xe_debugfs.c | 35 static struct xe_device *node_to_xe(struct drm_info_node *node) in node_to_xe() 42 struct xe_device *xe = node_to_xe(m->private); in info() 80 struct xe_device *xe = node_to_xe(m->private); in sriov_info() 98 struct xe_device *xe = node_to_xe(m->private); in workaround_info() 113 struct xe_device *xe = inode->i_private; in forcewake_open() 145 struct xe_device *xe = inode->i_private; in forcewake_release() 165 struct xe_device *xe = file_inode(f)->i_private; in wedged_mode_show() 177 struct xe_device *xe = file_inode(f)->i_private; in wedged_mode_set() 218 struct xe_device *xe = file_inode(f)->i_private; in atomic_svm_timeslice_ms_show() 231 struct xe_device *xe = file_inode(f)->i_private; in atomic_svm_timeslice_ms_set() [all …]
|
| A D | xe_ttm_stolen_mgr.c | 55 bool xe_ttm_stolen_cpu_access_needs_ggtt(struct xe_device *xe) in xe_ttm_stolen_cpu_access_needs_ggtt() 60 static u32 get_wopcm_size(struct xe_device *xe) in get_wopcm_size() 83 static s64 detect_bar2_dgfx(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr) in detect_bar2_dgfx() 121 static u32 detect_bar2_integrated(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr) in detect_bar2_integrated() 196 static u64 detect_stolen(struct xe_device *xe, struct xe_ttm_stolen_mgr *mgr) in detect_stolen() 210 int xe_ttm_stolen_mgr_init(struct xe_device *xe) in xe_ttm_stolen_mgr_init() 262 struct xe_device *xe = xe_bo_device(bo); in xe_ttm_stolen_io_offset() 276 static int __xe_ttm_stolen_io_mem_reserve_bar2(struct xe_device *xe, in __xe_ttm_stolen_io_mem_reserve_bar2() 300 static int __xe_ttm_stolen_io_mem_reserve_stolen(struct xe_device *xe, in __xe_ttm_stolen_io_mem_reserve_stolen() 327 int xe_ttm_stolen_io_mem_reserve(struct xe_device *xe, struct ttm_resource *mem) in xe_ttm_stolen_io_mem_reserve() [all …]
|
| A D | xe_gsc_submit.h | 12 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,
|
| A D | xe_trace.h | 29 TP_PROTO(struct xe_device *xe, struct xe_gt_tlb_invalidation_fence *fence), 49 TP_PROTO(struct xe_device *xe, struct xe_gt_tlb_invalidation_fence *fence), 55 TP_PROTO(struct xe_device *xe, struct xe_gt_tlb_invalidation_fence *fence), 379 TP_PROTO(struct xe_device *xe, void *caller), 396 TP_PROTO(struct xe_device *xe, void *caller), 401 TP_PROTO(struct xe_device *xe, void *caller), 406 TP_PROTO(struct xe_device *xe, void *caller), 411 TP_PROTO(struct xe_device *xe, void *caller), 416 TP_PROTO(struct xe_device *xe, void *caller), 421 TP_PROTO(struct xe_device *xe, void *caller), [all …]
|
| A D | xe_bo.c | 440 struct xe_device *xe = xe_bo_device(bo); in xe_ttm_tt_create() 1740 struct xe_device *xe = xe_bo_device(bo); in xe_bo_vm_access() 2281 struct xe_device *xe = xe_bo_device(bo); in xe_bo_pin_external() 2313 struct xe_device *xe = xe_bo_device(bo); in xe_bo_pin() 2370 struct xe_device *xe = xe_bo_device(bo); in xe_bo_unpin_external() 2395 struct xe_device *xe = xe_bo_device(bo); in xe_bo_unpin() 2476 struct xe_device *xe = xe_bo_device(bo); in __xe_bo_addr() 2646 struct xe_device *xe = to_xe_device(dev); in xe_gem_create_ioctl() 2775 struct xe_device *xe = to_xe_device(dev); in xe_gem_mmap_offset_ioctl() 2982 struct xe_device *xe = xe_bo_device(bo); in xe_bo_needs_ccs_pages() [all …]
|
| /drivers/gpu/drm/xe/tests/ |
| A D | xe_kunit_helpers.c | 33 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()
|