linux/drivers/gpu/drm/msm
Brian Masney e2f597a204 drm/msm: remove resv fields from msm_gem_object struct
The msm_gem_object structure contains resv and _resv fields that are
no longer needed since the reservation object is now stored on
drm_gem_object. msm_atomic_prepare_fb() and msm_atomic_prepare_fb()
both referenced the wrong reservation object, and would lead to an
attempt to dereference a NULL pointer. Correct those two cases to
point to the correct reservation object.

Fixes: dd55cf6929 ("drm: msm: Switch to use drm_gem_object reservation_object")
Cc: David Airlie <airlied@linux.ie>
Cc: linux-arm-msm@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: freedreno@lists.freedesktop.org
Cc: Rob Herring <robh@kernel.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Sean Paul <sean@poorly.run>
Acked-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190513234105.7531-1-masneyb@onstation.org
2019-05-14 10:19:30 -04:00
..
adreno drm/msm/a6xx: No zap shader is not an error 2019-05-08 16:00:54 -04:00
disp drm/msm: remove resv fields from msm_gem_object struct 2019-05-14 10:19:30 -04:00
dsi drm-misc-next for 5.1: 2019-01-18 09:31:28 +10:00
edp drm-misc-next for 5.1: 2019-01-18 09:31:28 +10:00
hdmi drm-misc-next for 5.1: 2019-01-18 09:31:28 +10:00
Kconfig drm/msm/a6xx: Don't enable GPU state code if dependencies are missing 2019-04-21 07:52:36 -07:00
Makefile drm: prefix header search paths with $(srctree)/ 2019-04-26 17:03:23 +02:00
msm_atomic.c drm/msm: remove resv fields from msm_gem_object struct 2019-05-14 10:19:30 -04:00
msm_debugfs.c drm/msm/a6xx: Don't enable GPU state code if dependencies are missing 2019-04-21 07:52:36 -07:00
msm_debugfs.h
msm_drv.c Merge tag 'drm-msm-next-2019-04-21' of https://gitlab.freedesktop.org/drm/msm into drm-next 2019-04-24 11:56:32 +10:00
msm_drv.h Merge tag 'drm-msm-next-2019-04-21' of https://gitlab.freedesktop.org/drm/msm into drm-next 2019-04-24 11:56:32 +10:00
msm_fb.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
msm_fbdev.c drm/msm: Use drm_fb_helper_fill_info 2019-03-27 10:02:53 +01:00
msm_fence.c drm/msm: Remove unecessary dma_fence_ops 2018-08-17 11:22:25 +02:00
msm_fence.h
msm_gem_prime.c drm: msm: Switch to use drm_gem_object reservation_object 2019-02-19 11:08:40 +01:00
msm_gem_shrinker.c
msm_gem_submit.c Merge tag 'drm-msm-next-2019-04-21' of https://gitlab.freedesktop.org/drm/msm into drm-next 2019-04-24 11:56:32 +10:00
msm_gem_vma.c drm/msm: Fix NULL pointer dereference 2019-04-18 10:04:09 -07:00
msm_gem.c Merge tag 'drm-msm-next-2019-04-21' of https://gitlab.freedesktop.org/drm/msm into drm-next 2019-04-24 11:56:32 +10:00
msm_gem.h drm/msm: remove resv fields from msm_gem_object struct 2019-05-14 10:19:30 -04:00
msm_gpu_trace.h drm/msm/gpu: Add trace events for tracking GPU submissions 2018-12-11 13:05:28 -05:00
msm_gpu_tracepoints.c drm/msm/gpu: Add trace events for tracking GPU submissions 2018-12-11 13:05:28 -05:00
msm_gpu.c drm/msm: Stop dropping struct_mutex in recover_worker() 2019-04-19 11:50:06 -07:00
msm_gpu.h drm/msm: add param to retrieve # of GPU faults (global) 2019-04-19 11:50:00 -07:00
msm_gpummu.c drm/msm: implement a2xx mmu 2018-12-11 13:07:10 -05:00
msm_iommu.c drm/msm: Remove pm_runtime calls from msm_iommu.c 2019-04-18 10:04:09 -07:00
msm_kms.h drm/msm: Cut dpu_kms hooks from msm_pm_suspend/resume 2018-12-11 12:51:27 -05:00
msm_mmu.h drm/msm: implement a2xx mmu 2018-12-11 13:07:10 -05:00
msm_perf.c
msm_rd.c drm/msm: Unblock writer if reader closes file 2019-01-29 10:17:34 -05:00
msm_ringbuffer.c drm/msm/gpu: Map the ringbuffer in the iova at create time 2018-12-11 13:07:03 -05:00
msm_ringbuffer.h drm/msm/gpu: Add per-submission statistics 2018-12-11 13:05:28 -05:00
msm_submitqueue.c drm/msm/gpu: Add submit queue queries 2019-04-19 11:50:06 -07:00
NOTES