Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BcN6k-0002CE-86 for qemu-devel@nongnu.org; Mon, 21 Jun 2004 07:37:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BcN6i-0002BH-8Y for qemu-devel@nongnu.org; Mon, 21 Jun 2004 07:37:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BcN6i-0002Au-4c for qemu-devel@nongnu.org; Mon, 21 Jun 2004 07:37:00 -0400 Received: from [203.10.110.71] (helo=mail.netspace.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BcN5G-00012s-FF for qemu-devel@nongnu.org; Mon, 21 Jun 2004 07:35:30 -0400 Received: from barad-dur.middle-earth (dsl-203-113-219-115.VIC.netspace.net.au [203.113.219.115]) by mail.netspace.net.au (Postfix) with ESMTP id 2A0B0429B0 for ; Mon, 21 Jun 2004 21:35:01 +1000 (EST) From: Jonathan Gray Content-Type: multipart/mixed; boundary="=-X/Xdi5/E+aVjdV6R32zU" Date: Mon, 21 Jun 2004 21:35:27 +1000 Message-Id: <1087817727.9294.50.camel@barad-dur.middle-earth> Mime-Version: 1.0 Subject: [Qemu-devel] [PATCH]: make pci work with OpenBSD / APM issue Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-X/Xdi5/E+aVjdV6R32zU Content-Type: text/plain Content-Transfer-Encoding: 7bit The attached patch adds a value to the piix3 register which the OpenBSD src/sys/dev/pci/pciide_piix_reg.h calls the "Bus master interface base address register" with the value taken from an lspci output google found ( http://seclists.org/lists/linux-kernel/2001/Jul/2485.html ). I'm not sure of the implications of giving this register a value when the comment a few lines down is "/* XXX: must add BMDMA support to be fully compliant */" But it does let me boot a recent OpenBSD snapshot instead of giving me a panic. Out of interest is there actual piix3 hardware without BMDMA? A separate issue arises when using the recently added APM support. Unless I disable APM via boot -c/config/etc I get a console/logfull of the following message: "apm0: APM set CPU idle: unknown error code? (83)" Haven't looked into this one, happy just to have things up and running for now. regards Jonathan --=-X/Xdi5/E+aVjdV6R32zU Content-Disposition: attachment; filename=qemu-piix3-20040621.diff Content-Type: text/x-patch; name=qemu-piix3-20040621.diff; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Index: hw/ide.c =================================================================== RCS file: /cvsroot/qemu/qemu/hw/ide.c,v retrieving revision 1.23 diff -u -r1.23 ide.c --- hw/ide.c 12 Jun 2004 22:23:16 -0000 1.23 +++ hw/ide.c 21 Jun 2004 11:11:26 -0000 @@ -1627,6 +1627,7 @@ pci_conf[0x0a] = 0x01; // class_sub = PCI_IDE pci_conf[0x0b] = 0x01; // class_base = PCI_mass_storage pci_conf[0x0e] = 0x00; // header_type + pci_conf[0x20] = 0x01; // bus master inferface base address /* XXX: must add BMDMA support to be fully compliant */ --=-X/Xdi5/E+aVjdV6R32zU--