disp: msm: sde: add multirect error status for ubwc and meta
This change adds support for error checking ubwc and meta error status based off whether REC0 or RECT1 is used. Change-Id: I7c39755da99a9d6c0d02b4ef16fa93b8ec7458a9 Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
@@ -2279,7 +2279,7 @@ static void sde_crtc_frame_event_cb(void *data, u32 event)
|
||||
struct sde_crtc_frame_event *fevent;
|
||||
struct sde_kms_frame_event_cb_data *cb_data;
|
||||
struct drm_plane *plane;
|
||||
u32 ubwc_error;
|
||||
u32 ubwc_error, meta_error;
|
||||
unsigned long flags;
|
||||
u32 crtc_id;
|
||||
|
||||
@@ -2322,13 +2322,14 @@ static void sde_crtc_frame_event_cb(void *data, u32 event)
|
||||
drm_for_each_plane_mask(plane, crtc->dev,
|
||||
sde_crtc->plane_mask_old) {
|
||||
ubwc_error = sde_plane_get_ubwc_error(plane);
|
||||
if (ubwc_error) {
|
||||
SDE_EVT32(DRMID(crtc), DRMID(plane),
|
||||
ubwc_error, SDE_EVTLOG_ERROR);
|
||||
SDE_DEBUG("crtc%d plane %d ubwc_error %d\n",
|
||||
DRMID(crtc), DRMID(plane),
|
||||
ubwc_error);
|
||||
meta_error = sde_plane_get_meta_error(plane);
|
||||
if (ubwc_error | meta_error) {
|
||||
SDE_EVT32(DRMID(crtc), DRMID(plane), ubwc_error,
|
||||
meta_error, SDE_EVTLOG_ERROR);
|
||||
SDE_DEBUG("crtc%d plane %d ubwc_error %d meta_error %d\n",
|
||||
DRMID(crtc), DRMID(plane), ubwc_error, meta_error);
|
||||
sde_plane_clear_ubwc_error(plane);
|
||||
sde_plane_clear_meta_error(plane);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user