From owner-freebsd-hackers Wed Apr 4 8:22:37 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mokona.furryterror.org (cr934547-a.flfrd1.on.wave.home.com [24.112.247.163]) by hub.freebsd.org (Postfix) with ESMTP id E1AB237B719 for ; Wed, 4 Apr 2001 08:22:33 -0700 (PDT) (envelope-from afong@furryterror.org) Received: from afong by mokona.furryterror.org with local (Exim 3.12 #1 (Debian)) id 14kp73-0004up-00; Wed, 04 Apr 2001 11:22:25 -0400 Subject: Re: Acenic driver questions In-Reply-To: <20010404090602.A19240@panzer.kdm.org> from "Kenneth D. Merry" at "Apr 4, 2001 09:06:02 am" To: "Kenneth D. Merry" Date: Wed, 4 Apr 2001 11:22:25 -0400 (EDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL66 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: From: Amy Fong Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Wed, Apr 04, 2001 at 09:48:24 -0400, Amy Fong wrote: > > Question about the acenic driver. In if_ti.c, there's ti_mem > > which is currently used to load the firmware onto the card. What > > I'm trying to do is to use take advantage of the window base/window > > from the registers on the tigon and write to a particular segment of > > the memory. From what I've seen so far, it looks like I should be > > able to do this using ti_mem to do this but my experimentations > > don't seem to be working. I know that Linux acenic driver has > > patches available for using the window/winbase to read the nic's > > tracing ring buffer so I'm thinking that I should be on the right > > track. > > > > Does anyone have any experience/suggestions? > > Look at the Tigon driver diffs in this patch set: > > http://people.FreeBSD.org/~ken/zero_copy/zero_copy.diffs.20010124 > > In particular, look at the ti_copy_mem() function. > > Ken > -- > Kenneth Merry > ken@kdm.org > Thanks! I should be kicking myself right now. I looked at the zero copy code a few months back and totally forgot about it. While I'm wasting bandwidth, I've got another question. I've noticed that if I use up too much stack space, the freebsd kernel (4.2) seems to crash very easily. Specially, if I create an array of size N within a function, once the function gets invoked, my machine just reboots. How do I find out how much stack space I've got? I'm assuming that it _is_ a stack issue. :) Amy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message