mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-21 15:33:58 +00:00
575.51.02
This commit is contained in:
@@ -364,7 +364,14 @@ NV_STATUS uvm_api_set_preferred_location(const UVM_SET_PREFERRED_LOCATION_PARAMS
|
||||
if (status != NV_OK)
|
||||
goto done;
|
||||
|
||||
preferred_location_id = gpu->id;
|
||||
// Setting an integrated GPU as the preferred location is equivalant to
|
||||
// the preferred location being the iGPU's nearest NUMA node.
|
||||
if (gpu->parent->is_integrated_gpu) {
|
||||
preferred_location_id = UVM_ID_CPU;
|
||||
preferred_cpu_nid = gpu->parent->closest_cpu_numa_node;
|
||||
} else {
|
||||
preferred_location_id = gpu->id;
|
||||
}
|
||||
}
|
||||
|
||||
UVM_ASSERT(status == NV_OK);
|
||||
@@ -861,6 +868,12 @@ static NV_STATUS read_duplication_set(uvm_va_space_t *va_space, NvU64 base, NvU6
|
||||
goto done;
|
||||
}
|
||||
|
||||
// An integrated GPU has no vidmem to make a duplicate
|
||||
if (uvm_va_space_has_integrated_gpu(va_space)) {
|
||||
status = NV_OK;
|
||||
goto done;
|
||||
}
|
||||
|
||||
// Note that we never set the policy back to UNSET
|
||||
new_policy = enable ? UVM_READ_DUPLICATION_ENABLED : UVM_READ_DUPLICATION_DISABLED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user