From owner-freebsd-current@FreeBSD.ORG Mon Dec 19 13:43:14 2005 Return-Path: X-Original-To: current@freebsd.org 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 3D28E16A41F for ; Mon, 19 Dec 2005 13:43:14 +0000 (GMT) (envelope-from rink@charm.il.fontys.nl) Received: from mail.unilogicnetworks.net (mail-out.unilogicnetworks.net [62.133.192.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8751D43D7C for ; Mon, 19 Dec 2005 13:43:07 +0000 (GMT) (envelope-from rink@charm.il.fontys.nl) Received: from mail.il.fontys.nl (mx0.il.fontys.nl [194.26.13.7]) by mail.unilogicnetworks.net (Postfix) with ESMTP id 70574EF131 for ; Mon, 19 Dec 2005 14:43:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.il.fontys.nl (Postfix/VSRI) with ESMTP id DD31E17042 for ; Mon, 19 Dec 2005 14:48:12 +0100 (CET) Received: from mail.il.fontys.nl ([127.0.0.1]) by localhost (sukke.il.fontys.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12906-02 for ; Mon, 19 Dec 2005 14:48:12 +0100 (CET) Received: from charm.il.fontys.nl (www.il.fontys.nl [IPv6:2001:4128:1000:1000::10]) by mail.il.fontys.nl (Postfix) with ESMTP for ; Mon, 19 Dec 2005 14:48:12 +0100 (CET) Received: by charm.il.fontys.nl (Postfix, from userid 1678) id 8EC3341CD; Mon, 19 Dec 2005 14:40:52 +0100 (CET) Date: Mon, 19 Dec 2005 14:40:52 +0100 From: Rink Springer To: current@freebsd.org Message-ID: <20051219134052.GB68985@il.fontys.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Editor: Vim http://www.vim.org/ X-Info: http://rink.nu/ X-Operating-System: FreeBSD 6.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at il.fontys.nl Cc: Subject: [PATCH] FreeBSD/xbox nve(4) support X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 13:43:14 -0000 Hiya, I have finally discovered why the XBOX nForce card does not attach correctly. Based on this, the patch at http://rink.nu/downloads/xbox-patches/xbox-nve.diff will fix the situation. The problem is, that the card is not fully reset. In fact, it looks as if the Linux Cromwell BIOS leaves it running, where it does not seem to accept initialization. Since probably more XBOX loaders fail to reset the chip correctly, I have chosen to create a small patch which pulls the chip out of the running state. This makes the nve(4) driver attach correctly. Could someone please commit this patch? It will be executed on XBOXes only, so it will not break anything. PS. I get 10MB/sec on my XBOX while transferring files, but the nve(4) driver will cause 7500 interrupts/sec and burn up 30% interrupt time (as well as 50% system time or so). Is this 'normal' behaviour of nve(4) ? --=20 Rink P.W. Springer - http://rink.nu "Richter: Tribute? You steal men's souls, and make them your slaves! Dracula: Perhaps the same could be said of all religions." - Castlevania: Symphony of the Night