From owner-freebsd-current@FreeBSD.ORG Mon Dec 8 12:40:09 2008 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55B671065672; Mon, 8 Dec 2008 12:40:09 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 8153B8FC1E; Mon, 8 Dec 2008 12:40:08 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id mB8Ce34O006622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Dec 2008 15:40:06 +0300 (MSK) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1L9fP9-0004L1-4v; Mon, 08 Dec 2008 15:40:03 +0300 From: Vladimir Grebenschikov To: Jille Timmermans In-Reply-To: <493D1436.3030606@quis.cx> References: <200811301906.mAUJ6Z30099035@svn.freebsd.org> <1228739237.1860.21.camel@localhost> <493D1436.3030606@quis.cx> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Mon, 08 Dec 2008 15:40:02 +0300 Message-Id: <1228740002.1860.26.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: Sam Leffler , current Subject: Re: svn commit: r185482 - head/sys/dev/ath/ath_rate/sample X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 12:40:09 -0000 On Mon, 2008-12-08 at 13:33 +0100, Jille Timmermans wrote: after cd /sys/modules/ath_rate_amrr make all make install kldload /boot/kernel/ath_rate .ko It works now, but why three directories in sys/modules tree make same .ko object: # fgrep ath /sys/modules/Makefile ath \ ath_rate_amrr \ ath_rate_onoe \ ath_rate_sample \ # fgrep KMOD /sys/modules/ath_rate*/Makefile /sys/modules/ath_rate_amrr/Makefile:KMOD= ath_rate /sys/modules/ath_rate_onoe/Makefile:KMOD= ath_rate /sys/modules/ath_rate_sample/Makefile:KMOD= ath_rate # Looks like one overwrites another. What is right behaviour ? > Vladimir Grebenschikov wrote: > > * On Sun, 2008-11-30 at 19:06 +0000, Sam Leffler wrote: > > > >> Author: sam > >> Date: Sun Nov 30 19:06:35 2008 > >> New Revision: 185482 > >> URL: http://svn.freebsd.org/changeset/base/185482 > >> > >> Log: > >> Major overhaul: > >> o eliminate private state indexed by 802.11 rate codes; use the hal's > >> rate tables directly to get the same info > >> o calculate a mask of operational rates to optimize lookups and checks > >> (instead of using for loops and similar) > >> o optimize size bin operations > >> o ignore rates marked as "do not use" in the hal phy tables > >> o fix bug that caused upshifting to break in 11g once the rate dropped > >> below 11Mb/s > >> o add more intelligent multi-rate tx schedules > >> o add support for 1/2 and 1/4 width channels > >> o add dev.ath.X.sample_stats sysctl to dump runtime statistics to the console > >> (needs to go up to a user app) > >> o export more tuning knobs via sysctls (still a couple of magic constants) > >> > > > > Looks like, after that commit, I can't use if_ath loaded as module any > > more: > > > > # kldload /boot/kernel/ath_rate.ko > > kldload: can't load /boot/kernel/ath_rate.ko: No such file or directory > > # dmesg | tail -n1 > > link_elf: symbol ath_hal_computetxtime undefined > > # > > > > Yes, I've read UPDATING entry 20081130. > > But I have no ath_hal entry in my kernel config, > > I've loaded ath as KLDs. > > > > How to fix that problem ? > > > I have the same problem if I load it with kernel modules. > If I compile it into my kernel (with ath, ath_hal and that option (can't > remember it for now)) my system paniced during boot. > I can't get a coredump, but I will try getting a stacktrace with ddb > tonight. > > My Atheros (2413 iirc) wasn't usable before the import (did some > printf's during boot, but I couldn't get ath0 showing up in ifconfig) > I am willing to help debugging if needed. > > -- Jille -- Vladimir B. Grebenschikov vova@fbsd.ru