Received: from [140.186.70.92] (port=38719 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pec7a-00015T-Uk for qemu-devel@nongnu.org; Sun, 16 Jan 2011 18:34:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pec7Z-0000h9-Ep for qemu-devel@nongnu.org; Sun, 16 Jan 2011 18:34:54 -0500 Received: from hall.aurel32.net ([88.191.126.93]:37029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pec7Z-0000gz-72 for qemu-devel@nongnu.org; Sun, 16 Jan 2011 18:34:53 -0500 Date: Mon, 17 Jan 2011 00:34:51 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH, RFC 3/4] prep: Fix duplicate ISA IDE IRQ Message-ID: <20110116233451.GQ16663@hall.aurel32.net> References: <1292287758-8009-1-git-send-email-andreas.faerber@web.de> <1292287758-8009-2-git-send-email-andreas.faerber@web.de> <1292287758-8009-3-git-send-email-andreas.faerber@web.de> <1292287758-8009-4-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1292287758-8009-4-git-send-email-andreas.faerber@web.de> Sender: Aurelien Jarno List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-15?Q?F=E4rber?= Cc: hpoussin@reactos.org, qemu-devel@nongnu.org, agraf@suse.de On Tue, Dec 14, 2010 at 01:49:17AM +0100, Andreas Färber wrote: > Calling isa_ide_init() twice with the same IRQ 13 fails: > > qemu: hardware error: isa irq 13 already assigned > > Use a different IRQ (14) for the second one to avoid this. I am not sure it is actually a good idea. While it fixes the QEMU error, it breaks the kernel boot which waits for both IDE channels on IRQ 13. This causes an endless boot, so the machine never finishes to boot: | ide0 at 0x1f0-0x1f7,0x3f6 on irq 13 | ide1 at 0x170-0x177,0x376 on irq 13 (shared with ide0) | hda: max request size: 512KiB | hda: 20971520 sectors (10737 MB) w/256KiB Cache, CHS=16383/255/63 | hda: cache flushes supported | hda: hda1 hda2 | ide-cd: cmd 0x5a timed out | hdc: lost interrupt | ide-cd: cmd 0x5a timed out | hdc: lost interrupt | hdc: ATAPI 4X CD-ROM drive, 512kB Cache | Uniform CD-ROM driver Revision: 3.20 | hdc: lost interrupt | ide-cd: cmd 0x3 timed out | hdc: lost interrupt | ide-cd: cmd 0x3 timed out | hdc: lost interrupt | hdc: lost interrupt | ... As a temporary workaround it seems better to disable the second IDE channel, this solution works. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net