Messages in this thread | | | Date | Thu, 9 Sep 2021 15:56:06 +0300 | From | Vladimir Oltean <> | Subject | Re: [PATCH 0/3] Fix for KSZ DSA switch shutdown |
| |
On Thu, Sep 09, 2021 at 02:42:48PM +0300, Vladimir Oltean wrote: > I feel that something is missing in your system. Is the device link > created? Is it deleted before going into effect on shutdown?
So in case my questions were confusing, you can check the presence of the device links via sysfs.
On my board, eno2 is the top-level DSA master, there is a switch which is PCIe PF 0000:00:00.5 which is its consumer:
ls -la /sys/class/net/eno2/device/consumer\:pci\:0000\:00\:00.5 lrwxrwxrwx 1 root root 0 Jan 1 00:00 /sys/class/net/eno2/device/consumer:pci:0000:00:00.5 -> ../../../../../virtual/devlink/pci:0000:00:00.2--pci:0000:00:00.5
In turn, that switch is a DSA master on two ports for SPI-attached switches:
ls -la /sys/class/net/swp0/device/consumer\:spi\:spi2.* lrwxrwxrwx 1 root root 0 Jan 1 00:04 /sys/class/net/swp0/device/consumer:spi:spi2.0 -> ../../../../../virtual/devlink/pci:0000:00:00.5--spi:spi2.0 lrwxrwxrwx 1 root root 0 Jan 1 00:04 /sys/class/net/swp0/device/consumer:spi:spi2.1 -> ../../../../../virtual/devlink/pci:0000:00:00.5--spi:spi2.1
Do you see similar things on your 5.10 kernel?
Please note that I don't think that particular patch with device links was backported to v5.10, at least I don't see it when I run:
git tag --contains 07b90056cb15f
So how did it reach your tree?
| |