From owner-freebsd-current@FreeBSD.ORG Sun Sep 9 09:58:04 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 165AA16A418 for ; Sun, 9 Sep 2007 09:58:04 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 9994013C45D for ; Sun, 9 Sep 2007 09:58:03 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.1/8.14.1) with ESMTP id l899w1Lj088422 for ; Sun, 9 Sep 2007 13:58:01 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Sun, 9 Sep 2007 13:58:01 +0400 (MSD) From: Dmitry Morozovsky To: current@freebsd.org In-Reply-To: <20070907192152.V98273@woozle.rinet.ru> Message-ID: <20070909135036.X86138@woozle.rinet.ru> References: <20070907192152.V98273@woozle.rinet.ru> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (woozle.rinet.ru [0.0.0.0]); Sun, 09 Sep 2007 13:58:01 +0400 (MSD) Cc: Subject: Re: Possible 7.0 showstopper: SATA/eSATA are unable to init hot-plugs X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Sep 2007 09:58:04 -0000 On Fri, 7 Sep 2007, Dmitry Morozovsky wrote: DM> on most (possibly all, but I'm not fully sure and a bit limited in testing) DM> motherboard/controller configuration I've tested so far -current is unable to DM> properly attach hot-plugged disks. Sometimes even atacontrol detach/atacontrol DM> attach sequence can't bring disk into working state (only reboot does). DM> Another one (i386 on ASUS M2N-LR/SATA): atapci2: port 0xbc00-0xbc07,0xb880-0xb883,0xb800-0xb807,0xb480-0xb483,0xb400-0xb40f mem 0xefbbc000-0xefbbcfff irq 20 at device 5.1 on pci0 atapci2: [ITHREAD] ata4: on atapci2 ata5: on atapci2 ata5: [ITHREAD] # # ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached ad10: 381554MB at ata5-master SATA150 ad10: detached Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x5d891cf0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc049e2b1 stack pointer = 0x28:0xe507dc90 frame pointer = 0x28:0xe507dcac code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 2 (g_event) [thread pid 2 tid 100011 ] Stopped at g_wither_washer+0x61: movl 0x4(%eax),%ebx db> bt Tracing pid 2 tid 100011 td 0xc64c0cc0 g_wither_washer(c06ce06c,c066c481,c680f658,0,ffffffff,...) at g_wither_washer+0x61 g_run_events(c06ce180,0,4c,c0669d05,64,...) at g_run_events+0x428 g_event_procbody(0,e507dd38,0,0,0,...) at g_event_procbody+0x69 fork_exit(c049a750,0,e507dd38) at fork_exit+0x97 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xe507dd70, ebp = 0 --- db> Effect is not 100% reproducible; I think there are some races in SATA init code... Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------