disp: msm: sde: add custom event to notify OPR, MISR value change

This change collects the OPR, MISR values. If the values are
different than the previous then notify to client with custom event.

Change-Id: I2546439be1f665d90e6505d65283d28096bf7cdd
Signed-off-by: Akshay Ashtunkar <quic_akshayaa@quicinc.com>
This commit is contained in:
Akshay Ashtunkar
2022-02-28 16:18:41 +05:30
parent 0384633caf
commit 9423445a34
14 ha cambiato i file con 328 aggiunte e 7 eliminazioni

Vedi File

@@ -482,6 +482,18 @@ struct sde_connector_dyn_hdr_metadata {
bool dynamic_hdr_update;
};
/**
* struct sde_misr_sign - defines sde misr signature structure
* @num_valid_misr : count of valid misr signature
* @roi_list : list of roi
* @misr_sign_value : list of misr signature
*/
struct sde_misr_sign {
atomic64_t num_valid_misr;
struct msm_roi_list roi_list;
u64 misr_sign_value[MAX_DSI_DISPLAYS];
};
/**
* struct sde_connector - local sde connector structure
* @base: Base drm connector structure
@@ -541,6 +553,8 @@ struct sde_connector_dyn_hdr_metadata {
* @cmd_rx_buf: the return buffer of response of command transfer
* @rx_len: the length of dcs command received buffer
* @cached_edid: cached edid data for the connector
* @misr_event_notify_enabled: Flag to indicate if misr event notify is enabled or not
* @previous_misr_sign: store previous misr signature
*/
struct sde_connector {
struct drm_connector base;
@@ -616,6 +630,8 @@ struct sde_connector {
int rx_len;
struct edid *cached_edid;
bool misr_event_notify_enabled;
struct sde_misr_sign previous_misr_sign;
};
/**