1. Example log for AM69 PCIe0 instance, where connection to external clock generator for Refclk is disconnected intentionally on SK board to create strange clock configuration, and no device is connected. root@am69a-sk:~# ./poll_ltssm_for_change.sh ############################################################ Using default register address 0x02907014 for PCIe0 instance. DISCLAIMER: Bash script is not fast enough to poll all state changes. There will be some LTSSM states such as Configuration states that rarely get printed out, because the state change is too quick. Input PCIE_CORE_USER_CFG_USER_CFG_linkstatus register address if wanting to use different PCIe instance. Example for PCIe1 for TDA4VH: ./poll_ltssm_for_change.sh 0x02917014 0x02927014 is PCIe2, and 0x02937014 is for PCIe3 instance. ############################################################ Value:0x0 State:Detect.Quiet Value:0x1 State:Detect.Active Value:0x0 State:Detect.Quiet Value:0x1 State:Detect.Active Value:0x0 State:Detect.Quiet Value:0x1 State:Detect.Active Value:0x0 State:Detect.Quiet Value:0x1 State:Detect.Active Value:0x0 State:Detect.Quiet Value:0x1 State:Detect.Active Value:0x0 State:Detect.Quiet Value:0x1 State:Detect.Active Value:0x0 State:Detect.Quiet Value:0x1 State:Detect.Active Value:0x0 State:Detect.Quiet ^C 2. Example log for AM69 PCIe3 instance, with no board changes, and no device connected. root@am69a-sk:~# ./poll_ltssm_for_change.sh 0x02937014 Value:0x1 State:Detect.Active ^C 3. Example log for AM69 PCIe3 instance, with no board changes, and device is connected. Script is ran after device is connected and initialized. root@am69a-sk:~# ./poll_ltssm_for_change.sh 0x02937014 Value:0x10 State:L0 ^C root@am69a-sk:~# 4. Example log for AM69 PCIe3 instance, with no board changes, and device is disconnected while script is running. root@am69a-sk:~# ./poll_ltssm_for_change.sh 0x02937014 Value:0x10 State:L0 Value:0xb State:Recovery.RcvrLock Value:0x1 State:Detect.Active ^C