From owner-freebsd-sparc Fri Dec 27 3:53:26 2002 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84DB237B401 for ; Fri, 27 Dec 2002 03:53:25 -0800 (PST) Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 685C043EB2 for ; Fri, 27 Dec 2002 03:53:24 -0800 (PST) (envelope-from brandt@fokus.gmd.de) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id gBRBrNJ16563 for ; Fri, 27 Dec 2002 12:53:23 +0100 (MET) Date: Fri, 27 Dec 2002 12:53:23 +0100 (CET) From: Harti Brandt To: sparc@freebsd.org Subject: busdma on sparc Message-ID: <20021227121312.I56345-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I have a problem with porting my driver for the Marconi HE ATM card to sparc: The driver may (dependend on its cofiguration) need to give a lot of mbufs and mbuf clusters to the card for its different receive queues. In the biggest configuration I tried on i386 I have around 2000 clusters and 4000 mbufs. In iommu.c each dmamap eats up 32k of virtual address space (16k because of the page size and 16k for alignment). This means, that each mbuf of lesser than 200 bytes eats 32k of virtual DMA address space. This makes it impossible to allocate enough buffers to the card for high performance applications. I was under the impression, that mbufs are already aligned to every possible alignment requirements, so wouldn't it be possible to reduce the 32k to 16k on request from the driver (perhaps via one of the BUS_DMA_BUS[1-4] flags? harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message