display: Start scanning for fb IOVA at vm-base

Required for M2 devices as the M2 Mac mini.

Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau 2023-01-26 11:44:02 +01:00 committed by Hector Martin
parent bff8aa647c
commit 4e7398e3a8

View file

@ -118,7 +118,8 @@ static uintptr_t display_map_fb(uintptr_t iova, u64 paddr, u64 size)
u64 iova_disp0 = 0;
u64 iova_dcp = 0;
iova_dcp = dart_find_iova(dcp->dart_dcp, iova_dcp, size);
// start scanning for free iova space on vm-base
iova_dcp = dart_find_iova(dcp->dart_dcp, dart_vm_base(dcp->dart_dcp), size);
if (DART_IS_ERR(iova_dcp)) {
printf("display: failed to find IOVA for fb of %06zx bytes (dcp)\n", size);
return iova_dcp;