Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The horror story of linux kernel
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
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Sat Mar 02, 2019 11:36 pm    Post subject: The horror story of linux kernel Reply with quote

Let me explain the horror story. (The short version // Linux kernel let dependencies slip through cracks. It took days for a mere user like me to debug the issue.)

DRM_RADEON should depend on DRM_FBDEV_EMULATION and I2C_CHARDEV, but it doesn't.
Without DRM_FBDEV_EMULATION, DRM_RADEON loses video signal on all virtual consoles and garbles an X session for the first few seconds.
Without I2C_CHARDEV, DRM_RADEON becomes white on all virtual consoles.

DRM_RADEON should not initialize before I2C_CHARDEV. Because DRM_RADEON is oblivious of I2C_CHARDEV, DRM_RADEON may or may not initialize before I2C_CHARDEV.
If I2C_CHARDEV=y and DRM_RADEON=m, DRM_RADEON never initializes before I2C_CHARDEV does. If I2C_CHARDEV=y and DRM_RADEON=y, DRM_RADEON may or may not initialize before I2C_CHARDEV does.

It took days of trial and error to pinpoint the cause of DRM_RADEON's issue. At first, I just guessed relevant kernel config options, but it was too inefficient. Eventually, I started comparing differences between kernel configs that work and those that don't.
Based on differences, my trials became more accurate. Eventually, I narrowed the issue down to DRM_FBDEV_EMULATION and I2C_CHARDEV.

What a horror story. I assumed linux kernel wouldn't let dependencies slip through cracks.


Last edited by crocket on Sun Mar 03, 2019 1:12 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Mar 03, 2019 12:17 am    Post subject: Reply with quote

crocket,

Quote:
I assumed ...

Rule 1. Assume nothing.

I spent most of a day on IRC helping fix sound. Lots of kernel rebuilds later, it was established that the kernel was correct a long time age. It just wasn't being installed.
I assumed ...
_________________
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
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 548
Location: Hawaii

PostPosted: Sun Mar 03, 2019 8:26 pm    Post subject: Re: The horror story of linux kernel Reply with quote

crocket wrote:
It took days of trial and error


Welcome to the world of FOSS.
_________________
MSI MAG B550 Tomahawk
Ryzen 3900x
32Gb Samsung B-die (16GB dual rank x2) DDR4 @ 3200MHz, cl14
Geforce RTX 2070S 8GB
Samsung m.2 NVME pcie-3.0
Etc....
Back to top
View user's profile Send private message
freke
Veteran
Veteran


Joined: 23 Jan 2003
Posts: 1050
Location: Somewhere in Denmark

PostPosted: Sun Mar 03, 2019 8:54 pm    Post subject: Reply with quote

NeddySeagoon wrote:
crocket,

Quote:
I assumed ...

Rule 1. Assume nothing.

I spent most of a day on IRC helping fix sound. Lots of kernel rebuilds later, it was established that the kernel was correct a long time age. It just wasn't being installed.
I assumed ...


The quote really is: https://www.youtube.com/watch?v=7rr88Szc5q0
Back to top
View user's profile Send private message
proteusx
Guru
Guru


Joined: 21 Jan 2008
Posts: 340

PostPosted: Mon Mar 04, 2019 1:19 am    Post subject: Reply with quote

So, for now, what are the best settings for I2C_CHARDEV, DRM_FBDEV_EMULATION and DRM_RADEON?
Back to top
View user's profile Send private message
crocket
Guru
Guru


Joined: 29 Apr 2017
Posts: 558

PostPosted: Mon Mar 04, 2019 3:12 am    Post subject: Reply with quote

proteusx wrote:
So, for now, what are the best settings for I2C_CHARDEV, DRM_FBDEV_EMULATION and DRM_RADEON?


I2C_CHARDEV=y
DRM_FBDEV_EMULATION=y
DRM_RADEON=m
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