]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
drm/amd/display: Fix HostVMMinPageSize unit mismatch in DML2.1
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 24 Mar 2026 18:28:12 +0000 (14:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 19:21:12 +0000 (15:21 -0400)
commit5721b5b9c9c792233d7817239bd81925fb3ad9d1
tree0472b3815affc505805cb45dc8ebaf0ef27c9d47
parent8dc88c6a5948c9565f4901f2a62c74306a8eda8d
drm/amd/display: Fix HostVMMinPageSize unit mismatch in DML2.1

[Why]
This was found back on DML2 but was missed when creating DML2.1.

The bottom layer calculation (CalculateHostVMDynamicLevels) expects
a value in bytes, not KB, but we pass in the value in KB (eg. 4).

This causes an extra page table level to be required in the prefetch
bytes which can be significant overhead - preventing some modes
from being supported that should otherwise be.

[How]
Correct the units by multiplying the input and override values by 1024.

Reviewed-by: Austin Zheng <austin.zheng@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Roman Li <roman.li@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.c