: make pci work with OpenBSD / APM issue
PATCH 1/1 : make pci work with OpenBSD / APM issue
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
Index: hw/ide.c
===================================================================
RCS file: /cvsroot/qemu/qemu/hw/ide.c,v
retrieving revision 1.23
ide.c +1 -0
@@ -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 */
I think if the QEMU IDE devices report PIO only then it won't go
into DMA at all. But YMMV.
- Chad
Quoted 26 lines · Jonathan Gray
The attached patch adds a value to the piix3 register which the OpenBSD
src/sys/dev/pci/pciide_piix_reg.hcalls 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