From owner-freebsd-smp@FreeBSD.ORG Thu May 13 01:18:05 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F181016A4CE for ; Thu, 13 May 2004 01:18:05 -0700 (PDT) Received: from linda-1.paradise.net.nz (bm-1a.paradise.net.nz [202.0.58.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11C5543D54 for ; Thu, 13 May 2004 01:18:05 -0700 (PDT) (envelope-from markir@paradise.net.nz) Received: from smtp-2.paradise.net.nz (smtp-2b.paradise.net.nz [202.0.32.211]) by linda-1.paradise.net.nz (Paradise.net.nz) with ESMTP id <0HXN003OL8E31K@linda-1.paradise.net.nz> for freebsd-smp@freebsd.org; Thu, 13 May 2004 20:18:04 +1200 (NZST) Received: from paradise.net.nz (203-79-100-194.adsl.paradise.net.nz [203.79.100.194]) by smtp-2.paradise.net.nz (Postfix) with ESMTP id AD6A89E218 for ; Thu, 13 May 2004 20:18:03 +1200 (NZST) Date: Thu, 13 May 2004 20:20:04 +1200 From: Mark Kirkwood To: freebsd-smp@freebsd.org Message-id: <40A32FB4.2030601@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040404 Subject: SMP disables USB mass storage in Freebsd 4.9 RELEASE X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2004 08:18:06 -0000 Dear list, I have a Tyan Tiger 133 / S1834 running Freebsd 4.9 RELEASE that exhibits the following: booting with SMP and APIC_IO *disabled* lets me plug in usb devices and mount them - e.g: May 11 22:50:19 istral /kernel.STANDARD: umass0: Creative Tech NOMAD MuVo, rev 1.10/0.01, addr 2 May 11 22:50:19 istral /kernel.STANDARD: umass0: Get Max Lun not supported (IOERROR) May 11 22:50:19 istral /kernel.STANDARD: da0 at umass-sim0 bus 0 target 0 lun 0 May 11 22:50:19 istral /kernel.STANDARD: da0: Removable Direct Access SCSI-4 device May 11 22:50:19 istral /kernel.STANDARD: da0: 650KB/s transfers May 11 22:50:19 istral /kernel.STANDARD: da0: 125MB (256001 512 byte sectors: 64H 32S/T 125C) whereas with them enabled I cannot - e.g: May 12 22:29:23 istral /kernel.SMP: uhub0: device problem, disabling port 1 The difference between STANDARD and GENERIC is $ diff STANDARD GENERIC 21,23c21,23 < #cpu I386_CPU < #cpu I486_CPU < #cpu I586_CPU --- > cpu I386_CPU > cpu I486_CPU > cpu I586_CPU 25c25 < ident STANDARD --- > ident GENERIC 29d28 < makeoptions COPTFLAGS="-O2 -pipe -funroll-loops -ffast-math" 118d116 < device atapicam # CAM Cooked SCSI device The difference between SMP and STANDARD is $ diff STANDARD SMP 65,66c65,66 < #options SMP # Symmetric MultiProcessor Kernel < #options APIC_IO # Symmetric (APIC) I/O --- > options SMP # Symmetric MultiProcessor Kernel > options APIC_IO # Symmetric (APIC) I/O My mptable: =============================================================================== MPTable, version 2.0.15 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: BIOS physical address: 0x000f5940 signature: '_MP_' length: 16 bytes version: 1.1 checksum: 0x80 mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x000f1400 signature: 'PCMP' base table length: 260 version: 1.1 checksum: 0xd5 OEM ID: 'OEM00000' Product ID: 'PROD00000000' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 24 local APIC address: 0xfee00000 extended table length: 0 extended table checksum: 0 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 0 0x11 BSP, usable 6 8 3 0xfbff 1 0x11 AP, usable 6 8 3 0xfbff -- Bus: Bus ID Type 0 PCI 1 PCI 2 ISA -- I/O APICs: APIC ID Version State Address 2 0x11 usable 0xfec00000 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT conforms conforms 2 0 2 0 INT conforms conforms 2 1 2 1 INT conforms conforms 2 0 2 2 INT conforms conforms 2 3 2 3 INT conforms conforms 2 4 2 4 INT conforms conforms 2 6 2 6 INT conforms conforms 2 7 2 7 INT active-hi edge 2 8 2 8 INT conforms conforms 2 9 2 9 INT conforms conforms 2 12 2 12 INT conforms conforms 2 13 2 13 INT conforms conforms 2 14 2 14 INT conforms conforms 2 15 2 15 INT active-lo level 2 11 2 16 INT active-lo level 2 10 2 18 INT active-lo level 2 5 2 19 -- Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT conforms conforms 2 0 255 0 NMI conforms conforms 2 0 255 1 =============================================================================== My general configuration is: Tyan Tiger 133 S1834:VIA 82C691 PCI/82C596 ATA/83C572 USB 2xPIII 700 100Mhz 4x512Mb Kingston DIMM 2x40G Maxtor +8 connected to Promise TX2000 PCI RAID 1xMatrix Millenium II AGP Any ideas would be greatly appreciated, as it is very convenient to have USB working without having to effectively "lose" a CPU. (As a general note Freebsd/SMP on this box seems to work flawlessly apart from this issue!) regards Mark From owner-freebsd-smp@FreeBSD.ORG Thu May 13 12:07:25 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FE2A16A4CE for ; Thu, 13 May 2004 12:07:25 -0700 (PDT) Received: from mail2.speakeasy.net (mail2.speakeasy.net [216.254.0.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06F7543D31 for ; Thu, 13 May 2004 12:07:25 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 14728 invoked from network); 13 May 2004 19:07:22 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 13 May 2004 19:07:22 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i4DJ6i5a020785; Thu, 13 May 2004 15:06:47 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-smp@FreeBSD.org Date: Thu, 13 May 2004 15:07:05 -0400 User-Agent: KMail/1.6 References: <40A32FB4.2030601@paradise.net.nz> In-Reply-To: <40A32FB4.2030601@paradise.net.nz> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405131507.05183.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Mark Kirkwood Subject: Re: SMP disables USB mass storage in Freebsd 4.9 RELEASE X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2004 19:07:25 -0000 On Thursday 13 May 2004 04:20 am, Mark Kirkwood wrote: > Dear list, > > I have a Tyan Tiger 133 / S1834 running Freebsd 4.9 RELEASE that > exhibits the following: > > booting with SMP and APIC_IO *disabled* lets me plug in usb devices and > mount them - e.g: > > > May 11 22:50:19 istral /kernel.STANDARD: umass0: Creative Tech NOMAD > MuVo, rev 1.10/0.01, addr 2 > May 11 22:50:19 istral /kernel.STANDARD: umass0: Get Max Lun not > supported (IOERROR) > May 11 22:50:19 istral /kernel.STANDARD: da0 at umass-sim0 bus 0 target > 0 lun 0 > May 11 22:50:19 istral /kernel.STANDARD: da0: > Removable Direct Access SCSI-4 device > May 11 22:50:19 istral /kernel.STANDARD: da0: 650KB/s transfers > May 11 22:50:19 istral /kernel.STANDARD: da0: 125MB (256001 512 byte > sectors: 64H 32S/T 125C) > Which IRQ does uhci0 (or ohci0) get? According to your MP Table, all PCI devices should still be using IRQs 5, 10, and 11. You might also try running a 5.x snapshot as -current handles PCI interrupts and apics much better. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-smp@FreeBSD.ORG Fri May 14 02:55:04 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C43DF16A4CE; Fri, 14 May 2004 02:55:04 -0700 (PDT) Received: from linda-3.paradise.net.nz (bm-3a.paradise.net.nz [202.0.58.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18CE143D2F; Fri, 14 May 2004 02:55:04 -0700 (PDT) (envelope-from markir@paradise.net.nz) Received: from smtp-3.paradise.net.nz (smtp-3b.paradise.net.nz [202.0.32.212]) by linda-3.paradise.net.nz (Paradise.net.nz) with ESMTP id <0HXP00KWA7JQR5@linda-3.paradise.net.nz>; Fri, 14 May 2004 21:55:02 +1200 (NZST) Received: from paradise.net.nzsmtp-3.paradise.net.nz (Postfix) with ESMTP id 6CC49ADF5F; Fri, 14 May 2004 21:55:02 +1200 (NZST) Date: Fri, 14 May 2004 21:57:05 +1200 From: Mark Kirkwood In-reply-to: <200405131507.05183.jhb@FreeBSD.org> To: John Baldwin Message-id: <40A497F1.9000506@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040404 References: <40A32FB4.2030601@paradise.net.nz> <200405131507.05183.jhb@FreeBSD.org> cc: freebsd-smp@FreeBSD.org Subject: Re: SMP disables USB mass storage in Freebsd 4.9 RELEASE X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 09:55:04 -0000 Hi John, thanks for the swift reply, with respect to 5.x, I did run 5.1 for a while, but 4.9 seemed to have better performance for the stuff I tend to do (typically database / io intensive), so would like to keep using 4.9 until the 5.x tree gets to a similar level - however, I have not tried 5.2....so may be out of date with my impression...:-) > Which IRQ does uhci0 (or ohci0) get? Think its uhci0 - and, err.. how do I tell which IRQ it gets ? regards Mark From owner-freebsd-smp@FreeBSD.ORG Fri May 14 10:10:13 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 986DE16A4CE for ; Fri, 14 May 2004 10:10:13 -0700 (PDT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39EE343D45 for ; Fri, 14 May 2004 10:10:13 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 12973 invoked from network); 14 May 2004 17:10:11 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 14 May 2004 17:10:11 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i4EHA4cx027634; Fri, 14 May 2004 13:10:05 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-smp@FreeBSD.org Date: Fri, 14 May 2004 13:10:32 -0400 User-Agent: KMail/1.6 References: <40A32FB4.2030601@paradise.net.nz> <200405131507.05183.jhb@FreeBSD.org> <40A497F1.9000506@paradise.net.nz> In-Reply-To: <40A497F1.9000506@paradise.net.nz> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405141310.32455.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Mark Kirkwood Subject: Re: SMP disables USB mass storage in Freebsd 4.9 RELEASE X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 17:10:13 -0000 On Friday 14 May 2004 05:57 am, Mark Kirkwood wrote: > Hi John, thanks for the swift reply, > > with respect to 5.x, I did run 5.1 for a while, but 4.9 seemed to have > better performance for the stuff I tend to do (typically database / io > intensive), so would like to keep using 4.9 until the 5.x tree gets to a > similar level - however, I have not tried 5.2....so may be out of date > with my impression...:-) > > > Which IRQ does uhci0 (or ohci0) get? > > Think its uhci0 - and, err.. how do I tell which IRQ it gets ? dmesg | grep uhci0 should show that. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-smp@FreeBSD.ORG Fri May 14 21:08:50 2004 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5010B16A4D2; Fri, 14 May 2004 21:08:50 -0700 (PDT) Received: from linda-1.paradise.net.nz (bm-1a.paradise.net.nz [202.0.58.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E9DB43D2F; Fri, 14 May 2004 21:08:49 -0700 (PDT) (envelope-from markir@paradise.net.nz) Received: from smtp-3.paradise.net.nz (smtp-3b.paradise.net.nz [202.0.32.212]) by linda-1.paradise.net.nz (Paradise.net.nz) with ESMTP id <0HXQ00L6DM6OJX@linda-1.paradise.net.nz>; Sat, 15 May 2004 16:08:48 +1200 (NZST) Received: from paradise.net.nz (203-96-145-189.adsl.paradise.net.nz [203.96.145.189]) by smtp-3.paradise.net.nz (Postfix) with ESMTP id 3D842AE090; Sat, 15 May 2004 16:08:48 +1200 (NZST) Date: Sat, 15 May 2004 16:10:50 +1200 From: Mark Kirkwood In-reply-to: <200405141310.32455.jhb@FreeBSD.org> To: John Baldwin Message-id: <40A5984A.3080508@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040404 References: <40A32FB4.2030601@paradise.net.nz> <200405131507.05183.jhb@FreeBSD.org> <40A497F1.9000506@paradise.net.nz> <200405141310.32455.jhb@FreeBSD.org> cc: freebsd-smp@FreeBSD.org Subject: Re: SMP disables USB mass storage in Freebsd 4.9 RELEASE X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 May 2004 04:08:50 -0000 Looks like IRQ 5 : (from messages) May 12 23:31:43 istral /kernel.SMP: uhci0: port 0xd400-0xd41f irq 5 at device 7.2 on pci0 John Baldwin wrote: >>>Which IRQ does uhci0 (or ohci0) get? >>> >>> >>Think its uhci0 - and, err.. how do I tell which IRQ it gets ? >> >> > >dmesg | grep uhci0 should show that. > > >