/linux-6.15/drivers/gpu/drm/xe/display/ |
D | xe_display.h | 47 static inline void xe_display_driver_remove(struct xe_device *xe) {} in xe_display_driver_remove() 49 static inline int xe_display_create(struct xe_device *xe) { return 0; } in xe_display_create() 51 static inline int xe_display_probe(struct xe_device *xe) { return 0; } in xe_display_probe() 53 static inline int xe_display_init_early(struct xe_device *xe) { return 0; } in xe_display_init_early() 54 static inline int xe_display_init(struct xe_device *xe) { return 0; } in xe_display_init() 56 static inline void xe_display_register(struct xe_device *xe) {} in xe_display_register() 57 static inline void xe_display_unregister(struct xe_device *xe) {} in xe_display_unregister() 59 static inline void xe_display_irq_handler(struct xe_device *xe, u32 master_ctl) {} in xe_display_irq_handler() 60 static inline void xe_display_irq_enable(struct xe_device *xe, u32 gu_misc_iir) {} in xe_display_irq_enable() 61 static inline void xe_display_irq_reset(struct xe_device *xe) {} in xe_display_irq_reset() [all …]
|
D | xe_display.c | 39 static bool has_display(struct xe_device *xe) in has_display() 79 static void unset_display_features(struct xe_device *xe) in unset_display_features() 86 struct xe_device *xe = to_xe_device(dev); in display_destroy() local 102 int xe_display_create(struct xe_device *xe) in xe_display_create() 113 struct xe_device *xe = arg; in xe_display_fini_early() local 125 int xe_display_init_early(struct xe_device *xe) in xe_display_init_early() 173 struct xe_device *xe = arg; in xe_display_fini() local 182 int xe_display_init(struct xe_device *xe) in xe_display_init() 197 void xe_display_register(struct xe_device *xe) in xe_display_register() 208 void xe_display_unregister(struct xe_device *xe) in xe_display_unregister() [all …]
|
/linux-6.15/drivers/gpu/drm/xe/ |
D | xe_pm.c | 92 bool xe_rpm_reclaim_safe(const struct xe_device *xe) in xe_rpm_reclaim_safe() 97 static void xe_rpm_lockmap_acquire(const struct xe_device *xe) in xe_rpm_lockmap_acquire() 104 static void xe_rpm_lockmap_release(const struct xe_device *xe) in xe_rpm_lockmap_release() 117 int xe_pm_suspend(struct xe_device *xe) in xe_pm_suspend() 168 int xe_pm_resume(struct xe_device *xe) in xe_pm_resume() 215 static bool xe_pm_pci_d3cold_capable(struct xe_device *xe) in xe_pm_pci_d3cold_capable() 239 static void xe_pm_runtime_init(struct xe_device *xe) in xe_pm_runtime_init() 262 int xe_pm_init_early(struct xe_device *xe) in xe_pm_init_early() 280 static u32 vram_threshold_value(struct xe_device *xe) in vram_threshold_value() 297 int xe_pm_init(struct xe_device *xe) in xe_pm_init() [all …]
|
D | xe_device.c | 71 struct xe_device *xe = to_xe_device(dev); in xe_file_open() local 152 struct xe_device *xe = to_xe_device(dev); in xe_file_close() local 203 struct xe_device *xe = to_xe_device(file_priv->minor->dev); in xe_drm_ioctl() local 221 struct xe_device *xe = to_xe_device(file_priv->minor->dev); in xe_drm_compat_ioctl() local 305 struct xe_device *xe = to_xe_device(dev); in xe_pci_barrier_mmap() local 390 struct xe_device *xe = to_xe_device(dev); in xe_device_destroy() local 415 struct xe_device *xe; in xe_device_create() local 506 static bool xe_driver_flr_disabled(struct xe_device *xe) in xe_driver_flr_disabled() 524 static void __xe_driver_flr(struct xe_device *xe) in __xe_driver_flr() 570 static void xe_driver_flr(struct xe_device *xe) in xe_driver_flr() [all …]
|
D | xe_irq.c | 94 static u32 xelp_intr_disable(struct xe_device *xe) in xelp_intr_disable() 110 gu_misc_irq_ack(struct xe_device *xe, const u32 master_ctl) in gu_misc_irq_ack() 125 static inline void xelp_intr_enable(struct xe_device *xe, bool stall) in xelp_intr_enable() 137 struct xe_device *xe = gt_to_xe(gt); in xe_irq_enable_hwe() local 225 gt_engine_identity(struct xe_device *xe, in gt_engine_identity() 281 struct xe_device *xe = tile_to_xe(tile); in pick_engine_gt() local 309 struct xe_device *xe = tile_to_xe(tile); in gt_irq_handler() local 367 struct xe_device *xe = arg; in xelp_irq_handler() local 395 static u32 dg1_intr_disable(struct xe_device *xe) in dg1_intr_disable() 413 static void dg1_intr_enable(struct xe_device *xe, bool stall) in dg1_intr_enable() [all …]
|
D | xe_sriov_printk.h | 14 #define xe_sriov_printk_prefix(xe) \ argument 18 #define xe_sriov_printk(xe, _level, fmt, ...) \ argument 21 #define xe_sriov_err(xe, fmt, ...) \ argument 24 #define xe_sriov_err_ratelimited(xe, fmt, ...) \ argument 27 #define xe_sriov_warn(xe, fmt, ...) \ argument 30 #define xe_sriov_notice(xe, fmt, ...) \ argument 33 #define xe_sriov_info(xe, fmt, ...) \ argument 36 #define xe_sriov_dbg(xe, fmt, ...) \ argument 41 #define xe_sriov_dbg_verbose(xe, fmt, ...) xe_sriov_dbg(xe, fmt, ##__VA_ARGS__) argument 43 #define xe_sriov_dbg_verbose(xe, fmt, ...) typecheck(struct xe_device *, (xe)) argument
|
D | xe_device.h | 34 static inline struct xe_device *xe_device_const_cast(const struct xe_device *xe) in xe_device_const_cast() 58 static inline struct xe_tile *xe_device_get_root_tile(struct xe_device *xe) in xe_device_get_root_tile() 73 static inline struct xe_gt *xe_device_get_gt(struct xe_device *xe, u8 gt_id) in xe_device_get_gt() 115 static inline struct xe_gt *xe_root_mmio_gt(struct xe_device *xe) in xe_root_mmio_gt() 120 static inline bool xe_device_uc_enabled(struct xe_device *xe) in xe_device_uc_enabled() 148 static inline bool xe_device_has_flat_ccs(struct xe_device *xe) in xe_device_has_flat_ccs() 153 static inline bool xe_device_has_sriov(struct xe_device *xe) in xe_device_has_sriov() 158 static inline bool xe_device_has_msix(struct xe_device *xe) in xe_device_has_msix() 163 static inline bool xe_device_has_memirq(struct xe_device *xe) in xe_device_has_memirq() 168 static inline bool xe_device_uses_memirq(struct xe_device *xe) in xe_device_uses_memirq() [all …]
|
D | xe_sriov.h | 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() 39 #define IS_SRIOV_PF(xe) xe_device_is_sriov_pf(xe) argument 41 #define IS_SRIOV_PF(xe) (typecheck(struct xe_device *, (xe)) && false) argument 43 #define IS_SRIOV_VF(xe) xe_device_is_sriov_vf(xe) argument 45 #define IS_SRIOV(xe) (IS_SRIOV_PF(xe) || IS_SRIOV_VF(xe)) argument
|
D | xe_sriov_vf.c | 130 void xe_sriov_vf_init_early(struct xe_device *xe) in xe_sriov_vf_init_early() 146 static int vf_post_migration_requery_guc(struct xe_device *xe) in vf_post_migration_requery_guc() 167 static bool vf_post_migration_imminent(struct xe_device *xe) in vf_post_migration_imminent() 176 static void vf_post_migration_notify_resfix_done(struct xe_device *xe) in vf_post_migration_notify_resfix_done() 192 static void vf_post_migration_recovery(struct xe_device *xe) in vf_post_migration_recovery() 221 struct xe_device *xe = container_of(w, struct xe_device, in migration_worker_func() local 227 static bool vf_ready_to_recovery_on_all_gts(struct xe_device *xe) in vf_ready_to_recovery_on_all_gts() 247 void xe_sriov_vf_start_migration_recovery(struct xe_device *xe) in xe_sriov_vf_start_migration_recovery()
|
D | xe_bo.c | 83 static bool resource_is_stolen_vram(struct xe_device *xe, struct ttm_resource *res) in resource_is_stolen_vram() 155 mem_type_to_migrate(struct xe_device *xe, u32 mem_type) in mem_type_to_migrate() 166 struct xe_device *xe = ttm_to_xe_device(res->bo->bdev); in res_to_mem_region() local 177 static void try_add_system(struct xe_device *xe, struct xe_bo *bo, in try_add_system() 199 static void add_vram(struct xe_device *xe, struct xe_bo *bo, in add_vram() 230 static void try_add_vram(struct xe_device *xe, struct xe_bo *bo, in try_add_vram() 239 static void try_add_stolen(struct xe_device *xe, struct xe_bo *bo, in try_add_stolen() 254 static int __xe_bo_placement_for_flags(struct xe_device *xe, struct xe_bo *bo, in __xe_bo_placement_for_flags() 274 int xe_bo_placement_for_flags(struct xe_device *xe, struct xe_bo *bo, in xe_bo_placement_for_flags() 324 struct xe_device *xe; member [all …]
|
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() local 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 …]
|
D | xe_query.c | 48 static size_t calc_hw_engine_info_size(struct xe_device *xe) in calc_hw_engine_info_size() 113 query_engine_cycles(struct xe_device *xe, in query_engine_cycles() 185 static int query_engines(struct xe_device *xe, in query_engines() 234 static size_t calc_mem_regions_size(struct xe_device *xe) in calc_mem_regions_size() 246 static int query_mem_regions(struct xe_device *xe, in query_mem_regions() 317 static int query_config(struct xe_device *xe, struct drm_xe_device_query *query) in query_config() 363 static int query_gt_list(struct xe_device *xe, struct drm_xe_device_query *query) in query_gt_list() 433 static int query_hwconfig(struct xe_device *xe, in query_hwconfig() 463 static size_t calc_topo_query_size(struct xe_device *xe) in calc_topo_query_size() 501 static int query_gt_topology(struct xe_device *xe, in query_gt_topology() [all …]
|
D | xe_sriov_pf.c | 15 static unsigned int wanted_max_vfs(struct xe_device *xe) in wanted_max_vfs() 20 static int pf_reduce_totalvfs(struct xe_device *xe, int limit) in pf_reduce_totalvfs() 33 static bool pf_continue_as_native(struct xe_device *xe, const char *why) in pf_continue_as_native() 49 bool xe_sriov_pf_readiness(struct xe_device *xe) in xe_sriov_pf_readiness() 81 int xe_sriov_pf_init_early(struct xe_device *xe) in xe_sriov_pf_init_early() 95 void xe_sriov_pf_print_vfs_summary(struct xe_device *xe, struct drm_printer *p) in xe_sriov_pf_print_vfs_summary()
|
D | xe_pci_sriov.c | 27 static int pf_provision_vfs(struct xe_device *xe, unsigned int num_vfs) in pf_provision_vfs() 43 static void pf_unprovision_vfs(struct xe_device *xe, unsigned int num_vfs) in pf_unprovision_vfs() 54 static void pf_reset_vfs(struct xe_device *xe, unsigned int num_vfs) in pf_reset_vfs() 65 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() 77 static void pf_link_vfs(struct xe_device *xe, int num_vfs) in pf_link_vfs() 114 static int pf_enable_vfs(struct xe_device *xe, int num_vfs) in pf_enable_vfs() 159 static int pf_disable_vfs(struct xe_device *xe) in pf_disable_vfs() 198 struct xe_device *xe = pdev_to_xe_device(pdev); in xe_pci_sriov_configure() local
|
D | xe_survivability_mode.c | 60 static void populate_survivability_info(struct xe_device *xe) in populate_survivability_info() 96 struct xe_device *xe = pdev_to_xe_device(pdev); in log_survivability_info() local 114 struct xe_device *xe = pdev_to_xe_device(pdev); in survivability_mode_show() local 132 struct xe_device *xe = arg; in xe_survivability_mode_fini() local 142 struct xe_device *xe = pdev_to_xe_device(pdev); in enable_survivability_mode() local 184 bool xe_survivability_mode_is_enabled(struct xe_device *xe) in xe_survivability_mode_is_enabled() 198 static bool survivability_mode_requested(struct xe_device *xe) in survivability_mode_requested() 223 int xe_survivability_mode_enable(struct xe_device *xe) in xe_survivability_mode_enable()
|
D | xe_pmu.c | 82 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_to_gt() local 90 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_to_hwe() local 116 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_gt_forcewake() local 153 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_param_valid() local 182 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_destroy() local 200 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_init() local 289 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_read() local 312 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_start() local 324 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_stop() local 336 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_add() local [all …]
|
D | xe_pxp_submit.c | 37 struct xe_device *xe = pxp->xe; in allocate_vcs_execution_resources() local 89 struct xe_device *xe = tile_to_xe(tile); in allocate_gsc_client_resources() local 219 static u32 pxp_emit_wait(struct xe_device *xe, struct iosys_map *batch, u32 offset) in pxp_emit_wait() 228 static u32 pxp_emit_session_selection(struct xe_device *xe, struct iosys_map *batch, in pxp_emit_session_selection() 260 static u32 pxp_emit_inline_termination(struct xe_device *xe, in pxp_emit_inline_termination() 270 static u32 pxp_emit_session_termination(struct xe_device *xe, struct iosys_map *batch, in pxp_emit_session_termination() 356 struct xe_device *xe = gt_to_xe(gt); in pxp_pkt_submit() local 381 static void emit_pxp_heci_cmd(struct xe_device *xe, struct iosys_map *batch, in emit_pxp_heci_cmd() 403 struct xe_device *xe = gsc_res->vm->xe; in gsccs_send_message() local 505 struct xe_device *xe = gsc_res->vm->xe; in xe_pxp_submit_session_init() local [all …]
|
D | xe_debugfs.c | 40 struct xe_device *xe = node_to_xe(m->private); in info() local 78 struct xe_device *xe = node_to_xe(m->private); in sriov_info() local 92 struct xe_device *xe = inode->i_private; in forcewake_open() local 124 struct xe_device *xe = inode->i_private; in forcewake_release() local 144 struct xe_device *xe = file_inode(f)->i_private; in wedged_mode_show() local 156 struct xe_device *xe = file_inode(f)->i_private; in wedged_mode_set() local 194 void xe_debugfs_register(struct xe_device *xe) in xe_debugfs_register()
|
D | xe_sriov.c | 39 static bool test_is_vf(struct xe_device *xe) in test_is_vf() 57 void xe_sriov_probe_early(struct xe_device *xe) in xe_sriov_probe_early() 91 struct xe_device *xe = arg; in fini_sriov() local 106 int xe_sriov_init(struct xe_device *xe) in xe_sriov_init() 137 void xe_sriov_print_info(struct xe_device *xe, struct drm_printer *p) in xe_sriov_print_info()
|
D | xe_exec_queue.c | 53 static struct xe_exec_queue *__xe_exec_queue_alloc(struct xe_device *xe, in __xe_exec_queue_alloc() 167 struct xe_exec_queue *xe_exec_queue_create(struct xe_device *xe, struct xe_vm *vm, in xe_exec_queue_create() 208 struct xe_exec_queue *xe_exec_queue_create_class(struct xe_device *xe, struct xe_gt *gt, in xe_exec_queue_create_class() 250 struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe, in xe_exec_queue_create_bind() 360 xe_exec_queue_device_get_max_priority(struct xe_device *xe) in xe_exec_queue_device_get_max_priority() 366 static int exec_queue_set_priority(struct xe_device *xe, struct xe_exec_queue *q, in exec_queue_set_priority() 431 static int exec_queue_set_timeslice(struct xe_device *xe, struct xe_exec_queue *q, in exec_queue_set_timeslice() 448 exec_queue_set_pxp_type(struct xe_device *xe, struct xe_exec_queue *q, u64 value) in exec_queue_set_pxp_type() 473 static int exec_queue_user_ext_set_property(struct xe_device *xe, in exec_queue_user_ext_set_property() 510 static int exec_queue_user_extensions(struct xe_device *xe, struct xe_exec_queue *q, in exec_queue_user_extensions() [all …]
|
D | xe_vram.c | 27 _resize_bar(struct xe_device *xe, int resno, resource_size_t size) in _resize_bar() 50 static void resize_vram_bar(struct xe_device *xe) in resize_vram_bar() 136 static int determine_lmem_bar_size(struct xe_device *xe) in determine_lmem_bar_size() 163 struct xe_device *xe = gt_to_xe(gt); in get_flat_ccs_offset() local 221 struct xe_device *xe = tile_to_xe(tile); in tile_vram_size() local 274 struct xe_device *xe = arg; in vram_fini() local 295 int xe_vram_probe(struct xe_device *xe) in xe_vram_probe()
|
/linux-6.15/drivers/gpu/drm/xe/compat-i915-headers/ |
D | i915_drv.h | 25 #define IS_PLATFORM(xe, x) ((xe)->info.platform == x) argument 76 #define IS_MOBILE(xe) (xe && 0) argument 78 #define IS_TIGERLAKE_UY(xe) (xe && 0) argument 79 #define IS_COMETLAKE_ULX(xe) (xe && 0) argument 80 #define IS_COFFEELAKE_ULX(xe) (xe && 0) argument 81 #define IS_KABYLAKE_ULX(xe) (xe && 0) argument 82 #define IS_SKYLAKE_ULX(xe) (xe && 0) argument 83 #define IS_HASWELL_ULX(xe) (xe && 0) argument 84 #define IS_COMETLAKE_ULT(xe) (xe && 0) argument 85 #define IS_COFFEELAKE_ULT(xe) (xe && 0) argument [all …]
|
D | intel_runtime_pm.h | 26 struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm); in intel_runtime_pm_suspended() local 33 struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm); in intel_runtime_pm_get() local 40 struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm); in intel_runtime_pm_get_if_in_use() local 47 struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm); in intel_runtime_pm_get_noresume() local 56 struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm); in intel_runtime_pm_put_unchecked() local
|
/linux-6.15/drivers/gpu/drm/xe/compat-i915-headers/gem/ |
D | i915_gem_stolen.h | 18 static inline int i915_gem_stolen_insert_node_in_range(struct xe_device *xe, in i915_gem_stolen_insert_node_in_range() 56 static inline int i915_gem_stolen_insert_node(struct xe_device *xe, in i915_gem_stolen_insert_node() 65 static inline void i915_gem_stolen_remove_node(struct xe_device *xe, in i915_gem_stolen_remove_node() 72 #define i915_gem_stolen_initialized(xe) (!!ttm_manager_type(&(xe)->ttm, XE_PL_STOLEN)) argument 84 #define i915_gem_stolen_area_address(xe) (!WARN_ON(1)) argument 86 #define i915_gem_stolen_area_size(xe) (!WARN_ON(1)) argument 88 #define i915_gem_stolen_node_address(xe, fb) (xe_ttm_stolen_gpu_offset(xe) + \ argument
|
/linux-6.15/drivers/gpu/drm/xe/tests/ |
D | xe_migrate.c | 15 static bool sanity_fence_failed(struct xe_device *xe, struct dma_fence *fence, in sanity_fence_failed() 37 static int run_sanity_job(struct xe_migrate *m, struct xe_device *xe, in run_sanity_job() 75 struct xe_device *xe = tile_to_xe(m->tile); in test_copy() local 187 struct xe_device *xe = tile_to_xe(tile); in xe_migrate_sanity_test() local 339 static int migrate_test_run_device(struct xe_device *xe) in migrate_test_run_device() 363 struct xe_device *xe = test->priv; in xe_migrate_sanity_kunit() local 374 struct xe_device *xe = gt_to_xe(gt); in blt_copy() local 494 static void test_migrate(struct xe_device *xe, struct xe_tile *tile, in test_migrate() 582 static void test_clear(struct xe_device *xe, struct xe_tile *tile, in test_clear() 637 static void validate_ccs_test_run_tile(struct xe_device *xe, struct xe_tile *tile, in validate_ccs_test_run_tile() [all …]
|