Skip site navigation (1)Skip section navigation (2)
Date:      05 Jul 2002 18:32:20 +0300
From:      Juha Ylitalo <juha.ylitalo@iki.fi>
To:        questions@FreeBSD.ORG
Subject:   DMA on ATAPI (or lack of it ....)
Message-ID:  <1025883140.270.53.camel@shoes.st-paul>

next in thread | raw e-mail | index | archive | help

--=-fXMnpWY47bTPXIE3HvEG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I am going to give you all the relevant stuff below. I ended up having
so much of that stuff, that I decided to move my original question to
the beginning and all system related stuff to the end.

My noname Athlon box seems to work nicely, except for those times, when
I try to watch DVD movies (with ogle 0.8.4). Problem in movies is that
framerate is 17-20 fps.=20
With quick check on system, problem turns out to be that DMA is turned
on ATA, but not on ATAPI. Is there something (in BIOS, rearrange IDE
devices, sysctl, kernel, ...) that I could do to change DMA on for atapi
and that way I would get better performance from DVD drive or should I
simply settle on what I get out of it at the moment (since movies really
are only area, where it bothers me) and worry about it, when I buy my
next machine, which will probably take at least 4-5 years (based on
interval on my previous hardware upgrades).

Hardware:
  Motherboard: Soltek SL-72KAV-X VIA Apollo KT133A Series
    (All Primary Master PIO and Primary Master UDMA settings are Auto=20
     in BIOS)
  DVD: LG DRD-8160

FreeBSD says following:
bash-2.05a$ uname -a
FreeBSD shoes.st-paul 4.6-RELEASE FreeBSD 4.6-RELEASE #2: Sun Jun 16
16:18:59 EEST 2002     root@shoes.st-paul:/usr/obj/usr/src/sys/SHOES=20
i386
bash-2.05a$ sysctl -a | grep ata
kern.ipc.max_datalen: 136
hw.ata.ata_dma: 1
hw.ata.wc: 1
hw.ata.tags: 0
hw.ata.atapi_dma: 0
bash-2.05a$ dmesg [interesting stuff from there]
Origin =3D "AuthenticAMD"  Id =3D 0x644  Stepping =3D 4
Features=3D0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CM=
OV,PAT,PSE36,MMX,FXSR>
  AMD Features=3D0xc0440000<<b18>,AMIE,DSP,3DNow!>
real memory  =3D 536805376 (524224K bytes)
atapci0: <VIA 82C686 ATA100 controller> port 0xd000-0xd00f at device 7.1
on pci0atapci0: Correcting VIA config for southbridge data corruption
bug
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 9 at device
7.2 on pci0
ad0: 38166MB <Maxtor 4D040H2> [77545/16/63] at ata0-master UDMA100
acd0: DVD-ROM <LG DVD-ROM DRD-8160B> at ata1-master PIO4
acd1: CD-RW <CD-Writer+ 9100c> at ata1-slave PIO4
bash-2.05a$=20

Motherboard's manual says:
Primary Master/Slave UDMA:
  Ultra DMA33/66/100 implementation is possible only if your IDE hard
drive supports it, if operating environment includes a DMA drive, and if
your system software both support Ultra DMA33/66/100. ...

According to LG's manual on DVD drive:
Performance:
  Transfer Rate:
      ...
    Burst(ATAPI):
      16.67MBps (PIO mode 4)
      16.67Mbps (Muliword DMA Mode 2) [ It probably should be Multiword,
                                    but...]
      33.3 MBps (Ulta DMA)

--=20
Juha Ylitalo                 juha.ylitalo@iki.fi                <e-mail>
+358 40 562 6152 <mobile>    http://www.iki.fi/jylitalo         <www>
"Some tools are used, because its policy, others because they are good."

--=-fXMnpWY47bTPXIE3HvEG
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQA9JbwET3Z0FVGK5qMRAmF3AKCBPWGjSBCz2RN8cEYlmU5mGnozQACfSf4s
3hVGYU+HkPi4KaDXdRRw+FE=
=6GI4
-----END PGP SIGNATURE-----

--=-fXMnpWY47bTPXIE3HvEG--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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