• Dan Williams's avatar
    device-dax: Add a 'target_node' attribute · 21c75763
    Dan Williams authored
    The target-node attribute is the Linux numa-node that a device-dax
    instance may create when it is online. Prior to being online the
    device's 'numa_node' property reflects the closest online cpu node which
    is the typical expectation of a device 'numa_node'. Once it is online it
    becomes its own distinct numa node, i.e. 'target_node'.
    
    Export the 'target_node' property to give userspace tooling the ability
    to predict the effective numa-node from a device-dax instance configured
    to provide 'System RAM' capacity.
    
    Cc: Vishal Verma <vishal.l.verma@intel.com>
    Reported-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    21c75763
bus.c 11.5 KB