id
stringlengths
4
63
text
stringlengths
153
8.81M
xdrmem_create(3)
NAME xdr - library routines for external data representation LIBRARY Standard C library (libc, -lc) SYNOPSIS AND DESCRIPTION These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using these routines. The pro...
xdrrec_create(3)
NAME xdr - library routines for external data representation LIBRARY Standard C library (libc, -lc) SYNOPSIS AND DESCRIPTION These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using these routines. The pro...
xdrrec_endofrecord(3)
NAME xdr - library routines for external data representation LIBRARY Standard C library (libc, -lc) SYNOPSIS AND DESCRIPTION These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using these routines. The pro...
xdrrec_eof(3)
NAME xdr - library routines for external data representation LIBRARY Standard C library (libc, -lc) SYNOPSIS AND DESCRIPTION These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using these routines. The pro...
xdrrec_skiprecord(3)
NAME xdr - library routines for external data representation LIBRARY Standard C library (libc, -lc) SYNOPSIS AND DESCRIPTION These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using these routines. The pro...
xdrstdio_create(3)
NAME xdr - library routines for external data representation LIBRARY Standard C library (libc, -lc) SYNOPSIS AND DESCRIPTION These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using these routines. The pro...
xdvi(1)
NAME xdvi - DVI Previewer for the X Window System SYNOPSIS xdvi [+[page]] [--help] [-allowshell] [-altfont font] [-anchorposition anchor] [-bg color] [-browser WWWbrowser] [-copy] [-cr color] [-debug bitmask|string[,string ...]] [-display host:display] [-dvipspath path] [-editor command] [-expert] [-expertmode flag]...
xdvipdfmx(1)
NAME dvipdfmx, xdvipdfmx, dvipdfm - produce PDF files directly from DVI files SYNOPSIS dvipdfmx or dvipdfm [options] file[.dvi] DESCRIPTION The program dvipdfmx generates a PDF file from a DVI file. DVI files are the output produced by TeX. groff can also generate DVI files using grodvi(-Tdvi). In TeX Live,...
xe_assert(9)
NAME xe_assert - warn if condition is false when debugging. SYNOPSIS xe_assert (xe , condition ); ARGUMENTS xe the struct xe_device pointer to which condition applies condition condition to check DESCRIPTION xe_assert uses drm_WARN to emit a warning and print additional information that could b...
xe_bo_alloc(9)
NAME xe_bo_alloc - Allocate storage for a struct xe_bo SYNOPSIS struct xe_bo * xe_bo_alloc (void ); ARGUMENTS void no arguments DESCRIPTION This function is intended to allocate storage to be used for input to __xe_bo_create_locked, in the case a pointer to the bo to be created is needed before the call to __...
xe_bo_can_migrate(9)
NAME xe_bo_can_migrate - Whether a buffer object likely can be migrated SYNOPSIS bool xe_bo_can_migrate (struct xe_bo *bo , u32 mem_type ); ARGUMENTS bo The buffer object to migrate mem_type The TTM memory type intended to migrate to DESCRIPTION Check whether the buffer object supports migration...
xe_bo_create_locked(9)
NAME xe_bo_create_locked - Create a BO SYNOPSIS struct xe_bo * xe_bo_create_locked (struct xe_device *xe , struct xe_tile *tile , struct xe_vm *vm , size_t size , enum ttm_bo_type type , u32 flags , struct drm_exec *exec ); ARGUMENTS xe The xe device. tile The tile to select for migration of t...
xe_bo_create_pin_map(9)
NAME xe_bo_create_pin_map - Create pinned and mapped bo SYNOPSIS struct xe_bo * xe_bo_create_pin_map (struct xe_device *xe , struct xe_tile *tile , struct xe_vm *vm , size_t size , enum ttm_bo_type type , u32 flags , struct drm_exec *exec ); ARGUMENTS xe The xe device. tile The tile to select ...
xe_bo_create_pin_map_at_novm(9)
NAME xe_bo_create_pin_map_at_novm - Create pinned and mapped bo at optional VRAM offset SYNOPSIS struct xe_bo * xe_bo_create_pin_map_at_novm (struct xe_device *xe , struct xe_tile *tile , size_t size , u64 offset , enum ttm_bo_type type , u32 flags , u64 alignment , bool intr ); ARGUMENTS xe The xe device. ...
xe_bo_create_pin_map_novm(9)
NAME xe_bo_create_pin_map_novm - Create pinned and mapped bo SYNOPSIS struct xe_bo * xe_bo_create_pin_map_novm (struct xe_device *xe , struct xe_tile *tile , size_t size , enum ttm_bo_type type , u32 flags , bool intr ); ARGUMENTS xe The xe device. tile The tile to select for migration of this...
xe_bo_create_pin_range_novm(9)
NAME xe_bo_create_pin_range_novm - Create and pin a BO with range options. SYNOPSIS struct xe_bo * xe_bo_create_pin_range_novm (struct xe_device *xe , struct xe_tile *tile , size_t size , u64 start , u64 end , enum ttm_bo_type type , u32 flags ); ARGUMENTS xe The xe device. tile The tile to se...
xe_bo_create_user(9)
NAME xe_bo_create_user - Create a user BO SYNOPSIS struct xe_bo * xe_bo_create_user (struct xe_device *xe , struct xe_vm *vm , size_t size , u16 cpu_caching , u32 flags , struct drm_exec *exec ); ARGUMENTS xe The xe device. vm The local vm or NULL for external objects. size Th...
xe_bo_dev_fini(9)
NAME xe_bo_dev_fini - Finalize BO dev managing async BO freeing SYNOPSIS void xe_bo_dev_fini (struct xe_bo_dev *bo_dev ); ARGUMENTS bo_dev The BO dev structure SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_bo.c xe_bo_has_single_placement(9), xe_bo_is_stolen_devmem(9), xe_bo_is_vm_bound(9), xe_bo_is_visible_vra...
xe_bo_dev_init(9)
NAME xe_bo_dev_init - Initialize BO dev to manage async BO freeing SYNOPSIS void xe_bo_dev_init (struct xe_bo_dev *bo_dev ); ARGUMENTS bo_dev The BO dev structure SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_bo.c xe_bo_has_single_placement(9), xe_bo_is_stolen_devmem(9), xe_bo_is_vm_bound(9), xe_bo_is_visible_...
xe_bo_dumb_create(9)
NAME xe_bo_dumb_create - Create a dumb bo as backing for a fb SYNOPSIS int xe_bo_dumb_create (struct drm_file *file_priv , struct drm_device *dev , struct drm_mode_create_dumb *args ); ARGUMENTS file_priv ... dev ... args ... DESCRIPTION See dumb_create hook in include/drm/drm_drv.h ...
xe_bo_evict(9)
NAME xe_bo_evict - Evict an object to evict placement SYNOPSIS int xe_bo_evict (struct xe_bo *bo , struct drm_exec *exec ); ARGUMENTS bo The buffer object to migrate. exec The drm_exec transaction to use for exhaustive eviction. DESCRIPTION On successful completion, the object memory will be ...
xe_bo_evict_all(9)
NAME xe_bo_evict_all - evict all BOs from VRAM SYNOPSIS int xe_bo_evict_all (struct xe_device *xe ); ARGUMENTS xe xe device DESCRIPTION Evict non-pinned user BOs first (via GPU), evict pinned external BOs next (via GPU), wait for evictions, and finally evict pinned kernel BOs via CPU. All eviction magic do...
xe_bo_evict_all_user(9)
NAME xe_bo_evict_all_user - evict all non-pinned user BOs from VRAM SYNOPSIS int xe_bo_evict_all_user (struct xe_device *xe ); ARGUMENTS xe xe device DESCRIPTION Evict non-pinned user BOs (via GPU). Evict == move VRAM BOs to temporary (typically system) memory. SEE ALSO Kernel file ./drivers/gpu/drm/xe/x...
xe_bo_evict_pinned(9)
NAME xe_bo_evict_pinned - Evict a pinned VRAM object to system memory SYNOPSIS int xe_bo_evict_pinned (struct xe_bo *bo ); ARGUMENTS bo The buffer object to move. DESCRIPTION On successful completion, the object memory will be moved to system memory. This is needed to for special handling of pinned VRAM ob...
xe_bo_free(9)
NAME xe_bo_free - Free storage allocated using xe_bo_alloc() SYNOPSIS void xe_bo_free (struct xe_bo *bo ); ARGUMENTS bo The buffer object storage. DESCRIPTION Refer to xe_bo_alloc documentation for valid use-cases. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_bo.c xe_bo_has_single_placement(9), xe_bo_is_...
xe_bo_has_single_placement(9)
NAME xe_bo_has_single_placement - check if BO is placed only in one memory location SYNOPSIS bool xe_bo_has_single_placement (struct xe_bo *bo ); ARGUMENTS bo The BO DESCRIPTION This function checks whether a given BO is placed in only one memory location. RETURN true if the BO is placed in a single memory...
xe_bo_has_valid_ccs_bb(9)
NAME xe_bo_has_valid_ccs_bb - Check if CCS's BBs were setup for the BO. SYNOPSIS bool xe_bo_has_valid_ccs_bb (struct xe_bo *bo ); ARGUMENTS bo the xe_bo to check DESCRIPTION The CCS's BBs should only be setup by the driver VF, but it is safe to call this function also by non-VF driver. RETURN true iff the ...
xe_bo_init_locked(9)
NAME xe_bo_init_locked - Initialize or create an xe_bo. SYNOPSIS struct xe_bo * xe_bo_init_locked (struct xe_device *xe , struct xe_bo *bo , struct xe_tile *tile , struct dma_resv *resv , struct ttm_lru_bulk_move *bulk , size_t size , u16 cpu_caching , enum ttm_bo_type type , u32 flags , struct drm_exec *exec ); ARGU...
xe_bo_is_mem_type(9)
NAME xe_bo_is_mem_type - Whether the bo currently resides in the given TTM memory type SYNOPSIS bool xe_bo_is_mem_type (struct xe_bo *bo , u32 mem_type ); ARGUMENTS bo The bo to check. mem_type The TTM memory type. RETURN true iff the bo resides in mem_type, false otherwise. SEE ALSO Kernel file...
xe_bo_is_stolen_devmem(9)
NAME xe_bo_is_stolen_devmem - check if BO is of stolen type accessed via PCI BAR SYNOPSIS bool xe_bo_is_stolen_devmem (struct xe_bo *bo ); ARGUMENTS bo The BO DESCRIPTION The stolen memory is accessed through the PCI BAR for both DGFX and some integrated platforms that have a dedicated bit in the PTE for de...
xe_bo_is_visible_vram(9)
NAME xe_bo_is_visible_vram - check if BO is placed entirely in visible VRAM. SYNOPSIS bool xe_bo_is_visible_vram (struct xe_bo *bo ); ARGUMENTS bo The BO DESCRIPTION This function checks whether a given BO resides entirely in memory visible from the CPU RETURN true if the BO is entirely visible, false othe...
xe_bo_is_vm_bound(9)
NAME xe_bo_is_vm_bound - check if BO has any mappings through VM_BIND SYNOPSIS bool xe_bo_is_vm_bound (struct xe_bo *bo ); ARGUMENTS bo The BO DESCRIPTION Check if a given bo is bound through VM_BIND. This requires the reservation lock for the BO to be held. RETURN boolean SEE ALSO Kernel file ./drivers...
xe_bo_lock(9)
NAME xe_bo_lock - Lock the buffer object's dma_resv object SYNOPSIS int xe_bo_lock (struct xe_bo *bo , bool intr ); ARGUMENTS bo The struct xe_bo whose lock is to be taken intr Whether to perform any wait interruptible DESCRIPTION Locks the buffer object's dma_resv object. If the buffer objec...
xe_bo_migrate(9)
NAME xe_bo_migrate - Migrate an object to the desired region id SYNOPSIS int xe_bo_migrate (struct xe_bo *bo , u32 mem_type , struct ttm_operation_ctx *tctx , struct drm_exec *exec ); ARGUMENTS bo The buffer object to migrate. mem_type The TTM region type to migrate to. tctx A point...
xe_bo_move_notify(9)
NAME xe_bo_move_notify - Notify subsystems of a pending move SYNOPSIS int xe_bo_move_notify (struct xe_bo *bo , const struct ttm_operation_ctx *ctx ); ARGUMENTS bo The buffer object ctx The struct ttm_operation_ctx controlling locking and waits. DESCRIPTION This function notifies subsyste...
xe_bo_needs_ccs_pages(9)
NAME xe_bo_needs_ccs_pages - Whether a bo needs to back up CCS pages when placed in system memory. SYNOPSIS bool xe_bo_needs_ccs_pages (struct xe_bo *bo ); ARGUMENTS bo The xe_bo RETURN true if extra pages need to be allocated, false otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_bo.c xe_bo_has_...
xe_bo_notifier_prepare_all_pinned(9)
NAME xe_bo_notifier_prepare_all_pinned - Pre-allocate the backing pages for all pinned VRAM objects which need to be saved. SYNOPSIS int xe_bo_notifier_prepare_all_pinned (struct xe_device *xe ); ARGUMENTS xe xe device DESCRIPTION Should be called from PM notifier when preparing for s3/s4. RETURN 0 on succ...
xe_bo_notifier_prepare_pinned(9)
NAME xe_bo_notifier_prepare_pinned - Prepare a pinned VRAM object to be backed up in system memory. SYNOPSIS int xe_bo_notifier_prepare_pinned (struct xe_bo *bo ); ARGUMENTS bo The buffer object to prepare. DESCRIPTION On successful completion, the object backup pages are allocated. Expectation is that this...
xe_bo_notifier_unprepare_all_pinned(9)
NAME xe_bo_notifier_unprepare_all_pinned - Remove the backing pages for all pinned VRAM objects which have been restored. SYNOPSIS void xe_bo_notifier_unprepare_all_pinned (struct xe_device *xe ); ARGUMENTS xe xe device DESCRIPTION Should be called from PM notifier after exiting s3/s4 (either on success or ...
xe_bo_notifier_unprepare_pinned(9)
NAME xe_bo_notifier_unprepare_pinned - Undo the previous prepare operation. SYNOPSIS int xe_bo_notifier_unprepare_pinned (struct xe_bo *bo ); ARGUMENTS bo The buffer object to undo the prepare for. DESCRIPTION Always returns 0. The backup object is removed, if still present. Expectation it that this called ...
xe_bo_pci_dev_remove_all(9)
NAME xe_bo_pci_dev_remove_all - Handle bos when the pci_device is about to be removed SYNOPSIS void xe_bo_pci_dev_remove_all (struct xe_device *xe ); ARGUMENTS xe The xe device. DESCRIPTION On pci_device removal we need to drop all dma mappings and move the data of exported bos out to system. This ...
xe_bo_pin(9)
NAME xe_bo_pin - Pin a kernel bo after potentially migrating it SYNOPSIS int xe_bo_pin (struct xe_bo *bo , struct drm_exec *exec ); ARGUMENTS bo The kernel bo to pin. exec The drm_exec transaction to use for exhaustive eviction. DESCRIPTION Attempts to migrate a bo to bo->placement. If that s...
xe_bo_pin_external(9)
NAME xe_bo_pin_external - pin an external BO SYNOPSIS int xe_bo_pin_external (struct xe_bo *bo , bool in_place , struct drm_exec *exec ); ARGUMENTS bo buffer object to be pinned in_place Pin in current placement, don't attempt to migrate. exec The drm_exec transaction to use for exh...
xe_bo_pinned_init(9)
NAME xe_bo_pinned_init - Initialize pinned bo tracking SYNOPSIS int xe_bo_pinned_init (struct xe_device *xe ); ARGUMENTS xe The xe device. DESCRIPTION Initializes the lists and locks required for pinned bo tracking and registers a callback to dma-unmap any remaining pinned bos on pci device removal. RETURN...
xe_bo_put_async(9)
NAME xe_bo_put_async - Put BO async SYNOPSIS void xe_bo_put_async (struct xe_bo *bo ); ARGUMENTS bo The bo to put. DESCRIPTION Put BO async, the final put is deferred to a worker to exit an IRQ context. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_bo.h xe_bo_size(9), xe_bo_has_valid_ccs_bb(9), xe_bo_put_de...
xe_bo_put_commit(9)
NAME xe_bo_put_commit - Put bos whose put was deferred by xe_bo_put_deferred(). SYNOPSIS void xe_bo_put_commit (struct llist_head *deferred ); ARGUMENTS deferred The lockless list used for the call to xe_bo_put_deferred. DESCRIPTION Puts all bos whose put was deferred by xe_bo_put_deferred. The deferred list can...
xe_bo_put_deferred(9)
NAME xe_bo_put_deferred - Put a buffer object with delayed final freeing SYNOPSIS bool xe_bo_put_deferred (struct xe_bo *bo , struct llist_head *deferred ); ARGUMENTS bo The bo to put. deferred List to which to add the buffer object if we cannot put, or NULL if the function is to put unconditional...
xe_bo_read(9)
NAME xe_bo_read - Read from an xe_bo SYNOPSIS int xe_bo_read (struct xe_bo *bo , u64 offset , void *dst , int size ); ARGUMENTS bo The buffer object to read from. offset The byte offset to start reading from. dst Location to store the read. size Size in bytes for t...
xe_bo_restore_early(9)
NAME xe_bo_restore_early - restore early phase kernel BOs to VRAM SYNOPSIS int xe_bo_restore_early (struct xe_device *xe ); ARGUMENTS xe xe device DESCRIPTION Move kernel BOs from temporary (typically system) memory to VRAM via CPU. All moves done via TTM calls. This function should be called early, before...
xe_bo_restore_late(9)
NAME xe_bo_restore_late - restore pinned late phase BOs SYNOPSIS int xe_bo_restore_late (struct xe_device *xe ); ARGUMENTS xe xe device DESCRIPTION Move pinned user and kernel BOs which can use blitter from temporary (typically system) memory to VRAM. All moves done via TTM calls. This function should be c...
xe_bo_restore_pinned(9)
NAME xe_bo_restore_pinned - Restore a pinned VRAM object SYNOPSIS int xe_bo_restore_pinned (struct xe_bo *bo ); ARGUMENTS bo The buffer object to move. DESCRIPTION On successful completion, the object memory will be moved back to VRAM. This is needed to for special handling of pinned VRAM object during sus...
xe_bo_shrink(9)
NAME xe_bo_shrink - Try to shrink an xe bo. SYNOPSIS long xe_bo_shrink (struct ttm_operation_ctx *ctx , struct ttm_buffer_object *bo , const struct xe_bo_shrink_flags flags , unsigned long *scanned ); ARGUMENTS ctx The struct ttm_operation_ctx used for shrinking. bo The TTM buffer object whos...
xe_bo_size(9)
NAME xe_bo_size - Xe BO size SYNOPSIS size_t xe_bo_size (struct xe_bo *bo ); ARGUMENTS bo The bo object. DESCRIPTION Simple helper to return Xe BO's size. RETURN Xe BO's size SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_bo.h xe_bo_has_valid_ccs_bb(9), xe_bo_put_deferred(9), xe_bo_put_async(9), struct xe_b...
xe_bo_unlock(9)
NAME xe_bo_unlock - Unlock the buffer object's dma_resv object SYNOPSIS void xe_bo_unlock (struct xe_bo *bo ); ARGUMENTS bo The struct xe_bo whose lock is to be released. DESCRIPTION Unlock a buffer object lock that was locked by xe_bo_lock. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_bo.c xe_bo_has_sin...
xe_bo_unpin_external(9)
NAME xe_bo_unpin_external - unpin an external BO SYNOPSIS void xe_bo_unpin_external (struct xe_bo *bo ); ARGUMENTS bo buffer object to be unpinned DESCRIPTION Unpin an external (not tied to a VM, can be exported via dma-buf / prime FD) BO. Unique call compared to xe_bo_unpin as this function has it own set...
xe_bo_validate(9)
NAME xe_bo_validate - Make sure the bo is in an allowed placement SYNOPSIS int xe_bo_validate (struct xe_bo *bo , struct xe_vm *vm , bool allow_res_evict , struct drm_exec *exec ); ARGUMENTS bo The bo, vm Pointer to a the vm the bo shares a locked dma_resv object with, or NULL. Used together...
xe_configfs_check_device(9)
NAME xe_configfs_check_device - Test if device was configured by configfs SYNOPSIS void xe_configfs_check_device (struct pci_dev *pdev ); ARGUMENTS pdev the pci_dev device to test DESCRIPTION Try to find the configfs group that belongs to the specified pci device and print a diagnostic message if different th...
xe_configfs_get_ctx_restore_mid_bb(9)
NAME xe_configfs_get_ctx_restore_mid_bb - get configfs ctx_restore_mid_bb setting SYNOPSIS u32 xe_configfs_get_ctx_restore_mid_bb (struct pci_dev *pdev , enum xe_engine_class class , const u32 **cs ); ARGUMENTS pdev pci device class hw engine class cs pointer to the bb to use - o...
xe_configfs_get_ctx_restore_post_bb(9)
NAME xe_configfs_get_ctx_restore_post_bb - get configfs ctx_restore_post_bb setting SYNOPSIS u32 xe_configfs_get_ctx_restore_post_bb (struct pci_dev *pdev , enum xe_engine_class class , const u32 **cs ); ARGUMENTS pdev pci device class hw engine class cs pointer to the bb to use ...
xe_configfs_get_engines_allowed(9)
NAME xe_configfs_get_engines_allowed - get engine allowed mask from configfs SYNOPSIS u64 xe_configfs_get_engines_allowed (struct pci_dev *pdev ); ARGUMENTS pdev pci device RETURN engine mask with allowed engines set in configfs SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_configfs.c Kernel API(9), ...
xe_configfs_get_max_vfs(9)
NAME xe_configfs_get_max_vfs - Get number of VFs that could be managed SYNOPSIS unsigned int xe_configfs_get_max_vfs (struct pci_dev *pdev ); ARGUMENTS pdev the pci_dev device DESCRIPTION Find the configfs group that belongs to the PCI device and return maximum number of Virtual Functions (VFs) that could be ...
xe_configfs_get_psmi_enabled(9)
NAME xe_configfs_get_psmi_enabled - get configfs enable_psmi setting SYNOPSIS bool xe_configfs_get_psmi_enabled (struct pci_dev *pdev ); ARGUMENTS pdev pci device RETURN enable_psmi setting in configfs SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_configfs.c Kernel API(9), xe_configfs_check_device(9), xe_...
xe_configfs_get_survivability_mode(9)
NAME xe_configfs_get_survivability_mode - get configfs survivability mode attribute SYNOPSIS bool xe_configfs_get_survivability_mode (struct pci_dev *pdev ); ARGUMENTS pdev pci device RETURN survivability_mode attribute in configfs SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_configfs.c Kernel API(9), xe_c...
xe_configfs_media_gt_allowed(9)
NAME xe_configfs_media_gt_allowed - determine whether media GTs are supported SYNOPSIS bool xe_configfs_media_gt_allowed (struct pci_dev *pdev ); ARGUMENTS pdev pci device RETURN True if the media GTs are enabled, false if they have been disabled via configfs. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe...
xe_configfs_primary_gt_allowed(9)
NAME xe_configfs_primary_gt_allowed - determine whether primary GTs are supported SYNOPSIS bool xe_configfs_primary_gt_allowed (struct pci_dev *pdev ); ARGUMENTS pdev pci device RETURN True if primary GTs are enabled, false if they have been disabled via configfs. SEE ALSO Kernel file ./drivers/gpu/drm/x...
xe_cur_kunit_priv(9)
NAME xe_cur_kunit_priv - Obtain the struct xe_test_priv pointed to by current->kunit->priv if it exists and is embedded in the expected subclass. SYNOPSIS struct xe_test_priv * xe_cur_kunit_priv (enum xe_test_priv_id id ); ARGUMENTS id Id of the expected subclass. RETURN NULL if the process is not a kunit t...
xe_dbg_printer(9)
NAME xe_dbg_printer - Construct a &drm_printer that outputs like xe_dbg() SYNOPSIS struct drm_printer xe_dbg_printer (struct xe_device *xe ); ARGUMENTS xe the xe_device pointer to use in xe_dbg RETURN The drm_printer object. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_printk.h xe_err_printer(9), xe_info_p...
xe_default_lrc_update_memirq_regs_with_address(9)
NAME xe_default_lrc_update_memirq_regs_with_address - Re-compute GGTT references in default LRC of given engine. SYNOPSIS void xe_default_lrc_update_memirq_regs_with_address (struct xe_hw_engine *hwe ); ARGUMENTS hwe the xe_hw_engine struct instance SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_lrc.c xe_g...
xe_dep_scheduler_create(9)
NAME xe_dep_scheduler_create - Generic Xe dependency scheduler create SYNOPSIS struct xe_dep_scheduler * xe_dep_scheduler_create (struct xe_device *xe , struct workqueue_struct *submit_wq , const char *name , u32 job_limit ); ARGUMENTS xe Xe device submit_wq Submit workqueue struct (can be NULL) ...
xe_dep_scheduler_entity(9)
NAME xe_dep_scheduler_entity - Retrieve a generic Xe dependency scheduler DRM scheduler entity SYNOPSIS struct drm_sched_entity * xe_dep_scheduler_entity (struct xe_dep_scheduler *dep_scheduler ); ARGUMENTS dep_scheduler Generic Xe dependency scheduler object RETURN The generic Xe dependency scheduler's DRM schedule...
xe_dep_scheduler_fini(9)
NAME xe_dep_scheduler_fini - Generic Xe dependency scheduler finalize SYNOPSIS void xe_dep_scheduler_fini (struct xe_dep_scheduler *dep_scheduler ); ARGUMENTS dep_scheduler Generic Xe dependency scheduler object DESCRIPTION Finalize internal DRM scheduler objects and free generic Xe dependency scheduler object SEE ...
xe_devcoredump(9)
NAME xe_devcoredump - Take the required snapshots and initialize coredump device. SYNOPSIS void xe_devcoredump (struct xe_exec_queue *q , struct xe_sched_job *job , const char *fmt , ... ); ARGUMENTS q The faulty xe_exec_queue, where the issue was detected. job The faulty xe_sched_job, where...
xe_devcoredump_read(9)
NAME xe_devcoredump_read - Read data from the Xe device coredump snapshot SYNOPSIS ssize_t xe_devcoredump_read (char *buffer , loff_t offset , size_t count , void *data , size_t datalen ); ARGUMENTS buffer Destination buffer to copy the coredump data into offset Offset in the coredump data to start ...
xe_device_assert_mem_access(9)
NAME xe_device_assert_mem_access - Inspect the current runtime_pm state. SYNOPSIS void xe_device_assert_mem_access (struct xe_device *xe ); ARGUMENTS xe xe device instance DESCRIPTION To be used before any kind of memory access. It will splat a debug warning if the device is currently sleeping. But it doesn...
xe_device_declare_wedged(9)
NAME xe_device_declare_wedged - Declare device wedged SYNOPSIS void xe_device_declare_wedged (struct xe_device *xe ); ARGUMENTS xe xe device instance DESCRIPTION This is a final state that can only be cleared with the recovery method specified in the drm wedged uevent. The method can be set using xe_devi...
xe_device_probe_early(9)
NAME xe_device_probe_early - Device early probe SYNOPSIS int xe_device_probe_early (struct xe_device *xe ); ARGUMENTS xe xe device instance DESCRIPTION Initialize MMIO resources that don't require any knowledge about tile count. Also initialize pcode and check vram initialization on root tile. RETURN 0 on ...
xe_device_set_wedged_method(9)
NAME xe_device_set_wedged_method - Set wedged recovery method SYNOPSIS void xe_device_set_wedged_method (struct xe_device *xe , unsigned long method ); ARGUMENTS xe xe device instance method recovery method to set DESCRIPTION Set wedged recovery method to be sent in drm wedged uevent. SEE ALSO...
xe_device_td_flush(9)
NAME xe_device_td_flush - Flush transient L3 cache entries SYNOPSIS void xe_device_td_flush (struct xe_device *xe ); ARGUMENTS xe The device DESCRIPTION Display engine has direct access to memory and is never coherent with L3/L4 caches (or CPU caches), however KMD is responsible for specifically flushing t...
xe_device_validate_wedged_mode(9)
NAME xe_device_validate_wedged_mode - Check if given mode is supported SYNOPSIS int xe_device_validate_wedged_mode (struct xe_device *xe , unsigned int mode ); ARGUMENTS xe the xe_device mode requested mode to validate DESCRIPTION Check whether the provided wedged mode is supported. RETURN 0...
xe_device_wmb(9)
NAME xe_device_wmb - Device specific write memory barrier SYNOPSIS void xe_device_wmb (struct xe_device *xe ); ARGUMENTS xe the xe_device DESCRIPTION While wmb is sufficient for a barrier if we use system memory, on discrete platforms with device memory we additionally need to issue a register write. Si...
xe_display_driver_probe_defer(9)
NAME xe_display_driver_probe_defer - Detect if we need to wait for other drivers early on SYNOPSIS bool xe_display_driver_probe_defer (struct pci_dev *pdev ); ARGUMENTS pdev PCI device NOTE This is called before xe or display device creation. RETURN true if probe needs to be deferred, false otherwise SEE AL...
xe_display_driver_set_hooks(9)
NAME xe_display_driver_set_hooks - Add driver flags and hooks for display SYNOPSIS void xe_display_driver_set_hooks (struct drm_driver *driver ); ARGUMENTS driver DRM device driver DESCRIPTION Set features and function hooks in driver that are needed for driving the display IP. This sets the driver's capability...
xe_display_probe(9)
NAME xe_display_probe - probe display and create display struct SYNOPSIS int xe_display_probe (struct xe_device *xe ); ARGUMENTS xe XE device instance DESCRIPTION Initialize all fields used by the display part. TODO: once everything can be inside a single struct, make the struct opaque to the rest of xe an...
xe_drm_client_add_bo(9)
NAME xe_drm_client_add_bo - Add BO for tracking client mem usage SYNOPSIS void xe_drm_client_add_bo (struct xe_drm_client *client , struct xe_bo *bo ); ARGUMENTS client The drm client ptr bo The xe BO ptr DESCRIPTION Add all BO created by individual drm client by calling this function. This he...
xe_drm_client_alloc(9)
NAME xe_drm_client_alloc - Allocate drm client SYNOPSIS struct xe_drm_client * xe_drm_client_alloc (void ); ARGUMENTS void no arguments DESCRIPTION Allocate drm client struct to track client memory against same till client life. Call this API whenever new client has opened xe device. RETURN pointer to client...
xe_drm_client_fdinfo(9)
NAME xe_drm_client_fdinfo - Callback for fdinfo interface SYNOPSIS void xe_drm_client_fdinfo (struct drm_printer *p , struct drm_file *file ); ARGUMENTS p The drm_printer ptr file The drm_file ptr DESCRIPTION This is callback for drm fdinfo interface. Register this callback in drm driver ops...
xe_drm_client_remove_bo(9)
NAME xe_drm_client_remove_bo - Remove BO for tracking client mem usage SYNOPSIS void xe_drm_client_remove_bo (struct xe_bo *bo ); ARGUMENTS bo The xe BO ptr DESCRIPTION Remove all BO removed by individual drm client by calling this function. This helps in tracking client memory usage. RETURN void SEE ALS...
xe_drm_pagemap_from_fd(9)
NAME xe_drm_pagemap_from_fd - Return a drm_pagemap pointer from a (file_descriptor, region_instance) pair. SYNOPSIS struct drm_pagemap * xe_drm_pagemap_from_fd (int fd , u32 region_instance ); ARGUMENTS fd An fd opened against an xe device. region_instance The region instance repre...
xe_engine_manual_capture(9)
NAME xe_engine_manual_capture - Take a manual engine snapshot from engine. SYNOPSIS void xe_engine_manual_capture (struct xe_hw_engine *hwe , struct xe_hw_engine_snapshot *snapshot ); ARGUMENTS hwe Xe HW Engine. snapshot The engine snapshot DESCRIPTION Take engine snapshot from engine read. RETUR...
xe_engine_snapshot_capture_for_queue(9)
NAME xe_engine_snapshot_capture_for_queue - Take snapshot of associated engine SYNOPSIS void xe_engine_snapshot_capture_for_queue (struct xe_exec_queue *q ); ARGUMENTS q The exec queue object DESCRIPTION Take snapshot of associated HW Engine RETURN None. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_guc...
xe_engine_snapshot_print(9)
NAME xe_engine_snapshot_print - Print out a given Xe HW Engine snapshot. SYNOPSIS void xe_engine_snapshot_print (struct xe_hw_engine_snapshot *snapshot , struct drm_printer *p ); ARGUMENTS snapshot Xe HW Engine snapshot object. p drm_printer where it will be printed out. DESCRIPTION This functio...
xe_err_printer(9)
NAME xe_err_printer - Construct a &drm_printer that outputs to xe_err() SYNOPSIS struct drm_printer xe_err_printer (struct xe_device *xe ); ARGUMENTS xe the xe_device pointer to use in xe_err RETURN The drm_printer object. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_printk.h xe_info_printer(9), xe_dbg_pri...
xe_eu_stall_data_record_size(9)
NAME xe_eu_stall_data_record_size - get EU stall data record size. SYNOPSIS size_t xe_eu_stall_data_record_size (struct xe_device *xe ); ARGUMENTS xe Pointer to a Xe device. RETURN EU stall data record size. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_eu_stall.c struct eu_stall_open_properties(9), xe...
xe_eu_stall_get_per_xecore_buf_size(9)
NAME xe_eu_stall_get_per_xecore_buf_size - get per XeCore buffer size. SYNOPSIS size_t xe_eu_stall_get_per_xecore_buf_size (void ); ARGUMENTS void no arguments RETURN The per XeCore buffer size used to allocate the per GT EU stall data buffer. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_eu_stall.c str...
xe_eu_stall_get_sampling_rates(9)
NAME xe_eu_stall_get_sampling_rates - get EU stall sampling rates information. SYNOPSIS size_t xe_eu_stall_get_sampling_rates (u32 *num_rates , const u64 **rates ); ARGUMENTS num_rates Pointer to a u32 to return the number of sampling rates. rates double u64 pointer to point to an array of sampling ra...
xe_eu_stall_init(9)
NAME xe_eu_stall_init - Allocate and initialize GT level EU stall data structure xe_eu_stall_gt within struct xe_gt. SYNOPSIS int xe_eu_stall_init (struct xe_gt *gt ); ARGUMENTS gt GT being initialized. RETURN zero on success or a negative error code. SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_eu_sta...
xe_eu_stall_stream_open(9)
NAME xe_eu_stall_stream_open - Open a xe EU stall data stream fd SYNOPSIS int xe_eu_stall_stream_open (struct drm_device *dev , u64 data , struct drm_file *file ); ARGUMENTS dev DRM device pointer data pointer to first struct drm_xe_ext_set_property in the chain of input properties from the use...
xe_eu_stall_stream_read_locked(9)
NAME xe_eu_stall_stream_read_locked - copy EU stall counters data from the per xecore buffers to the userspace buffer SYNOPSIS ssize_t xe_eu_stall_stream_read_locked (struct xe_eu_stall_data_stream *stream , struct file *file , char __user *buf , size_t count ); ARGUMENTS stream A stream opened for EU stall coun...
xe_exec_queue_contexts_hwsp_rebase(9)
NAME xe_exec_queue_contexts_hwsp_rebase - Re-compute GGTT references within all LRCs of a queue. SYNOPSIS int xe_exec_queue_contexts_hwsp_rebase (struct xe_exec_queue *q , void *scratch ); ARGUMENTS q the xe_exec_queue struct instance containing target LRCs scratch scratch buffer to be used as t...
xe_exec_queue_create_bind(9)
NAME xe_exec_queue_create_bind - Create bind exec queue. SYNOPSIS struct xe_exec_queue * xe_exec_queue_create_bind (struct xe_device *xe , struct xe_tile *tile , struct xe_vm *user_vm , u32 flags , u64 extensions ); ARGUMENTS xe Xe device. tile tile which bind exec queue belongs to. us...