From owner-freebsd-scsi@FreeBSD.ORG Tue Aug 15 19:01:40 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 7A1F216A4DE for ; Tue, 15 Aug 2006 19:01:40 +0000 (UTC) (envelope-from jrhett@svcolo.com) Received: from outbound0.sv.meer.net (outbound0.mx.meer.net [209.157.153.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DD5443DDC for ; Tue, 15 Aug 2006 19:00:32 +0000 (GMT) (envelope-from jrhett@svcolo.com) 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 k7FIxpio027831; Tue, 15 Aug 2006 12:00:32 -0700 (PDT) (envelope-from jrhett@svcolo.com) Received: from [10.66.240.106] (public-wireless.sv.svcolo.com [64.13.135.30]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id k7FIxSa1001388; Tue, 15 Aug 2006 11:59:28 -0700 (PDT) (envelope-from jrhett@svcolo.com) In-Reply-To: <44DD4A97.2050203@samsco.org> References: <27BE7ACB-BCF9-40A5-96F4-CE90A297CE71@svcolo.com> <44DD4A97.2050203@samsco.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <22CAF3B5-49EA-413C-8EB5-BC27DB70CC82@svcolo.com> Content-Transfer-Encoding: 7bit From: Jo Rhett Date: Tue, 15 Aug 2006 11:59:26 -0700 To: Scott Long X-Mailer: Apple Mail (2.752.2) 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: Tue, 15 Aug 2006 19:01:40 -0000 > 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 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