]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amd/display: Use gpuvm_min_page_size_kbytes for DML2 surfaces
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 18 Jul 2024 15:53:31 +0000 (11:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 27 Jul 2024 21:35:49 +0000 (17:35 -0400)
commit31663521ede2edb622ee1b397ae3ac666d6351c5
treea12cb20c2e281ece03096df6341f83942d12befc
parent4067f4fa0423a89fb19a30b57231b384d77d2610
drm/amd/display: Use gpuvm_min_page_size_kbytes for DML2 surfaces

[Why]
It's currently hard coded to 256 when it should be using the SOC
provided values. This can result in corruption with linear surfaces
where we prefetch more PTE than the buffer can hold.

[How]
Update the min page size correctly for the plane.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Jun Lei <jun.lei@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c