Fix dgpu_vm_limit

Break from the for-loop once dgpu VM range is found, otherwise the
length is reduced by half

Change-Id: Ie602054c16ea69ea1cbb75e804ead551bc3615c0
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>


[ROCm/ROCR-Runtime commit: 5a55383baf]
이 커밋은 다음에 포함됨:
Harish Kasiviswanathan
2015-11-23 11:49:11 -05:00
부모 4c84c85252
커밋 87ddd7732e
+3 -1
파일 보기
@@ -1441,8 +1441,10 @@ static HSAKMT_STATUS dgpu_mem_init(uint32_t gpu_mem_id, void **base, void **limi
(HSAint64)ret_addr) >> 30));
munmap(ret_addr, len);
continue;
} else
} else {
found = true;
break;
}
}
if (!found) {