From owner-freebsd-scsi@FreeBSD.ORG Wed Aug 30 02:03:50 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 4471C16A4E1 for ; Wed, 30 Aug 2006 02:03:50 +0000 (UTC) (envelope-from jrhett@mail.meer.net) Received: from outbound0.sv.meer.net (outbound0.mx.meer.net [209.157.153.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4B1643D46 for ; Wed, 30 Aug 2006 02:03:49 +0000 (GMT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.sv.meer.net (8.12.10/8.12.6) with ESMTP id k7U23hjU088392; Tue, 29 Aug 2006 19:03:49 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id k7U23Y5a091313; Tue, 29 Aug 2006 19:03:34 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: (from jrhett@localhost) by mail.meer.net (8.13.3/8.13.3) id k7U23Vaw091305; Tue, 29 Aug 2006 19:03:31 -0700 (PDT) (envelope-from jrhett) Date: Tue, 29 Aug 2006 19:03:31 -0700 From: Jo Rhett To: Scott Long Message-ID: <20060830020331.GA90594@svcolo.com> References: <27BE7ACB-BCF9-40A5-96F4-CE90A297CE71@svcolo.com> <44DD4A97.2050203@samsco.org> <22CAF3B5-49EA-413C-8EB5-BC27DB70CC82@svcolo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22CAF3B5-49EA-413C-8EB5-BC27DB70CC82@svcolo.com> Organization: svcolo.com User-Agent: Mutt/1.5.9i Cc: freebsd-scsi@freebsd.org Subject: Re: myl driver failing during server shutdown 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: Wed, 30 Aug 2006 02:03:50 -0000 Any update on this? Possible fix in the near future? On Tue, Aug 15, 2006 at 11:59:26AM -0700, Jo Rhett wrote: > >Jo Rhett wrote: > >>So I had thought that my motherboard didn't honor the acpi reset > >>or power down command. It turns out that it does just fine -- > >>but the shutdown is failing/hanging. Attaching a serial console > >>to it, I see > > On Aug 11, 2006, at 8:27 PM, Scott Long wrote: > >Give this (untested) patch a try. If that doesn't work, it's going to > >need a lot more digging, and I unfortunately don't have the time for > >that right now. > > Now it fails to boot: > > /boot/kernel/acpi.ko text=0x40c2c data=0x2160+0x1090 syms=[0x4+0x7810 > +0x4+0xa292] > Copyright (c) 1992-2005 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights > reserved. > FreeBSD 6.0-RELEASE-p9 #0: Mon Aug 14 19:56:42 PDT 2006 > root@triceratops.lizardarts.com:/usr/obj/usr/src/sys/GENERIC > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: AMD Athlon(tm) Pros}ssor (1596.28-MHz 686-class CPU) > Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 > > Features=0x383f9ff MOV,PAT,PSE36,MMX,FXSR,SSE> > AMD Features=0xc0480800 > real memory = 1040121856 (991 MB) > avail memory = 1009188864 (962 MB) > npx0: [FAST] > npx0: on motherboard > npx0: INT 16 interface > acpi0: on motherboard > acpi0: Power Button (fixed) > pci_link0: irq 11 on acpi0 > pci_link1: irq 10 on acpi0 > pci_link2: irq 12 on acpi0 > pci_link3: irq 5 on acpi0 > pci_link4: on acpi0 > pci_link5: on acpi0 > pci_link6: on acpi0 > pci_link7: on acpi0 > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 > cpu0: on acpi0 > acpi_button0: on acpi0 > acpi_button1: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > agp0: mem > 0xe0000000-0xe3ffffff at device 0.0 on pci0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > pci1: at device 0.0 (no driver attached) > mly0: mem 0xe8000000-0xe9ffffff irq 10 at > device 8.0 on pci0 > mly0: [GIANT-LOCKED] > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc05ec7d2 > stack pointer = 0x28:0xc0c20b14 > frame pointer = 0x28:0xc0c20b14 > 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 = 0 (swapper) > trap number = 12 > panic: page fault > Uptime: 1s > > > > >Scott > > > >Index: mly.c > >=================================================================== > >RCS file: /usr/ncvs/src/sys/dev/mly/mly.c,v > >retrieving revision 1.39 > >diff -u -r1.39 mly.c > >--- mly.c 8 Aug 2005 12:23:26 -0000 1.39 > >+++ mly.c 10 Aug 2006 11:57:54 -0000 > >@@ -1128,9 +1128,12 @@ > > mc->mc_data = *data; > > mc->mc_flags |= MLY_CMD_DATAOUT; > > } > >- mc->mc_length = datasize; > >- mc->mc_packet->generic.data_size = datasize; > >+ } else if (datasize != 0) { > >+ error = EINVAL; > >+ goto out; > > } > >+ mc->mc_length = datasize; > >+ mc->mc_packet->generic.data_size = datasize; > > > > /* run the command */ > > if ((error = mly_immediate_command(mc))) > > -- > Jo Rhett > senior geek > Silicon Valley Colocation > > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" -- Jo Rhett senior geek SVcolo : Silicon Valley Colocation