• Jonathan Kim's avatar
    drm/amdgpu: get extended xgmi topology data · 44357a1b
    Jonathan Kim authored
    The TA has a limit to the amount of data that can be retrieved from
    GET_TOPOLOGY.  For setups that exceed this limit, the xGMI topology
    needs to be re-initialized and data needs to be re-fetched from the
    extended link records by setting a flag in the shared command buffer.
    
    The number of hops and the number of links must be accumulated by the
    driver. Other data points are all fetched from the first request.
    Because the TA has already exceeded its link record limit, it
    cannot hold bidirectional information.  Otherwise the driver would
    have to do more than two fetches so the driver has to reflect the
    topology information in the opposite direction.
    
    v2: squashed with internal reviewed fix
    Signed-off-by: default avatarJonathan Kim <jonathan.kim@amd.com>
    Reviewed-by: default avatarHawking Zhang <hawking.zhang@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    44357a1b
amdgpu_xgmi.c 25.6 KB