mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-19 14:39:57 +00:00
575.51.02
This commit is contained in:
@@ -413,6 +413,9 @@ static NV_STATUS test_all(uvm_va_space_t *va_space)
|
||||
for_each_va_space_gpu(gpu, va_space) {
|
||||
NvU64 page_sizes = gpu->address_space_tree.hal->page_sizes();
|
||||
|
||||
if (gpu->mem_info.size == 0)
|
||||
continue;
|
||||
|
||||
UVM_ASSERT(max_supported_page_sizes >= hweight_long(page_sizes));
|
||||
|
||||
status = test_alloc_vidmem(gpu, UVM_PAGE_SIZE_DEFAULT, sizes[i], &mem);
|
||||
@@ -437,7 +440,9 @@ static NV_STATUS test_all(uvm_va_space_t *va_space)
|
||||
all_mem[current_alloc++] = mem;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
for_each_va_space_gpu(gpu, va_space) {
|
||||
status = test_alloc_sysmem_dma(va_space, gpu, sizes[i], &mem);
|
||||
if (status != NV_OK) {
|
||||
UVM_TEST_PRINT("Test alloc sysmem DMA failed, size %zd GPU %s\n",
|
||||
@@ -467,6 +472,9 @@ static NV_STATUS test_basic_vidmem(uvm_gpu_t *gpu)
|
||||
NvU64 smallest_page_size = page_sizes & ~(page_sizes - 1);
|
||||
uvm_mem_t *mem = NULL;
|
||||
|
||||
if (gpu->mem_info.size == 0)
|
||||
return NV_OK;
|
||||
|
||||
page_sizes &= UVM_CHUNK_SIZES_MASK;
|
||||
for_each_page_size(page_size, page_sizes) {
|
||||
TEST_CHECK_GOTO(uvm_mem_alloc_vidmem(page_size - 1, gpu, &mem) == NV_OK, done);
|
||||
|
||||
Reference in New Issue
Block a user