From owner-freebsd-sparc64@FreeBSD.ORG Fri Feb 18 06:39:41 2005 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99C4616A4CF for ; Fri, 18 Feb 2005 06:39:41 +0000 (GMT) Received: from ns.kt-is.co.kr (ns.kt-is.co.kr [211.218.149.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9563F43D41 for ; Fri, 18 Feb 2005 06:39:40 +0000 (GMT) (envelope-from yongari@kt-is.co.kr) Received: from michelle.kt-is.co.kr (ns2.kt-is.co.kr [220.76.118.193]) (authenticated bits=128) by ns.kt-is.co.kr (8.12.10/8.12.10) with ESMTP id j1I6bdAh042823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Fri, 18 Feb 2005 15:37:39 +0900 (KST) Received: from michelle.kt-is.co.kr (localhost.kt-is.co.kr [127.0.0.1]) by michelle.kt-is.co.kr (8.13.1/8.13.1) with ESMTP id j1I6dHqg001680 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Feb 2005 15:39:17 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Received: (from yongari@localhost) by michelle.kt-is.co.kr (8.13.1/8.13.1/Submit) id j1I6d9ht001679; Fri, 18 Feb 2005 15:39:09 +0900 (KST) (envelope-from yongari@kt-is.co.kr) Date: Fri, 18 Feb 2005 15:39:09 +0900 From: Pyun YongHyeon To: Marius Strobl Message-ID: <20050218063909.GA1541@kt-is.co.kr> References: <86a92e307b2dd4a18e91120078ad0f11@symacx.com> <86a92e307b2dd4a18e91120078ad0f11@symacx.com> <20050216121647.GB91200@ida.interface-business.de> <20050216140208.A6222@newtrinity.zeist.de> <20050217024834.GC81013@kt-is.co.kr> <20050217230603.S18907@newtrinity.zeist.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050217230603.S18907@newtrinity.zeist.de> User-Agent: Mutt/1.4.2.1i X-Filter-Version: 1.11a (ns.kt-is.co.kr) cc: Joerg Wunsch cc: freebsd-sparc64@freebsd.org cc: Olivier Cherrier Subject: Re: Onboard SCSI controller support on Ultra 2 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: yongari@kt-is.co.kr List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2005 06:39:41 -0000 On Thu, Feb 17, 2005 at 11:06:03PM +0100, Marius Strobl wrote: > On Thu, Feb 17, 2005 at 11:48:34AM +0900, Pyun YongHyeon wrote: > > On Wed, Feb 16, 2005 at 02:02:08PM +0100, Marius Strobl wrote: > > [...] > > > > > > > > > > > > > The prob i did find was with QFE card support; they all appear as > > > > > > hme, have the correct individual MAC addresses--- but little else, > > > > > > and errors galore. > > > > > > > > The QFE actually *is* a quad HME card, that's why FreeBSD uses the > > > > same driver for it. What kind of problems do you have with it? > > > > > > > > I've only used PCI-based QFEs so far, but never encountered any > > > > problems with them -- they even make a fine Quad card in IA32 machines > > > > now that FreeBSD supports them outside of OpenFirmware systems. > > > > > > > > > > AFAIK the SBus QFE cards only have a single interrupt for all four > > > HMEs and the FreeBSD hme(4) doesn't take this into account. > > > > > AFAIK HME interrupt handler is called with softc argument. So I guess > > there is no problem since it can correctly find an instance of softc > > and related information. > > Depends on how it actually works. I can't remember were I read about it > but my impression was that it doesn't work like a shared IRQ in the > usual sense. > Anyway, there were reports in the past that SBus QFE don't work properly > and act like not getting interrupts. > Then it seems the SBus QFE has single interrupt source. If this is the case hme(4) should be taught to look into all instances of QFE softc. Adding a code to inspect all softc(maybe be seperate interrupt handler wrapper that calls real interrupt handler for each port) would be simple but I guess it also needs special attach/detach routine for QFE and hme(4) should know a global softc where it starts the traverse. -- Regards, Pyun YongHyeon http://www.kr.freebsd.org/~yongari | yongari@freebsd.org