Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Possibility to use drivers from older kernels on newer ones
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Child_of_Sun_24
Guru
Guru


Joined: 28 Jul 2004
Posts: 454

PostPosted: Tue Aug 02, 2011 9:31 pm    Post subject: Possibility to use drivers from older kernels on newer ones Reply with quote

Hi there,

is there a way to use a driver (sil3132) from kernel 2.6.34 with kernel 3.0 ?

I hope anyone can help me with this problem.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Aug 02, 2011 10:40 pm    Post subject: Reply with quote

Child_of_Sun_24,

Is
Code:
< >   Silicon Image 3124/3132 SATA support
in teh 3.0 kernel broken ?
_________________
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
Child_of_Sun_24
Guru
Guru


Joined: 28 Jul 2004
Posts: 454

PostPosted: Wed Aug 03, 2011 12:52 am    Post subject: Reply with quote

I think only for me or a little group of people (Because i haven't found anything with google), since kernel 2.6.34 (The last kernel my dawicontrol 300e works with).

So 2.6.34 is the last kernel i can use.

Since 2.6.35 until 3.0 the second drive has errors (The driver temporarly deletes the drive metadata, after a reboot it has still this error, when i switch my pc off and back on the error is corrected until i try to start any kernel later than 2.6.34) So the kernel can't boot from the raid.

But i want to use the nouveau driver with the latest enhancements because i have a fermi graphics card (Geforce 460 GTX).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 03, 2011 7:09 pm    Post subject: Reply with quote

Child_of_Sun_24,

Check bugs.gentoo.org. If there is no kernel bug for this problem, start a new bug.
Its quite possible that its not a Gentoo issue, in which case the bug will be passed to the kernel developers.

Have you tried vanillia-soures, rather than gentoo-sources? vanillia-sources is as distributed by kernel.org.
If that fails, you could post a bug directly at kernel.org.

Are you using dmraid?
If you can read the underlying disks, that would indicate a dm-raid issue, rather than a hardware device driver issue.
_________________
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
Child_of_Sun_24
Guru
Guru


Joined: 28 Jul 2004
Posts: 454

PostPosted: Thu Aug 04, 2011 1:15 pm    Post subject: Reply with quote

The error comes with every kernel i have tested, zen-sources, gentoo-sources, ck-sources, vanilla-sources, git-sources, pf-sources, etc. pp.

It is with every kernel above 2.6.34.

Thats why i asked if i can use the driver from kernel 2.6.34 with some newer kernel (as module or that i change it in the source tree [with some path]).

You say it will be forwarded to the kernel devs, can i contact them directly ? Since i know that is not a only gentoo problem, thats why i posted in unsupported.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Aug 04, 2011 4:26 pm    Post subject: Reply with quote

Child_of_Sun_24,

You can post a bug at kernel.org.

There have been structural changes to the kernel since 2.6.34 that would make porting the driver to a 3.0 kernel difficult.

Why do you think its the kernel?

Explain your setup?
You mention two drives ... do you use raid of some sort?
_________________
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
Child_of_Sun_24
Guru
Guru


Joined: 28 Jul 2004
Posts: 454

PostPosted: Thu Aug 04, 2011 5:23 pm    Post subject: Reply with quote

I think that it is the kernel because it happen with every kernel above 2.6.34 all other kernels run fine.

I use a raid0 with a dwicontrol 300e Softraid Controller (Silicon Image 3132 Chipset).

When i boot from the raid drive it cannot mount the root device, if i press reset in the Raid Bios Post message it says that the second drive is broken, if i switch the PC completely of and back on the raid is magically back consistent.

If i boot a rescue cd/dvd with a kernel later 2.6.34 the same error occurs, and i can see that the second drive has got no metadata (dmraid -ay brings only errors, when i try to show the raid devices it tells me that only 1/2 exist, when i try to show the metadata on the second device it tells me that this is not a raid device).

So it shows that there is no Metadata on the second drive.

When i switch of the PC and back on, the raid magically recovers, when i boot a rescue cd/dvd or from the raid a 2.6.34 kernel (or older, but i don't want older kernels, i want the 3.0) the raid can be used as normal, i can normally boot my system or can access it with the rescue cd/dvd as normal.

Under Windows there are no Problems.

So i can say that i am really sure that it is the kernel driver.

I have tried nearly every kernel newer than 2.6.34 with exactly the same result, and i have tested many 2.6.34 kernels, all are working, i use the same kernel config (Expect the livecds they have their own configs.)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Aug 04, 2011 11:30 pm    Post subject: Reply with quote

Child_of_Sun_24,

There are a number of bits of software here

1. the kernel SCSI layer
2. the Silicon Image 3132 chip set driver
3. the device mapper kernel layer
4. the dm-raid module which uses all of the above to access your raid0.

When you change kernels, you change everything except dm-raid, which is an out of kernel module maintained by redhat.
I suspect the issue is that the kernel has moved on and dm-raid has not kept up. This has happened several times in the past.

The kernel code only reads blocks of data from your drives, as instructed by dm-raid. If it was broken, the JBOD mode would be equally broken.
Indeed sys-fs/dmraid-1.0.0_rc16-r3 is 7 months old now.

Which version of sys-fs/dmraid are you using?
Code:
/usr/portage/sys-fs/dmraid $ grep KEYWORD *                 
dmraid-1.0.0_rc14.ebuild:KEYWORDS="amd64 x86"
dmraid-1.0.0_rc15.ebuild:KEYWORDS="~amd64 ppc ~x86"
dmraid-1.0.0_rc16-r2.ebuild:KEYWORDS="~amd64 ~ppc ~x86"
dmraid-1.0.0_rc16-r3.ebuild:KEYWORDS="~amd64 ~ppc ~x86"

so if you have a stable system, it may be dmraid-1.0.0_rc14 which is from 2009. It would be worth trying a later one. How you do that depends on how you build your kernel and supporting modules.
_________________
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
Child_of_Sun_24
Guru
Guru


Joined: 28 Jul 2004
Posts: 454

PostPosted: Fri Aug 05, 2011 8:31 pm    Post subject: Reply with quote

It's a bit embarrassing for me.

It is my Hardware Configuration, i had AHCI (From my intel ich10 onboard controller) activated, so it seems to work with kernels older than 2.6.35, for newer kernels i have to deactivate AHCI on the onboard controller for the raid to work.

So it's half the kernel, half my hardware.

Now it works perfect, have tested is with some custom kernels (gentoo-sources-3.0) and sysresccd-2.3.0 and everything works fine.

So there must be any change in the 2.6.35 Kernel which screws the configuration up, but works if AHCI is deactivated (It's only good for Sata Hotplugging, but i don't need this featur so it can stay deactivated).

For me the Problem is solved now.

Thanks for your help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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