From owner-freebsd-i386@FreeBSD.ORG Thu Jul 13 05:38:10 2006 Return-Path: X-Original-To: freebsd-i386@FreeBSD.org Delivered-To: freebsd-i386@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31CB016A4DA for ; Thu, 13 Jul 2006 05:38:10 +0000 (UTC) (envelope-from Arthur.Hartwig@nokia.com) Received: from mgw-ext14.nokia.com (mgw-ext14.nokia.com [131.228.20.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A9DD43D45 for ; Thu, 13 Jul 2006 05:38:09 +0000 (GMT) (envelope-from Arthur.Hartwig@nokia.com) Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-ext14.nokia.com (Switch-3.1.8/Switch-3.1.7) with ESMTP id k6D5c4e1007216; Thu, 13 Jul 2006 08:38:04 +0300 Received: from esebh002.NOE.Nokia.com ([172.21.138.77]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Jul 2006 08:38:04 +0300 Received: from [172.30.10.82] ([172.30.10.82]) by esebh002.NOE.Nokia.com with Microsoft SMTPSVC(5.0.2195.6881); Thu, 13 Jul 2006 08:38:03 +0300 Message-ID: <44B5DC39.5000205@nokia.com> Date: Thu, 13 Jul 2006 15:38:01 +1000 From: Arthur Hartwig User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: ext Intron References: <200607120504.k6C54jh9097136@www.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Jul 2006 05:38:03.0975 (UTC) FILETIME=[82D3F570:01C6A63E] Cc: freebsd-i386@FreeBSD.org Subject: Re: i386/100142: /dev/smb0 device not available on systems with Intel PiiX4 X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2006 05:38:10 -0000 Thanks for your suggestion. However your data is from a different SMB driver (ichsmb) than the one for which I reported the problem (intsmb). I don't have the problem I reported on a ICH7 based system. Arthur ext Intron wrote: > Arthur Hartwig wrote: > >> >>> Number: 100142 >>> Category: i386 >>> Synopsis: /dev/smb0 device not available on systems with Intel PiiX4 >>> Confidential: no >>> Severity: non-critical >>> Priority: medium >>> Responsible: freebsd-i386 >>> State: open >>> Quarter: Keywords: Date-Required: >>> Class: sw-bug >>> Submitter-Id: current-users >>> Arrival-Date: Wed Jul 12 05:10:14 GMT 2006 >>> Closed-Date: >>> Last-Modified: >>> Originator: Arthur Hartwig >>> Release: 6.0 >>> Organization: >> Nokia >>> Environment: >> FreeBSD oz-net-10.nes.nokia.com 6.0-RELEASE FreeBSD 6.0-RELEASE #3: >> Wed Mar 1 10:46:02 EST 2006 >> hartwig@oz-net-10.nes.nokia.com:/usr/src/sys/i386/compile/oz-net-10 i386 >>> Description: >> System configured with devices intppm, smbb and smbus. >> >> On startup smbus1 is reported but no smbus0 is reported. There is no >> file /dev/smb0 >> >> In sys/pci/intpm.c intpm_attach() executes smbinterface = >> device_add_child(dev, ""intsmb", unit); >> device_probe_and_attach(smbinterface); >> >> device_probe_and_attach() calls device_probe_child() which ends us >> calling intsmb_probe() twice, once when search for the best matching >> driver and again, because intsmb_probe() returns BUS_PROBE_DEFAULT, >> immediately after the comment "Call the probe method again to make >> sure we have the right description." >> >> Calling intsmb_probe() twice results in creation of devices smbus0 >> (on the first call to intsmb_probe) and smbus1 (on the second call to >> intsmb_probe). The second probe call results in When intsmb_attach(0 >> is called, sc->smbus contains a pointer to a device structure for >> smbus1 and consequently smbus1 is reported in the startup. >> >> >>> How-To-Repeat: >> >>> Fix: >> Suggested fix: >> In sys/pci/intpm move >> sc->smbus=device_add_child(dev, "smbus", -1); >> if (!sc->smbus) >> return (EINVAL); /* XXX don't know what to return else */ >> >> from intsmb_probe() to intsmb_attach() >> >> The suggested fix mirrors more closely the code in sys/pci/viapm.c >> and sys/pci/amdpm.c >> >> >> >>> Release-Note: >>> Audit-Trail: >>> Unformatted: >> _______________________________________________ >> freebsd-i386@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-i386 >> To unsubscribe, send any mail to "freebsd-i386-unsubscribe@freebsd.org" > > Please try the following commands: > > kldload smbus > kldload ichsmb > kldload smb > > Then, I can access SMBUS via /dev/smb0. > The kernel messages are: > > ichsmb0: port 0xc400-0xc41f irq 19 at device 31.3 > on pci0 > ichsmb0: [GIANT-LOCKED] > smbus0: on ichsmb0 > smb0: on smbus0 > > The chipset on my motherboard is Intel 82915G-82801FB(ICH6). > > ------------------------------------------------------------------------ > From Beijing, China >