Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Understand lspci's module output [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
CPUFan
n00b
n00b


Joined: 21 May 2015
Posts: 58

PostPosted: Sat Dec 23, 2017 11:54 am    Post subject: Understand lspci's module output [SOLVED] Reply with quote

Hello,


I'm in a Gentoo install and the Live CD's `lspci -k` shows many drivers. Some are like this:
Code:
Kernel driver in use: xhci_hcd

and some other also contain information about modules:
Code:
Kernel driver in use: i915
Kernel modules: i915

Does this mean that
  1. Any drivers of the first type have been compiled into the kernel (of the Live CD), while any drivers of the second type have been compiled as modules?
  2. I should add all these module drivers into my /etc/conf.d/modules ? For the Live CD, this is files is all commented out, so I wonder why the modules are still loaded there...


Many thanks for help,
Johannes


Last edited by CPUFan on Mon Dec 25, 2017 6:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2640

PostPosted: Sat Dec 23, 2017 12:29 pm    Post subject: Re: Understand lspci's module output Reply with quote

CPUFan wrote:
Does this mean that
  1. Any drivers of the first type have been compiled into the kernel (of the Live CD), while any drivers of the second type have been compiled as modules?
No.
CPUFan wrote:
       2. I should add all these module drivers into my /etc/conf.d/modules ? ...
No. If not very special requirements, conf.d/modules stays empty.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43365
Location: 56N 3W

PostPosted: Sat Dec 23, 2017 2:05 pm    Post subject: Reply with quote

CPUFan,

The live media all have a fully modular kernel. The modules go in the initrd so that they cam be used to mount the root filesystem.

In your example
Code:
Kernel driver in use: xhci_hcd

The xhci_hcd module needs to be either build as a module and loaded or built into the kernel.
Otherwise your USB 3 won't work.

Look in
Code:
lsmod
for your list of loaded modules.

Code:
lspci -k
only shows the modules in use to drive that hardware. It does not show the complete software stack.
Your HDD may be using ahci. That's certainly required but not sufficient.
You also need the SCSI menu, the SCSI Disk module and the SATA menu.

Its very rarely to need to populate /etc/conf.d/modules. There are several module auto loading mechanisms and between them, they get most things.
Populating /etc/conf.d/modules is a fallback for rare things that the auto loading mechanisms miss.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
CPUFan
n00b
n00b


Joined: 21 May 2015
Posts: 58

PostPosted: Mon Dec 25, 2017 5:49 pm    Post subject: Reply with quote

Many thanks for the answer!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum