drm/lima: save task info dump when task fail
Save all information to start a task which can be exported to user for debug usage. Dump file data format is specified in lima_dump.h v2: Add include header to address build robot complain. Tested-by: Andreas Baierl <ichgeh@imkreisrum.de> Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200307134423.24329-1-yuq825@gmail.com
This commit is contained in:
@@ -6,8 +6,11 @@
|
||||
|
||||
#include <drm/drm_device.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/mutex.h>
|
||||
|
||||
#include "lima_sched.h"
|
||||
#include "lima_dump.h"
|
||||
|
||||
enum lima_gpu_id {
|
||||
lima_gpu_mali400 = 0,
|
||||
@@ -94,6 +97,11 @@ struct lima_device {
|
||||
|
||||
u32 *dlbu_cpu;
|
||||
dma_addr_t dlbu_dma;
|
||||
|
||||
/* debug info */
|
||||
struct lima_dump_head dump;
|
||||
struct list_head error_task_list;
|
||||
struct mutex error_task_list_lock;
|
||||
};
|
||||
|
||||
static inline struct lima_device *
|
||||
|
||||
Reference in New Issue
Block a user