From owner-cvs-src@FreeBSD.ORG Tue May 9 12:12:22 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFF4816A527 for ; Tue, 9 May 2006 12:12:22 +0000 (UTC) (envelope-from matusita@jp.FreeBSD.org) Received: from castle.jp.FreeBSD.org (castle.jp.FreeBSD.org [210.226.20.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47C6243D5A for ; Tue, 9 May 2006 12:12:20 +0000 (GMT) (envelope-from matusita@jp.FreeBSD.org) Received: from [192.168.120.243] (localhost [127.0.0.1]) by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id k49CCEQ28849; Tue, 9 May 2006 21:12:15 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) Message-ID: <4460871E.8040808@jp.FreeBSD.org> Date: Tue, 09 May 2006 21:12:14 +0900 From: Makoto Matsushita User-Agent: Thunderbird MIME-Version: 1.0 To: Mike Silbersack References: <200605040741.k447f23o027971@repoman.freebsd.org> <445F2AC2.9030105@jp.FreeBSD.org> <20060508112602.O1937@odysseus.silby.com> In-Reply-To: <20060508112602.O1937@odysseus.silby.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/bfe if_bfe.c if_bfereg.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2006 12:12:42 -0000 > Can you tell the me the following: > > 1. How much RAM does your system have? > 2. What revision of the bfe chip do you have, according to dmesg? Q1: 512MB, including video RAM (kernel recognize 495MB total) Q2: from dmesg with -v option, bfe0: mem 0xf9100000-0xf9101fff irq 10 at device 1.0 on pci1 bfe0: Reserved 0x2000 bytes for rid 0x10 type 3 at 0xf9100000 miibus0: on bfe0 bmtphy0: on miibus0 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bfe0: bpf attached bfe0: Ethernet address: 00:04:2e:01:ed:9e bfe0: [MPSAFE] > Then, if you're sure it's the if_bfereg.h change and not the if_bfe.c > change that causes the problem, try playing with the values of > BFE_TX_LIST_CNT and BFE_RX_LIST_CNT - those are the only two values that > changed. I changed them from 511 to 128. You could try values like 127, > 255, 256, 510... see if any/all of those work. I've tested with following kernel modules: % ls /boot/kernel/if_bfe.ko-* /boot/kernel/if_bfe.ko-127 /boot/kernel/if_bfe.ko-256 /boot/kernel/if_bfe.ko-128 /boot/kernel/if_bfe.ko-383 /boot/kernel/if_bfe.ko-129 /boot/kernel/if_bfe.ko-384 /boot/kernel/if_bfe.ko-191 /boot/kernel/if_bfe.ko-511 /boot/kernel/if_bfe.ko-255 where if_bfe.ko-XXX means "set BFE_TX_LIST_CNT/BFE_RX_LIST_CNT to XXX." Each time kernel boots, load a kernel module manually, boot -s, then try /etc/netstart and see what's happen. Works fine: 384, 511 Don't work: 127, 128, 129, 191, 255, 256, 383 It is very interesting that 383 doesn't work but 384 ok. -- Makoto `MAR' Matsushita