Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1424305AbWKPQ2K (ORCPT ); Thu, 16 Nov 2006 11:28:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1424304AbWKPQ2K (ORCPT ); Thu, 16 Nov 2006 11:28:10 -0500 Received: from atlrel6.hp.com ([156.153.255.205]:32987 "EHLO atlrel6.hp.com") by vger.kernel.org with ESMTP id S1424290AbWKPQ2H (ORCPT ); Thu, 16 Nov 2006 11:28:07 -0500 From: Bjorn Helgaas To: Keith Owens Subject: Re: KDB blindly reads keyboard port Date: Thu, 16 Nov 2006 09:28:01 -0700 User-Agent: KMail/1.9.5 Cc: linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org References: <23616.1163649739@kao2.melbourne.sgi.com> In-Reply-To: <23616.1163649739@kao2.melbourne.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611160928.02064.bjorn.helgaas@hp.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1433 Lines: 28 On Wednesday 15 November 2006 21:02, Keith Owens wrote: > I implemented this in my kdb tree, but it has a very nasty side effect, > it stops you from debugging that part of the boot process between kdb > startup and when the i8042 is probed. KDB starts up very early so we > can debug the boot process. Not being able to use the PC keyboard > until later in boot is not acceptable. People using USB keyboards > already suffer from this problem and it is very frustrating. > > Adding a "kdb_use_keyboard" flag means all existing systems have to > change if they want a debugger during boot, just to workaround a few > systems that get an error when reading from non-existent legacy I/O > ports. So I am going back to my original idea, add 'kdb_skip_keyboard' > which is only required on the problem machines. Hold on a minute. These "problem machines" are completely compliant with all the relevant ia64 specs in this area. There is no spec that says a keyboard controller must be present or that reading a non- existent I/O port should be safe. What about the FADT iapc_boot_arch bit? Did you determine that isn't sufficient for some reason? That's available very early. Bjorn - 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/