• Nitin Gupta's avatar
    sparc64: Fix numa distance values · 52708d69
    Nitin Gupta authored
    Orabug: 21896119
    
    Use machine descriptor (MD) to get node latency
    values instead of just using default values.
    
    Testing:
    On an T5-8 system with:
     - total nodes = 8
     - self latencies = 0x26d18
     - latency to other nodes = 0x3a598
       => latency ratio = ~1.5
    
    output of numactl --hardware
    
     - before fix:
    
    node distances:
    node   0   1   2   3   4   5   6   7
      0:  10  20  20  20  20  20  20  20
      1:  20  10  20  20  20  20  20  20
      2:  20  20  10  20  20  20  20  20
      3:  20  20  20  10  20  20  20  20
      4:  20  20  20  20  10  20  20  20
      5:  20  20  20  20  20  10  20  20
      6:  20  20  20  20  20  20  10  20
      7:  20  20  20  20  20  20  20  10
    
     - after fix:
    
    node distances:
    node   0   1   2   3   4   5   6   7
      0:  10  15  15  15  15  15  15  15
      1:  15  10  15  15  15  15  15  15
      2:  15  15  10  15  15  15  15  15
      3:  15  15  15  10  15  15  15  15
      4:  15  15  15  15  10  15  15  15
      5:  15  15  15  15  15  10  15  15
      6:  15  15  15  15  15  15  10  15
      7:  15  15  15  15  15  15  15  10
    Signed-off-by: default avatarNitin Gupta <nitin.m.gupta@oracle.com>
    Reviewed-by: default avatarChris Hyser <chris.hyser@oracle.com>
    Reviewed-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    52708d69
init_64.c 71 KB