disp: msm: sde: frame data feature

Add support to send a data packet of info, written to
predefined buffers, providing information about each submitted frame.
Add required UAPI definitions for frame data buffers and event
notification.
Add support to read ubwc statistics from hw, based on defined rois.

Change-Id: I51f279de98ae4e2a02b0df6943d334764011d5db
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
This commit is contained in:
Nilaan Gunabalachandran
2020-08-10 11:59:27 -04:00
父節點 9f954a19ff
當前提交 c5835a215e
共有 10 個文件被更改,包括 483 次插入118 次删除

查看文件

@@ -596,28 +596,52 @@ struct sde_hw_sspp_ops {
* @ctx: Pointer to pipe context
* @multirect_index: rec in use
*/
void (*clear_meta_error)(struct sde_hw_pipe *ctx, uint32_t multirect_index);
void (*clear_meta_error)(struct sde_hw_pipe *ctx,
enum sde_sspp_multirect_index multirect_index);
/**
* get_meta_error - get the meta error-code
* @ctx: Pointer to pipe context
* @multirect_index: rec in use
*/
u32 (*get_meta_error)(struct sde_hw_pipe *ctx, uint32_t multirect_index);
u32 (*get_meta_error)(struct sde_hw_pipe *ctx,
enum sde_sspp_multirect_index multirect_index);
/**
* clear_ubwc_error - clear the ubwc error-code registers
* @ctx: Pointer to pipe context
* @multirect_index: rec in use
*/
void (*clear_ubwc_error)(struct sde_hw_pipe *ctx, uint32_t multirect_index);
void (*clear_ubwc_error)(struct sde_hw_pipe *ctx,
enum sde_sspp_multirect_index multirect_index);
/**
* get_ubwc_error - get the ubwc error-code
* @ctx: Pointer to pipe context
* @multirect_index: rec in use
*/
u32 (*get_ubwc_error)(struct sde_hw_pipe *ctx, uint32_t multirect_index);
u32 (*get_ubwc_error)(struct sde_hw_pipe *ctx,
enum sde_sspp_multirect_index multirect_index);
/**
* get_ubwc_stats_data - get ubwc stats data
* @ctx: Pointer to pipe context
* @multirect_index: rec in use
* @data: Pointer to ubwc data to populate
*/
void (*get_ubwc_stats_data)(struct sde_hw_pipe *ctx,
enum sde_sspp_multirect_index multirect_index,
struct sde_drm_ubwc_stats_data *data);
/**
* set_ubwc_stats_roi - set ubwc stats roi
* @ctx: Pointer to pipe context
* @multirect_index: rec in use
* @roi: roi to be programmed
*/
void (*set_ubwc_stats_roi)(struct sde_hw_pipe *ctx,
enum sde_sspp_multirect_index multirect_index,
struct sde_drm_ubwc_stats_roi *roi);
/**
* setup_fp16_csc - set FP16 CSC cp block