From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW6jD-00060K-7x for qemu-devel@nongnu.org; Mon, 22 Sep 2014 12:44:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW6j3-00037N-Sx for qemu-devel@nongnu.org; Mon, 22 Sep 2014 12:44:43 -0400 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:43627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW6j3-00036f-KM for qemu-devel@nongnu.org; Mon, 22 Sep 2014 12:44:33 -0400 Received: by mail-wg0-f51.google.com with SMTP id m15so2941891wgh.34 for ; Mon, 22 Sep 2014 09:44:27 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <542051EA.2010802@redhat.com> Date: Mon, 22 Sep 2014 18:44:26 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20140915145005.GM1825@ERROL.INI.CMU.EDU> <5416FF41.7010800@redhat.com> <20140915150754.GO1825@ERROL.INI.CMU.EDU> <5417299C.7020107@redhat.com> <20140921221055.GB1695@ERROL.INI.CMU.EDU> <541F5493.20508@redhat.com> In-Reply-To: <541F5493.20508@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [edk2] OVMF, Q35 and USB keyboard/mouse List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: edk2-devel@lists.sourceforge.net, "Gabriel L. Somlo" Cc: qemu-devel@nongnu.org Il 22/09/2014 00:43, Laszlo Ersek ha scritto: > // Bus 0, Device 1, Function 0 - PCI to ISA Bridge > // > PciWrite8 (PCI_LIB_ADDRESS (0, 1, 0, 0x3c), 0x00); > PciWrite8 (PCI_LIB_ADDRESS (0, 1, 0, 0x60), 0x0b); // LNKA routing target > PciWrite8 (PCI_LIB_ADDRESS (0, 1, 0, 0x61), 0x0b); // LNKB routing target > PciWrite8 (PCI_LIB_ADDRESS (0, 1, 0, 0x62), 0x0a); // LNKC routing target > PciWrite8 (PCI_LIB_ADDRESS (0, 1, 0, 0x63), 0x0a); // LNKD routing target > > This is not appropriate for q35. See "ICH9 PCI to ISA irq remapping" in > qemu's "q35-acpi-dsdt.dsl" file, vs. "PIIX PCI to ISA irq remapping" in > "acpi-dsdt.dsl". If I understand the DSDT right, the field is still at 0x60, but the bridge is now at 1f.0. Right? Also, LNKE-LNKH must be set at 0x68. However, these are only used if OS X runs in PIC mode rather than APIC mode (see \_PIC). Why should OS X be running in PIC mode? So fixing the above is right to do, but may not be enough. Paolo