Wierd ATA-Detection on MIATA (Beta4 and 5.2.1)

Lukas Kaminski kaminski at rbg.informatik.tu-darmstadt.de
Fri Sep 17 06:05:26 PDT 2004


Hi,

on my Miata ( PWS 500au ) the cypress ide controller is somehow detected
twice, or not correctly.

(Generic-kernel 5.2.1)

... isa0: <ISA bus> on isab0
atapci0: <Cypress 82C693 ATA controller> port
0x90a0-0x90af,0x3f4-0x3f7,0x1f0-0x1f7 irq 254 at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: interrupting at ISA irq 14
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: interrupting at ISA irq 15
ata1: [MPSAFE]
atapci1: <GENERIC ATA controller> port 0x374-0x377,0x170-0x177 mem
0x81170000-0x8117ffff at device 7.2 on pci0
atapci1: unable to map interrupt
ohci0: <OHCI (generic) USB con ...

and then

GEOM: create disk ad0 dp=0xfffffc00173bc4a0
ad0: 76351MB <SAMSUNG SP8004H> [155127/16/63] at ata0-master BIOSPIO
acd0: DVDR <HL-DT-ST DVDRAM GSA-4040B> at ata1-master BIOSPIO
Waiting 15 seconds for SCSI devices to settle
...

This happens on FreeBSD 5.2.1 (generic kernel) and on Beta 4.
Is there a way to disable the detection of a "GENERIC ATA controller"?
The drive is working, but only in PIO mode. (it supports DMA).
If DMA is enabled, the system locks up if the hd is accessed.


I've managed to upgrade to Beta 4 (only a custom kernel works, generic
won't boot), but the problem still persists.

(Custom 5.3-Beta-4 kernel)

... isa0: <ISA bus> on isab0
atapci0: <Cypress 82C693 ATA controller> port
0x90a0-0x90af,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 irq 254 at device 7.1 on
pci0
ata0: channel #0 on atapci0
ata0: interrupting at ISA irq 14
ata1: channel #1 on atapci0
ata1: interrupting at ISA irq 15
atapci1: <GENERIC ATA controller> port 0x377-0x37a,0x170-0x177 mem
0x81170000-0x8117ffff at device 7.2 on pci0
atapci1: failed: rid 0x20 is memory, requested 4
atapci1: unable to map interrupt
ata2: channel #0 on atapci1
device_attach: ata2 attach returned 6
ohci0: <OHCI (generic) USB controller>  ...
...

ad0: 76351MB <SAMSUNG SP8004H/QW100-60> [155127/16/63] at ata0-master
BIOSPIO
ATAPI_RESET time = 2570us
acd0: DVDR <HL-DT-ST DVDRAM GSA-4040B/A301> at ata1-master BIOSPIO
Waiting 5 seconds for SCSI devices to settle

...






PS.:

The kernelconfig which works with the MIATA (at least it works for me)

machine         alpha
cpu             EV5
ident           MELKOR

# Platforms supported
options         DEC_ST550

options         SCHED_4BSD
options         INET
options         SCSI_DELAY=4000
options         KTRACE

# Filesystems
options         FFS
options         SOFTUPDATES
options         UFS_DIRHASH
options         MSDOSFS
options         CD9660
#options        UDF
#options        PROCFS
#options        PSEUDOFS

options         GEOM_GPT
options         GEOM_BDE
options         GEOM_STRIPE
options         GEOM_UZIP

options         COMPAT_43
options         SYSVSHM
options         SYSVMSG
options         SYSVSEM
options         _KPOSIX_PRIORITY_SCHEDULING

# Standard busses
device          isa
device          pci

# Floppy drives
device          fdc

# ATA and ATAPI devices
device          ata
device          atadisk
device          atapicd
device          atapifd

# SCSI Controllers
device          isp
device          ispfw

# SCSI peripherals
device          scbus
device          da
device          pass

device          atkbdc
device          atkbd
device          psm
device          vga
device          sc

# Real time clock
device          mcclock

# Serial ports
device          sio

# Parallel port
device          ppc
device          ppbus
device          lpt
device          ppi

# PCI Ethernet NICs
device          miibus          # MII bus support
device          dc              # DEC/Intel 21143 and workalikes

# Pseudo devices.
device          loop            # Network loopback
device          mem             # Memory and kernel memory devices
device          random          # Entropy device
device          ether           # Ethernet support
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"

# USB support
device          ohci            # OHCI PCI->USB interface
device          usb             # USB Bus (required)
device          ugen            # Generic
device          umass


More information about the freebsd-alpha mailing list