mirror_ubuntu-kernels/drivers/gpu/drm/amd
Wenjing Liu 0f3b9542c9 drm/amd/display: Refactor recout calculation with a more generic formula
[Why]
Current recout calculation has a few assumptions and implementation
for MPO + ODM combine calculation is very specific. The equation has
too many cases without enough comments to document the detail.

[How]
The change remove the following assumptions:
1. When MPO is enabled, we only allow ODM Combine 2:1
2. ODM Combine always has even segment width.
3. Secondary MPO plane's pipe_ctx copies pre_odm_pipe from
its top pipe.

The change applies a generic formula with more details in comment to
document this solution so it is eaiser to learn and debug later.

Reviewed-by: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-07-25 13:40:08 -04:00
..
acp
amdgpu drm/amdgpu: Update ring scheduler info as needed 2023-07-25 13:39:29 -04:00
amdkfd drm/amdkfd: enable cooperative groups for gfx11 2023-07-25 13:35:43 -04:00
amdxcp drm/amdxcp: fix Makefile to build amdxcp module 2023-06-09 12:32:53 -04:00
display drm/amd/display: Refactor recout calculation with a more generic formula 2023-07-25 13:40:08 -04:00
include drm/amdkfd: enable cooperative groups for gfx11 2023-07-25 13:35:43 -04:00
pm drm/amd/smu: use AverageGfxclkFrequency* to replace previous GFX Curr Clock 2023-07-25 13:34:55 -04:00