Re: Solved??? Re: playing mp3s and burning a cd

2003-03-25 Thread Daniel C. Sobral
The Anarcat wrote:
On Mon Mar 24, 2003 at 02:14:48PM -0500, Don wrote:

Should a PR be filed or some QA team contacted to make sure this
problem doesn't stay alive in 5.2? :)
This isn't, by chance, a problem with your setting for the
sysctl hw.ata.atapi_dma is it?


How extraordinarly cute! This solves it! I'm currently listening to
Me, Mom and Morgentaler and burning a 4x CD without any slowdown, this
is great.
So I guess a workaround is to toggle DMA for my ATAPI bus. Indeed,
the burner is IDE and should be working on DMA mode to get optimal
performance.
The thing is that atapicam hides the DMA/PIO magic from the usual boot
messagesand there's therefore no way to see wether the device is in
DMA mode unless you compile in both cd0 and acd0 which I heard isn't
recommended...
A.

PS: what's the proper way to enable ATAPI DMA in the loader.conf file?
I don't see any flag WRT that there.. I'm tempted to add:
set hw.ata.atapi_cam=1
That would be:

hw.ata.atapi_cam=1

if it works  on loader at all. If not, /etc/sysctl.conf would be the place.

anywhere there...

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 5.0-RELEASE #2: Fri Mar  7 15:05:32 EST 2003
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/LENNII
Preloaded elf kernel /boot/kernel/kernel at 0xc06ea000.
Preloaded elf module /boot/kernel/snd_emu10k1.ko at 0xc06ea0a8.
Preloaded elf module /boot/kernel/snd_pcm.ko at 0xc06ea158.
Preloaded elf module /boot/kernel/radeon.ko at 0xc06ea204.
Preloaded elf module /boot/kernel/acpi.ko at 0xc06ea2b0.
Timecounter i8254  frequency 1193182 Hz
Timecounter TSC  frequency 1008992834 Hz
CPU: AMD Duron(tm) Processor (1008.99-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x670  Stepping = 0
  Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
  AMD Features=0xc044RSVD,AMIE,DSP,3DNow!
real memory  = 1207877632 (1151 MB)
avail memory = 1166782464 (1112 MB)
Initializing GEOMetry subsystem
Pentium Pro MTRR support enabled
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: ASUS   A7V-133  on motherboard
ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
Using $PIR table, 9 entries at 0xc00f1750
acpi0: power button is handled as a fixed feature programming model.
Timecounter ACPI-fast  frequency 3579545 Hz
acpi_timer0: 24-bit timer at 3.579545MHz port 0xe408-0xe40b on acpi0
acpi_cpu0: CPU on acpi0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: VIA 82C8363 (Apollo KT133A) host to PCI bridge mem 0xe600-0xe7ff at device 0.0 on pci0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
drm0: ATI Radeon QY VE (AGP) port 0xd800-0xd8ff mem 0xd700-0xd700,0xd800-0xdfff irq 11 at device 0.0 on pci1
info: [drm] AGP at 0xe600 32MB
info: [drm] Initialized radeon 1.1.1 20010405 on minor 0
isab0: PCI-ISA bridge at device 4.0 on pci0
isa0: ISA bus on isab0
atapci0: VIA 82C686 ATA100 controller port 0xb800-0xb80f at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: VIA 83C572 USB controller port 0xb400-0xb41f irq 9 at device 4.2 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
ugen0: Color FlatbedScanner 22, rev 1.00/1.00, addr 2
uhci1: VIA 83C572 USB controller port 0xb000-0xb01f irq 9 at device 4.3 on pci0
usb1: VIA 83C572 USB controller on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0: bridge, PCI-unknown at device 4.4 (no driver attached)
vr0: VIA VT6102 Rhine II 10/100BaseTX port 0x9400-0x94ff mem 0xd680-0xd68000ff irq 9 at device 9.0 on pci0
vr0: Ethernet address: 00:50:ba:64:e3:6a
miibus0: MII bus on vr0
ukphy0: Generic IEEE 802.3u media interface on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcm0: Creative EMU10K1 port 0x9000-0x901f irq 5 at device 10.0 on pci0
atapci1: Promise ATA100 controller port 0x7000-0x703f,0x7400-0x7403,0x7800-0x7807,0x8000-0x8003,0x8400-0x8407 mem 0xd600-0xd601 irq 10 at device 17.0 on pci0
ata2: at 0x8400 on atapci1
ata3: at 0x7800 on atapci1
fdc0: Enhanced floppy controller (i82077, NE72065 or clone) port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: 1440-KB 3.5 drive on fdc0 drive 0
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
plip0: PLIP network interface on ppbus0
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff 

Re: Solved??? Re: playing mp3s and burning a cd

2003-03-24 Thread Kevin Oberman
 Date: Mon, 24 Mar 2003 14:43:30 -0500
 From: The Anarcat [EMAIL PROTECTED]
 Sender: [EMAIL PROTECTED]
 
 
 --3V7upXqbjpZ4EhLz
 Content-Type: text/plain; charset=iso-8859-1
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon Mar 24, 2003 at 02:14:48PM -0500, Don wrote:
   Should a PR be filed or some QA team contacted to make sure this
   problem doesn't stay alive in 5.2? :)
  This isn't, by chance, a problem with your setting for the
  sysctl hw.ata.atapi_dma is it?
 
 How extraordinarly cute! This solves it! I'm currently listening to
 Me, Mom and Morgentaler and burning a 4x CD without any slowdown, this
 is great.
 
 So I guess a workaround is to toggle DMA for my ATAPI bus. Indeed,
 the burner is IDE and should be working on DMA mode to get optimal
 performance.
 
 The thing is that atapicam hides the DMA/PIO magic from the usual boot
 messagesand there's therefore no way to see wether the device is in
 DMA mode unless you compile in both cd0 and acd0 which I heard isn't
 recommended...
 
 A.
 
 PS: what's the proper way to enable ATAPI DMA in the loader.conf file?
 I don't see any flag WRT that there.. I'm tempted to add:
 
 set hw.ata.atapi_cam=3D1
 
 anywhere there...

Close. Add:
hw.ata.atapi_dma=1# Run the CD-ROM/DVD in DMA mode
to /boot/loader.conf.

This should be in almost EVERY /boot/loader.conf. The default is 0 (PIO)
because DMA is broken on at least a few early CD readers, but it is
very rare to have it fail. (I've never seen it.)

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: Solved??? Re: playing mp3s and burning a cd

2003-03-24 Thread Craig Reyenga
If you have a 1.0GHz Durn processor, theoretically you should be able to
burn that CD at 32X (burner permitting), have 10+ Mozilla windows open, all
without a skip in the playback, or boggage. I have an AMD K6-2 450, and I
currently can't do 1/4 the stuff simultaneously without music skipping as I
could in other, anonymous operaing systems. Also, a simple ogg123 off of the
commandline skips a little as well, when untaring something.

-Craig

From: The Anarcat [EMAIL PROTECTED]
On Mon Mar 24, 2003 at 02:14:48PM -0500, Don wrote:
  Should a PR be filed or some QA team contacted to make sure this
  problem doesn't stay alive in 5.2? :)
 This isn't, by chance, a problem with your setting for the
 sysctl hw.ata.atapi_dma is it?

How extraordinarly cute! This solves it! I'm currently listening to
Me, Mom and Morgentaler and burning a 4x CD without any slowdown, this
is great.

So I guess a workaround is to toggle DMA for my ATAPI bus. Indeed,
the burner is IDE and should be working on DMA mode to get optimal
performance.

The thing is that atapicam hides the DMA/PIO magic from the usual boot
messagesand there's therefore no way to see wether the device is in
DMA mode unless you compile in both cd0 and acd0 which I heard isn't
recommended...

A.

PS: what's the proper way to enable ATAPI DMA in the loader.conf file?
I don't see any flag WRT that there.. I'm tempted to add:

set hw.ata.atapi_cam=1

anywhere there...



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: Solved??? Re: playing mp3s and burning a cd

2003-03-24 Thread Don
 On Mon Mar 24, 2003 at 02:14:48PM -0500, Don wrote:
   Should a PR be filed or some QA team contacted to make sure this
   problem doesn't stay alive in 5.2? :)
  This isn't, by chance, a problem with your setting for the
  sysctl hw.ata.atapi_dma is it?
 How extraordinarly cute! This solves it! I'm currently listening to
 Me, Mom and Morgentaler and burning a 4x CD without any slowdown, this
 is great.
Glad to be of help. Anytime you have odd system problems like that give
sysctl -a a perusal. Sometimes you will be surprised at what you find.

There was definitely a reason for turning off DMA access for atapi devices
by default, I just can not remember why. I'm sure this issue and the
reason were mentioned on the list already.

 PS: what's the proper way to enable ATAPI DMA in the loader.conf file?
 I don't see any flag WRT that there.. I'm tempted to add:

 set hw.ata.atapi_cam=1
hw.ata.atapi_dma not _cam :)

-Don

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: Solved??? Re: playing mp3s and burning a cd

2003-03-24 Thread The Anarcat
On Mon Mar 24, 2003 at 03:33:51PM -0500, Don wrote:
  On Mon Mar 24, 2003 at 02:14:48PM -0500, Don wrote:
Should a PR be filed or some QA team contacted to make sure this
problem doesn't stay alive in 5.2? :)
   This isn't, by chance, a problem with your setting for the
   sysctl hw.ata.atapi_dma is it?
  How extraordinarly cute! This solves it! I'm currently listening to
  Me, Mom and Morgentaler and burning a 4x CD without any slowdown, this
  is great.
 Glad to be of help. Anytime you have odd system problems like that give
 sysctl -a a perusal. Sometimes you will be surprised at what you find.
 
 There was definitely a reason for turning off DMA access for atapi devices
 by default, I just can not remember why. I'm sure this issue and the
 reason were mentioned on the list already.

Right... Another dig through the archives I guess. :(

  PS: what's the proper way to enable ATAPI DMA in the loader.conf file?
  I don't see any flag WRT that there.. I'm tempted to add:
 
  set hw.ata.atapi_cam=1
 hw.ata.atapi_dma not _cam :)

Now *that* was an odd typo.

A.

-- 
Conformity-the natural instinct to passively yield to that vague something
recognized as authority.
- Mark Twain


pgp0.pgp
Description: PGP signature


Re: Solved??? Re: playing mp3s and burning a cd

2003-03-24 Thread Kenneth D. Merry
On Mon, Mar 24, 2003 at 14:43:30 -0500, The Anarcat wrote:
 On Mon Mar 24, 2003 at 02:14:48PM -0500, Don wrote:
   Should a PR be filed or some QA team contacted to make sure this
   problem doesn't stay alive in 5.2? :)
  This isn't, by chance, a problem with your setting for the
  sysctl hw.ata.atapi_dma is it?
 
 How extraordinarly cute! This solves it! I'm currently listening to
 Me, Mom and Morgentaler and burning a 4x CD without any slowdown, this
 is great.
 
 So I guess a workaround is to toggle DMA for my ATAPI bus. Indeed,
 the burner is IDE and should be working on DMA mode to get optimal
 performance.
 
 The thing is that atapicam hides the DMA/PIO magic from the usual boot
 messagesand there's therefore no way to see wether the device is in
 DMA mode unless you compile in both cd0 and acd0 which I heard isn't
 recommended...

You can do that without problems, just don't use them at the same time,
since they're both using the same underlying hardware.

You can tell what speed the drive is running by either looking at the
transfer rate the cd(4) drive reports, or looking at the dmesg information
for the acd driver.  e.g.:

acd0: DVD-R SONY DVD RW DRU-500A at ata0-master UDMA33

The UDMA33 tag at the end means that it's running at 33MB/sec, which is
what the cd(4) driver confirms:

cd1 at ata0 bus 0 target 0 lun 0
cd1: SONY DVD RW DRU-500A 1.0c Removable CD-ROM SCSI-0 device 
cd1: 33.000MB/s transfers
cd1: cd present [306511 x 2048 byte records]

 PS: what's the proper way to enable ATAPI DMA in the loader.conf file?
 I don't see any flag WRT that there.. I'm tempted to add:
 
 set hw.ata.atapi_cam=1

Someone else pointed out that it is atapi_dma.

Ken
-- 
Kenneth Merry
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message


Re: Solved??? Re: playing mp3s and burning a cd

2003-03-24 Thread Eric Hodel
Kevin Oberman ([EMAIL PROTECTED]) wrote:

 Close. Add:
 hw.ata.atapi_dma=1# Run the CD-ROM/DVD in DMA mode
 to /boot/loader.conf.
 
 This should be in almost EVERY /boot/loader.conf. The default is 0 (PIO)
 because DMA is broken on at least a few early CD readers, but it is
 very rare to have it fail. (I've never seen it.)

my
ad2: 2014MB QUANTUM BIGFOOT_CY2160A [4092/16/63] at ata1-master PIO4

Is one of those wierd drives that claims to support DMA, but doesn't.
I still get occasional bus resets when doing lots of IO to the drive, if
I don't keep it in PIO mode.

-- 
Eric Hodel - [EMAIL PROTECTED] - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04



pgp0.pgp
Description: PGP signature