drm/msm: dpu: Don't store/deref pointers in trace ringbuffer
authorSean Paul <seanpaul@chromium.org>
Wed, 19 Sep 2018 18:33:50 +0000 (14:33 -0400)
committerRob Clark <robdclark@gmail.com>
Thu, 4 Oct 2018 00:24:53 +0000 (20:24 -0400)
commitf65f035f197175ebebf002bcaad8974582c372f2
tree7ca6c82ed7f9f838b059d94dd16818384a1c00f0
parent1bb4e701aad10a57bcab41e1996570c881aa6be7
drm/msm: dpu: Don't store/deref pointers in trace ringbuffer

TP_printk is not synchronous, so storing pointers and then later
dereferencing them is a Bad Idea. This patch stores everything locally to
avoid display stomped memory.

Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
[seanpaul fixed up commit msg typo on apply]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h