Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34003 - IDE-SCSI cause vanilla-kernel panic with GCC > 3.3
Summary: IDE-SCSI cause vanilla-kernel panic with GCC > 3.3
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-21 04:11 UTC by tuXXer
Modified: 2004-06-01 10:22 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tuXXer 2003-11-21 04:11:26 UTC
When optimizing the kernel (vaniilla-sources) with GCC option "-O2" or "-O3" you get a kernel panic, that means after a scsi timeout the kernel stops to load.

To prevent this problem you must patch the kernel source (tested only with vanilla-source)

You must add:

CFLAGS_ide-scsi.o =  -O1 -fomit-frame-pointer

into 

/usr/src/linux/drivers/scsi/Makefile

this is because of a bug in GCC 3.3.1 and 3.3.2; no problems with GCC 3.3.
Comment 1 Alexander Gabert (RETIRED) gentoo-dev 2004-03-04 06:04:16 UTC
can this patch make it into the vanilla-sources ebuild probably?

thanks,

Alex
Comment 2 Kai Lindenberg 2004-03-15 04:59:51 UTC
similar problem with 2.4.22-gentoo-r7 and gcc-Version 3.3.2 20031218, but with ide-scsi as a module. "modprobe ide-scsi" works but no device is usable.
With "CFLAGS_ide-scsi.o =  -O1" added to x/drivers/scsi/Makefile, there is no problem anymore.
Comment 3 Joshua Kinard gentoo-dev 2004-05-06 22:38:11 UTC
I believe ide-scsi is unmaintained in the kernel, only so far as to make sure it compiles.  I believe it's slated for removal in 2.7.  If you need it to burn CDs/DVDs, consider switching to using cdrecord's (or equivalent program's) ATAPI support, as it's the poreferred way.  Even Linus wants to see ide-scsi go to that bit bucket in the sky.
Comment 4 Jason Cox (RETIRED) gentoo-dev 2004-05-08 14:00:40 UTC
It is slated for removal in 2.7 along with a few other things. I believe that the 2.4 kernels can do ATAPI burning now as well. If I'm wrong, please correct me.
Comment 5 tuXXer 2004-05-08 14:35:25 UTC
As far as I know IDE Atapi burning was backported from the kernel 2.6 series into 2.4 series. Furthermore, I'd read that ide-scsi support would be removed in 2.7/2.8, too.
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2004-06-01 10:22:03 UTC
For this to be solved upstream, this bug should really go to the upstream kernel developers at http://bugme.osdl.org who maintain the core vanilla sources. Could you please file a bug there instead? Thanks!