drm/msm: devcoredump should dump MSM_SUBMIT_BO_DUMP buffers
Also log buffers with the DUMP flag set, to ensure we capture all useful cmdstream in crashdump state with modern mesa. Otherwise we miss out on the contents of "state object" cmdstream buffers. v2: add missing 'inline' Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
#include "msm_gpu.h"
|
||||
#include "msm_gem.h"
|
||||
|
||||
static bool rd_full = false;
|
||||
bool rd_full = false;
|
||||
MODULE_PARM_DESC(rd_full, "If true, $debugfs/.../rd will snapshot all buffer contents");
|
||||
module_param_named(rd_full, rd_full, bool, 0600);
|
||||
|
||||
@@ -336,12 +336,6 @@ static void snapshot_buf(struct msm_rd_state *rd,
|
||||
msm_gem_put_vaddr(&obj->base);
|
||||
}
|
||||
|
||||
static bool
|
||||
should_dump(struct msm_gem_submit *submit, int idx)
|
||||
{
|
||||
return rd_full || (submit->bos[idx].flags & MSM_SUBMIT_BO_DUMP);
|
||||
}
|
||||
|
||||
/* called under struct_mutex */
|
||||
void msm_rd_dump_submit(struct msm_rd_state *rd, struct msm_gem_submit *submit,
|
||||
const char *fmt, ...)
|
||||
|
Reference in New Issue
Block a user