mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
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:
parent
bff8aa647c
commit
4e7398e3a8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue