From owner-freebsd-firewire Mon Nov 4 18:57:24 2002 Delivered-To: freebsd-firewire@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B408237B401 for ; Mon, 4 Nov 2002 18:57:22 -0800 (PST) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [133.11.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id F16A143E88 for ; Mon, 4 Nov 2002 18:57:21 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is2.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 4B99937807B for ; Tue, 5 Nov 2002 11:57:21 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is2.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id gA52vL001785; Tue, 5 Nov 2002 11:57:21 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (nat.keisu.t.u-tokyo.ac.jp [133.11.68.2]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHH37131; Tue, 5 Nov 2002 11:57:20 +0900 (JST) Date: Tue, 05 Nov 2002 11:57:20 +0900 Message-ID: From: Hidetoshi Shimokawa To: Wilko Bulte Cc: freebsd-firewire@freebsd.org Subject: Re: fw driver refuses to attach on CPQ EVO N160 In-Reply-To: <20021104093820.F26631@freebie.xs4all.nl> References: <20021104093820.F26631@freebie.xs4all.nl> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At Mon, 4 Nov 2002 09:38:20 +0100, Wilko Bulte wrote: > > Hi there, > > For fun I just built a -stable kernel with firewire support on my > Compaq EVO N160 laptop. Unfortunately the attach fails with: > > pcib2: at device 30.0 on pci0 > pci2: on pcib2 > pci2: (vendor=0x14f1, dev=0x2f00) at 4.0 > XXXfw: vendid=104c, dev=8023 > fwohci0: <1394 Open Host Controller Interface> mem > 0xd0204000-0xd0207fff,0xd0201000-0xd02017ff at device 5.0 on pci2 > fwohci0: Invalid irq 255 > fwohci0: Please switch PNP-OS to 'No' in BIOS > device_probe_and_attach: fwohci0 attach returned 6 > pcic0: irq 10 at device 6.0 on pci2 > pcic0: PCI Memory allocated: 0x88000000 > > The suggestion to switch off PNP does not work on this notebook as > there is no BIOS option to do so. There are hardly any BIOS options > anyway, this is an ACPI-heavy machine. > > Other suggestions? Could you try the following patch to see whether it works or not? Index: fwohci_pci.c =================================================================== RCS file: /pub/FreeBSD-CVS/src/sys/dev/firewire/fwohci_pci.c,v retrieving revision 1.3.2.1 diff -u -r1.3.2.1 fwohci_pci.c --- fwohci_pci.c 3 Nov 2002 10:58:18 -0000 1.3.2.1 +++ fwohci_pci.c 5 Nov 2002 02:54:24 -0000 @@ -145,9 +145,10 @@ fwohci_softc_t *sc = device_get_softc(self); int err; int rid; - int intr; int latency, cache_line; u_int16_t cmd; +#if 0 + int intr; /* For the moment, put in a message stating what is wrong */ intr = pci_read_config(self, PCIR_INTLINE, 1); if (intr == 0 || intr == 255) { @@ -157,6 +158,7 @@ #endif return ENXIO; } +#endif cmd = pci_read_config(self, PCIR_COMMAND, 2); cmd |= PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN | PCIM_CMD_MWRICEN; /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-firewire" in the body of the message