From owner-freebsd-stable@FreeBSD.ORG Thu Sep 11 04:33:29 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 1AEA81065677 for ; Thu, 11 Sep 2008 04:33:29 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA04.westchester.pa.mail.comcast.net (qmta04.westchester.pa.mail.comcast.net [76.96.62.40]) by mx1.freebsd.org (Postfix) with ESMTP id B82848FC0C for ; Thu, 11 Sep 2008 04:33:28 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA03.westchester.pa.mail.comcast.net ([76.96.62.27]) by QMTA04.westchester.pa.mail.comcast.net with comcast id DGQz1a0070bG4ec54GZUdE; Thu, 11 Sep 2008 04:33:28 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA03.westchester.pa.mail.comcast.net with comcast id DGZT1a0034v8bD73PGZTX3; Thu, 11 Sep 2008 04:33:28 +0000 X-Authority-Analysis: v=1.0 c=1 a=-PxM-T6eSjQA:10 a=wx43BJ9xnxcA:10 a=QycZ5dHgAAAA:8 a=1EDTz9EZup7Jqv6NOCYA:9 a=prI3FGBqXEZUnFehcPAA:7 a=UnJHDRLe0UGxmfrSADLB5rfM3pcA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id CA13A17B81A; Wed, 10 Sep 2008 21:33:26 -0700 (PDT) Date: Wed, 10 Sep 2008 21:33:26 -0700 From: Jeremy Chadwick To: Bruce M Simpson Message-ID: <20080911043326.GA19290@icarus.home.lan> References: <48C847DE.7040508@incunabulum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48C847DE.7040508@incunabulum.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: FreeBSD stable Subject: Re: Intel ICH7 SMBus support, ichsmb(4) 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: Thu, 11 Sep 2008 04:33:29 -0000 On Wed, Sep 10, 2008 at 11:19:10PM +0100, Bruce M Simpson wrote: > Hi there, > > I have been looking at a system which has the Intel ICH7 south bridge. > > Whenever I try to probe the SMBus on this system with 'smbmsg -p', I get > a lot of status=41 timeout messages in dmesg from the ichsmb(4) driver. > > I have been given the addresses of the SMBus peripherals and have tried > initiating reads to their register space directly using 'smbmsg', with > the same result. Yes, I have seen this behaviour but *only* when querying a slave address which was incorrect or had no device tied to it. You should not be using the "8-bit data address". > * Has anyone seen the same issues with the ICH7? All of my development on bsdhwmon has been done exclusively on ICH7 chipsets, except for the hardware I don't have access to (which use other chipsets, but still use ichsmb(4)): http://bsdhwmon.parodius.com/ During early development of bsdhwmon, I used smbmsg exclusively for testing. So in that respect, no, I've never seen the problem you report. > * Does anyone know of any userland code I could use as an alternative to > the ichsmb(4) driver? > > I looked at mbmon, it appears it relies on the smb(4) drivers; its > direct ISA access only works for specific hardware monitoring chips > which appear on the ISA/LPC bus and does not implement SMBus bit-banging > in userland. mbmon does not use SMBus properly, or in the way you think it would. It's a bad example. If you would like some real code that interfaces with ichsmb(4) reliably, let me know and I'll send you the current tarball to bsdhwmon. It's very clean/easy to follow code. If you're working on a hardware monitoring tool, possibly it would just be best for me to include support for it in bsdhwmon. -- | 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 |