Bug 183421 - Kernel Oops when booting with ACPI enabled
Summary: Kernel Oops when booting with ACPI enabled
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 5
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-28 22:35 UTC by Mark Arrasmith
Modified: 2015-01-04 22:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-06 17:40:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark Arrasmith 2006-02-28 22:35:21 UTC
Description of problem: 
When installing or booting FC5 test3 (FC4.92) on a Gateway M280 laptop I get a 
kernel oops in the ata_piix kernel module.  If I boot with acpi=off I can 
install and boot the system.  Basically I get ... 
 
"Unable to handle kernel NULL pointer dereference at virtual address 00000000" 
 
During the sata probe.  This seems to be the same bug reference at the Kernel 
mailing list ... http://lkml.org/lkml/2006/1/16/106 though I haven't had the 
system long enough to compile the -linus kernel. 
 
 
Version-Release number of selected component (if applicable): 
rpm -q kernel gives kernel-2.6.15-1.1991_FC5 
 
How reproducible: 
Every boot single boot. 
 
Steps to Reproduce: 
1. make sure acpi=off is not in the kernel boot line for grub 
2. boot 
3. 
   
Actual results: 
kernel oops 
 
Expected results: 
It should boot normally. 
 
Additional info:  
From what is stated on the lkml I'm also guessing that the laptop's bios is 
not setting up the SATA ports correctly.  So I installed the latest bios 
(62.05) from Gateway, but it didn't help.   
 
I have booted other kernels (specifically 2.6.16-rc4 via Ark Linux) with ACPI.  
Though I have the same SATA problem with the 2.6.9 kernels from RHE 4 and all 
the 2.6.x kernels from FC4.

Comment 1 Mark Arrasmith 2006-03-01 14:46:58 UTC
I downloaded a stock 2.6.15.4 from kernel.org and compiled it.  The SATA 
ata_piix driver did not oops during boot with the stock kernel.  I'll take the 
fc5 kernel src.rpm, do a build prep, and then compare the stock ata_piix 
versus the fc5 version.  Maybe that will give me some insight into what is 
going on with the kernel oops. 
 
- mark 
 

Comment 2 Dave Jones 2006-03-02 04:48:53 UTC
the fc5 kernel is based on 2.6.16rc5-git right now, which is way different to
2.6.15.4, which could explain why your self-built kernel worked.



Comment 3 Mark Arrasmith 2006-03-02 07:00:31 UTC
> way different ...  
  
:)  After grabbing the src.rpm and comparing ... Yeah ... I have no idea where 
to start on the differences of the scsi directory and ata_piix.  
  
But, I tried ArkLinux 2006.1 beta on this laptop.  It booted a 2.6.16-rc4 
kernel just fine.  I didn't look at what all patches or which tree they were 
using before moving on to try FC 4.92 though. 
 
Right now I'm glad I've gotten 2.6.15.4 working (though I have to not use 
SELinux).  The latest kernel-2.6.15-1.1996_FC5 seems to have just broke the 
ipw2200 driver.  Anyway I'll grab 2.6.16rc5-git and see what happens. 
 
- mark 
 

Comment 4 Mark Arrasmith 2006-03-02 16:35:09 UTC
OK, using the 1.1996 src.rpm from fedora development I extracted the 2.6.15 
source.  And I then patched it with patch-2.6.16-rc5.bz2 and with 
patch-2.6.16-rc5-git3.bz2 which were in the src.rpm.  Using the same .config 
file from my previous build of 2.6.15.4 I now have a booting laptop with ACPI 
+ SATA + ipw2200 ( using it right now in fact ).  None of which worked 
together with the 1.1996 kernel. 
 
So ... which of the other 120 patches should I apply or not apply to try and 
narrow down where my problem is nested at? 
 
- mark 
 

Comment 5 Mark Arrasmith 2006-03-03 20:05:44 UTC
FOUND IT. 
 
Don't know if I want to hit my head on the table now though ... 
 
Starting with the 1.2008 src.rpm I commented out the patches from the spec 
file and did a rpmbuild -bp.  I then applied batches of patches to make sure 
that they were not the "bug".  Anyway, it came down to patches 200, 201, or 
205.  Realizing that 201 turns off APIC and LAPIC I took a quick guess.  
Booting the stock 1.2008 kernel with apic=on and lapic=on ... NO KERNEL OOPS! 
 
So on this laptop APIC and LAPIC are needed.  Has the apic-off-by-default 
patch been applied to the enterprise kernels?  I'll try to boot the CentOS 4.2 
and FC 4 install CD's to check if apic=on lapic=on allows the install to start 
up. 
 
I really can't say anything about the patch itself (that is for people who 
know what they are doing).  If it is "buggy", should APIC and LAPIC default to 
on, or what. 
 
One last question: when did the apic-off-by-default patch get put into the 
src.rpms? 
 
- mark 
 

Comment 6 Dave Jones 2006-03-04 21:35:48 UTC
I'll drop that patch for the next build (and final release of fc5)
thanks for your detective work on this.


Comment 7 Konrad Rzeszutek 2006-03-06 15:40:21 UTC
Just to be completly sure, the rawhide would now auto-detect if the BIOS has
APIC enabled, and if so, turn the APIC on, if required.

Comment 8 Dave Jones 2006-03-06 17:40:31 UTC
Should be fixed in the kernel at http://people.redhat.com/davej/kernels/Fedora/devel


Comment 9 Dave Jones 2006-03-06 20:53:55 UTC
Konrad, yes,that's correct. We'll blacklist any boxes that need it explicitly
disabled as we come across them (which hopefully should be few)

Comment 10 Mark Arrasmith 2006-03-06 21:23:26 UTC
To Dave: Thanks.  The 2.6.15-1.2016_FC5 kernel works perfectly for my laptop 
(Gateway M280 Tablet).  Yeah!  Now, onto fix the Xorg FinePoint tablet driver. 
 
- mark 
 


Note You need to log in before you can comment on or make changes to this bug.