drm/msm: Add a context pointer to the submitqueue
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 17 Aug 2020 22:01:36 +0000 (15:01 -0700)
committerRob Clark <robdclark@chromium.org>
Sat, 12 Sep 2020 17:45:56 +0000 (10:45 -0700)
commitcf655d615931b905bbb40f7b5387eb0efd1742e0
tree4b0744ae7796b68f0adc5f3ed6d80313adadc0c6
parent9cba4056a112785bf25e582fc6e7baa8346fe684
drm/msm: Add a context pointer to the submitqueue

Each submitqueue is attached to a context. Add a pointer to the
context to the submitqueue at create time and refcount it so
that it stays around through the life of the queue.

Co-developed-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem.h
drivers/gpu/drm/msm/msm_gem_submit.c
drivers/gpu/drm/msm/msm_gpu.h
drivers/gpu/drm/msm/msm_submitqueue.c