LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   lspci shows non-existent kernel module? Or does the config lie and the module is built-in? (https://www.linuxquestions.org/questions/linux-kernel-70/lspci-shows-non-existent-kernel-module-or-does-the-config-lie-and-the-module-is-built-in-4175688664/)

Nyyr 01-16-2021 04:23 AM

lspci shows non-existent kernel module? Or does the config lie and the module is built-in?
 
Hello,

I have MacBook Pro and to have facetimehd module working, bdc_pci module must not be loaded.
/boot/config-5.4.70-050470-generic shows that CONFIG_USB_BDC_PCI=m.
I deleted bdc_pci.ko file from /lib/modules/5.4.70-050470-generic/kernel/drivers/usb/gadget/udc/bdc/, rebuilt initramfs and rebooted.

Yet, lspci still shows

02:00.0 Multimedia controller [0480]: Broadcom Inc. and subsidiaries 720p FaceTime HD Camera [14e4:1570]
Subsystem: Broadcom Inc. and subsidiaries 720p FaceTime HD Camera [14e4:1570]
Kernel modules: bdc_pci


WTF?
Where does it come from?

berndbausch 01-16-2021 06:57 AM

The command modinfo bdc_pci | grep ^filename should tell you where it is from.

Nyyr 01-16-2021 02:47 PM

# modinfo bdc_pci
filename: /lib/modules/5.4.70-050470-generic/kernel/drivers/usb/gadget/udc/bdc/bdc_pci.ko
modinfo: ERROR: could not get modinfo from 'bdc_pci': No such file or directory

and yet

# lspci -knn | grep -A 1 -i facetime
02:00.0 Multimedia controller [0480]: Broadcom Inc. and subsidiaries 720p FaceTime HD Camera [14e4:1570]
Subsystem: Broadcom Inc. and subsidiaries 720p FaceTime HD Camera [14e4:1570]
Kernel modules: bdc_pci

Ser Olmy 01-16-2021 02:59 PM

lspci doesn't show you which module is loaded. It shows you which module the kernel will load, based on the PCI (or USB or whatever) ID of the device.

To see a list of modules that are actually loaded, use lsmod.

berndbausch 01-16-2021 05:12 PM

My guess is that bdc_pci has not been properly uninstalled and is still in /lib/modules/5.4.70-050470-generic/modules.dep.


All times are GMT -5. The time now is 09:10 PM.