Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel driver question
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
frozenpenguin
n00b
n00b


Joined: 04 Feb 2024
Posts: 15

PostPosted: Mon Mar 11, 2024 10:38 am    Post subject: Kernel driver question Reply with quote

Hi, I suspect that my gpu lacks a kernel driver(as do some of my other hardware).[/url] Also I wish to know of a method to check which firmware blobs are loaded on my computer.
Thanks in advance
lspci


Last edited by frozenpenguin on Wed Mar 13, 2024 8:47 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Mar 11, 2024 10:46 am    Post subject: Reply with quote

frozenpenguin,

Code:
00:02.0 VGA compatible controller: Intel Corporation Alder Lake-UP3 GT2 [Iris Xe Graphics] (rev 0c)
   DeviceName: Onboard IGD
   Subsystem: Hewlett-Packard Company Alder Lake-UP3 GT2 [Iris Xe Graphics]


That's i915 in the kernel. The early console will need EFI framebuffer.
Make i915 a module so it can load firmware from /lib/firmware

There is an option in the gentoo-sources kernel to make it list firmware as its loaded in dmesg.

Code:
00:0d.2 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #0 (rev 04)
   Subsystem: Hewlett-Packard Company Alder Lake-P Thunderbolt 4 NHI
00:0d.3 USB controller: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #1 (rev 04)
   Subsystem: Hewlett-Packard Company Alder Lake-P Thunderbolt 4 NHI

I think that's either Thunderbolt or USB4 in the kernel. I don't have any of those.

Seeing the Vendor and Device IDs would help a lot as they are unique to the devices.
Please post the output of
Code:
lspci -nnk

_________________
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
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4157
Location: Bavaria

PostPosted: Mon Mar 11, 2024 2:20 pm    Post subject: Re: Gpu kernel driver Reply with quote

frozenpenguin wrote:
[...] Also I wish to know of a method to check which firmware blobs are loaded on my computer.

Boot with our dist-kernel OR with our GentooLiveCD ... AND do a "dmesg | grep firmware" ... thats it ;-)

(See also in: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Before_you_start )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
frozenpenguin
n00b
n00b


Joined: 04 Feb 2024
Posts: 15

PostPosted: Tue Mar 12, 2024 10:48 am    Post subject: Reply with quote

How would one know which kernel module to install from looking at the vendor and device IDs? Thanks again in advance
lspci -nnk
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Mar 12, 2024 11:45 am    Post subject: Reply with quote

frozenpenguin,

Heres one we already know the answer to, to show the method.
Code:
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-UP3 GT2 [Iris Xe Graphics] [8086:46a8] (rev 0c)
   DeviceName: Onboard IGD
   Subsystem: Hewlett-Packard Company Alder Lake-UP3 GT2 [Iris Xe Graphics] [103c:896e]
   Kernel driver in use: i915
   Kernel modules: i915


The Vendor and device ID, here 8086:46a8, is used by the kernel to bind to the device.
Put 8086:46a8 pci site:cateee.net into your search engine of choice and look at the hits.
DRM_I915 contains a list of Vendor and Device IDs known to the kernel and a separate list of which kernels they are found in as
Code:
vendor: 8086 ("Intel Corporation"), device: 46a8 ("Alder Lake-UP3 GT2 [Iris Xe Graphics]"), class: 03 ("Display controller")
lkddb pci 8086 46a8 .... .... 03.... : CONFIG_DRM_I915 : drivers/gpu/drm/i915/i915_pci.c # in 5.14–5.19, 6.0–6.8

If you have very new hardware, that last line is important. Your driver may not be in the kernel you are trying to build.

There is also
Code:
CONFIG_DRM_XE: Intel Xe Graphics
which is
Quote:
Experimental driver for Intel Xe series GPUs
That may be something to play with. However having two drivers for the same hardware rarely goes well, so its unlikely you want both.

Now one we don't know.
Code:
00:0d.3 USB controller [0c03]: Intel Corporation Alder Lake-P Thunderbolt 4 NHI #1 [8086:466d] (rev 04)
   Subsystem: Hewlett-Packard Company Alder Lake-P Thunderbolt 4 NHI [103c:896e]


Search 8086:466d pci site:cateee.net There is only one hit CONFIG_USB4: Unified support for USB4 and Thunderbolt

USB devices follow a similar pattern. Put USB in place of PCI in the search. They have a wrinkle though. USB drivers may drive an entire class of device.
Like UVC for video cameras.

Once you know the symbol name, use the search in menuconfig to find it and jump to it. USB4 is enough.
The kernel config tools all hide thins that cannot be selected to reduce clutter. A press of the 'z' key toggles that.
Now you can read the Depends on, in the help, to see why its hidden.
_________________
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
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4157
Location: Bavaria

PostPosted: Tue Mar 12, 2024 12:31 pm    Post subject: Reply with quote

frozenpenguin wrote:
How would one know which kernel module to install from looking at the vendor and device IDs? Thanks again in advance

See also here:
https://wiki.gentoo.org/wiki/User:Pietinger/Overview_of_System_Information#lspci_-nnk

@Neddy:
CONFIG_DRM_XE is neither in kernel version 6.6 nor in 6.7 ... are you already using 6.8.0 ? ;-)
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Mar 12, 2024 1:25 pm    Post subject: Reply with quote

pietinger

I'm looking at cateee.net

Code:
CONFIG_DRM_XE: Intel Xe Graphics
General informations

The Linux kernel configuration item CONFIG_DRM_XE:

    prompt: Intel Xe Graphics
    type: tristate
    depends on: CONFIG_DRM && CONFIG_PCI && CONFIG_MMU && ( CONFIG_m || ( CONFIG_y && CONFIG_KUNIT = CONFIG_y )) && CONFIG_64BIT
    defined in drivers/gpu/drm/xe/Kconfig
    found in Linux kernels: 6.8
    modules built: xe

as you say,
Quote:
found in Linux kernels: 6.8

_________________
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
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4157
Location: Bavaria

PostPosted: Tue Mar 12, 2024 3:00 pm    Post subject: Reply with quote

... just written: https://wiki.gentoo.org/wiki/User:Pietinger/Experimental/Manual_Configuring_Kernel_Version_6.8

:lol:
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
frozenpenguin
n00b
n00b


Joined: 04 Feb 2024
Posts: 15

PostPosted: Wed Mar 13, 2024 9:22 am    Post subject: Reply with quote

Thanks, NeddySeagoon, I tried your method to try to get my touchpad working but the only result I got was for a driver that I already have, this however does not seem sufficient to run the touchpad.
lsusb
Code:
Bus 003 Device 003: ID 06cb:00f0 Synaptics, Inc.

config file
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1537

PostPosted: Wed Mar 13, 2024 11:11 am    Post subject: Reply with quote

frozenpenguin wrote:
Thanks, NeddySeagoon, I tried your method to try to get my touchpad working but the only result I got was for a driver that I already have, this however does not seem sufficient to run the touchpad.
lsusb
Code:
Bus 003 Device 003: ID 06cb:00f0 Synaptics, Inc.

config file


You should set this:

Code:
CONFIG_HID_MULTITOUCH


and this, possibly other similar drivers:

Code:
CONFIG_PINCTRL_ALDERLAKE


and possibly one or more of those:

Code:
CONFIG_MOUSE_ELAN_I2C
CONFIG_HID_ELAN
CONFIG_I2C_DESIGNWARE_PLATFORM
CONFIG_I2C_DESIGNWARE_PCI


Our fellow gentooer pietinger has a wonderful post I don't know why he's not sharing: https://forums.gentoo.org/viewtopic-p-8692426.html#8692426

You don't need to understand the language, you can very easily follow the flow for Intel without knowing what exactly he says.

Best Regards,
Georgi
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4157
Location: Bavaria

PostPosted: Wed Mar 13, 2024 2:13 pm    Post subject: Reply with quote

logrusx wrote:
Our fellow gentooer pietinger has a wonderful post I don't know why he's not sharing: https://forums.gentoo.org/viewtopic-p-8692426.html#8692426

The reason why I haven't replied is simple: I was offline until just now. But that doesn't matter, because we have enough good people in our forum who also know this link ... e.g. Georgi :D

Please let me add that there were sometimes problems with systems that have a 12th generation Intel CPU and therefore need AlderLake, but still need TigerLake. I have added this in the "Device Section" also:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.6#Part_2_-_Slim_kernel
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
madjestic
n00b
n00b


Joined: 10 Oct 2013
Posts: 52

PostPosted: Tue Mar 19, 2024 8:31 pm    Post subject: Reply with quote

Quote:
There is also
Code:
CONFIG_DRM_XE: Intel Xe Graphics
which is
Quote:
Experimental driver for Intel Xe series GPUs
That may be something to play with. However having two drivers for the same hardware rarely goes well, so its unlikely you want both.


Does it mean that the i915 driver should be disabled in the kernel? I wonder what to do with all the user flags for packages built with i915?
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1660

PostPosted: Tue Mar 19, 2024 8:37 pm    Post subject: Reply with quote

madjestic wrote:
I wonder what to do with all the user flags for packages built with i915?

If you mean USE flags, there are none to really be of concern. i915 outside of the kernel is for ancient hardware (roughly 15-20 years old) and really should be discouraged.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4157
Location: Bavaria

PostPosted: Tue Mar 19, 2024 10:00 pm    Post subject: Reply with quote

Maybe it is too soon for CONFIG_DRM_XE (*) ... and we should wait for mesa 24.1 =>
https://www.phoronix.com/news/Intel-Xe-KMD-Mesa-24.1-Default

*) Help (6.8.1) says: "Experimental driver for Intel Xe series GPUs"
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
madjestic
n00b
n00b


Joined: 10 Oct 2013
Posts: 52

PostPosted: Wed Mar 20, 2024 8:03 am    Post subject: Reply with quote

Good point, @pietinger

It looks like I got xe driver running, but I am not sure if it needs a special xorg.conf configuration:

Code:

00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c)
   Subsystem: Framework Computer Inc. Alder Lake-P GT2 [Iris Xe Graphics] [f111:0002]
   Kernel driver in use: xe
   Kernel modules: xe


- I don't think that I see any obvious changes to the performance (one thing I noticed that I stopped getting black borders around floating windows in Chrome, but that may be due to some other dependency change). Overall it looks like nothing changed or got broken, I am still getting pretty low performance in a few Steam games that I tested.

@frozenpenguin
Could you share your xorg.conf?

Relevant part of mine looks like this:
Code:

Section "Device"
   Identifier "Intel Graphics Modesetting"
   Driver      "modesetting"
   Option      "AccelMethod"   "dri"
   Option      "DRI"      "iris"
   Option      "TearFree"      "true"
   Option       "Monitor"      "Monitor0"
   Option     "Backlight"     "intel_backlight"
EndSection

Section "Monitor"
   Identifier   "Monitor0"
   DisplaySize   340 190
EndSection
   



Regards,
V
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