Commit d87fe031 authored by Abhinav Kumar's avatar Abhinav Kumar Committed by Rob Clark

drm/msm: add support to take dsi, dp and dpu snapshot

Add support to take the register snapshot of dsi, dp and dpu
modules.
Signed-off-by: default avatarAbhinav Kumar <abhinavk@codeaurora.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/1618606645-19695-7-git-send-email-abhinavk@codeaurora.orgSigned-off-by: default avatarRob Clark <robdclark@chromium.org>
parent a698b5cd
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <linux/devcoredump.h> #include <linux/devcoredump.h>
#include <stdarg.h> #include <stdarg.h>
#include "msm_kms.h" #include "msm_kms.h"
#include "dsi.h"
#define MSM_DISP_SNAPSHOT_MAX_BLKS 10 #define MSM_DISP_SNAPSHOT_MAX_BLKS 10
......
...@@ -130,9 +130,25 @@ void msm_disp_snapshot_capture_state(struct msm_disp_state *disp_state) ...@@ -130,9 +130,25 @@ void msm_disp_snapshot_capture_state(struct msm_disp_state *disp_state)
{ {
struct msm_drm_private *priv; struct msm_drm_private *priv;
struct drm_device *drm_dev; struct drm_device *drm_dev;
struct msm_kms *kms;
int i;
drm_dev = disp_state->drm_dev; drm_dev = disp_state->drm_dev;
priv = drm_dev->dev_private; priv = drm_dev->dev_private;
kms = priv->kms;
if (priv->dp)
msm_dp_snapshot(priv->dp);
for (i = 0; i < ARRAY_SIZE(priv->dsi); i++) {
if (!priv->dsi[i])
continue;
msm_dsi_snapshot(priv->dsi[i]);
}
if (kms->funcs->snapshot)
kms->funcs->snapshot(kms);
msm_disp_capture_atomic_state(disp_state); msm_disp_capture_atomic_state(disp_state);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment