-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unreferenced object in kmemleak #1078
Comments
I have the same, my hardware is a Lenovo Legion 5 Pro (AMD Ryzen 7 5800H). The hybrid graphics configuration consists of 1) AMD Radeon RX Vega 8 "Green Sardine", which should be considered as "integrated", and 2) Nvidia GeForce RTX 3070 Mobile (GA104M). Nouveau currently doesn't support the Nvidia GeForce RTX 30 series of graphics cards. I am not using the proprietary closed-source/binary-only Nvidia drivers. I have to set graphics to "dynamic" in the UEFI settings (BIOS setup) in order for Linux to work correctly, the alternative (default) setting of "discrete" graphics causes any output (including text mode) to act up in Linux. My understanding of this is that with the "discrete" setting the Nvidia card will be used by UEFI on startup, which Linux cannot handle with the nouveau driver (yet). The graphics card specifics:
The integrated CPU Radeon graphics core (apparently _SB_.PCI0.GP17.VGA_) is accelerated and loaded correctly by AMDGPU which I have compiled into the kernel (not as a module). The following dmesg snippet is from Gentoo kernel 6.0.11 (in this configuration I have the nouveau module blacklisted, so it isn't loaded later-on):
When I try to load bbswitch, I get this error in dmesg (and the module isn't loaded at all, i.e. it is not listed by lsmod as loaded):
I do not get any kernel panics with only the AMDGPU driver. When I also load nouveau, the kernel reports similar errors as the original reporter. The following error is with nouveau loaded, Gentoo Linux and kernel 5.18.14: (the first driver loaded is AMDGPU, in-kernel, dmesg similar to the above with the newer kernel; thereafter nouveau is loaded, dmesg is like this:)
How I see it, bbswitch isn't causing the kernel panics, but nouveau is. However, bbswitch also doesn't correctly detect those specific graphics cards. Since bbswitch isn't even loaded, bumblebeed then has nothing to do:
sys-kernel/gentoo-sources-6.0.11 (amdgpu and nouveau from the kernel) |
I got an error:
Kernel 5.11.15-gentoo-x86_64
x11-misc/bumblebee 3.2.1_p20210112-r4
sys-power/bbswitch 0.8-r5
The text was updated successfully, but these errors were encountered: