Bug 125759 - [ar] Fatal Trap 12 when ICH9R RAID becomes degraded
Summary: [ar] Fatal Trap 12 when ICH9R RAID becomes degraded
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-18 20:50 UTC by Tamouh
Modified: 2015-11-10 13:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tamouh 2008-07-18 20:50:04 UTC
We've seen this problem on FBSD 6.3, other online discussions show the
problem is present in 6.1-R and even 7.x.

The problem occurs when using the noboard RAID function of some motherboards
such as ICH9R in a mirrored RAID-1.

If you pull one of the drives out (or disconnect one), and reboot the
system, the FreeBSD will fail to boot immediately after it detects one of
the drives.

Attempts to boot into safe mode, single mode and anything but Prompt mode
will fail. The only option is to reinstall the OS or replace the disk and
rebuild in the RAID BIOS before loading FreeBSD.

The following error will be displayed on the screen during the boot process:

  Fatal trap 12: page fault while in kernel mode  fault virtual address   = 0xf4c3b8d8  fault code              = supervisor read, page not present  instruction pointer     = 0x20:0xc083fa56  stack pointer           = 0x28:0xc0c20bfc  frame pointer           = 0x28:0xc0c20c40  code segment            = base rx0, limit 0xfffff, type 0x1b                          = DPL 0, pres 1, def32 1, gran 1  processor eflags        = interrupt enabled, resume, IOPL = 0  current process         = 0 (swapper)  trap number             = 12

How-To-Repeat: Install FreeBSD on ICH9R RAID or similar in RAID-1. Turn off the system,
unplug one of the drives, and boot the system back. The system will fail
to boot.

Additional submissions about the same problem:

http://www.mavetju.org/mail/view_thread.php?list=freebsd-bugs&id=2294159&thread=yes

http://groups.google.com/group/lucky.freebsd.questions/browse_thread/thread/ec8b2dd903fba0d8
Comment 1 hsakamt 2008-09-05 07:24:16 UTC
Hi,

Please try the patch in kern/102211 PR.

This is because ICH9R BIOS set 0x01000000 mask at intel_raid_mapping->disk_idx[]
of broken(disconnected) disk. I think.

I checked in the environment with kern/95459 patch too, but I think it is not
necessary for this problem.

---
 Hideki Sakamoto
Comment 2 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 13:45:01 UTC
atapicam is no more after FreeBSD 9.x. Long live atacam and friends.