| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_pm.h | 14 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 D | xe_sriov_pf_migration.h | 12 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 D | xe_pm.c | 132 int xe_pm_block_on_suspend(struct xe_device *xe) in xe_pm_block_on_suspend() 146 bool xe_rpm_reclaim_safe(const struct xe_device *xe) in xe_rpm_reclaim_safe() 151 static void xe_rpm_lockmap_acquire(const struct xe_device *xe) in xe_rpm_lockmap_acquire() 158 static void xe_rpm_lockmap_release(const struct xe_device *xe) in xe_rpm_lockmap_release() 171 int xe_pm_suspend(struct xe_device *xe) in xe_pm_suspend() 229 int xe_pm_resume(struct xe_device *xe) in xe_pm_resume() 298 static bool xe_pm_pci_d3cold_capable(struct xe_device *xe) in xe_pm_pci_d3cold_capable() 322 static void xe_pm_runtime_init(struct xe_device *xe) in xe_pm_runtime_init() 349 int xe_pm_init_early(struct xe_device *xe) in xe_pm_init_early() 368 static u32 vram_threshold_value(struct xe_device *xe) in vram_threshold_value() [all …]
|
| H 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);
|
| H A D | xe_sriov_pf_sysfs.c | 70 struct xe_device *xe; 77 ssize_t (*show)(struct xe_device *xe, char *buf); 78 ssize_t (*store)(struct xe_device *xe, const char *buf, size_t count); 96 ssize_t (*show)(struct xe_device *xe, unsigned int vfid, char *buf); 97 ssize_t (*store)(struct xe_device *xe, unsigned int vfid, const char *buf, size_t count); 117 static ssize_t xe_sriov_dev_attr_##NAME##_store(struct xe_device *xe, \ 154 static bool sched_priority_bulk_high_allowed(struct xe_device *xe) in sched_priority_bulk_high_allowed() 160 static ssize_t xe_sriov_dev_attr_sched_priority_store(struct xe_device *xe, in xe_sriov_dev_attr_sched_priority_store() 200 static ssize_t xe_sriov_vf_attr_##NAME##_show(struct xe_device *xe, unsigned int vfid, \ 213 static ssize_t xe_sriov_vf_attr_##NAME##_store(struct xe_device *xe, unsigned int vfid, \ [all …]
|
| H A D | xe_sriov_pf_migration.c | 19 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 D | xe_debugfs.c | 42 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() 105 struct xe_device *xe = node_to_xe(m->private); in sriov_info() 112 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() 159 struct xe_device *xe; in dgfx_pcie_link_residencies_show() 196 struct xe_device *xe = inode->i_private; in forcewake_open() 228 struct xe_device *xe = inode->i_private; in forcewake_release() [all …]
|
| H 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);
|
| H A D | xe_device.c | 83 struct xe_device *xe = to_xe_device(dev); in xe_file_open() 164 struct xe_device *xe = to_xe_device(dev); in xe_file_close() 218 struct xe_device *xe = to_xe_device(file_priv->minor->dev); in xe_drm_ioctl() 236 struct xe_device *xe = to_xe_device(file_priv->minor->dev); in xe_drm_compat_ioctl() 320 struct xe_device *xe = to_xe_device(dev); in xe_pci_barrier_mmap() 419 struct xe_device *xe = to_xe_device(dev); in xe_device_destroy() 438 struct xe_device *xe_device_create(struct pci_dev *pdev, in xe_device_create() 441 struct xe_device *xe; in xe_device_create() 450 xe = devm_drm_dev_alloc(&pdev->dev, &driver, struct xe_device, drm); in xe_device_create() 535 static bool xe_driver_flr_disabled(struct xe_device *xe) in xe_driver_flr_disabled() [all …]
|
| H 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() 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 D | xe_late_bind_fw.c | 42 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 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,
|
| H A D | xe_sriov_vf_ccs.c | 121 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() 208 void xe_sriov_vf_ccs_rebase(struct xe_device *xe) in xe_sriov_vf_ccs_rebase() 251 int xe_sriov_vf_ccs_register_context(struct xe_device *xe) in xe_sriov_vf_ccs_register_context() 277 static bool vf_migration_ccs_bb_needed(struct xe_device *xe) in vf_migration_ccs_bb_needed() 292 static bool vf_migration_ccs_bb_support_check(struct xe_device *xe) in vf_migration_ccs_bb_support_check() 330 int xe_sriov_vf_ccs_init(struct xe_device *xe) in xe_sriov_vf_ccs_init() 393 struct xe_device *xe = gt_to_xe(ctx->mig_q->gt); in xe_sriov_vf_ccs_rw_update_bb_addr() 412 struct xe_device *xe = xe_bo_device(bo); in xe_sriov_vf_ccs_attach_bo() 446 struct xe_device *xe = xe_bo_device(bo); in xe_sriov_vf_ccs_detach_bo() [all …]
|
| H A D | xe_sriov_packet.c | 15 static struct mutex *pf_migration_mutex(struct xe_device *xe, unsigned int vfid) in pf_migration_mutex() 23 static struct xe_sriov_packet **pf_pick_pending(struct xe_device *xe, unsigned int vfid) in pf_pick_pending() 33 pf_pick_descriptor(struct xe_device *xe, unsigned int vfid) in pf_pick_descriptor() 42 static struct xe_sriov_packet **pf_pick_trailer(struct xe_device *xe, unsigned int vfid) in pf_pick_trailer() 51 static struct xe_sriov_packet **pf_pick_read_packet(struct xe_device *xe, in pf_pick_read_packet() 88 struct xe_sriov_packet *xe_sriov_packet_alloc(struct xe_device *xe) in xe_sriov_packet_alloc() 262 ssize_t xe_sriov_packet_read_single(struct xe_device *xe, unsigned int vfid, in xe_sriov_packet_read_single() 322 ssize_t xe_sriov_packet_write_single(struct xe_device *xe, unsigned int vfid, in xe_sriov_packet_write_single() 360 static int pf_descriptor_init(struct xe_device *xe, unsigned int vfid) in pf_descriptor_init() 405 int xe_sriov_packet_process_descriptor(struct xe_device *xe, unsigned int vfid, in xe_sriov_packet_process_descriptor() [all …]
|
| H A D | xe_sriov_pf_service.c | 24 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 D | xe_bo.c | 95 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 D | xe_sriov_vfio.c | 15 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 D | xe_pmu.c | 93 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_to_gt() 101 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_to_hwe() 135 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_gt_forcewake() 163 struct xe_device *xe = container_of(pmu, typeof(*xe), pmu); in event_supported() 175 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_param_valid() 216 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_destroy() 234 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_init() 338 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_read() 361 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_start() 373 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_stop() [all …]
|
| H A D | xe_exec_queue.c | 110 static int exec_queue_user_extensions(struct xe_device *xe, struct xe_exec_queue *q, 165 static int alloc_dep_schedulers(struct xe_device *xe, struct xe_exec_queue *q) in alloc_dep_schedulers() 198 static struct xe_exec_queue *__xe_exec_queue_alloc(struct xe_device *xe, in __xe_exec_queue_alloc() 337 struct xe_exec_queue *xe_exec_queue_create(struct xe_device *xe, struct xe_vm *vm, in xe_exec_queue_create() 380 struct xe_exec_queue *xe_exec_queue_create_class(struct xe_device *xe, struct xe_gt *gt, in xe_exec_queue_create_class() 423 struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe, in xe_exec_queue_create_bind() 557 xe_exec_queue_device_get_max_priority(struct xe_device *xe) in xe_exec_queue_device_get_max_priority() 563 static int exec_queue_set_priority(struct xe_device *xe, struct xe_exec_queue *q, in exec_queue_set_priority() 628 static int exec_queue_set_timeslice(struct xe_device *xe, struct xe_exec_queue *q, in exec_queue_set_timeslice() 645 exec_queue_set_pxp_type(struct xe_device *xe, struct xe_exec_queue *q, u64 value) in exec_queue_set_pxp_type() [all …]
|
| H A D | xe_debugfs.h | 9 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()
|
| /linux/include/drm/intel/ |
| H A D | xe_sriov_vfio.h | 12 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 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()
|
| H A D | xe_sriov_pf_service_kunit.c | 19 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 …]
|
| /linux/drivers/gpu/drm/xe/display/ |
| H A D | xe_stolen.c | 12 struct xe_device *xe; 19 struct xe_device *xe = node->xe; in xe_stolen_insert_node_in_range() 54 struct xe_device *xe = to_xe_device(drm); in xe_stolen_initialized() 74 struct xe_device *xe = node->xe; in xe_stolen_node_address() 86 struct xe_device *xe = to_xe_device(drm); in xe_stolen_node_alloc()
|
| H A D | xe_hdcp_gsc.c | 27 struct xe_device *xe; 37 struct xe_device *xe = to_xe_device(drm); in intel_hdcp_gsc_check_status() 60 static int intel_hdcp_gsc_initialize_message(struct xe_device *xe, in intel_hdcp_gsc_initialize_message() 94 struct xe_device *xe = to_xe_device(drm); in intel_hdcp_gsc_context_alloc() 125 static int xe_gsc_send_sync(struct xe_device *xe, in xe_gsc_send_sync() 155 struct xe_device *xe = gsc_context->xe; in intel_hdcp_gsc_msg_send()
|