• Jonathan Kim's avatar
    drm/amdkfd: add gpu compute cores io links for gfx9.4.3 · 92085240
    Jonathan Kim authored
    The PSP TA will only provide xGMI topology info for links between GPU
    sockets so links between partitions from different sockets will be
    hardcoded as 3 xGMI hops with 1 hops weighted as xGMI and 2 hops
    weighted with a new intra-socket weight to indicate the longest
    possible distance.
    
    If the link between a partition and the CPU is non-PCIe, then assume
    the CPU (CCDs) is located within the same socket as the partition
    and represent the link as an intra-socket weighted single hop XGMI link
    with memory bandwidth.
    
    Links between partitions within a single socket will be abstracted as
    single hop xGMI links weighted with the new intra-socket weight and
    will have memory bandwidth.
    
    Finally, use the unused function bits in the location ID to represent the
    coordinates of the compute partition within its socket.
    
    A follow on patch will resolve the requirement for GPU socket xGMI
    link representation sometime later.
    Signed-off-by: default avatarJonathan Kim <jonathan.kim@amd.com>
    Reviewed-by: default avatarFelix Kuehling <felix.kuehling@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    92085240
kfd_topology.c 63.2 KB