]> git.dujemihanovic.xyz Git - linux.git/commit
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 22:52:00 +0000 (17:52 -0500)
commitc95f12b7b724abee5e8c3727db066c63c0876db3
tree25ba653ac6cd7d34803902ce7512e529b391916c
parent3c9ea68cb61bd7e5bd312c06a12adada74ff5805
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/dcn35/dcn35_resource.c
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn35/dcn35_fpu.h