]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:29 +0000 (12:00 +0200)
commit54877301a7551fa11e837a45c24a86f367537a6c
tree183b41b62099855a04aed6227f2babc28a23491c
parent3929e382e4758aff42da0102a60d13337c99d3b8
drm/amd/display: Use gpuvm_min_page_size_kbytes for DML2 surfaces

[ Upstream commit 31663521ede2edb622ee1b397ae3ac666d6351c5 ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c