Displaying 1 result from an estimated 1 matches for "vm_manag".
Did you mean:
vm_manager
2024 Aug 30
1
[PATCH -next 2/3] drm/amdgpu: use clamp() in amdgpu_vm_adjust_size()
...phys_ram_gb = ((uint64_t)si.totalram * si.mem_unit +
> (1 << 30) - 1) >> 30;
> vm_size = roundup_pow_of_two(
> - min(max(phys_ram_gb * 3, min_vm_size), max_size));
> + clamp(phys_ram_gb * 3, min_vm_size, max_size));
> }
>
> adev->vm_manager.max_pfn = (uint64_t)vm_size << 18;