From owner-freebsd-stable Sun Nov 17 22:29:29 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B3E037B40E; Sun, 17 Nov 2002 22:29:21 -0800 (PST) Received: from milan.hitnet.rwth-aachen.de (milan.hitnet.RWTH-Aachen.DE [137.226.181.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9CDD43E42; Sun, 17 Nov 2002 22:29:14 -0800 (PST) (envelope-from chris@unixpages.org) Received: from gondor.middleearth (gondor.middleearth [192.168.1.42]) by milan.hitnet.rwth-aachen.de (Postfix) with ESMTP id C3954C1DC; Mon, 18 Nov 2002 07:29:13 +0100 (CET) Received: by gondor.middleearth (Postfix, from userid 1001) id 562C6154B4; Mon, 18 Nov 2002 07:29:13 +0100 (CET) Date: Mon, 18 Nov 2002 07:29:12 +0100 From: Christian Brueffer To: Thomas Quinot Cc: freebsd-stable@FreeBSD.ORG Subject: Re: apm suspend/resume panic - atapicam related Message-ID: <20021118062912.GG11536@unixpages.org> References: <20021117032558.GF11536@unixpages.org> <20021117230520.GB31217@melusine.cuivre.fr.eu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qVHblb/y9DPlgkHs" Content-Disposition: inline In-Reply-To: <20021117230520.GB31217@melusine.cuivre.fr.eu.org> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT X-PGP-Key: http://www.unixpages.org/cbrueffer.asc Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --qVHblb/y9DPlgkHs Content-Type: multipart/mixed; boundary="I3tAPq1Rm2pUxvsp" Content-Disposition: inline --I3tAPq1Rm2pUxvsp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 18, 2002 at 12:05:20AM +0100, Thomas Quinot wrote: >=20 > OK, it looks to me like we are invalidating the param field of the > struct atadev for your ata1 slave (BTW, a complete dmesg.boot would be > useful here. >=20 Attached. For completeness, the kernel config is also attached. >=20 > Makes sense. What I cannot entirely figure out is why this does not > happen when you disable ATAPI/CAM. Supposing that your ATAPI device > is a CD drive, do you also have atapicd in the kernel? Does the > 'identify retries exceeded message' also occur when you disable > atapicam? When you disable atapicam, is atapicd enabled? >=20 The ATAPI device is a DVD drive. However there's no slave present: fangorn# atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI rev 5 Slave: no device present ATA channel 1: Master: acd0 ATA/ATAPI rev 0 Slave: no device present fangorn# camcontrol devlist at scbus1 target 0 lun 0 (pass0) =20 > Also, it would be interesting to know whether the enclosed patch works > around the problem. It is likely to make your ata1-slave device unusable > after a suspend/resume, in which case you should then perform an > 'atacontrol reinit 1' and see if it improves the situation. If you can > test this, please also do an 'atacontrol list 1' and 'camcontrol > devlist' at each step. >=20 > Thanks for taking the time to report this issue! >=20 > Thomas. I'll do the necessary build later today. Thanks so far! - Christian --=20 http://www.unixpages.org chris@unixpages.org GPG Pub-Key : www.unixpages.org/cbrueffer.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D GPG Key ID : 0xA0ED982D --I3tAPq1Rm2pUxvsp Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.boot" Content-Transfer-Encoding: quoted-printable Copyright (c) 1992-2002 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.7-STABLE #13: Sun Nov 17 04:12:29 CET 2002 chris@milan.hitnet.rwth-aachen.de:/usr/obj/usr/src/sys/FANGORN Timecounter "i8254" frequency 1193182 Hz CPU: Pentium 4 (1599.83-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0xf24 Stepping =3D 4 Features=3D0x3febf9ff,ACC> real memory =3D 267845632 (261568K bytes) avail memory =3D 256512000 (250500K bytes) Preloaded elf kernel "kernel" at 0xc040b000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 10 entries at 0xc00fdef0 apm0: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device = 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 11 uhci0: port 0x1800-0x181f i= rq 11 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1820-0x183f i= rq 11 at device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1840-0x185f i= rq 11 at device 29.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pcib2: at device 30.0 on = pci0 pci2: on pcib2 wi0: mem 0xf8000000-0xf8000fff irq 11 at device 7.0 on = pci2 wi0: 802.11 address: 00:20:e0:8e:5f:c2 wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI) wi0: Intersil Firmware: Primary 1.00.07, Station 1.03.06 fxp0: port 0x8000-0x803f mem 0xd0200000-0xd0200fff= irq 11 at device 8.0 on pci2 fxp0: Ethernet address 00:00:e2:8b:c8:5a inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pcic0: irq 11 at device 9.0 on pci2 pcic0: PCI Memory allocated: 0x88000000 pcic0: TI12XX PCI Config Reg: [speaker enable][pwr save][CSC serial isa irq] pccard0: on pcic0 isab0: at device 31.0 on = pci0 isa0: on isab0 atapci0: port 0x1860-0x186f,0x374-0x377,0x17= 0-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: (vendor=3D0x8086, dev=3D0x2483) at 31.3 irq 11 pcm0: port 0x18c0-0x18ff,0x1c00-0x1cff irq 11 at dev= ice 31.5 on pci0 pci0: (vendor=3D0x8086, dev=3D0x2486) at 31.6 irq 11 eisa0: on motherboard eisa0: unknown card @H@0000 (0x01000000) at slot 1 orm0: