From owner-freebsd-current@FreeBSD.ORG Thu Jun 12 15:56:20 2003 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 391D537B401; Thu, 12 Jun 2003 15:56:20 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CECF43F75; Thu, 12 Jun 2003 15:56:19 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h5CMmrZM002540; Thu, 12 Jun 2003 18:48:54 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h5CMuWGW010219; Thu, 12 Jun 2003 15:56:32 -0700 (PDT) (envelope-from jmg) Date: Thu, 12 Jun 2003 15:56:32 -0700 From: John-Mark Gurney To: ticso@cicely.de, "M. Warner Losh" , ticso@cicely12.cicely.de, freebsd-current@freebsd.org, freebsd-sparc64@freebsd.org Message-ID: <20030612225632.GK748@funkthat.com> Mail-Followup-To: ticso@cicely.de, "M. Warner Losh" , ticso@cicely12.cicely.de, freebsd-current@freebsd.org, freebsd-sparc64@freebsd.org References: <20030609.224621.71095461.imp@bsdimp.com> <20030610115615.GB10527@cicely12.cicely.de> <20030610121249.GE10527@cicely12.cicely.de> <20030610.082730.102566465.imp@bsdimp.com> <20030610223436.GC37257@funkthat.com> <20030610231649.GD26807@cicely12.cicely.de> <20030611133353.GA634@crow.dom2ip.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030611133353.GA634@crow.dom2ip.de> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Subject: pci probing "fixed" (was Re: PCI bus numbering and orphaned devices) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 22:56:20 -0000 Well, I implemented PCI probing as per the UltraSparc IIi user's manual, and now, I get quite a bit more than I bargined for: bash-2.05b$ pciconf -l | wc 38 228 3106 The complete pciconf -l -v is at: http://people.freebsd.org/~jmg/pciconf-lv.sparc64 Now, I seem to be getting duplicates on some functions, and then of course, I am now seeing the firewire part of the SME2300BGA that doesn't have a phys attached to it. (The driver does attach to the firewire part, but fails trying to talk to the phys.) This also required updating the pci_read_device to ignore a all zero return value for PCIR_DEVVENDOR, and not probe higher functions in that case. If I tried to probe higher functions (such as 0.0.2), the system would hang. A dmesg output of the boot is at: http://people.freebsd.org/~jmg/dmesg.sparc64 I don't include the dmesg that shows me attaching the firewire driver. I have posted the patch to produce this at: http://people.freebsd.org/~jmg/sparc.patch Warning, this contains much debugging data, and probes for PCI devices that previously didn't get probed for. P.S. Sorry for the duplicate post to -sparc64. I forgot that some of the -current crowd is interested in this work too. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."