Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261360AbVA1NOy (ORCPT ); Fri, 28 Jan 2005 08:14:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261351AbVA1NOx (ORCPT ); Fri, 28 Jan 2005 08:14:53 -0500 Received: from styx.suse.cz ([82.119.242.94]:58555 "EHLO mail.suse.cz") by vger.kernel.org with ESMTP id S261360AbVA1NOc (ORCPT ); Fri, 28 Jan 2005 08:14:32 -0500 Date: Fri, 28 Jan 2005 14:17:28 +0100 From: Vojtech Pavlik To: Andries Brouwer Cc: Linus Torvalds , Jaco Kroon , sebekpi@poczta.onet.pl, Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: i8042 access timings Message-ID: <20050128131728.GA11723@ucw.cz> References: <200501260040.46288.sebekpi@poczta.onet.pl> <41F888CB.8090601@kroon.co.za> <20050127202947.GD6010@pclin040.win.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050127202947.GD6010@pclin040.win.tue.nl> User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1423 Lines: 31 On Thu, Jan 27, 2005 at 09:29:47PM +0100, Andries Brouwer wrote: > > So what _might_ happen is that we write the command, and then > > i8042_wait_write() thinks that there is space to write the data > > immediately, and writes the data, but now the data got lost because the > > buffer was busy. > > Hmm - I just answered the same post and concluded that I didnt understand, > so you have progressed further. I considered the same possibility, > but the data was not lost since we read it again later. > Only the ready flag was lost. What I believe is happening is that we're talking to SMM emulation of the i8042, which doesn't have a clue about these commands, while the underlying real hardware implementation does. And because of that they disagree on what should happen when the command is issued, and since the SMM emulation lazily synchronizes with the real HW, we only get the data back with the next command. I still don't have an explanation why both 'usb-handoff' and 'acpi=off' help, I'd expect only the first to, but it might be related to the SCI interrupt routing which isn't done when 'acpi=off'. Just a wild guess. -- Vojtech Pavlik SuSE Labs, SuSE CR - 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/