From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 1 17:51:04 2008 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87FE51065748 for ; Mon, 1 Sep 2008 17:51:04 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 587A78FC2A for ; Mon, 1 Sep 2008 17:51:04 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0K6J00900054YR00@smtpauth1.wiscmail.wisc.edu> for freebsd-sparc64@freebsd.org; Mon, 01 Sep 2008 11:51:04 -0500 (CDT) Received: from trantor.tachypleus.net (ppp-70-226-169-118.dsl.mdsnwi.ameritech.net [70.226.169.118]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K6J006JL052O610@smtpauth1.wiscmail.wisc.edu> for freebsd-sparc64@freebsd.org; Mon, 01 Sep 2008 11:51:03 -0500 (CDT) Date: Mon, 01 Sep 2008 11:54:42 -0500 From: Nathan Whitehorn In-reply-to: <1220287328.70590.46.camel@buffy.york.ac.uk> To: freebsd-sparc64@freebsd.org Message-id: <48BC1E52.7060200@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=70.226.169.118 X-Spam-PmxInfo: Server=avs-9, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.9.1.163128, SenderIP=70.226.169.118 References: <1220278827.70590.35.camel@buffy.york.ac.uk> <20080901161850.GE80839@alchemy.franken.de> <1220287328.70590.46.camel@buffy.york.ac.uk> User-Agent: Thunderbird 2.0.0.16 (X11/20080814) Subject: Re: HEAD panic with ofw_pcibus.c 1.21 on Blade 100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 17:51:04 -0000 Gavin Atkinson wrote: > On Mon, 2008-09-01 at 18:18 +0200, Marius Strobl wrote: >> On Mon, Sep 01, 2008 at 03:20:27PM +0100, Gavin Atkinson wrote: >>> Hi all, >>> >>> My Blade 100 now panics on boot with HEAD, and I've tracked it down to >>> sys/sparc64/pci/ofw_pcibus.c 1.21 (SVN r182108) by marius@. > >> The most likely reason for this is a buggy driver. In this >> case the culprit appears to be the ISA front-end of ahc(4), >> which assumes that it can do bus space reads and writes at >> addresses that may in fact be assigned to a non-ahc(4)- >> compatible device or none at all. While writing something >> at an address that may no belong to the expected device >> probably is a bad idea in generally, reading to and writing >> from unassigned addresses may also trigger exceptions on >> sparc64. I'm unsure how to really fix ahc(4) regarding this, >> I think it should be okay though to only do it on i386 where >> the address range in question probably is reserved for such >> purposes (and which also is the only architecture FreeBSD >> currently runs on where a machine might have an ISA-slot >> and thus can use that front-end at all). >> Justin, do you approve the below patch? Speaking of ahc(4), I have one in my Ultra 5 which will not work unless I have options AHC_ALLOW_MEMIO in my kernel config. I think this option should always be valid for sparc64 systems. Can it be in the default kernel? -Nathan