From owner-freebsd-scsi@FreeBSD.ORG Sat Mar 4 20:07:54 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00B6F16A420; Sat, 4 Mar 2006 20:07:53 +0000 (GMT) (envelope-from os@rsu.ru) Received: from mail.r61.net (mail.r61.net [195.208.245.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEF5343D49; Sat, 4 Mar 2006 20:07:52 +0000 (GMT) (envelope-from os@rsu.ru) Received: from wolf.os.rsu.ru (os@os.adsl.r61.net [195.208.243.95]) (authenticated bits=0) by mail.r61.net (8.13.4/8.13.4) with ESMTP id k24K7cF1006662 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 4 Mar 2006 23:07:41 +0300 (MSK) (envelope-from os@rsu.ru) Date: Sat, 4 Mar 2006 23:07:44 +0300 (MSK) From: Oleg Sharoiko To: John Baldwin In-Reply-To: <200603031112.45211.jhb@freebsd.org> Message-ID: <20060304224419.N1270@wolf.os.rsu.ru> References: <20060215102749.D58480@brain.cc.rsu.ru> <200602281205.43592.jhb@freebsd.org> <20060303153838.Q772@brain.cc.rsu.ru> <200603031112.45211.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: ClamAV version 0.86.2, clamav-milter version 0.86 on asterix.r61.net X-Virus-Status: Clean Cc: freebsd-scsi@freebsd.org, Andrey Beresovsky Subject: Re: Boot hangs on ips0: resetting adapter, this may take up to 5 minutes X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Mar 2006 20:07:54 -0000 On Fri, 3 Mar 2006, John Baldwin wrote: JB>This is good. Btw, the patch should apply cleanly to 6.x from yesterday. Well, I forgot to mention that in all combinations I've only checked 6.x I've also tried 7.x and it also works but I've checked only one kernel and I don't remember was it UP or SMP kernel. JB>> amd64 doesn't. Both GENRIC and SMP kernels hang at boot, just a little bit JB>> earlier, compared to nonpatched version. Last messages from kernel: JB>This is quite odd. The i386 and amd64 apic code is actually almost JB>identical, and I actually first implemented this on -CURRENT on amd64 and JB>then copied the patches over to i386. Did you have any conflicts when JB>you applied the patches that you had to fix up? The patch applied cleanly. I used RELENG_6 with this changes: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=592494+0+current/cvs-src So I had nothing to fix. I've just checked it once again - src has no *.rej files. And I've just tried 7.x both recent and of 2006-02-28 22:30:00 UTC where you have already integrated your changes (http://docs.freebsd.org/cgi/getmsg.cgi?fetch=336678+0+current/cvs-src) With apic system hangs at 'lo0: bpf attached' just like I've mentioned in my previouse letter. But with apic disabled I got this: ips0: mem 0xd0300000-0xd0300fff,0xd4000000-0xd7ffffff irq 11 at device 1.0 on pci3 ips0: Reserved 0x1000 bytes for rid 0x10 type 3 at 0xd0300000 ips0: irq allocation failed panic: Assertion mtx_unowned(m) failed at /usr/src-HEAD-20060228-223000UTC/sys/kern/kern_mutex.c:885 cpuid = 0 KDB: enter: panic [thread pid 0 tid 0 ] Stopped at kdb_enter+0x31: leave db> Boot logs are available: http://rsu.ru/~os/ips/boot.amd64.no_apic.HEAD-20060228-223000UTC.txt http://rsu.ru/~os/ips/boot.amd64.apic.HEAD-20060228-223000UTC.txt Can I do anything else to help investigating this issue? -- Oleg Sharoiko. Software and Network Engineer Computer Center of Rostov State University.