• Sanath S's avatar
    thunderbolt: Reset topology created by the boot firmware · 59a54c5f
    Sanath S authored
    Boot firmware (typically BIOS) might have created tunnels of its own.
    The tunnel configuration that it does might be sub-optimal. For instance
    it may only support HBR2 monitors so the DisplayPort tunnels it created
    may limit Linux graphics drivers. In addition there is an issue on some
    AMD based systems where the BIOS does not allocate enough PCIe resources
    for future topology extension. By resetting the USB4 topology the PCIe
    links will be reset as well allowing Linux to re-allocate.
    
    This aligns the behavior with Windows Connection Manager.
    
    We already issued host router reset for USB4 v2 routers, now extend it
    to USB4 v1 routers as well. For pre-USB4 (that's Apple systems) we leave
    it as is and continue to discover the existing tunnels.
    Suggested-by: default avatarMario Limonciello <mario.limonciello@amd.com>
    Signed-off-by: default avatarSanath S <Sanath.S@amd.com>
    Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
    59a54c5f
icm.c 64.4 KB