From nobody@FreeBSD.org Thu Aug 11 20:35:58 2005 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2B8816A426 for ; Thu, 11 Aug 2005 20:35:58 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B65A43D45 for ; Thu, 11 Aug 2005 20:35:58 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j7BKZwuE019550 for ; Thu, 11 Aug 2005 20:35:58 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j7BKZwaB019549; Thu, 11 Aug 2005 20:35:58 GMT (envelope-from nobody) Message-Id: <200508112035.j7BKZwaB019549@www.freebsd.org> Date: Thu, 11 Aug 2005 20:35:58 GMT From: Kyryll A Mirnenko To: freebsd-gnats-submit@FreeBSD.org Subject: atapi cd: hangup with motor switched on any access X-Send-Pr-Version: www-2.3 >Number: 84818 >Category: kern >Synopsis: [acd] hangup with motor switched on any access >Confidential: no >Severity: serious >Priority: low >Responsible: sos >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 11 20:40:24 GMT 2005 >Closed-Date: Mon Jul 30 09:49:35 GMT 2007 >Last-Modified: Mon Jul 30 09:49:35 GMT 2007 >Originator: Kyryll A Mirnenko >Release: 6.0-BETA2 >Organization: >Environment: FreeBSD localhost 6.0-BETA2 FreeBSD 6.0-BETA2 #1: Thu Aug 11 21:45:20 EEST 2005 root@localhost:/usr/src/sys/i386/compile/GENERIC i386 >Description: When accessing cdrom in any way got system hangup watching cd drive rolling (as activity activity indicator shows). Reproducable with clean GENERIC (as with custom config) since 2005-08-07, last checked *-11 (can't say if it works before 'cause do not use cd drive so often). As far as reported by my friend not to be reproducable in his box sending hw description: - ACPI is forced off (in blacklist anyway) - so APM - tried with no additional modules kldloaded dmesg: Copyright (c) 1992-2005 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.0-BETA2 #1: Thu Aug 11 21:45:20 EEST 2005 root@localhost:/usr/src/sys/i386/compile/MY-O3 WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant WARNING: MPSAFE network stack disabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (400.91-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x665 Stepping = 5 Features=0x183f9ff real memory = 268369920 (255 MB) avail memory = 253390848 (241 MB) netsmb_dev: loaded npx0: [FAST] npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 $PIR: No matching entry for 0.7.INTD pcib1: at device 1.0 on pci0 pci1: on pcib1 $PIR: ROUTE_INTERRUPT failed. pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe000-0xe00f at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0xe400-0xe41f irq 10 at device 7.2 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 iicbb0: on viapm0 iicbus0: on iicbb0 master-only pci0: at device 19.0 (no driver attached) pmtimer0 on isa0 orm0: at iomem 0xc8000-0xc9fff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <5 virtual consoles, flags=0x300> 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 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fb0 at vga0 unknown: can't assign resources (port) speaker0: at port 0x61 on isa0 unknown: can't assign resources (memory) unknown: can't assign resources (memory) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) sbc0: at port 0x220-0x22f irq 5 drq 1,0 on isa0 sbc0: [GIANT-LOCKED] pcm0: on sbc0 pcm0: [GIANT-LOCKED] Timecounters tick every 10.000 msec WARNING: apm_saver module requires apm enabled IPv6 packet filtering initialized, default to accept, logging limited to 100 packets/entry IPsec: Initialized Security Association Processing. ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, default to accept, logging limited to 100 packets/entry by default ad0: 117246MB at ata0-master UDMA33 acd0: CDRW at ata1-slave UDMA33 Trying to mount root from ufs:/dev/ad0s2a loader.conf: loader_color="YES" hint.acpi.0.disabled="1" >How-To-Repeat: keep cdrom in drive on booting; trying accessing /dev/acd0 in any way; results in cd drive speeding up & keeping rolling full speed endlessly while the system is totally hang up >Fix: >Release-Note: >Audit-Trail: From: Kyryll A Mirnenko To: bug-followup@FreeBSD.org, mirya@matrix.ua Cc: Subject: Re: kern/84818: atapi cd: hangup with motor switched on any access Date: Sat, 13 Aug 2005 12:13:33 +0300 The problem actually comes from the fact hw.ata.ata_dma was splitted into hw.ata.ata_dma & hw.ata.atapi_dma . I have controller erroreusly reporting to support UDMA33 but in fact PIO4 only. By default the 5.x kernel automatically switched to the latter after 3 DMA fails AFAIK, to skip this i have hw.ata.ata_dma="0" in loader.conf. So hw.ata.atapi_dma="0" solved the problem, BUT fallback to PIO4 for atapi cdroms prayin' the're DMA (while they're not) is really broken Responsible-Changed-From-To: freebsd-bugs->sos Responsible-Changed-By: netchild Responsible-Changed-When: Sun Dec 10 19:55:18 UTC 2006 Responsible-Changed-Why: Over to maintainer. http://www.freebsd.org/cgi/query-pr.cgi?pr=84818 State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Wed Jun 27 06:40:37 UTC 2007 State-Changed-Why: Is this still a problem on 6.2? http://www.freebsd.org/cgi/query-pr.cgi?pr=84818 State-Changed-From-To: feedback->closed State-Changed-By: linimon State-Changed-When: Mon Jul 30 09:49:00 UTC 2007 State-Changed-Why: Feedback timeout (> 1 month). http://www.freebsd.org/cgi/query-pr.cgi?pr=84818 >Unformatted: