drm/amd/display: Add z-state support policy for dcn35
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 3 Nov 2023 14:01:01 +0000 (10:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Nov 2023 21:24:36 +0000 (16:24 -0500)
commit3f3b08be58834339b00f28d19c20d684cdec704f
tree311fa6926a8ff8355e179c911f7eccad6f4e6a87
parent1c22d6ce53280763bcb4cb24d4f71111fff4a526
drm/amd/display: Add z-state support policy for dcn35

[Why]
DML2 means that the dcn3x policy for calculating z-state support
no longer runs from validate_bandwidth.

This means we are unconditionally allowing Z8, the hardware default.

[How]
Port the policy over to DCN35, but with a few modifications:
- Don't use min_dst_y_next_start as a check for Z8/Z10 allow
- Add support for overriding the Z10 stutter period per ASIC
- Cleanup the code to make the policy assignment more clear

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.h
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c