mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 09:20:13 -04:00
drm/amd/display: Add MCIF ARB programming structures
[WHY&HOW] Adds required structures to configure MCIF ARB for DWB. Signed-off-by: Dillon Varone <Dillon.Varone@amd.com> Reviewed-by: Wayne Lin <Wayne.Lin@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
17ba75a0db
commit
68e188d91a
@@ -153,6 +153,13 @@ struct dml2_dchub_per_pipe_register_set {
|
||||
uint32_t det_size;
|
||||
};
|
||||
|
||||
struct dml2_mcif_per_pipe_register_set {
|
||||
unsigned int time_per_pixel; // U6.6 format
|
||||
unsigned int arbitration_slice;
|
||||
unsigned int slice_lines;
|
||||
unsigned int max_scaled_time_ns;
|
||||
};
|
||||
|
||||
struct dml2_dchub_watermark_regs {
|
||||
/* watermarks */
|
||||
uint32_t urgent;
|
||||
@@ -188,4 +195,17 @@ struct dml2_dchub_global_register_set {
|
||||
unsigned int num_watermark_sets;
|
||||
};
|
||||
|
||||
struct dml2_mcif_watermark_regs {
|
||||
/* watermarks */
|
||||
uint32_t urgent; /* (CLI) */
|
||||
uint32_t uclk_pstate;
|
||||
uint32_t fclk_pstate;
|
||||
uint32_t temp_read_or_ppt;
|
||||
};
|
||||
|
||||
struct dml2_mcif_global_register_set {
|
||||
struct dml2_mcif_watermark_regs wm_regs[DML2_DCHUB_WATERMARK_SET_NUM];
|
||||
unsigned int num_watermark_sets;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -436,12 +436,14 @@ struct dml2_display_cfg_programming {
|
||||
} z8_stutter;
|
||||
|
||||
struct dml2_dchub_global_register_set global_regs;
|
||||
struct dml2_mcif_global_register_set mcif_global_regs;
|
||||
|
||||
struct dml2_per_plane_programming plane_programming[DML2_MAX_PLANES];
|
||||
struct dml2_per_stream_programming stream_programming[DML2_MAX_PLANES];
|
||||
|
||||
// Don't access this structure directly, access it through plane_programming.pipe_regs
|
||||
struct dml2_dchub_per_pipe_register_set pipe_regs[DML2_MAX_PLANES];
|
||||
struct dml2_mcif_per_pipe_register_set mcif_regs[DML2_MAX_WRITEBACK];
|
||||
|
||||
struct {
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user