Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909187 - x11-drivers/nvidia-drivers: i2c timeout error prevents launching X
Summary: x11-drivers/nvidia-drivers: i2c timeout error prevents launching X
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-26 14:23 UTC by ra
Modified: 2023-07-19 16:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.log,6.73 KB, text/plain)
2023-06-26 14:23 UTC, ra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ra 2023-06-26 14:23:47 UTC
Created attachment 864642 [details]
emerge --info

After recent update X fails to start due to "(EE) NVIDIA: Failed to initialize the NVIDIA kernel module."

This is seemingly caused by this error (dmesg):
"
[    9.312380] nvidia-gpu 0000:12:00.3: i2c timeout error e0000000
[    9.312384] ucsi_ccg 2-0008: i2c_transfer failed -110
[    9.312385] ucsi_ccg 2-0008: ucsi_ccg_init failed - -110
[    9.312388] ucsi_ccg: probe of 2-0008 failed with error -110 
"

As a reference - here is lscpi excerpt:
"
12:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2070] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Gigabyte Technology Co., Ltd TU106 [GeForce RTX 2070]
	Flags: fast devsel, IRQ 255
	Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
	Memory at 7fe0000000 (64-bit, prefetchable) [size=256M]
	Memory at 7ff0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at f000 [disabled] [size=128]
	Expansion ROM at fc000000 [disabled] [size=512K]
	Capabilities: <access denied>

12:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd TU106 High Definition Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 150
	Memory at fc080000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

12:00.2 USB controller: NVIDIA Corporation TU106 USB 3.1 Host Controller (rev a1) (prog-if 30 [XHCI])
	Subsystem: Gigabyte Technology Co., Ltd TU106 USB 3.1 Host Controller
	Flags: fast devsel, IRQ 61
	Memory at 7ff2000000 (64-bit, prefetchable) [size=256K]
	Memory at 7ff2040000 (64-bit, prefetchable) [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd

12:00.3 Serial bus controller: NVIDIA Corporation TU106 USB Type-C UCSI Controller (rev a1)
	Subsystem: Gigabyte Technology Co., Ltd TU106 USB Type-C UCSI Controller
	Flags: bus master, fast devsel, latency 0, IRQ 133
	Memory at fc084000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia-gpu
	Kernel modules: i2c_nvidia_gpu

13:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
	Subsystem: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Function
	Flags: fast devsel
	Capabilities: <access denied> 
"
Comment 1 Ionen Wolkens gentoo-dev 2023-06-27 04:45:35 UTC
Kernel modules: i2c_nvidia_gpu

I recall this module is "likely" to conflict. The ebuild doesn't check for it because A) gentoo-kernel-bin enables it and it's not an issue as long as it's not loaded (would just be noise), and B) it's not always a problem, so blacklisting it may be wrong.

That aside unsure why an update would cause this assuming you didn't change anything in that regard. Does downgrading back help? Also is it loading the right version? (version is mentioned in dmesg). Perhaps the error is unrelated and you just have a version mismatch going on.

Or did you in fact newly enable CONFIG_I2C_NVIDIA_GPU?
Comment 2 ra 2023-07-19 16:03:04 UTC
I was able to fix the problem by setting a flag "kernel-open" so that
"x11-drivers/nvidia-drivers kernel-open..."

As for "CONFIG_I2C_NVIDIA_GPU" I have it as following:
"CONFIG_I2C_NVIDIA_GPU=m"