mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Use only standard size defines
SZ_4G is not defined in mainline Linux. Use SZ_1G*4 instead. Change-Id: I6d226d49da59e4e7b47ccef364b03b82c5758f57 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1612648 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4544a50b7d
commit
7f0aa103ea
@@ -437,7 +437,7 @@ static int __nvgpu_vm_init(struct mm_gk20a *mm,
|
||||
* distinguish channel address spaces from other address spaces is by
|
||||
* size - if the address space is 4GB or less, it's not a channel.
|
||||
*/
|
||||
if (vm->va_limit > SZ_4G) {
|
||||
if (vm->va_limit > 4ULL * SZ_1G) {
|
||||
err = nvgpu_init_sema_pool(vm);
|
||||
if (err)
|
||||
goto clean_up_allocators;
|
||||
|
||||
Reference in New Issue
Block a user