From owner-svn-src-projects@FreeBSD.ORG Thu Mar 24 17:19:20 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58A69106566B; Thu, 24 Mar 2011 17:19:20 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2C52E8FC0A; Thu, 24 Mar 2011 17:19:20 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id CD3BB46B49; Thu, 24 Mar 2011 13:19:19 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 5417E8A02A; Thu, 24 Mar 2011 13:19:19 -0400 (EDT) From: John Baldwin To: Marcel Moolenaar Date: Thu, 24 Mar 2011 13:04:37 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110311; KDE/4.5.5; amd64; ; ) References: <201103241656.p2OGuY6k051706@svn.freebsd.org> In-Reply-To: <201103241656.p2OGuY6k051706@svn.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201103241304.37386.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Thu, 24 Mar 2011 13:19:19 -0400 (EDT) Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r219964 - projects/altix/sys/ia64/sgisn X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2011 17:19:20 -0000 On Thursday, March 24, 2011 12:56:34 pm Marcel Moolenaar wrote: > Author: marcel > Date: Thu Mar 24 16:56:33 2011 > New Revision: 219964 > URL: http://svn.freebsd.org/changeset/base/219964 > > Log: > Add necessary address space mapping. The Altix architecture has distinct > address spaces for PCI devices and CPUs. That is, the S-Hub translates > addresses on the FSB and coming from CPUs to addresses valid on the PCI bus. > This is abstracted and implemented in FreeBSD by having the handle contain the > CPU address, while the resource itself describes the PCI bus address. Since > devices are mapped when resources are activated and the bus handle is derived > from that, have the SGI PCI bus driver handle the activation of resources > instead of passing it up to the nexus. > > Note that the Altix architecture allows for IRQ values larger than 255 even > though the intline register in the PCI configuration space does not. FreeBSD > also doesn't support it by virtue of having an IRQ resource space that's > limited. On my machines the IRQ values are within bounds so I'm not going to > worry about this detail. It may very well be theoretical. FreeBSD certainly supports any arbitrary range of unsigned long values as IRQ resources. MSI on x86 uses IRQs > 255 for example. The PCI bus code does assume that IRQ 255 is a cookie value that can be used for an invalid INTx IRQ, but that's the only assumption it makes. The limit on the IRQ rman in the nexus is put in place by each platform. If you want a larger range, just fix the initialization of your rman. -- John Baldwin