On Sun, Oct 23, 2005 at 05:15:29PM -0600, Sibastien Taylor wrote:
> I am having problems having two SATA disks recognized by OpenBSD, the
> 6300ESB
> controller is found and seems to be configured properly but I get the
> error:
>
> pciide2: couldn't map channel 0 cmd regs
> pciide2: couldn't map channel 1 cmd regs
>
> I'm assuming that this is from failing to DMA map the two SATA
> disks? This controller
> is listed as supported in pciide(4) and I see no mention of issues of
> DMA or otherwise
> with this chipset though I did see someone mention that it caused a
> system hang in
> 3.5 though that obviously seems to be fixed now since this system is
> stable and install
> successfully onto a standard PATA disk.
>
> My dmesg is bellow, any help would be greatly appreciated.
Give this diff a go.
Index: pciide.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/pciide.c,v
retrieving revision 1.216
diff -u -p -r1.216 pciide.c
--- pciide.c 22 Oct 2005 23:13:26 -0000 1.216
+++ pciide.c 23 Oct 2005 23:58:08 -0000
@@ -2063,6 +2063,8 @@ chansetup:
/* SATA setup */
if (sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801EB_SATA ||
sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801ER_SATA ||
+ sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_6300ESB_SATA ||
+ sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_6300ESB_SATA2 ||
sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801FBM_SATA ||
sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801FB_SATA ||
sc->sc_pp->ide_product == PCI_PRODUCT_INTEL_82801FR_SATA ||