From owner-freebsd-current@FreeBSD.ORG  Thu Apr 22 13:34:12 2010
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0390E106566C;
	Thu, 22 Apr 2010 13:34:12 +0000 (UTC) (envelope-from jhb@freebsd.org)
Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42])
	by mx1.freebsd.org (Postfix) with ESMTP id CB66F8FC18;
	Thu, 22 Apr 2010 13:34:11 +0000 (UTC)
Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net
	[66.111.2.69])
	by cyrus.watson.org (Postfix) with ESMTPSA id 692D546B82;
	Thu, 22 Apr 2010 09:34:11 -0400 (EDT)
Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9])
	by bigwig.baldwin.cx (Postfix) with ESMTPA id 821318A01F;
	Thu, 22 Apr 2010 09:34:10 -0400 (EDT)
From: John Baldwin <jhb@freebsd.org>
To: Maxim Sobolev <sobomax@freebsd.org>
Date: Thu, 22 Apr 2010 09:11:14 -0400
User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; )
References: <4BCD5A7B.2070505@FreeBSD.org> <4BCF5AC1.8080608@FreeBSD.org>
	<4BD01F50.6070403@FreeBSD.org>
In-Reply-To: <4BD01F50.6070403@FreeBSD.org>
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <201004220911.14743.jhb@freebsd.org>
X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1
	(bigwig.baldwin.cx); Thu, 22 Apr 2010 09:34:10 -0400 (EDT)
X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx
X-Virus-Status: Clean
X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham
	version=3.2.5
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx
Cc: freebsd-current@freebsd.org, mj@feral.com
Subject: Re: FreeBSD kernel doesn't boot on FUJITSU PRIMERGY RX200 S5 server
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 22 Apr 2010 13:34:12 -0000

On Thursday 22 April 2010 6:05:04 am Maxim Sobolev wrote:
> Maxim Sobolev wrote:
> > There is already a code to detect non-existing AT keyboard and avoid 
> > attaching atkbd to it. The code is i386-only at the moment, I am trying 
> > to figure out how to modify it so that it works on amd64 as well.
> 
> Looks like this huge delay is caused by the inb() being astonishingly 
> slow, which is not factored by the timeout routines. Reading keyboard 
> status port once takes about 0.003s! I am not sure if it's common 
> behaviour of the platform, or something specific to this particular 
> model. Do you know by any chance?

Well, many BIOSes trigger an SMI# when doing inb/outb to the keyboard ports so 
they can emulate a PS/2 keyboard when a USB keyboard is inserted.  Do you have 
any BIOS options related to the USB legacy compat?  I know of the Nehalem 
systems I've seen they have a separate option for controlling port 60/64 
emulation which we leave disabled by default.

-- 
John Baldwin