Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755055Ab2BFQ1q (ORCPT ); Mon, 6 Feb 2012 11:27:46 -0500 Received: from cavan.codon.org.uk ([93.93.128.6]:38264 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753003Ab2BFQ1p (ORCPT ); Mon, 6 Feb 2012 11:27:45 -0500 Date: Mon, 6 Feb 2012 16:27:40 +0000 From: Matthew Garrett To: Andi Kleen Cc: lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH 3/5] ACPI: EC: Add a limited number of repeats after false EC interrupts Message-ID: <20120206162740.GA32061@srcf.ucam.org> References: <1328545032-21373-1-git-send-email-andi@firstfloor.org> <1328545032-21373-4-git-send-email-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1328545032-21373-4-git-send-email-andi@firstfloor.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1206 Lines: 24 On Mon, Feb 06, 2012 at 08:17:10AM -0800, Andi Kleen wrote: > My Acer laptop has a large number of false EC interrupts > (interrupts when the EC indexed data register protocol is in the wrong > state, expecting input when we should send output or vice versa) > It seems the hardware triggers the interrupt before it actually > sets the right status in the register. Our EC code is, at this point, a layer of hacks piled on top of other hacks. We have various patches that fix some machines and break others and a lack of a detailed description of what the driver actually does and where it deviates from the specification (and why). I mention this not because I object to adding more hacks to the pile, but because at some point we're really going to need to bite the bullet and figure out how Windows deals with this hardware and what we're doing differently. That probably means adding ec emulation to qemu. -- Matthew Garrett | mjg59@srcf.ucam.org -- 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/