freedreno/drm: don't pass thru 'DUMP' flag on older kernels
authorRob Clark <robdclark@chromium.org>
Sun, 17 May 2020 20:01:30 +0000 (13:01 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 18 May 2020 19:00:47 +0000 (19:00 +0000)
commit106c2a65dbd6b523a1a68f8b0e913294edc7bbd6
treedb23b7bed4421893224fe4ea500b655442f320bb
parente422f61e6eadade09fd904eef408746166fa9797
freedreno/drm: don't pass thru 'DUMP' flag on older kernels

"softpin" mode was introduced in the same kernel as the 'DUMP' flag.  So
if we are using the legacy non-softpin path, clear the dump flag.  OTOH
the 'DUMP' flag isn't quite so needed on older kernels, since we would
get all cmdstream, even SDS stateobjs, dumped regardless, as they would
have cmd table entries.

Fixes: b2c23b1e48f ("freedreno: Mark all ringbuffer BOs as to be dumped on crash.")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5081>
src/freedreno/drm/msm_ringbuffer.c