From owner-freebsd-current@FreeBSD.ORG Mon Oct 31 00:37:06 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from [127.0.0.1] (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 7EC2E16A41F; Mon, 31 Oct 2005 00:37:05 +0000 (GMT) (envelope-from davidxu@freebsd.org) Message-ID: <43656735.7080505@freebsd.org> Date: Mon, 31 Oct 2005 08:37:09 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.10) Gecko/20050806 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "M. Warner Losh" References: <20051030093718.GE39253@dragon.NUXI.org> <4364D90F.3090205@samsco.org> <20051030195936.GZ4115@funkthat.com> <20051030.161606.65680605.imp@bsdimp.com> In-Reply-To: <20051030.161606.65680605.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander@Leidinger.net, gurney_j@resnet.uoregon.edu, freebsd-current@FreeBSD.org Subject: Re: TSC instead of ACPI: powerd doesn't work anymore (to be expected?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2005 00:37:06 -0000 M. Warner Losh wrote: >Actually, ioport reads can be faster than the 1us that's widely >quoted. ioport reads can be as fast as ~125ns (2 cycles at 16MHz). >However, experience has shown that they are rarely this fast. I've >seen 8MB/s pio over the pci bus on some custom hardware we have, which >2Mreads/sec which is about 500ns per read. I think that the pci >hardware that I was reading had a few extra wait states... > >The 1us/read is for devices on the ISA bus or for hardware that >emulates this timing. > >Warner > > > > The ioport speed is also unstable, on my IBM T43 thinkpad notebook, if I load wireless driver, the gettimeofday syscall will be 4 times slower than no wireless driver loaded, though I am not using the wireless network. David Xu