mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-03-10 23:59:50 +00:00
545.23.06
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#ifndef __UVM_VA_POLICY_H__
|
||||
#define __UVM_VA_POLICY_H__
|
||||
|
||||
#include <linux/numa.h>
|
||||
#include "uvm_linux.h"
|
||||
#include "uvm_forward_decl.h"
|
||||
#include "uvm_processors.h"
|
||||
@@ -62,6 +63,18 @@ struct uvm_va_policy_struct
|
||||
// This is set to UVM_ID_INVALID if no preferred location is set.
|
||||
uvm_processor_id_t preferred_location;
|
||||
|
||||
// If the preferred location is the CPU, this is either the preferred NUMA
|
||||
// node ID or NUMA_NO_NODE to indicate that there is no preference among
|
||||
// nodes.
|
||||
// If preferred_location is a GPU, preferred_nid will be used if CPU
|
||||
// pages have to be allocated for any staging copies. Otherwise, it is
|
||||
// not used.
|
||||
//
|
||||
// TODO: Bug 4148100 - Preferred_location and preferred_nid should be
|
||||
// combined into a new type that combines the processor and NUMA node
|
||||
// ID.
|
||||
int preferred_nid;
|
||||
|
||||
// Mask of processors that are accessing this VA range and should have
|
||||
// their page tables updated to access the (possibly remote) pages.
|
||||
uvm_processor_mask_t accessed_by;
|
||||
|
||||
Reference in New Issue
Block a user