From owner-freebsd-questions@FreeBSD.ORG Sun Jun 25 11:00:33 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A47116A412 for ; Sun, 25 Jun 2006 11:00:33 +0000 (UTC) (envelope-from simon@bollo.16hz.net) Received: from bollo.16hz.net (bollo.16hz.net [82.71.120.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3328943D49 for ; Sun, 25 Jun 2006 11:00:31 +0000 (GMT) (envelope-from simon@bollo.16hz.net) Received: from bollo.16hz.net (simon@localhost.16hz.net [127.0.0.1]) by bollo.16hz.net (8.13.4/8.13.4) with ESMTP id k5PB0T1m000228 for ; Sun, 25 Jun 2006 12:00:29 +0100 (BST) Received: (from simon@localhost) by bollo.16hz.net (8.13.4/8.13.4/Submit) id k5PB0TIi025294 for freebsd-questions@freebsd.org; Sun, 25 Jun 2006 12:00:29 +0100 (BST) Date: Sun, 25 Jun 2006 12:00:28 +0100 From: Simon Morgan To: freebsd-questions@freebsd.org Message-ID: <20060625110028.GA14664@bollo.16hz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Subject: Disk Activity Causes Video Stuttering X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jun 2006 11:00:33 -0000 Hi, I'm having trouble with mplayer that seems to be highlighting a bug or general inefficiency in the ata driver when used with the VIA VT8235 chipset used in the ASUS A7V8X motherboard. The problem is that whenever a video is being played and there is any reasonable amount of disk activity (e.g dd if=/dev/urandom of=test), the video skips and the mplayer status shows that it's had to drop frames to keep the video and audio in sync. I have tested using the same video under NetBSD 3.0 and Linux 2.6.{16|17} and neither of them exhibit this problem. This also rules out the possibility of it being faulty hardware. To be on the safe side I have tried 2 different chipsets of both graphics card and sound card and neither makes any difference. I noticed that under Linux hdparm shows it to be using udma4 by default and udma5 is not even listed as being supported. Linux: # hdparm -I /dev/hda /dev/hdc: ATAPI CD-ROM, with removable media Model Number: PIONEER DVD-RW DVR-108 Serial Number: DJDL021894WL Firmware Revision: 1.20 Standards: Likely used CD-ROM ATAPI-1 Configuration: DRQ response: 50us. Packet size: 12 bytes Capabilities: LBA, IORDY(can be disabled) Buffer size: 64.0kB DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=240ns IORDY flow control=120ns Commands/features: Enabled Supported: * DEVICE RESET cmd * PACKET command feature set * Power Management feature set HW reset results: CBLID- above Vih Device num = 0 determined by CSEL FreeBSD: # atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI revision 5 Slave: no device present ATA channel 1: Master: acd0 ATA/ATAPI revision 5 Slave: no device present # atacontrol mode ad0 current mode = UDMA100 I tried changing the mode to udma4 and also to pio but unfortunately it made no difference. If anybody could offer up some advice or point me in the direction of avenues to explore I would appreciate it as I've run out of ideas. Thanks for your time. Copyright (c) 1992-2006 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 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(TM) XP 2000+ (1658.54-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383fbff AMD Features=0xc0400800 real memory = 1073725440 (1023 MB) avail memory = 1041784832 (993 MB) ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xf0000000-0xf7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pci1: at device 0.1 (no driver attached) bfe0: mem 0xd6000000-0xd6001fff irq 18 at device 9.0 on pci0 miibus0: on bfe0 bmtphy0: on miibus0 bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bfe0: Ethernet address: 00:e0:18:a1:31:f0 ral0: mem 0xd5800000-0xd5801fff irq 17 at device 14.0 on pci0 ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525 ral0: Ethernet address: 00:0e:2e:5c:2d:0f uhci0: port 0xb800-0xb81f at device 16.0 on pci0 uhci0: [GIANT-LOCKED] usb0: 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 uhci1: port 0xb400-0xb41f at device 16.1 on pci0 uhci1: [GIANT-LOCKED] usb1: 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 uhci2: port 0xb000-0xb01f at device 16.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: 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 ehci0: mem 0xd5000000-0xd50000ff at device 16.3 on pci0 ehci0: [GIANT-LOCKED] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xa800-0xa80f at device 17.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 17.5 (no driver attached) atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xccfff,0xd0000-0xd5fff on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: Microsoft Microsoft 3-Button Mouse with IntelliEye(TM), rev 1.10/3.00, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. Timecounter "TSC" frequency 1658535371 Hz quality 800 Timecounters tick every 1.000 msec ad0: 58644MB at ata0-master UDMA100 acd0: DVDR at ata1-master UDMA66 Trying to mount root from ufs:/dev/ad0s1a -- Never let your schooling interfere with your education.