From owner-freebsd-stable@FreeBSD.ORG Fri Sep 12 18:32:40 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05AE31065702 for ; Fri, 12 Sep 2008 18:32:40 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.westchester.pa.mail.comcast.net (qmta02.westchester.pa.mail.comcast.net [76.96.62.24]) by mx1.freebsd.org (Postfix) with ESMTP id 92B708FC12 for ; Fri, 12 Sep 2008 18:32:38 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA02.westchester.pa.mail.comcast.net with comcast id Dt5i1a01w0EZKEL52uYbzF; Fri, 12 Sep 2008 18:32:35 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA01.westchester.pa.mail.comcast.net with comcast id DuYa1a0084v8bD73MuYaJU; Fri, 12 Sep 2008 18:32:35 +0000 X-Authority-Analysis: v=1.0 c=1 a=UFqbKCt8X2kA:10 a=6Z53Y4f3-zkA:10 a=QycZ5dHgAAAA:8 a=MPJzKc34rsjiRDeSywIA:9 a=82Fl_ibt3FrHtNIvkdk0-Jxuq2AA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 075F217B81A; Fri, 12 Sep 2008 11:32:34 -0700 (PDT) Date: Fri, 12 Sep 2008 11:32:33 -0700 From: Jeremy Chadwick To: Chris Ruiz Message-ID: <20080912183233.GA63271@icarus.home.lan> References: <48C927DC.6000202@incunabulum.net> <1EDB9C24-8E69-43D3-8082-2379955FF8FF@young-alumni.com> <20080912175749.GA62725@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD stable Subject: Re: Any working ichsmb(4) platforms out there? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2008 18:32:40 -0000 On Fri, Sep 12, 2008 at 01:12:34PM -0500, Chris Ruiz wrote: > > On Sep 12, 2008, at 12:57 PM, Jeremy Chadwick wrote: > >> On Fri, Sep 12, 2008 at 12:19:55PM -0500, Chris Ruiz wrote: >>> I have an ICH9 system and get the following: >>> >>> First, my kernel: >>> FreeBSD attack.young-alumni.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE >>> #0: Sat Sep 6 08:33:04 CDT 2008 root@:/usr/src/sys/amd64/ >>> compile/ >>> ATTACK amd64 >>> >>> Dmesg: >>> ichsmb0: port 0x3000-0x301f mem >>> 0xe0427000-0xe04270ff >>> irq 18 >>> at device 31.3 on pci0 >>> ichsmb0: [GIANT-LOCKED] >>> ichsmb0: [ITHREAD] >>> smbus0: on ichsmb0 >>> >>> Error: >>> attack:~ root# smbmsg -p >>> smbmsg: Cannot open /dev/smb0: No such file or directory >> >> Does your kernel include all 3 of the following devices? >> >> device smbus >> device smb >> device ichsmb >> >> -- >> | Jeremy Chadwick jdc at parodius.com | >> | Parodius Networking http://www.parodius.com/ | >> | UNIX Systems Administrator Mountain View, CA, USA | >> | Making life hard for others since 1977. PGP: 4BD6C0CB | >> > > Jeremy, > > I loaded smb.ko and it fixed the situation. I had the line > 'ichsmb_load="YES"' in my loader.conf and it loaded smbus.ko but not > smb.ko for me. Seems like a module load dependency issue. They're all independent pieces, that's why. I realise the naming convention is confusing ("wait, what do I need? Do I need iicbus? What is that thing?!"), and older FreeBSD kernel configuration syntaxes and documentation made it even worse. Here's the breakdown in layman's terms: ichsmb(4) -- support for Intel ICHxx SMBus via PCI bus smbus(4) -- adds support for kernel SMBus API framework and interfaces with chipset SMBus driver (e.g. ichsmb(4)) smb(4) -- creates /dev/smbXX entries and provides ioctl(2) interface for userland applications Does this help reduce confusion? I don't consider this a "dependency issue" at all. These are all literally separate things; you do not meed smbus(4) and smb(4) if you just simply want to tie a driver to a feature/device that's on the PCI bus (e.g. ichsmb(4)). Besides, does kldload or kernel modules in general have *any* sort of dependency tree code? I didn't think they did. > Here's my output: > attack:~ root# smbmsg -p > Probing for devices on /dev/smb0: > Device @0x44: rw > Device @0x50: rw > Device @0x52: rw > Device @0x64: w > Device @0x80: rw > Device @0x88: w > Device @0x8c: r > Device @0xc4: rw > Device @0xd0: rw > Device @0xd2: rw > Device @0xe4: w Good deal, this is functioning normally. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |