]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: get bus from VMD driver directory
authorMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Thu, 8 Aug 2024 11:07:50 +0000 (13:07 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Fri, 30 Aug 2024 09:08:42 +0000 (11:08 +0200)
commit6e793aeace463d7687656f7ac6968300ba106228
tree64ce13c3a60e0d7b03427707a81c565c5c011854
parent91845dab52c3f9ab56710338c0c38e9c1473df1d
imsm: get bus from VMD driver directory

Enumeration of VMD child devices is started early, kernel is not waiting
for VMD enumeration to finish. It causes that:
/sys/bus/pci/drivers/vmd/{dev}/domain/device link might be not yet ready.

With PCI gen5 devices we can observe that mdadm is failing to start IMSM
raid arrays because of that. In that case, it needs to find bus path
manually.

Look for bus device in VMD driver directory if realpath() failed with
ENOENT.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
platform-intel.c