From owner-freebsd-current@FreeBSD.ORG Fri Jul 2 12:40:45 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37B3F16A4CE; Fri, 2 Jul 2004 12:40:45 +0000 (GMT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id D481043D2D; Fri, 2 Jul 2004 12:40:44 +0000 (GMT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.10/8.12.10) with ESMTP id i62CbsqM024977 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 2 Jul 2004 08:37:54 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id i62Cbnib008844; Fri, 2 Jul 2004 08:37:49 -0400 (EDT) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16613.22301.418927.354317@grasshopper.cs.duke.edu> Date: Fri, 2 Jul 2004 08:37:49 -0400 (EDT) To: John Baldwin In-Reply-To: <200407020012.15514.jhb@FreeBSD.org> References: <16612.38647.686404.398773@grasshopper.cs.duke.edu> <16612.49156.140882.83317@grasshopper.cs.duke.edu> <200407020012.15514.jhb@FreeBSD.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid cc: freebsd-current@FreeBSD.org cc: sos@FreeBSD.org Subject: Re: ata unable to map interrupt X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 12:40:45 -0000 John Baldwin writes: > On Thursday 01 July 2004 09:53 pm, Andrew Gallatin wrote: > > Andrew Gallatin writes: > > > Today's kernel: > > > > > > atapci0: port > > > 0xffa0-0xffaf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device > > > 15.1 on pci0 atapci0: unable to map interrupt > > > > Argh! Unable to map interrupt, not I/O port. Sorry.. An I/O port > > mapping was the last thing that left me at a mountroot prompt on > > this f'ing box. > > > > The problem is really with mapping interrupts. I've left mptable, and > > verbose boot output from working and nonworking kernels at > > http://people.freebsd.org/~gallatin/ata_irq/ > > > > As I said before, it doesn't seem to matter if I enable or disable > > ACPI. I've also tried set hw.apic.mixed_mode=0 > > > > A kernel from another box from June 19th seems to work, so > > maybe it happened in the last 12 days or so. > > I think this is a problem with ATA. Soren made a change to dev/pci/pci.c for > the ATA native mode allocation that might be suspect. Yep that's it. Thank you! Backing out 1.263 of sys/dev/pci/pci.c fixes it, as does #if 0'ing the native addressing code block: Index: dev/pci/pci.c =================================================================== RCS file: /home/ncvs/src/sys/dev/pci/pci.c,v retrieving revision 1.263 diff -u -r1.263 pci.c --- dev/pci/pci.c 29 Jun 2004 20:25:43 -0000 1.263 +++ dev/pci/pci.c 2 Jul 2004 12:29:47 -0000 @@ -849,7 +849,7 @@ int s, int f, struct resource_list *rl) { int rid, type, progif; -#if 1 +#if 0 /* if this device supports PCI native addressing use it */ progif = pci_read_config(dev, PCIR_PROGIF, 1); if ((progif & 0x8a) == 0x8a) { For what its worth, the ATA controller here is part of a mf dev: isab0@pci0:15:0: class=0x060100 card=0x02011166 chip=0x02011166 rev=0x93 hdr=0x00 vendor = 'ServerWorks (Was: Reliance Computer Corp)' device = 'CSB5 PCI to ISA Bridge' class = bridge subclass = PCI-ISA atapci0@pci0:15:1: class=0x01018a card=0x02121166 chip=0x02121166 rev=0x93 hdr=0x00 vendor = 'ServerWorks (Was: Reliance Computer Corp)' device = 'CSB5 PCI EIDE Controller' class = mass storage subclass = ATA hostb2@pci0:15:3: class=0x060000 card=0x02301166 chip=0x02251166 rev=0x00 hdr=0x00 vendor = 'ServerWorks (Was: Reliance Computer Corp)' device = 'CSB5 PCI Bridge' class = bridge subclass = HOST-PCI Thanks again, Drew