On Tue, Mar 26, 2013 at 7:35 PM, Bjorn Helgaas <bhelgaas@xxxxxxxxxx> wrote: > On Tue, Mar 26, 2013 at 3:31 PM, Samuli Suominen <ssuominen@xxxxxxxxxx> wrote: >> The depmod from kmod no longer generates file modules.pcimap, and lspci -k >> relies on that as noted at: >> >> https://bugs.gentoo.org/show_bug.cgi?id=462982 >> >> null pciutils-3.1.10 # grep -r modules.*map * >> ls-kernel.c: sprintf(name, "/lib/modules/%s/modules.pcimap", >> uts.release); >> lspci.c:char *opt_pcimap; /* Override path to Linux >> modules.pcimap */ >> lspci.c:"-p <file>\tLook up kernel modules in a given file instead of >> default modules.pcimap\n" >> lspci.man:.RI /lib/modules/ kernel_version /modules.pcimap. > > I don't think this is a kernel problem, and I don't know where to > point you. Maybe Lucas or Kay will know? I don't see why modules.{pci,usb}map are needed here. Could we change lspci to do the equivalent to the following instead (either by calling modprobe or using libkmod)? for i in /sys/bus/pci/*/modalias; do modprobe -R `cat $i` done Kay, am I missing anything? Lucas De Marchi -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html