mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-03-12 16:49:50 +00:00
520.61.05
This commit is contained in:
@@ -35,15 +35,9 @@
|
||||
#include "uvm_va_space.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// The page tree has 5 levels on Pascal, and the root is never freed by a normal
|
||||
// 'put' operation which leaves a maximum of 4 levels
|
||||
#define MAX_OPERATION_DEPTH 4
|
||||
|
||||
// The page tree has 6 levels on Hopper+ GPUs, and the root is never freed by a
|
||||
// normal 'put' operation which leaves a maximum of 5 levels.
|
||||
#define MAX_OPERATION_DEPTH 5
|
||||
|
||||
// Wrappers for push begin handling channel_manager not being there when running
|
||||
// the page tree unit test
|
||||
@@ -720,11 +714,7 @@ error:
|
||||
// default | vidmem || vidmem | false
|
||||
// default | sysmem || sysmem | false
|
||||
//
|
||||
|
||||
|
||||
|
||||
// (1) The fallback to sysmem is always enabled.
|
||||
|
||||
// (1) When SEV mode is enabled, the fallback path is disabled.
|
||||
//
|
||||
// In SR-IOV heavy the the page tree must be in vidmem, to prevent guest drivers
|
||||
// from updating GPU page tables without hypervisor knowledge.
|
||||
@@ -753,12 +743,8 @@ static void page_tree_set_location(uvm_page_tree_t *tree, uvm_aperture_t locatio
|
||||
if (page_table_aperture == UVM_APERTURE_DEFAULT) {
|
||||
tree->location = UVM_APERTURE_VID;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
tree->location_sys_fallback = true;
|
||||
|
||||
// See the comment (1) above.
|
||||
tree->location_sys_fallback = !g_uvm_global.sev_enabled;
|
||||
}
|
||||
else {
|
||||
tree->location = page_table_aperture;
|
||||
@@ -1803,11 +1789,7 @@ static void destroy_identity_mapping(uvm_gpu_identity_mapping_t *mapping)
|
||||
|
||||
bool uvm_mmu_gpu_needs_static_vidmem_mapping(uvm_gpu_t *gpu)
|
||||
{
|
||||
|
||||
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
bool uvm_mmu_gpu_needs_dynamic_vidmem_mapping(uvm_gpu_t *gpu)
|
||||
|
||||
Reference in New Issue
Block a user