From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDU3Z-0006JH-OF for qemu-devel@nongnu.org; Sun, 25 Aug 2013 02:44:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDU3S-00006K-AH for qemu-devel@nongnu.org; Sun, 25 Aug 2013 02:44:13 -0400 Received: from mail-ee0-x22d.google.com ([2a00:1450:4013:c00::22d]:39476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDU3S-00006A-47 for qemu-devel@nongnu.org; Sun, 25 Aug 2013 02:44:06 -0400 Received: by mail-ee0-f45.google.com with SMTP id c50so1002984eek.4 for ; Sat, 24 Aug 2013 23:44:05 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5219A7B0.2070208@redhat.com> Date: Sun, 25 Aug 2013 08:44:00 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1377396984-17706-1-git-send-email-pingfank@linux.vnet.ibm.com> <1377396984-17706-2-git-send-email-pingfank@linux.vnet.ibm.com> In-Reply-To: <1377396984-17706-2-git-send-email-pingfank@linux.vnet.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] hpet: inverse polarity when pin above ISA_NUM_IRQS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Ping Fan Cc: Jan Kiszka , qemu-devel@nongnu.org, Anthony Liguori Il 25/08/2013 04:16, Liu Ping Fan ha scritto: > According to hpet spec, hpet irq is high active. But according to > ICH spec, there is inversion before the input of ioapic. So the OS > will expect low active on this IRQ line.(And this is observed on > bare metal). > > We fold the emulation of this inversion inside the hpet logic. > > Signed-off-by: Liu Ping Fan > --- > kernel has a bug with ioapic, refer to > https://lkml.org/lkml/2013/8/23/98 > With all these patch, linux-2.6/Documentation/timers/hpet_example.c can work > on qemu Can you explain "in qemu q35 machine ioapic's ioredtbl[x] can never be set as low-active, even if the hpet driver registered it"? Paolo