From owner-freebsd-mips@FreeBSD.ORG Fri Feb 19 23:45:57 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDEE1106566C for ; Fri, 19 Feb 2010 23:45:57 +0000 (UTC) (envelope-from smeagle@bsdler.de) Received: from hell.bsdler.de (hell-fe0.v6.bsdler.de [IPv6:2001:780:0:19::1]) by mx1.freebsd.org (Postfix) with ESMTP id 827798FC0C for ; Fri, 19 Feb 2010 23:45:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hell.bsdler.de (Postfix) with ESMTP id 47F3EB872; Sat, 20 Feb 2010 00:45:55 +0100 (CET) X-Virus-Scanned: amavisd-new at bsdler.de Received: from hell.bsdler.de ([127.0.0.1]) by localhost (hell.bsdler.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TsWXUv34eYhb; Sat, 20 Feb 2010 00:45:50 +0100 (CET) Received: from kiste.lan.terror.local (p5DD1C363.dip.t-dialin.net [93.209.195.99]) by hell.bsdler.de (Postfix) with ESMTPSA id 379CEB83D; Sat, 20 Feb 2010 00:45:50 +0100 (CET) Received: from [172.17.21.80] (brain.lan.terror.local [172.17.21.80]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by kiste.lan.terror.local (Postfix) with ESMTPS id 5CCB3535B7; Sat, 20 Feb 2010 00:45:49 +0100 (CET) From: Florian Kruegl To: Oleksandr Tymoshenko In-Reply-To: <4B7EE17B.8040702@bluezbox.com> References: <1266442999.2149.42.camel@brain.lan.terror.local> <4B7C64D6.8070905@bluezbox.com> <1266604253.2149.55.camel@brain.lan.terror.local> <4B7EE17B.8040702@bluezbox.com> Content-Type: text/plain; charset="ASCII" Date: Sat, 20 Feb 2010 00:43:20 +0100 Message-ID: <1266623000.2149.83.camel@brain.lan.terror.local> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: hifn support X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: smeagle@bsdler.de List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2010 23:45:58 -0000 On Fri, 2010-02-19 at 11:07 -0800, Oleksandr Tymoshenko wrote: [ ... ] > IRQ numbering is a little messy on MIPS. And there were no IRQ > counters in AR71XX PCI code. Try this patch too: > http://people.freebsd.org/~gonzo/patches/ar71xx_pci_intrcnt.diff applied but no visible change, vmstat -i still shows no interrupt for hifn. > > You'll need the first one too. Also try running verified to be applied, checked using snv diff. > /usr/src/tools/tools/crypto tool for performance testing. goofy# cryptotest hifn0: abort, resetting. cryptotest: ioctl(CIOCCRYPT): Cannot allocate memory goofy# hifnstats input 8 bytes 1 packets output 0 bytes 0 packets invalid 0 nomem 0 abort 1 noirq 0 unaligned 0 totbatch 0 maxbatch 0 nomem: map 0 load 0 mbuf 0 mcl 0 cr 0 sd 0 goofy# cryptostats 1 symmetric crypto ops (1 errors, 0 times driver blocked) 0 key ops (0 errors, 0 times driver blocked) 0 crypto dispatch thread activations 0 crypto return thread activations dispatch->invoke: avg 1324 ns : min 0 ns : max 1324 ns [1 samps] invoke->done: avg 2620741 ns : min 0 ns : max 2620741 ns [1 samps] done->cb: avg 1069 ns : min 0 ns : max 1069 ns [1 samps] cb->finis: avg 5763 ns : min 0 ns : max 5763 ns [1 samps] goofy# vmstat -i interrupt total rate int0 pcib0 1 0 int1 ehci0 3755 9 int3 arge1 12 0 int4 apb0 2526 6 int5 clock0 405356 1000 apb intr3: uart0 2524 6 apb intr6: ohci0 2 0 ar71xx_pci intr0: + 1 0 Total 414177 1022 when I run cryptotest again it never returns and cannot be killed. goofy# cryptotest load: 0.00 cmd: cryptotest 1370 [crydev] 57.36r 0.00u 0.00s 0% 1156k load: 0.00 cmd: cryptotest 1370 [crydev] 57.50r 0.00u 0.00s 0% 1156k load: 0.00 cmd: cryptotest 1370 [crydev] 57.65r 0.00u 0.00s 0% 1156k ... > > I don't have RS Pro setup at the moment, so can't test it myself > right now :( But will do over weekend. > > thanks a lot, don't have much time this weekend, 8bit and 3kid calling ;)