View previous topic :: View next topic |
Author |
Message |
frozenpenguin n00b
Joined: 04 Feb 2024 Posts: 17
|
Posted: Mon Mar 11, 2024 10:38 am Post subject: Kernel driver question |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Mon Mar 11, 2024 10:46 am Post subject: |
|
|
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 _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4413 Location: Bavaria
|
|
Back to top |
|
|
frozenpenguin n00b
Joined: 04 Feb 2024 Posts: 17
|
Posted: Tue Mar 12, 2024 10:48 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Tue Mar 12, 2024 11:45 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4413 Location: Bavaria
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Tue Mar 12, 2024 1:25 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4413 Location: Bavaria
|
|
Back to top |
|
|
frozenpenguin n00b
Joined: 04 Feb 2024 Posts: 17
|
Posted: Wed Mar 13, 2024 9:22 am Post subject: |
|
|
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 |
|
|
logrusx Veteran
Joined: 22 Feb 2018 Posts: 1694
|
Posted: Wed Mar 13, 2024 11:11 am Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4413 Location: Bavaria
|
|
Back to top |
|
|
madjestic n00b
Joined: 10 Oct 2013 Posts: 52
|
Posted: Tue Mar 19, 2024 8:31 pm Post subject: |
|
|
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 |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1728
|
Posted: Tue Mar 19, 2024 8:37 pm Post subject: |
|
|
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 |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4413 Location: Bavaria
|
|
Back to top |
|
|
madjestic n00b
Joined: 10 Oct 2013 Posts: 52
|
Posted: Wed Mar 20, 2024 8:03 am Post subject: |
|
|
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 |
|
|
|