/** @PANTHOR_DEBUGFS_GEM_STATE_FLAG_IMPORTED: GEM BO is PRIME imported. */
PANTHOR_DEBUGFS_GEM_STATE_FLAG_IMPORTED = BIT(PANTHOR_DEBUGFS_GEM_STATE_IMPORTED_BIT),
/** @PANTHOR_DEBUGFS_GEM_STATE_FLAG_EXPORTED: GEM BO is PRIME exported. */
PANTHOR_DEBUGFS_GEM_STATE_FLAG_EXPORTED = BIT(PANTHOR_DEBUGFS_GEM_STATE_EXPORTED_BIT),
};
/** @PANTHOR_DEBUGFS_GEM_USAGE_FLAG_KERNEL: BO is for kernel use only. */
PANTHOR_DEBUGFS_GEM_USAGE_FLAG_KERNEL = BIT(PANTHOR_DEBUGFS_GEM_USAGE_KERNEL_BIT),
/** @PANTHOR_DEBUGFS_GEM_USAGE_FLAG_FW_MAPPED: BO is mapped on the FW VM. */
PANTHOR_DEBUGFS_GEM_USAGE_FLAG_FW_MAPPED = BIT(PANTHOR_DEBUGFS_GEM_USAGE_FW_MAPPED_BIT),
};
/** * struct panthor_gem_debugfs - GEM object's DebugFS list information
*/ struct panthor_gem_debugfs { /** * @node: Node used to insert the object in the device-wide list of * GEM objects, to display information about it through a DebugFS file.
*/ struct list_head node;
/** @creator: Information about the UM process which created the GEM. */ struct { /** @creator.process_name: Group leader name in owning thread's process */ char process_name[TASK_COMM_LEN];
/** @creator.tgid: PID of the thread's group leader within its process */
pid_t tgid;
} creator;
/** @flags: Combination of panthor_debugfs_gem_usage_flags flags */
u32 flags;
};
/** * @exclusive_vm_root_gem: Root GEM of the exclusive VM this GEM object * is attached to. * * If @exclusive_vm_root_gem != NULL, any attempt to bind the GEM to a * different VM will fail. * * All FW memory objects have this field set to the root GEM of the MCU * VM.
*/ struct drm_gem_object *exclusive_vm_root_gem;
/** * @gpuva_list_lock: Custom GPUVA lock. * * Used to protect insertion of drm_gpuva elements to the * drm_gem_object.gpuva.list list. * * We can't use the GEM resv for that, because drm_gpuva_link() is * called in a dma-signaling path, where we're not allowed to take * resv locks.
*/ struct mutex gpuva_list_lock;
/** @flags: Combination of drm_panthor_bo_flags flags. */
u32 flags;
/** * @label: BO tagging fields. The label can be assigned within the * driver itself or through a specific IOCTL.
*/ struct { /** * @label.str: Pointer to NULL-terminated string,
*/ constchar *str;
/** @lock.str: Protects access to the @label.str field. */ struct mutex lock;
} label;
/** * struct panthor_kernel_bo - Kernel buffer object. * * These objects are only manipulated by the kernel driver and not * directly exposed to the userspace. The GPU address of a kernel * BO might be passed to userspace though.
*/ struct panthor_kernel_bo { /** * @obj: The GEM object backing this kernel buffer object.
*/ struct drm_gem_object *obj;
/** * @vm: VM this private buffer is attached to.
*/ struct panthor_vm *vm;
/** * @va_node: VA space allocated to this GEM.
*/ struct drm_mm_node va_node;
/** * @kmap: Kernel CPU mapping of @gem.
*/ void *kmap;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.