Score:0

Is there a way to configure the LnkSta of my PCI connection?

na flag

I have a PCIe connection with Generation 3 and 4 lanes, as can be seen from lspci -vvv | egrep 'LnkSta|LnkCap:

        LnkCap: Port #0, Speed 8GT/s, Width x4, ASPM L0s L1, Exit Latency L0s <1us, L1 <2us
        LnkSta: Speed 8GT/s (ok), Width x4 (ok)
        LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete+, EqualizationPhase1+

I want to configure it to Gen2 (speed=5) and then to Gen1 (speed=2.5), and also change the lanes to 2 and 1.

I checked the setpci man but I don't see how to actually find the right configuration parameters to change what I want...

I also found this script that does some configuration, but couldn't make it work.

I'm using Ubuntu20, kernel 5.4.0-42-generic

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.