drm/msm/gpu: add submit flag to hint which buffers should be dumped
authorRob Clark <robdclark@gmail.com>
Tue, 23 Oct 2018 18:42:37 +0000 (14:42 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 11 Dec 2018 18:07:04 +0000 (13:07 -0500)
commit7a93d5c38e5ee68376ca88d9e3f9841451b9efb1
treedec195a4e38bb5466523f89219a98814a714fd74
parent1df4289d5b23178a8a2c38ca766feb3d9c40d9fb
drm/msm/gpu: add submit flag to hint which buffers should be dumped

To lower CPU  overhead, future userspace will be switching to pinning
iova and avoiding the use of relocs, and only include cmds table entries
for IB1 level cmdstream (but not IB2 or state-groups).

This leaves the kernel unsure what to dump for rd/hangrd cmdstream
dumping.  So add a MSM_SUBMIT_BO_DUMP flag so userspace can indicate
buffers that contain cmdstream (or are otherwise important to dump).

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem_submit.c
drivers/gpu/drm/msm/msm_rd.c
include/uapi/drm/msm_drm.h