From owner-freebsd-scsi@FreeBSD.ORG Sat Aug 12 03:27:28 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 E4D6016A4DF for ; Sat, 12 Aug 2006 03:27:28 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DB6F43D45 for ; Sat, 12 Aug 2006 03:27:27 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k7C3RK1N005782; Fri, 11 Aug 2006 21:27:26 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <44DD4A97.2050203@samsco.org> Date: Fri, 11 Aug 2006 21:27:19 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jo Rhett References: <27BE7ACB-BCF9-40A5-96F4-CE90A297CE71@svcolo.com> In-Reply-To: <27BE7ACB-BCF9-40A5-96F4-CE90A297CE71@svcolo.com> Content-Type: multipart/mixed; boundary="------------010706020105070808080501" X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org 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: Sat, 12 Aug 2006 03:27:29 -0000 This is a multi-part message in MIME format. --------------010706020105070808080501 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 > this: > > Waiting (max 60 seconds) for system process `syncer' to stop... > Syncing disks, vnodes remaining...3 0 2 0 0 done > All buffers synced. > Uptime: 6d18h12m6s > (da0:mly0:1:0:0): Synchronize cache failed, status == 0xb, scsi status > == 0x0 > mly0: flushing cache...kernel trap 12 with interrupts disabled > > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0x0 > stack pointer = 0x28:0xe25c1ac0 > frame pointer = 0x28:0x0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 1 (init) > trap number = 12 > panic: page fault > Uptime: 6d19h12m38s > (da0:mly0:1:0:0): Synchronize cache failed, status == 0xb, scsi status > == 0x0 > Dumping 991 MB (2 chunks) > Aborting dump due to I/O error. > status == 0xb, scsi status == 0x0 > > ** DUMP FAILED (ERROR 5) ** > > This is 100% reproducable. Anyone have any ideas where to start on > this problem? What does this error mean? > > Note: if you want to debug this, I can provide root access. It's just > a personal box :-) > 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. Scott --------------010706020105070808080501 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="mly.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mly.diff" 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))) --------------010706020105070808080501--