Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2003 09:03:49 +0200
From:      Juan Rodriguez Hervella <jrh@it.uc3m.es>
To:        Mike Silbersack <silby@silby.com>
Cc:        questions@freebsd.org
Subject:   I try to change atapi_dma to "1" but it doesn't work (It was "Re: ATI Radeon IGP 340M")
Message-ID:  <200310070903.51129.jrh@it.uc3m.es>
In-Reply-To: <20031006124753.U4783@odysseus.silby.com>
References:  <20031004000819.O21168@odysseus.silby.com> <200310061034.46050.jrh@it.uc3m.es> <20031006124753.U4783@odysseus.silby.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 06 October 2003 19:49, Mike Silbersack wrote:
> On Mon, 6 Oct 2003, Juan Rodriguez Hervella wrote:
> > Thank you very much.
> >
> > It's working. I've tried to play a DVD using "ogle", but
> > it doesn't work very well, the movement isn't steady....I've got
> > a friend with the same laptop using Linux and he tells me it works
> > nice.....so I guess it's a FreeBSD performance problem....*sigh*
> >
> > Thank you anyway.
> >
> > --
> > JFRH
>
> FreeBSD doesn't enable DMA access to CD/DVD drives by default, that may be
> part of the problem; try enabling atapi_dma (see the ata manpage), that
> might help.
>
> Mike "Silby" Silbersack

I've tried both atapi_dma="1" in "loader.conf" and "atacontrol mode 1 udma100 
XXX" but when I attempt to access the device, it hangs up.

I copy a "dmesg" if this can help. Look at the end there are some error 
messages related to ATA....

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 4.8-RELEASE #3: Sun Oct  5 02:07:28 CEST 2003
    jrh@cimborrio.it.uc3m.es:/usr/src/sys/compile/JUANILLO
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz (2658.30-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
  
Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,
FXSR,SSE,SSE2,SS,HTT,TM,PBE>
real memory  = 200736768 (196032K bytes)
avail memory = 189956096 (185504K bytes)
Preloaded elf kernel "kernel" at 0xc051c000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 9 entries at 0xc00fdf30
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI to PCI bridge (vendor=1002 device=7010)> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 4337 graphics accelerator> at 5.0
pci0: <unknown card> (vendor=0x10b9, dev=0x5451) at 6.0 irq 5
isab0: <AcerLabs M1533 portable PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <unknown card> (vendor=0x10b9, dev=0x5457) at 8.0
pci_cfgintr_virgin: using routable interrupt 7
pci_cfgintr: 0:10 INTA routed to irq 7
pcic0: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic0: Could not map register memory 0xd0002000
device_probe_and_attach: pcic0 attach returned 12
uhci0: <VIA 83C572 USB controller> port 0x2000-0x201f irq 10 at device 11.0 on 
pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1: NEC Corporation USB2.0 Hub Controller, class 9/0, rev 2.00/1.00, addr 2
uhub1: 3 ports with 3 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0x2020-0x203f irq 10 at device 11.1 on 
pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: <USB controller> at 11.2
pci0: <unknown card> (vendor=0x104c, dev=0x8026) at 12.0
atapci0: <AcerLabs Aladdin ATA100 controller> port 0x2040-0x204f irq 0 at 
device 16.0 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
chip1: <AcerLabs M15x3 Power Management Unit> at device 17.0 on pci0
sis0: <NatSemi DP83815 10/100BaseTX> port 0x2400-0x24ff mem 
0xd0008000-0xd0008fff irq 10 at device 18.0 on pci
0
sis0: Ethernet address: 00:0d:9d:46:f2:c9
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROMs> at iomem 
0xc0000-0xcefff,0xcf000-0xcf7ff,0xdf000-0xdffff,0xe0000-0xe3fff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model MouseMan+, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
pcic0: <Intel i82365SL-DF> at port 0x3e0 iomem 0xd0000 on isa0
pcic0: Polling mode
pccard0: <PC Card 16-bit bus (classic)> on pcic0
pccard1: <PC Card 16-bit bus (classic)> on pcic0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/1 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ad0: 38154MB <FUJITSU MHT2040AT> [77520/16/63] at ata0-master UDMA100
acd0: CD-RW <TOSHIBA DVD-ROM SD-R2312> at ata1-master PIO4
Mounting root from ufs:/dev/ad0s2a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TOSHIBA DVD-ROM SD-R2312 1905> Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12
pcic2: <O2micro 6912 PCI-Cardbus Bridge> irq 7 at device 10.0 on pci0
pcic2: Could not map register memory 0xd0002000
device_probe_and_attach: pcic2 attach returned 12

[snipped, more of this....]

microuptime() went backwards (28690.053351 -> 27994.677032)
Connection attempt to TCP 163.117.139.95:3072 from 69.31.67.254:22
Connection attempt to TCP 163.117.139.95:4899 from 152.14.29.115:2078
Connection attempt to TCP 163.117.139.95:4899 from 152.14.29.115:2078
Connection attempt to TCP 163.117.139.95:4899 from 152.14.29.115:2078
microuptime() went backwards (44806.486456 -> 44111.110169)
[more of this attemps to connect nowhere...]

acd0: READ_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: READ_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: READ_BIG command timeout - resetting
ata1: resetting devices .. done
acd0: READ_BIG command timeout - resetting
acd0: trying fallback to PIO mode
ata1: resetting devices .. done
cd9660: Joliet Extension (Level 3)


This is what atacontrol shows:

root@cimborrio:/home/jrh# atacontrol mode 0
Master = UDMA100 (this is the hard-disk)
Slave  = ???

root@cimborrio:/home/jrh# atacontrol mode 1
Master = PIO4   (this is the DVD/CDRW device)
Slave  = ???

Cheers!

-- 
JFRH



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310070903.51129.jrh>