/* debug option to print the registers in logs */ #define MSM_DISP_SNAPSHOT_DUMP_IN_CONSOLE 0
/* print debug ranges in groups of 4 u32s */ #define REG_DUMP_ALIGN 16
/** * struct msm_disp_state - structure to store current dpu state * @dev: device pointer * @drm_dev: drm device pointer * @atomic_state: atomic state duplicated at the time of the error * @time: timestamp at which the coredump was captured
*/ struct msm_disp_state { struct device *dev; struct drm_device *drm_dev;
struct list_head blocks;
struct drm_atomic_state *atomic_state;
struct timespec64 time;
};
/** * struct msm_disp_state_block - structure to store each hardware block state * @name: name of the block * @drm_dev: handle to the linked list head * @size: size of the register space of this hardware block * @state: array holding the register dump of this hardware block * @base_addr: starting address of this hardware block's register space
*/ struct msm_disp_state_block { char name[SZ_128]; struct list_head node; unsignedint size;
u32 *state; void __iomem *base_addr;
};
/** * msm_disp_snapshot_state_sync - synchronously snapshot display state * @kms: the kms object * * Returns state or error * * Must be called with &kms->dump_mutex held
*/ struct msm_disp_state *msm_disp_snapshot_state_sync(struct msm_kms *kms);
/** * msm_disp_snapshot_state - trigger to dump the display snapshot * @drm_dev: handle to drm device
/** * msm_disp_snapshot_add_block - add a hardware block with its register dump * @disp_state: handle to struct msm_disp_state * @name: name of the hardware block * @len: size of the register space of the hardware block * @base_addr: starting address of the register space of the hardware block * @fmt: format in which the block names need to be printed * * Returns: none
*/
__printf(4, 5) void msm_disp_snapshot_add_block(struct msm_disp_state *disp_state, u32 len, void __iomem *base_addr, constchar *fmt, ...);
#endif/* MSM_DISP_SNAPSHOT_H_ */
Messung V0.5
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet)
¤
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.