I had a very similar issue on a Thinkpad T480s with a Lenovo Thunderbolt 3 docking station, 24GB of RAM. I did not test if removing RAM fixes the issue.
When it happened I had these same dmesg messages: [ 151.538361] pciehp 0000:02:01.0:pcie204: Slot(1): Link Down [ 151.538370] pciehp 0000:02:01.0:pcie204: Slot(1): Card not present [ 151.538400] pcieport 0000:05:04.0: Refused to change power state, currently in D3 [ 151.539915] pcieport 0000:05:03.0: Refused to change power state, currently in D3 Etc. However in my case it was resolved by upgrading the laptop's firmware and changing the Thunderbolt Bios Assist setting to "Enabled". Be careful though, changing this setting is known to brick some Lenovo laptops: https://www.reddit.com/r/thinkpad/comments/9qreoj/psa_do_not_enable_bios_support_for_thunderbolt/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1827042 Title: ThunderBolt "flaps" on laptop with 32G RAM To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-signed-hwe/+bug/1827042/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs