drm/msm/gpu: Add the buffer objects from the submit to the crash dump

For hangs, dump copy out the contents of the buffer objects attached to the
guilty submission and print them in the crash dump report.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
Jordan Crouse
2018-07-24 10:33:31 -06:00
committed by Rob Clark
parent 50f8d21863
commit cdb95931de
4 changed files with 116 additions and 13 deletions

View File

@@ -181,6 +181,12 @@ struct msm_gpu_submitqueue {
struct kref ref;
};
struct msm_gpu_state_bo {
u64 iova;
size_t size;
void *data;
};
struct msm_gpu_state {
struct kref ref;
struct timeval time;
@@ -202,6 +208,9 @@ struct msm_gpu_state {
char *comm;
char *cmd;
int nr_bos;
struct msm_gpu_state_bo *bos;
};
static inline void gpu_write(struct msm_gpu *gpu, u32 reg, u32 data)