enum panfrost_debugfs_gem_state_flags { /** @PANFROST_DEBUGFS_GEM_STATE_FLAG_IMPORTED: GEM BO is PRIME imported. */
PANFROST_DEBUGFS_GEM_STATE_FLAG_IMPORTED = BIT(0),
/** @PANFROST_DEBUGFS_GEM_STATE_FLAG_EXPORTED: GEM BO is PRIME exported. */
PANFROST_DEBUGFS_GEM_STATE_FLAG_EXPORTED = BIT(1),
/** @PANFROST_DEBUGFS_GEM_STATE_FLAG_PURGED: GEM BO was reclaimed by the shrinker. */
PANFROST_DEBUGFS_GEM_STATE_FLAG_PURGED = BIT(2),
/** * @PANFROST_DEBUGFS_GEM_STATE_FLAG_PURGEABLE: GEM BO pages were marked as no longer * needed by UM and can be reclaimed by the shrinker.
*/
PANFROST_DEBUGFS_GEM_STATE_FLAG_PURGEABLE = BIT(3),
};
/** * struct panfrost_gem_debugfs - GEM object's DebugFS list information
*/ struct panfrost_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;
};
/* * Use a list for now. If searching a mapping ever becomes the * bottleneck, we should consider using an RB-tree, or even better, * let the core store drm_gem_object_mapping entries (where we * could place driver specific data) instead of drm_gem_object ones * in its drm_file->object_idr table. * * struct drm_gem_object_mapping { * struct drm_gem_object *obj; * void *driver_priv; * };
*/ struct { struct list_head list; struct mutex lock;
} mappings;
/* * Count the number of jobs referencing this BO so we don't let the * shrinker reclaim this object prematurely.
*/
atomic_t gpu_usecount;
/** * @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;
¤ 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.0.2Bemerkung:
¤
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.