From nobody@FreeBSD.org  Wed Dec  2 16:15:01 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 867BA106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  2 Dec 2009 16:15:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 74CC38FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  2 Dec 2009 16:15:01 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nB2GF0xn065123
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 2 Dec 2009 16:15:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nB2GF0Lk065122;
	Wed, 2 Dec 2009 16:15:00 GMT
	(envelope-from nobody)
Message-Id: <200912021615.nB2GF0Lk065122@www.freebsd.org>
Date: Wed, 2 Dec 2009 16:15:00 GMT
From: Antti Myller <techman@suomi24.fi>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kernel panic when booting with any sATA drives
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         141112
>Category:       amd64
>Synopsis:       [ata] [panic] Kernel panic when booting with any sATA drives
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-amd64
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 02 16:20:03 UTC 2009
>Closed-Date:    Mon Aug 02 19:44:49 UTC 2010
>Last-Modified:  Mon Aug 02 19:44:49 UTC 2010
>Originator:     Antti Myller
>Release:        8.0-RELEASE
>Organization:
>Environment:
FreeBSD shimako.yamayurikai.dy.fi 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Tue Dec  1 22:37:58 EET 2009     am@shimako.yamayurikai.dy.fi:/usr/obj/usr/src/sys/091201  amd64

>Description:
A system with /boot and / mounts on primary pATA master has a kernel panic during booting (fatal trap 12) if there is any sATA drives in any sATA ports. If booted with ACPI off or in safe mode system fails to find any drives and root mount fails.

Motherboard is ASRock K8 Combo-Z and has the latest BIOS revision. Recompiled kernel with AHCI on while using loader.conf options: hint.ahci.X.msi="0", hint.ahcich.X.pm_level="0" and hint.ahcich.X.sata_rev="1" does boot not either if sATA drives are attached.

>How-To-Repeat:
Problem happens everytime if there is any sATA drive in any sATA port.
>Fix:
Problem can be fixed only by removing all sATA drives completely either from BIOS settings or physically.

>Release-Note:
>Audit-Trail:

From: Alexander Motin <mav@FreeBSD.org>
To: bug-followup@FreeBSD.org, techman@suomi24.fi
Cc:  
Subject: Re: amd64/141112: [ata] [panic] Kernel panic when booting with any
 sATA drives
Date: Thu, 03 Dec 2009 00:46:43 +0200

 To debug problem we need more information about the problem.
 What chipset do you have?
 Have you tried both old ataahci and new ahci drivers?
 Can you grab panic message?
 Can you build kernel with debugger and get backtrace of the panic?
 Can you try 8-STABLE?
 
 -- 
 Alexander Motin

From: Antti Myller <techman@suomi24.fi>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: amd64/141112: [ata] [panic] Kernel panic when booting with any
 sATA drives
Date: Thu, 3 Dec 2009 21:35:51 +0100 (CET)

 >To debug problem we need more information about the problem.
 >What chipset do you have?
 >Have you tried both old ataahci and new ahci drivers?
 >Can you grab panic message?
 >Can you build kernel with debugger and get backtrace of the panic?
 >Can you try 8-STABLE?
 >
 >-- 
 >Alexander Motin
 >
 
 Chipset: Integrated Single Chip ULi(ALi) M1689
 
 Tried with both ataahci and ahci. Both have the same result.
 
 Panic Message:
 Fatal trap 12: page fault while in kernel mode
 cpuid = 0; apic id = 00
 fault virtual address = 0x0
 fault code = supervisor read instruction, page not present
 instruction pointer = 0x20:0x0
 stack pointer = 0x20:0xffffffff80e1e6b0
 frame pointer = 0x20:0xffffffff80e1e700
 code segment = base 0x0, limit 0xfffff, type 0x1b
 = DPL0, pres 1, long 1, def32 0, gran 1
 processor eflags = interrupt enabled, resume, IOPL = 0
 current process = 0 (swapper)
 trap number = 12
 panic : page fault
 cpuid = 0
 Uptime: 1s
 Cannot dump. Device not defined or unavailable.
 
 Debugger is bilt in kernel, but is unable to dump with savecore, no 
 dumps found.
 
 This is on server so I'd like to keep it as 8.0-RELEASE.
 
 ---
 Antti Myller

From: Alexander Motin <mav@FreeBSD.org>
To: bug-followup@FreeBSD.org, techman@suomi24.fi
Cc:  
Subject: Re: amd64/141112: [ata] [panic] Kernel panic when booting with any
 sATA drives
Date: Fri, 04 Dec 2009 11:20:55 +0200

 > instruction pointer = 0x20:0x0
 means that we jumped to NULL. The question is from where.
 
 > Debugger is bilt in kernel, but is unable to dump with savecore, no
 > dumps found.
 
 OK, then you should be able to at least get stack back trace.
 
 -- 
 Alexander Motin
State-Changed-From-To: open->closed 
State-Changed-By: mav 
State-Changed-When: Mon Aug 2 19:43:54 UTC 2010 
State-Changed-Why:  
Originator reported that problem gone in 8.1-RELEASE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141112 
>Unformatted:
