Amd rx580 egpu pcie link speed

Hello there,
I have a egpu case Razer Chroma Core X that I previously used with GTX970 and then switched to RX580.
It is connected to a thinkpad t480s, which comes with pcie gen3 x2 lanes. However, if I run:
sudo lspci -s 09:00.0 -vv | grep -E -i ‘gt/s’
the output is:
LnkCap: Port #0, Speed 8GT/s, Width x16, ASPM L1, Exit Latency L1 <1us
LnkSta: Speed 2.5GT/s (downgraded), Width x4 (downgraded)
LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-

implying that it runs at gen1 speeds.

I have dracut conf file with
add_drivers+=" amdgpu "
kernel_cmdline=" amdgpu.pcie_gen_cap=0x0040000", and also the modprobe conf file:
options amdgpu pcie_gen_cap=0x40000 in it.

checking module parameters shows that it did load (but converts from hex to decimal somehow?)
Parameter: pcie_gen2 → -1
Parameter: pcie_gen_cap → 262144
Parameter: pcie_lane_cap → 0

Are there more ideas where I can look to check the connection speed/force gen3 pcie link speed?

https://wiki.archlinux.org/title/External_GPU#

Unfortunately this does not work, they mention that sometimes amdgpu driver incorrently sets the pcie gen cap, and suggest to put amdgpu.pcie_gen_cap=0x0040000 module/kernel parameter. I did this, however the link is still at 2.5GT/s (pcie 1 gen).
I use wayland, not X11 if it matters.