From owner-freebsd-current Thu Jan 16 15: 0: 3 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06C5A37B401; Thu, 16 Jan 2003 15:00:01 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D5AD43ED8; Thu, 16 Jan 2003 14:59:59 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h0GMxna6050124; Thu, 16 Jan 2003 17:59:49 -0500 (EST) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h0GMxkEN050108; Thu, 16 Jan 2003 17:59:46 -0500 (EST) (envelope-from hiten) Date: Thu, 16 Jan 2003 17:59:46 -0500 From: Hiten Pandya To: Nate Lawson Cc: Trevor Johnson , alpha@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: unexpected machine check on 5.0 alpha Message-ID: <20030116225946.GC24866@unixdaemons.com> References: <20030116035919.T30783-100000@blues.jpj.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jan 16, 2003 at 09:39:36AM -0800, Nate Lawson wrote the words in effect of: > On Thu, 16 Jan 2003, Trevor Johnson wrote: > > Before adding the ccd line to my kernel configuration file, I had > > attempted to run ccdconfig while using just the GENERIC kernel (also > > 5.0-RC3). I suppos e I shouldn't have been surprised that it didn't work: > > > > -- begin log -- > > # ccdconfig ccd0 128 CCDF_UNIFORM /dev/da2 /dev/da3 /dev/da4 /dev/da5 > > fatal kernel trap: > > trap entry = 0x4 (unaligned access fault) > > cpuid = 1 > > faulting va = 0xe4a000000ed > > opcode = 0x29 > > register = 0x1b > > pc = 0xfffffe0002bd1f1c > > ra = 0xfffffe0002bd1eec > > sp = 0xfffffe00140898a0 > > usp = 0x11fff9f8 > > curthread = 0xfffffc0017efe1f0 > > pid = 3658, comm = ccdconfig > > panic: trap > > cpuid = 1; > > Something in the automatic kldload then? Unaligned access is usually a > programming error. I don't know how much this info can help, but I recently ported NetBSD's BUS_SPACE_DEBUG functionality, which helped them a lot in fixing unaligned access faults. The patch needs a lil' cleaning up for other architectures. Most of the drivers in FreeBSD are heavily used on i386, so it is beneficial to use BUS space debug, so that we can easily find out errors, and fix 'em. It reports someting like this: (taken from NetBSD sample) "buffer
not aligned to 2 bytes ../../../../dev/ic/aic6360.c:1426" Let me know if anyone is interested in those patches. Cheers. -- Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message