]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: fix handling of cmdstream offset
authorRob Clark <robdclark@gmail.com>
Mon, 15 Oct 2018 15:22:57 +0000 (11:22 -0400)
committerSean Paul <seanpaul@chromium.org>
Fri, 30 Nov 2018 16:38:45 +0000 (11:38 -0500)
commit9f0002358af5068d4fda0d6d8d1609b675ab7008
treec262b7f5e000975f50d4dbcec072f0e00e7d9e86
parentf3a29ffbc7768a5b7b6f738c665ad63f64ed3b58
drm/msm: fix handling of cmdstream offset

Userspace hasn't used submit cmds with submit_offset != 0 for a while,
but this starts cropping up again with cmdstream sub-buffer-allocation
in libdrm_freedreno.

Doesn't do much good to increment the buf ptr before assigning it.

Fixes: e86e60383361 drm/msm: dump a rd GPUADDR header for all buffers in the command
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/msm/msm_rd.c