Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753596Ab0AYVdO (ORCPT ); Mon, 25 Jan 2010 16:33:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753416Ab0AYVdI (ORCPT ); Mon, 25 Jan 2010 16:33:08 -0500 Received: from terminus.zytor.com ([198.137.202.10]:46112 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753538Ab0AYVdG (ORCPT ); Mon, 25 Jan 2010 16:33:06 -0500 Message-ID: <4B5E0DFA.8080705@zytor.com> Date: Mon, 25 Jan 2010 13:32:42 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 MIME-Version: 1.0 To: Vojtech Pavlik CC: Dmitry Torokhov , Robert Hancock , Bastien Nocera , linux-kernel , pjones@redhat.com Subject: Re: [PATCH] Disable i8042 checks on Intel Apple Macs References: <1264011793.1735.3683.camel@localhost.localdomain> <4B57A2D4.9030204@gmail.com> <20100121185544.GB11996@core.coreip.homeip.net> <51f3faa71001211339t4652700ct34659c37479cd67e@mail.gmail.com> <20100121221701.GA15293@core.coreip.homeip.net> <20100125163433.GB31957@suse.cz> In-Reply-To: <20100125163433.GB31957@suse.cz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 921 Lines: 22 On 01/25/2010 08:34 AM, Vojtech Pavlik wrote: > > Thus I believe that the right fix here is to figure out why the accesses > to the ports 0x60/0x64 take a long time or forever on a Mac. Is it just > that the kernel is timing out waiting for the i8042? Or is it something > more sinister? > In the A20 code in the setup code, I look for 0xFF coming back and terminate the "wait for ready" loop much sooner than for other values. 0xFF is a *possible* status value, but not a very *likely* one (especially for repeated reads), as it would represent: parity error + receive timeout + transmit timeout + keyboard lock + command + selftest OK + input full + output full. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/