/linux-6.14.4/drivers/gpu/drm/xe/display/ |
D | xe_display.h | 51 static inline void xe_display_driver_remove(struct xe_device *xe) {} in xe_display_driver_remove() 53 static inline int xe_display_create(struct xe_device *xe) { return 0; } in xe_display_create() 55 static inline int xe_display_probe(struct xe_device *xe) { return 0; } in xe_display_probe() 57 static inline int xe_display_init_nommio(struct xe_device *xe) { return 0; } in xe_display_init_nommio() 58 static inline int xe_display_init_noirq(struct xe_device *xe) { return 0; } in xe_display_init_noirq() 59 static inline int xe_display_init_noaccel(struct xe_device *xe) { return 0; } in xe_display_init_noaccel() 60 static inline int xe_display_init(struct xe_device *xe) { return 0; } in xe_display_init() 61 static inline void xe_display_fini(struct xe_device *xe) {} in xe_display_fini() 63 static inline void xe_display_register(struct xe_device *xe) {} in xe_display_register() 64 static inline void xe_display_unregister(struct xe_device *xe) {} in xe_display_unregister() [all …]
|
D | xe_display.c | 36 static bool has_display(struct xe_device *xe) in has_display() 72 static void unset_display_features(struct xe_device *xe) in unset_display_features() 79 struct xe_device *xe = to_xe_device(dev); in display_destroy() local 95 int xe_display_create(struct xe_device *xe) in xe_display_create() 106 struct xe_device *xe = to_xe_device(dev); in xe_display_fini_nommio() local 115 int xe_display_init_nommio(struct xe_device *xe) in xe_display_init_nommio() 131 struct xe_device *xe = arg; in xe_display_fini_noirq() local 141 int xe_display_init_noirq(struct xe_device *xe) in xe_display_init_noirq() 175 struct xe_device *xe = arg; in xe_display_fini_noaccel() local 184 int xe_display_init_noaccel(struct xe_device *xe) in xe_display_init_noaccel() [all …]
|
/linux-6.14.4/drivers/gpu/drm/xe/ |
D | xe_pm.c | 91 bool xe_rpm_reclaim_safe(const struct xe_device *xe) in xe_rpm_reclaim_safe() 96 static void xe_rpm_lockmap_acquire(const struct xe_device *xe) in xe_rpm_lockmap_acquire() 103 static void xe_rpm_lockmap_release(const struct xe_device *xe) in xe_rpm_lockmap_release() 116 int xe_pm_suspend(struct xe_device *xe) in xe_pm_suspend() 160 int xe_pm_resume(struct xe_device *xe) in xe_pm_resume() 205 static bool xe_pm_pci_d3cold_capable(struct xe_device *xe) in xe_pm_pci_d3cold_capable() 229 static void xe_pm_runtime_init(struct xe_device *xe) in xe_pm_runtime_init() 252 int xe_pm_init_early(struct xe_device *xe) in xe_pm_init_early() 270 static u32 vram_threshold_value(struct xe_device *xe) in vram_threshold_value() 287 int xe_pm_init(struct xe_device *xe) in xe_pm_init() [all …]
|
D | xe_device.c | 67 struct xe_device *xe = to_xe_device(dev); in xe_file_open() local 148 struct xe_device *xe = to_xe_device(dev); in xe_file_close() local 199 struct xe_device *xe = to_xe_device(file_priv->minor->dev); in xe_drm_ioctl() local 217 struct xe_device *xe = to_xe_device(file_priv->minor->dev); in xe_drm_compat_ioctl() local 281 struct xe_device *xe = to_xe_device(dev); in xe_device_destroy() local 301 struct xe_device *xe; in xe_device_create() local 387 static bool xe_driver_flr_disabled(struct xe_device *xe) in xe_driver_flr_disabled() 405 static void __xe_driver_flr(struct xe_device *xe) in __xe_driver_flr() 451 static void xe_driver_flr(struct xe_device *xe) in xe_driver_flr() 463 struct xe_device *xe = arg; in xe_driver_flr_fini() local [all …]
|
D | xe_irq.c | 93 static u32 xelp_intr_disable(struct xe_device *xe) in xelp_intr_disable() 109 gu_misc_irq_ack(struct xe_device *xe, const u32 master_ctl) in gu_misc_irq_ack() 124 static inline void xelp_intr_enable(struct xe_device *xe, bool stall) in xelp_intr_enable() 136 struct xe_device *xe = gt_to_xe(gt); in xe_irq_enable_hwe() local 215 gt_engine_identity(struct xe_device *xe, in gt_engine_identity() 271 struct xe_device *xe = tile_to_xe(tile); in pick_engine_gt() local 299 struct xe_device *xe = tile_to_xe(tile); in gt_irq_handler() local 351 struct xe_device *xe = arg; in xelp_irq_handler() local 379 static u32 dg1_intr_disable(struct xe_device *xe) in dg1_intr_disable() 397 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_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_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_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 void xe_ttm_stolen_mgr_init(struct xe_device *xe) in xe_ttm_stolen_mgr_init() 261 struct xe_device *xe = xe_bo_device(bo); in xe_ttm_stolen_io_offset() local 275 static int __xe_ttm_stolen_io_mem_reserve_bar2(struct xe_device *xe, in __xe_ttm_stolen_io_mem_reserve_bar2() 299 static int __xe_ttm_stolen_io_mem_reserve_stolen(struct xe_device *xe, in __xe_ttm_stolen_io_mem_reserve_stolen() 326 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_bo.c | 77 static bool resource_is_stolen_vram(struct xe_device *xe, struct ttm_resource *res) in resource_is_stolen_vram() 133 mem_type_to_migrate(struct xe_device *xe, u32 mem_type) in mem_type_to_migrate() 144 struct xe_device *xe = ttm_to_xe_device(res->bo->bdev); in res_to_mem_region() local 152 static void try_add_system(struct xe_device *xe, struct xe_bo *bo, in try_add_system() 174 static void add_vram(struct xe_device *xe, struct xe_bo *bo, in add_vram() 202 static void try_add_vram(struct xe_device *xe, struct xe_bo *bo, in try_add_vram() 211 static void try_add_stolen(struct xe_device *xe, struct xe_bo *bo, in try_add_stolen() 226 static int __xe_bo_placement_for_flags(struct xe_device *xe, struct xe_bo *bo, in __xe_bo_placement_for_flags() 246 int xe_bo_placement_for_flags(struct xe_device *xe, struct xe_bo *bo, in xe_bo_placement_for_flags() 348 struct xe_device *xe = xe_bo_device(bo); in xe_ttm_tt_create() local [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_query.c | 46 static size_t calc_hw_engine_info_size(struct xe_device *xe) in calc_hw_engine_info_size() 111 query_engine_cycles(struct xe_device *xe, in query_engine_cycles() 180 static int query_engines(struct xe_device *xe, in query_engines() 229 static size_t calc_mem_regions_size(struct xe_device *xe) in calc_mem_regions_size() 241 static int query_mem_regions(struct xe_device *xe, in query_mem_regions() 312 static int query_config(struct xe_device *xe, struct drm_xe_device_query *query) in query_config() 353 static int query_gt_list(struct xe_device *xe, struct drm_xe_device_query *query) in query_gt_list() 423 static int query_hwconfig(struct xe_device *xe, in query_hwconfig() 453 static size_t calc_topo_query_size(struct xe_device *xe) in calc_topo_query_size() 491 static int query_gt_topology(struct xe_device *xe, in query_gt_topology() [all …]
|
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 int pf_enable_vfs(struct xe_device *xe, int num_vfs) in pf_enable_vfs() 108 static int pf_disable_vfs(struct xe_device *xe) in pf_disable_vfs() 147 struct xe_device *xe = pdev_to_xe_device(pdev); in xe_pci_sriov_configure() local
|
D | xe_debugfs.c | 39 struct xe_device *xe = node_to_xe(m->private); in info() local 77 struct xe_device *xe = node_to_xe(m->private); in sriov_info() local 91 struct xe_device *xe = inode->i_private; in forcewake_open() local 123 struct xe_device *xe = inode->i_private; in forcewake_release() local 143 struct xe_device *xe = file_inode(f)->i_private; in wedged_mode_show() local 155 struct xe_device *xe = file_inode(f)->i_private; in wedged_mode_set() local 192 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_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()
|
D | xe_exec_queue.c | 50 static struct xe_exec_queue *__xe_exec_queue_alloc(struct xe_device *xe, in __xe_exec_queue_alloc() 148 struct xe_exec_queue *xe_exec_queue_create(struct xe_device *xe, struct xe_vm *vm, in xe_exec_queue_create() 172 struct xe_exec_queue *xe_exec_queue_create_class(struct xe_device *xe, struct xe_gt *gt, in xe_exec_queue_create_class() 214 struct xe_exec_queue *xe_exec_queue_create_bind(struct xe_device *xe, in xe_exec_queue_create_bind() 321 xe_exec_queue_device_get_max_priority(struct xe_device *xe) in xe_exec_queue_device_get_max_priority() 327 static int exec_queue_set_priority(struct xe_device *xe, struct xe_exec_queue *q, in exec_queue_set_priority() 392 static int exec_queue_set_timeslice(struct xe_device *xe, struct xe_exec_queue *q, in exec_queue_set_timeslice() 417 static int exec_queue_user_ext_set_property(struct xe_device *xe, in exec_queue_user_ext_set_property() 453 static int exec_queue_user_extensions(struct xe_device *xe, struct xe_exec_queue *q, in exec_queue_user_extensions() 486 static u32 calc_validate_logical_mask(struct xe_device *xe, struct xe_gt *gt, in calc_validate_logical_mask() [all …]
|
D | xe_rtp.c | 27 static bool has_samedia(const struct xe_device *xe) in has_samedia() 32 static bool rule_matches(const struct xe_device *xe, in rule_matches() 160 struct xe_device *xe, struct xe_gt *gt, in rtp_process_one_sr() 186 struct xe_device **xe) in rtp_get_context() 222 static void rtp_mark_active(struct xe_device *xe, in rtp_mark_active() 255 struct xe_device *xe = NULL; in xe_rtp_process_to_sr() local 299 struct xe_device *xe; in xe_rtp_process() local
|
D | xe_heci_gsc.c | 91 void xe_heci_gsc_fini(struct xe_device *xe) in xe_heci_gsc_fini() 111 static int heci_gsc_irq_setup(struct xe_device *xe) in heci_gsc_irq_setup() 129 static int heci_gsc_add_device(struct xe_device *xe, const struct heci_gsc_def *def) in heci_gsc_add_device() 174 void xe_heci_gsc_init(struct xe_device *xe) in xe_heci_gsc_init() 218 void xe_heci_gsc_irq_handler(struct xe_device *xe, u32 iir) in xe_heci_gsc_irq_handler() 238 void xe_heci_csc_irq_handler(struct xe_device *xe, u32 iir) in xe_heci_csc_irq_handler()
|
D | xe_pat.c | 156 u16 xe_pat_index_get_coh_mode(struct xe_device *xe, u16 pat_index) in xe_pat_index_get_coh_mode() 184 struct xe_device *xe = gt_to_xe(gt); in xelp_dump() local 212 struct xe_device *xe = gt_to_xe(gt); in xehp_dump() local 242 struct xe_device *xe = gt_to_xe(gt); in xehpc_dump() local 270 struct xe_device *xe = gt_to_xe(gt); in xelpg_dump() local 328 struct xe_device *xe = gt_to_xe(gt); in xe2_dump() local 383 void xe_pat_init_early(struct xe_device *xe) in xe_pat_init_early() 456 struct xe_device *xe = gt_to_xe(gt); in xe_pat_init() local 469 struct xe_device *xe = gt_to_xe(gt); in xe_pat_dump() local
|
/linux-6.14.4/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.14.4/drivers/gpu/drm/xe/compat-i915-headers/gem/ |
D | i915_gem_stolen.h | 13 static inline int i915_gem_stolen_insert_node_in_range(struct xe_device *xe, in i915_gem_stolen_insert_node_in_range() 51 static inline int i915_gem_stolen_insert_node(struct xe_device *xe, in i915_gem_stolen_insert_node() 60 static inline void i915_gem_stolen_remove_node(struct xe_device *xe, in i915_gem_stolen_remove_node() 67 #define i915_gem_stolen_initialized(xe) (!!ttm_manager_type(&(xe)->ttm, XE_PL_STOLEN)) argument 79 #define i915_gem_stolen_area_address(xe) (!WARN_ON(1)) argument 81 #define i915_gem_stolen_area_size(xe) (!WARN_ON(1)) argument 83 #define i915_gem_stolen_node_address(xe, fb) (xe_ttm_stolen_gpu_offset(xe) + \ argument
|
/linux-6.14.4/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 …]
|