id
stringlengths
4
63
text
stringlengths
153
8.81M
panthor_device_schedule_reset(9)
NAME panthor_device_schedule_reset - Schedules a reset operation SYNOPSIS void panthor_device_schedule_reset (struct panthor_device *ptdev ); ARGUMENTS ptdev -- undescribed -- SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_device.h struct panthor_soc_data(9), enum panthor_device_pm_state(9), struct pan...
panthor_exception_is_fault(9)
NAME panthor_exception_is_fault - Checks if an exception is a fault. SYNOPSIS bool panthor_exception_is_fault (u32 exception_code ); ARGUMENTS exception_code -- undescribed -- RETURN true if the exception is a fault, false otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_device.h struct panthor...
panthor_fdinfo_gather_group_mem_info(9)
NAME panthor_fdinfo_gather_group_mem_info - Retrieve aggregate size of all private kernel BO's belonging to all the groups owned by an open Panthor file SYNOPSIS void panthor_fdinfo_gather_group_mem_info (struct panthor_file *pfile , struct drm_memory_stats *stats ); ARGUMENTS pfile File. stats Me...
panthor_fw_alloc_queue_iface_mem(9)
NAME panthor_fw_alloc_queue_iface_mem - Allocate a ring-buffer interfaces. SYNOPSIS struct panthor_kernel_bo * panthor_fw_alloc_queue_iface_mem (struct panthor_device *ptdev , struct panthor_fw_ringbuf_input_iface **input , const struct panthor_fw_ringbuf_output_iface **output , u32 *input_fw_va , u32 *output_fw_va...
panthor_fw_alloc_suspend_buf_mem(9)
NAME panthor_fw_alloc_suspend_buf_mem - Allocate a suspend buffer for a command stream group. SYNOPSIS struct panthor_kernel_bo * panthor_fw_alloc_suspend_buf_mem (struct panthor_device *ptdev , size_t size ); ARGUMENTS ptdev Device. size Size of the suspend buffer. RETURN A valid pointer in cas...
panthor_fw_conv_timeout(9)
NAME panthor_fw_conv_timeout - Convert a timeout into a cycle-count SYNOPSIS u32 panthor_fw_conv_timeout (struct panthor_device *ptdev , u32 timeout_us ); ARGUMENTS ptdev Device. timeout_us Timeout expressed in micro-seconds. DESCRIPTION The FW has two timer sources: the GPU counter or arch-timer. We ...
panthor_fw_csg_wait_acks(9)
NAME panthor_fw_csg_wait_acks - Wait for command stream group requests to be acknowledged. SYNOPSIS int panthor_fw_csg_wait_acks (struct panthor_device *ptdev , u32 csg_slot , u32 req_mask , u32 *acked , u32 timeout_ms ); ARGUMENTS ptdev Device. csg_slot CSG slot ID. req_mask Mask of reque...
panthor_fw_get_cs_iface(9)
NAME panthor_fw_get_cs_iface - Get a command stream slot interface SYNOPSIS struct panthor_fw_cs_iface * panthor_fw_get_cs_iface (struct panthor_device *ptdev , u32 csg_slot , u32 cs_slot ); ARGUMENTS ptdev Device. csg_slot Index of the command stream group slot. cs_slot Index of the comm...
panthor_fw_get_csg_iface(9)
NAME panthor_fw_get_csg_iface - Get a command stream group slot interface SYNOPSIS struct panthor_fw_csg_iface * panthor_fw_get_csg_iface (struct panthor_device *ptdev , u32 csg_slot ); ARGUMENTS ptdev Device. csg_slot Index of the command stream group slot. RETURN The command stream group slot inte...
panthor_fw_get_glb_iface(9)
NAME panthor_fw_get_glb_iface - Get the global interface SYNOPSIS struct panthor_fw_global_iface * panthor_fw_get_glb_iface (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. RETURN The global interface. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_fw.c struct panthor_fw_binary_hdr(9), en...
panthor_fw_glb_wait_acks(9)
NAME panthor_fw_glb_wait_acks - Wait for global requests to be acknowledged. SYNOPSIS int panthor_fw_glb_wait_acks (struct panthor_device *ptdev , u32 req_mask , u32 *acked , u32 timeout_ms ); ARGUMENTS ptdev Device. req_mask Mask of requests to wait for. acked Pointer to field that's u...
panthor_fw_init(9)
NAME panthor_fw_init - Initialize FW related data. SYNOPSIS int panthor_fw_init (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. RETURN 0 on success, a negative error code otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_fw.c struct panthor_fw_binary_hdr(9), enum panthor_fw_bina...
panthor_fw_post_reset(9)
NAME panthor_fw_post_reset - Call after a reset. SYNOPSIS int panthor_fw_post_reset (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. DESCRIPTION Start the FW. If this is not a fast reset, all FW sections are reloaded to make sure we can recover from a memory corruption. SEE ALSO Kernel file ./driver...
panthor_fw_pre_reset(9)
NAME panthor_fw_pre_reset - Call before a reset. SYNOPSIS void panthor_fw_pre_reset (struct panthor_device *ptdev , bool on_hang ); ARGUMENTS ptdev Device. on_hang true if the reset was triggered on a GPU hang. DESCRIPTION If the reset is not triggered on a hang, we try to gracefully halt the MCU, ...
panthor_fw_ring_csg_doorbells(9)
NAME panthor_fw_ring_csg_doorbells - Ring command stream group doorbells. SYNOPSIS void panthor_fw_ring_csg_doorbells (struct panthor_device *ptdev , u32 csg_mask ); ARGUMENTS ptdev Device. csg_mask Bitmask encoding the command stream group doorbells to ring. DESCRIPTION This function is toggling bi...
panthor_fw_toggle_reqs(9)
NAME panthor_fw_toggle_reqs - Toggle acknowledge bits to send an event to the FW SYNOPSIS panthor_fw_toggle_reqs (__iface , __in_reg , __out_reg , __mask ); ARGUMENTS __iface The interface to operate on. __in_reg Name of the register to update in the input section of the interface. __out_reg ...
panthor_fw_unplug(9)
NAME panthor_fw_unplug - Called when the device is unplugged. SYNOPSIS void panthor_fw_unplug (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. DESCRIPTION This function must make sure all pending operations are flushed before will release device resources, thus preventing any interaction with the HW...
panthor_fw_update_reqs(9)
NAME panthor_fw_update_reqs - Update bits to reflect a configuration change SYNOPSIS panthor_fw_update_reqs (__iface , __in_reg , __val , __mask ); ARGUMENTS __iface The interface to operate on. __in_reg Name of the register to update in the input section of the interface. __val Value to ...
panthor_fw_wait_acks(9)
NAME panthor_fw_wait_acks - Wait for requests to be acknowledged by the FW. SYNOPSIS int panthor_fw_wait_acks (const u32 *req_ptr , const u32 *ack_ptr , wait_queue_head_t *wq , u32 req_mask , u32 *acked , u32 timeout_ms ); ARGUMENTS req_ptr Pointer to the req register. ack_ptr Pointer to the ack regis...
panthor_gem_create_object(9)
NAME panthor_gem_create_object - Implementation of driver->gem_create_object. SYNOPSIS struct drm_gem_object * panthor_gem_create_object (struct drm_device *ddev , size_t size ); ARGUMENTS ddev DRM device size Size in bytes of the memory the object will reference DESCRIPTION This lets the GEM h...
panthor_gem_create_with_handle(9)
NAME panthor_gem_create_with_handle - Create a GEM object and attach it to a handle. SYNOPSIS int panthor_gem_create_with_handle (struct drm_file *file , struct drm_device *ddev , struct panthor_vm *exclusive_vm , u64 *size , u32 flags , u32 *handle ); ARGUMENTS file DRM file. ddev DRM device. ...
panthor_get_uobj_array(9)
NAME panthor_get_uobj_array - Copy a user object array into a kernel accessible object array. SYNOPSIS void * panthor_get_uobj_array (const struct drm_panthor_obj_array *in , u32 min_stride , u32 obj_size ); ARGUMENTS in The object array to copy. min_stride Minimum array stride. obj_size ...
panthor_gpu_block_power_off(9)
NAME panthor_gpu_block_power_off - Power-off a specific block of the GPU SYNOPSIS int panthor_gpu_block_power_off (struct panthor_device *ptdev , const char *blk_name , u32 pwroff_reg , u32 pwrtrans_reg , u64 mask , u32 timeout_us ); ARGUMENTS ptdev Device. blk_name Block name. pwroff_reg Po...
panthor_gpu_block_power_on(9)
NAME panthor_gpu_block_power_on - Power-on a specific block of the GPU SYNOPSIS int panthor_gpu_block_power_on (struct panthor_device *ptdev , const char *blk_name , u32 pwron_reg , u32 pwrtrans_reg , u32 rdy_reg , u64 mask , u32 timeout_us ); ARGUMENTS ptdev Device. blk_name Block name. pwro...
panthor_gpu_flush_caches(9)
NAME panthor_gpu_flush_caches - Flush caches SYNOPSIS int panthor_gpu_flush_caches (struct panthor_device *ptdev , u32 l2 , u32 lsc , u32 other ); ARGUMENTS ptdev Device. l2 L2 flush type. lsc LSC flush type. other Other flush type. RETURN 0 on success, a negative...
panthor_gpu_init(9)
NAME panthor_gpu_init - Initialize the GPU block SYNOPSIS int panthor_gpu_init (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. RETURN 0 on success, a negative error code otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_gpu.c struct panthor_gpu(9), panthor_gpu_unplug(9), panthor_g...
panthor_gpu_l2_power_on(9)
NAME panthor_gpu_l2_power_on - Power-on the L2-cache SYNOPSIS int panthor_gpu_l2_power_on (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. RETURN 0 on success, a negative error code otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_gpu.c struct panthor_gpu(9), panthor_gpu_unplug(9...
panthor_gpu_power_off(9)
NAME panthor_gpu_power_off - Power off the GPU block. SYNOPSIS panthor_gpu_power_off (ptdev , type , mask , timeout_us ); ARGUMENTS ptdev -- undescribed -- type -- undescribed -- mask -- undescribed -- timeout_us -- undescribed -- RETURN 0 on success, a negative error cod...
panthor_gpu_power_on(9)
NAME panthor_gpu_power_on - Power on the GPU block. SYNOPSIS panthor_gpu_power_on (ptdev , type , mask , timeout_us ); ARGUMENTS ptdev -- undescribed -- type -- undescribed -- mask -- undescribed -- timeout_us -- undescribed -- RETURN 0 on success, a negative error code o...
panthor_gpu_resume(9)
NAME panthor_gpu_resume - Resume the GPU block. SYNOPSIS void panthor_gpu_resume (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. DESCRIPTION Resume the IRQ handler and power-on the L2-cache. The FW takes care of powering the other blocks. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_gpu....
panthor_gpu_soft_reset(9)
NAME panthor_gpu_soft_reset - Issue a soft-reset SYNOPSIS int panthor_gpu_soft_reset (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. RETURN 0 on success, a negative error code otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_gpu.c struct panthor_gpu(9), panthor_gpu_unplug(9), p...
panthor_gpu_suspend(9)
NAME panthor_gpu_suspend - Suspend the GPU block. SYNOPSIS void panthor_gpu_suspend (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. DESCRIPTION Suspend the GPU irq. This should be called last in the suspend procedure, after all other blocks have been suspented. SEE ALSO Kernel file ./drivers/gpu/dr...
panthor_gpu_unplug(9)
NAME panthor_gpu_unplug - Called when the GPU is unplugged. SYNOPSIS void panthor_gpu_unplug (struct panthor_device *ptdev ); ARGUMENTS ptdev Device to unplug. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_gpu.c struct panthor_gpu(9), panthor_gpu_init(9), panthor_gpu_block_power_off(9), panthor_gpu_b...
panthor_heap_create(9)
NAME panthor_heap_create - Create a heap context SYNOPSIS int panthor_heap_create (struct panthor_heap_pool *pool , u32 initial_chunk_count , u32 chunk_size , u32 max_chunks , u32 target_in_flight , u64 *heap_ctx_gpu_va , u64 *first_chunk_gpu_va ); ARGUMENTS pool Pool to instantiate the heap context from. ...
panthor_heap_destroy(9)
NAME panthor_heap_destroy - Destroy a heap context SYNOPSIS int panthor_heap_destroy (struct panthor_heap_pool *pool , u32 handle ); ARGUMENTS pool Pool this context belongs to. handle Handle returned by panthor_heap_create. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_heap.c struct ...
panthor_heap_grow(9)
NAME panthor_heap_grow - Make a heap context grow. SYNOPSIS int panthor_heap_grow (struct panthor_heap_pool *pool , u64 heap_gpu_va , u32 renderpasses_in_flight , u32 pending_frag_count , u64 *new_chunk_gpu_va ); ARGUMENTS pool The pool this heap belongs to. heap_gpu_va The GPU address of the heap cont...
panthor_heap_pool_create(9)
NAME panthor_heap_pool_create - Create a heap pool SYNOPSIS struct panthor_heap_pool * panthor_heap_pool_create (struct panthor_device *ptdev , struct panthor_vm *vm ); ARGUMENTS ptdev Device. vm The VM this heap pool will be attached to. DESCRIPTION Heap pools might contain up to 128 heap con...
panthor_heap_pool_destroy(9)
NAME panthor_heap_pool_destroy - Destroy a heap pool. SYNOPSIS void panthor_heap_pool_destroy (struct panthor_heap_pool *pool ); ARGUMENTS pool Pool to destroy. DESCRIPTION This function destroys all heap contexts and their resources. Thus preventing any use of the heap context or the chunk attached to them ...
panthor_heap_pool_get(9)
NAME panthor_heap_pool_get - Get a heap pool reference SYNOPSIS struct panthor_heap_pool * panthor_heap_pool_get (struct panthor_heap_pool *pool ); ARGUMENTS pool Pool to get the reference on. Can be NULL. RETURN pool. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_heap.c struct panthor_heap_chunk_he...
panthor_heap_pool_put(9)
NAME panthor_heap_pool_put - Release a heap pool reference SYNOPSIS void panthor_heap_pool_put (struct panthor_heap_pool *pool ); ARGUMENTS pool Pool to release the reference on. Can be NULL. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_heap.c struct panthor_heap_chunk_header(9), struct panthor_heap...
panthor_heap_pool_size(9)
NAME panthor_heap_pool_size - Get a heap pool's total size SYNOPSIS size_t panthor_heap_pool_size (struct panthor_heap_pool *pool ); ARGUMENTS pool Pool whose total chunks size to return DESCRIPTION Returns the aggregated size of all chunks for all heaps in the pool SEE ALSO Kernel file ./drivers/gpu/drm/pan...
panthor_heap_return_chunk(9)
NAME panthor_heap_return_chunk - Return an unused heap chunk SYNOPSIS int panthor_heap_return_chunk (struct panthor_heap_pool *pool , u64 heap_gpu_va , u64 chunk_gpu_va ); ARGUMENTS pool The pool this heap belongs to. heap_gpu_va The GPU address of the heap context. chunk_gpu_va ...
panthor_kernel_bo_create(9)
NAME panthor_kernel_bo_create - Create and map a GEM object to a VM SYNOPSIS struct panthor_kernel_bo * panthor_kernel_bo_create (struct panthor_device *ptdev , struct panthor_vm *vm , size_t size , u32 bo_flags , u32 vm_map_flags , u64 gpu_va , const char *name ); ARGUMENTS ptdev Device. vm VM...
panthor_kernel_bo_destroy(9)
NAME panthor_kernel_bo_destroy - Destroy a kernel buffer object SYNOPSIS void panthor_kernel_bo_destroy (struct panthor_kernel_bo *bo ); ARGUMENTS bo Kernel buffer object to destroy. If NULL or an ERR_PTR, the destruction is skipped. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_gem.c panthor_kerne...
panthor_mmu_debugfs_init(9)
NAME panthor_mmu_debugfs_init - Initialize MMU debugfs entries SYNOPSIS void panthor_mmu_debugfs_init (struct drm_minor *minor ); ARGUMENTS minor Minor. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct panthor_mmu(9), struct panthor_vm_pool(9), struct pantho...
panthor_mmu_init(9)
NAME panthor_mmu_init - Initialize the MMU logic. SYNOPSIS int panthor_mmu_init (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. RETURN 0 on success, a negative error code otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct panthor_mmu(9), s...
panthor_mmu_post_reset(9)
NAME panthor_mmu_post_reset - Restore things after a reset SYNOPSIS void panthor_mmu_post_reset (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. DESCRIPTION Put the MMU logic back in action after a reset. That implies resuming the IRQ and re-enabling the VM_BIND queues. SEE ALSO Kernel file ./driver...
panthor_mmu_pre_reset(9)
NAME panthor_mmu_pre_reset - Prepare for a reset SYNOPSIS void panthor_mmu_pre_reset (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. DESCRIPTION Suspend the IRQ, and make sure all VM_BIND queues are stopped, so we don't get asked to do a VM operation while the GPU is down. We don't cleanly shutdow...
panthor_mmu_pt_cache_fini(9)
NAME panthor_mmu_pt_cache_fini - Destroy the page table cache. SYNOPSIS void panthor_mmu_pt_cache_fini (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct panthor_mmu(9), struct panthor_vm_pool(9), struct panthor_vma(9), st...
panthor_mmu_pt_cache_init(9)
NAME panthor_mmu_pt_cache_init - Initialize the page table cache. SYNOPSIS int panthor_mmu_pt_cache_init (void ); ARGUMENTS void no arguments RETURN 0 on success, a negative error code otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct panthor_mmu(...
panthor_mmu_resume(9)
NAME panthor_mmu_resume - Resume the MMU logic SYNOPSIS void panthor_mmu_resume (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. DESCRIPTION Resume the IRQ. We don't re-enable previously active VMs. We assume other parts of the driver will call panthor_vm_active on the VMs they intend to use. SEE ALS...
panthor_mmu_suspend(9)
NAME panthor_mmu_suspend - Suspend the MMU logic SYNOPSIS void panthor_mmu_suspend (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. DESCRIPTION All we do here is de-assign the AS slots on all active VMs, so things get flushed to the main memory, and no further access to these VMs are possible. We also...
panthor_mmu_unplug(9)
NAME panthor_mmu_unplug - Unplug the MMU logic SYNOPSIS void panthor_mmu_unplug (struct panthor_device *ptdev ); ARGUMENTS ptdev Device. DESCRIPTION No access to the MMU regs should be done after this function is called. We suspend the IRQ and disable all VMs to guarantee that. SEE ALSO Kernel file ./drive...
panthor_pwr_domain_force_off(9)
NAME panthor_pwr_domain_force_off - Forcefully power down a domain. SYNOPSIS int panthor_pwr_domain_force_off (struct panthor_device *ptdev , u32 domain ); ARGUMENTS ptdev Device. domain Domain to forcefully power down. DESCRIPTION This function will attempt to retract and power off the requested ...
panthor_sched_report_fw_events(9)
NAME panthor_sched_report_fw_events - Report FW events to the scheduler. SYNOPSIS void panthor_sched_report_fw_events (struct panthor_device *ptdev , u32 events ); ARGUMENTS ptdev -- undescribed -- events -- undescribed -- SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_sched.c Kernel A...
panthor_sched_report_mmu_fault(9)
NAME panthor_sched_report_mmu_fault - Report MMU faults to the scheduler. SYNOPSIS void panthor_sched_report_mmu_fault (struct panthor_device *ptdev ); ARGUMENTS ptdev -- undescribed -- SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_sched.c Kernel API(9), struct panthor_csg_slot(9), enum panthor_cs...
panthor_set_uobj(9)
NAME panthor_set_uobj - Copy kernel object to user object. SYNOPSIS int panthor_set_uobj (u64 usr_ptr , u32 usr_size , u32 min_size , u32 kern_size , const void *in ); ARGUMENTS usr_ptr Users pointer. usr_size Size of the user object. min_size Minimum size for this object. kern_size ...
panthor_submit_ctx_add_deps_and_arm_jobs(9)
NAME panthor_submit_ctx_add_deps_and_arm_jobs - Add jobs dependencies and arm jobs SYNOPSIS int panthor_submit_ctx_add_deps_and_arm_jobs (struct panthor_submit_ctx *ctx ); ARGUMENTS ctx Submit context. DESCRIPTION Must be called after the resv preparation has been taken care of. RETURN 0 on success, a negat...
panthor_submit_ctx_add_job(9)
NAME panthor_submit_ctx_add_job - Add a job to a submit context SYNOPSIS int panthor_submit_ctx_add_job (struct panthor_submit_ctx *ctx , u32 idx , struct drm_sched_job *job , const struct drm_panthor_obj_array *syncs ); ARGUMENTS ctx Context to search the signal operation in. idx Index of the...
panthor_submit_ctx_add_sync_deps_to_job(9)
NAME panthor_submit_ctx_add_sync_deps_to_job - Add sync wait operations as job dependencies. SYNOPSIS int panthor_submit_ctx_add_sync_deps_to_job (struct panthor_submit_ctx *ctx , u32 job_idx ); ARGUMENTS ctx Submit context. job_idx Index of the job to operate on. RETURN 0 on success, a negative ...
panthor_submit_ctx_add_sync_signal(9)
NAME panthor_submit_ctx_add_sync_signal - Add a signal operation to a submit context SYNOPSIS int panthor_submit_ctx_add_sync_signal (struct panthor_submit_ctx *ctx , u32 handle , u64 point ); ARGUMENTS ctx Context to add the signal operation to. handle Syncobj handle. point Syncobj...
panthor_submit_ctx_cleanup(9)
NAME panthor_submit_ctx_cleanup - Cleanup a submission context SYNOPSIS void panthor_submit_ctx_cleanup (struct panthor_submit_ctx *ctx , void (*job_put)(struct drm_sched_job *) ); ARGUMENTS ctx Submit context to cleanup. job_put Job put callback. SEE ALSO Kernel file ./drivers/gpu/drm/pantho...
panthor_submit_ctx_collect_job_signal_ops(9)
NAME panthor_submit_ctx_collect_job_signal_ops - Iterate over all job signal operations and add them to the context. SYNOPSIS int panthor_submit_ctx_collect_job_signal_ops (struct panthor_submit_ctx *ctx , u32 job_idx ); ARGUMENTS ctx Context to search the signal operation in. job_idx Index of the...
panthor_submit_ctx_collect_jobs_signal_ops(9)
NAME panthor_submit_ctx_collect_jobs_signal_ops - Collect all signal operations and add them to the submit context. SYNOPSIS int panthor_submit_ctx_collect_jobs_signal_ops (struct panthor_submit_ctx *ctx ); ARGUMENTS ctx Submit context. RETURN 0 on success, a negative error code otherwise. SEE ALSO Kernel ...
panthor_submit_ctx_get_sync_signal(9)
NAME panthor_submit_ctx_get_sync_signal - Search signal operation and add one if none was found. SYNOPSIS int panthor_submit_ctx_get_sync_signal (struct panthor_submit_ctx *ctx , u32 handle , u64 point ); ARGUMENTS ctx Context to search the signal operation in. handle Syncobj handle. poin...
panthor_submit_ctx_init(9)
NAME panthor_submit_ctx_init - Initializes a submission context SYNOPSIS int panthor_submit_ctx_init (struct panthor_submit_ctx *ctx , struct drm_file *file , u32 job_count ); ARGUMENTS ctx Submit context to initialize. file drm_file this submission happens on. job_count Number of job...
panthor_submit_ctx_push_fences(9)
NAME panthor_submit_ctx_push_fences - Iterate over the signal array, and for each entry, push the currently assigned fence to the associated syncobj. SYNOPSIS void panthor_submit_ctx_push_fences (struct panthor_submit_ctx *ctx ); ARGUMENTS ctx Context to push fences on. DESCRIPTION This is the last step of a...
panthor_submit_ctx_push_jobs(9)
NAME panthor_submit_ctx_push_jobs - Push jobs to their scheduling entities. SYNOPSIS void panthor_submit_ctx_push_jobs (struct panthor_submit_ctx *ctx , void (*upd_resvs)(struct drm_exec *, struct drm_sched_job *) ); ARGUMENTS ctx Submit context. upd_resvs Callback used to update reservation objects...
panthor_submit_ctx_search_sync_signal(9)
NAME panthor_submit_ctx_search_sync_signal - Search an existing signal operation in a submit context. SYNOPSIS struct panthor_sync_signal * panthor_submit_ctx_search_sync_signal (struct panthor_submit_ctx *ctx , u32 handle , u64 point ); ARGUMENTS ctx Context to search the signal operation in. handle ...
panthor_submit_ctx_update_job_sync_signal_fences(9)
NAME panthor_submit_ctx_update_job_sync_signal_fences - Update fences on the signal operations specified by a job. SYNOPSIS int panthor_submit_ctx_update_job_sync_signal_fences (struct panthor_submit_ctx *ctx , u32 job_idx ); ARGUMENTS ctx Context to search the signal operation in. job_idx Index o...
panthor_sync_signal_free(9)
NAME panthor_sync_signal_free - Release resources and free a panthor_sync_signal object SYNOPSIS void panthor_sync_signal_free (struct panthor_sync_signal *sig_sync ); ARGUMENTS sig_sync Signal object to free. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_drv.c Kernel API(9), panthor_set_uobj(9), pant...
panthor_vm_active(9)
NAME panthor_vm_active - Flag a VM as active SYNOPSIS int panthor_vm_active (struct panthor_vm *vm ); ARGUMENTS vm VM to flag as active. DESCRIPTION Assigns an address space to a VM so it can be used by the GPU/MCU. RETURN 0 on success, a negative error code otherwise. SEE ALSO Kernel file ./drivers/gpu...
panthor_vm_alloc_va(9)
NAME panthor_vm_alloc_va - Allocate a region in the auto-va space SYNOPSIS int panthor_vm_alloc_va (struct panthor_vm *vm , u64 va , u64 size , struct drm_mm_node *va_node ); ARGUMENTS vm VM to allocate a region on. va start of the VA range. Can be PANTHOR_VM_KERNEL_AUTO_VA if the user wants...
panthor_vm_as(9)
NAME panthor_vm_as - Get the AS slot attached to a VM SYNOPSIS int panthor_vm_as (struct panthor_vm *vm ); ARGUMENTS vm VM to get the AS slot of. RETURN -1 if the VM is not assigned an AS slot yet, >= 0 otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), ...
panthor_vm_bind_exec_sync_op(9)
NAME panthor_vm_bind_exec_sync_op - Execute a VM_BIND operation synchronously. SYNOPSIS int panthor_vm_bind_exec_sync_op (struct drm_file *file , struct panthor_vm *vm , struct drm_panthor_vm_bind_op *op ); ARGUMENTS file File. vm VM targeted by the VM operation. op Data descr...
panthor_vm_bind_job_create(9)
NAME panthor_vm_bind_job_create - Create a VM_BIND job SYNOPSIS struct drm_sched_job * panthor_vm_bind_job_create (struct drm_file *file , struct panthor_vm *vm , const struct drm_panthor_vm_bind_op *op ); ARGUMENTS file File. vm VM targeted by the VM_BIND job. op VM operation...
panthor_vm_bind_job_prepare_resvs(9)
NAME panthor_vm_bind_job_prepare_resvs - Prepare VM_BIND job dma_resvs SYNOPSIS int panthor_vm_bind_job_prepare_resvs (struct drm_exec *exec , struct drm_sched_job *sched_job ); ARGUMENTS exec The locking/preparation context. sched_job The job to prepare resvs on. DESCRIPTION Locks and prepare the V...
panthor_vm_bind_job_put(9)
NAME panthor_vm_bind_job_put - Release a VM_BIND job reference SYNOPSIS void panthor_vm_bind_job_put (struct drm_sched_job *sched_job ); ARGUMENTS sched_job Job to release the reference on. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct panthor_mmu(9), struct ...
panthor_vm_bind_job_update_resvs(9)
NAME panthor_vm_bind_job_update_resvs - Update the resv objects touched by a job SYNOPSIS void panthor_vm_bind_job_update_resvs (struct drm_exec *exec , struct drm_sched_job *sched_job ); ARGUMENTS exec drm_exec context. sched_job Job to update the resvs on. SEE ALSO Kernel file ./drivers/gpu/drm/...
panthor_vm_create(9)
NAME panthor_vm_create - Create a VM SYNOPSIS struct panthor_vm * panthor_vm_create (struct panthor_device *ptdev , bool for_mcu , u64 kernel_va_start , u64 kernel_va_size , u64 auto_kernel_va_start , u64 auto_kernel_va_size ); ARGUMENTS ptdev Device. for_mcu True if this is the FW MCU VM. k...
panthor_vm_free_va(9)
NAME panthor_vm_free_va - Free a region allocated with panthor_vm_alloc_va() SYNOPSIS void panthor_vm_free_va (struct panthor_vm *vm , struct drm_mm_node *va_node ); ARGUMENTS vm VM to free the region on. va_node Memory node representing the region to free. SEE ALSO Kernel file ./drivers/gpu/d...
panthor_vm_get(9)
NAME panthor_vm_get - Get a VM reference SYNOPSIS struct panthor_vm * panthor_vm_get (struct panthor_vm *vm ); ARGUMENTS vm VM to get the reference on. Can be NULL. RETURN vm value. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct panthor_mmu(9), struct ...
panthor_vm_get_bo_for_va(9)
NAME panthor_vm_get_bo_for_va - Get the GEM object mapped at a virtual address SYNOPSIS struct panthor_gem_object * panthor_vm_get_bo_for_va (struct panthor_vm *vm , u64 va , u64 *bo_offset ); ARGUMENTS vm VM to look into. va Virtual address to search for. bo_offset Offset of the G...
panthor_vm_get_heap_pool(9)
NAME panthor_vm_get_heap_pool - Get the heap pool attached to a VM SYNOPSIS struct panthor_heap_pool * panthor_vm_get_heap_pool (struct panthor_vm *vm , bool create ); ARGUMENTS vm VM to query the heap pool on. create True if the heap pool should be created when it doesn't exist. DESCRIPTION He...
panthor_vm_has_unhandled_faults(9)
NAME panthor_vm_has_unhandled_faults - Check if a VM has unhandled faults SYNOPSIS bool panthor_vm_has_unhandled_faults (struct panthor_vm *vm ); ARGUMENTS vm VM to check. RETURN true if the VM has unhandled faults, false otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct pa...
panthor_vm_heaps_sizes(9)
NAME panthor_vm_heaps_sizes - Calculate size of all heap chunks across all heaps over all the heap pools in a VM SYNOPSIS void panthor_vm_heaps_sizes (struct panthor_file *pfile , struct drm_memory_stats *stats ); ARGUMENTS pfile File. stats Memory stats to be updated. DESCRIPTION Calculate all h...
panthor_vm_idle(9)
NAME panthor_vm_idle - Flag a VM idle SYNOPSIS void panthor_vm_idle (struct panthor_vm *vm ); ARGUMENTS vm VM to flag as idle. DESCRIPTION When we know the GPU is done with the VM (no more jobs to process), we can relinquish the AS slot attached to this VM, if any. We don't release the slot immediately, bu...
panthor_vm_is_unusable(9)
NAME panthor_vm_is_unusable - Check if the VM is still usable SYNOPSIS bool panthor_vm_is_unusable (struct panthor_vm *vm ); ARGUMENTS vm VM to check. RETURN true if the VM is unusable, false otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct pan...
panthor_vm_map_bo_range(9)
NAME panthor_vm_map_bo_range - Map a GEM object range to a VM SYNOPSIS int panthor_vm_map_bo_range (struct panthor_vm *vm , struct panthor_gem_object *bo , u64 offset , u64 size , u64 va , u32 flags ); ARGUMENTS vm VM to map the GEM to. bo GEM object to map. offset Offset in the...
panthor_vm_pool_create(9)
NAME panthor_vm_pool_create - Create a VM pool SYNOPSIS int panthor_vm_pool_create (struct panthor_file *pfile ); ARGUMENTS pfile File. RETURN 0 on success, a negative error code otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct panthor_mmu(9), st...
panthor_vm_pool_create_vm(9)
NAME panthor_vm_pool_create_vm - Create a VM SYNOPSIS int panthor_vm_pool_create_vm (struct panthor_device *ptdev , struct panthor_vm_pool *pool , struct drm_panthor_vm_create *args ); ARGUMENTS ptdev The panthor device pool The VM to create this VM on. args VM creation args. RETU...
panthor_vm_pool_destroy(9)
NAME panthor_vm_pool_destroy - Destroy a VM pool. SYNOPSIS void panthor_vm_pool_destroy (struct panthor_file *pfile ); ARGUMENTS pfile File. DESCRIPTION Destroy all VMs in the pool, and release the pool resources. Note that VMs can outlive the pool they were created from if other objects hold a reference to t...
panthor_vm_pool_destroy_vm(9)
NAME panthor_vm_pool_destroy_vm - Destroy a VM. SYNOPSIS int panthor_vm_pool_destroy_vm (struct panthor_vm_pool *pool , u32 handle ); ARGUMENTS pool VM pool. handle VM handle. DESCRIPTION This function doesn't free the VM object or its resources, it just kills all mappings, and makes sure nothi...
panthor_vm_pool_get_vm(9)
NAME panthor_vm_pool_get_vm - Retrieve VM object bound to a VM handle SYNOPSIS struct panthor_vm * panthor_vm_pool_get_vm (struct panthor_vm_pool *pool , u32 handle ); ARGUMENTS pool VM pool to check. handle Handle of the VM to retrieve. RETURN A valid pointer if the VM exists, NULL otherwise. S...
panthor_vm_prepare_mapped_bos_resvs(9)
NAME panthor_vm_prepare_mapped_bos_resvs - Prepare resvs on VM BOs. SYNOPSIS int panthor_vm_prepare_mapped_bos_resvs (struct drm_exec *exec , struct panthor_vm *vm , u32 slot_count ); ARGUMENTS exec Locking/preparation context. vm VM targeted by the GPU job. slot_count Number of slots...
panthor_vm_put(9)
NAME panthor_vm_put - Release a reference on a VM SYNOPSIS void panthor_vm_put (struct panthor_vm *vm ); ARGUMENTS vm VM to release the reference on. Can be NULL. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct panthor_mmu(9), struct panthor_vm_pool(9), ...
panthor_vm_resv(9)
NAME panthor_vm_resv - Get the dma_resv object attached to a VM. SYNOPSIS struct dma_resv * panthor_vm_resv (struct panthor_vm *vm ); ARGUMENTS vm VM to get the dma_resv of. RETURN A dma_resv object. SEE ALSO Kernel file ./drivers/gpu/drm/panthor/panthor_mmu.c struct panthor_as_slot(9), struct pantho...
panthor_vm_unmap_range(9)
NAME panthor_vm_unmap_range - Unmap a portion of the VA space SYNOPSIS int panthor_vm_unmap_range (struct panthor_vm *vm , u64 va , u64 size ); ARGUMENTS vm VM to unmap the region from. va Virtual address to unmap. Must be 4k aligned. size Size of the region to unmap. Must be ...
papr_dynamic_indicator_ioc_set(9)
NAME papr_dynamic_indicator_ioc_set - ibm,set-dynamic-indicator RTAS Call PAPR 2.13 7.3.18 SYNOPSIS long papr_dynamic_indicator_ioc_set (struct papr_indices_io_block __user *ubuf ); ARGUMENTS ubuf Input parameters to RTAS call such as indicator token and new state. DESCRIPTION Returns success or -errno. SEE ...
papr_dynamic_sensor_ioc_get(9)
NAME papr_dynamic_sensor_ioc_get - ibm,get-dynamic-sensor-state RTAS Call PAPR 2.13 7.3.19 SYNOPSIS long papr_dynamic_sensor_ioc_get (struct papr_indices_io_block __user *ubuf ); ARGUMENTS ubuf Input parameters to RTAS call such as sensor token Copies the state in user space buffer. DESCRIPTION Returns succes...