• KAMEZAWA Hiroyuki's avatar
    cpu to node relationship fixup: acpi_map_cpu2node · b1fc5287
    KAMEZAWA Hiroyuki authored
    Problem description:
    
      We have additional_cpus= option for allocating possible_cpus.  But nid
      for possible cpus are not fixed at boot time.  cpus which is offlined at
      boot or cpus which is not on SRAT is not tied to its node.  This will
      cause panic at cpu onlining.
    
    Usually, pxm_to_nid() mapping is fixed at boot time by SRAT.
    
    But, unfortunately, some system (my system!) do not include
    full SRAT table for possible cpus.  (Then, I use
    additiona_cpus= option.)
    
    For such possible cpus, pxm<->nid should be fixed at
    hot-add.  We now have acpi_map_pxm_to_node() which is also
    used at boot.  It's suitable here.
    Signed-off-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Cc: Tony Luck <tony.luck@intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    b1fc5287
acpi.c 24.5 KB