diff options
| author | Wenjing Liu <wenjing.liu@amd.com> | 2023-08-15 00:00:22 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2023-08-30 22:36:32 +0300 |
| commit | d8bafc2b1eeae78317d37b3440d1022977e9b28c (patch) | |
| tree | c24592bb964e0f885e2af7dff380b66f4da82877 /drivers/gpu/drm/amd/display/dc/inc/resource.h | |
| parent | 39d39a0196574cc48186000088263807a7004b22 (diff) | |
| download | linux-d8bafc2b1eeae78317d37b3440d1022977e9b28c.tar.xz | |
drm/amd/display: add pipe topology update log
Given an issue with pipe topology transition. It is very hard to tell
the before and after pipe topology without a pipe topology logging. The
change adds such logging to help with visualizing the issue.
Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/resource.h')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/inc/resource.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/resource.h b/drivers/gpu/drm/amd/display/dc/inc/resource.h index 55efd5600521..6777b07d0727 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/resource.h +++ b/drivers/gpu/drm/amd/display/dc/inc/resource.h @@ -437,6 +437,13 @@ int resource_get_odm_slice_count(const struct pipe_ctx *otg_master); /* Get the ODM slice index counting from 0 from left most slice */ int resource_get_odm_slice_index(const struct pipe_ctx *opp_head); +/* determine if pipe topology is changed between state a and state b */ +bool resource_is_pipe_topology_changed(const struct dc_state *state_a, + const struct dc_state *state_b); + +/* log the pipe topology update in state */ +void resource_log_pipe_topology_update(struct dc *dc, struct dc_state *state); + /* * Look for a free pipe in new resource context that is used as a secondary OPP * head by cur_otg_master. |
