From owner-freebsd-hardware Wed Nov 29 21:54:39 2000 Delivered-To: freebsd-hardware@freebsd.org Received: from spock.org (cm-24-169-11-24.nycap.rr.com [24.169.11.24]) by hub.freebsd.org (Postfix) with ESMTP id 38E0437B400 for ; Wed, 29 Nov 2000 21:54:36 -0800 (PST) Received: (from jon@localhost) by spock.org serial EF600Q3T-B7F; Thu, 30 Nov 2000 00:54:23 -0500 (EST) (envelope-from jon) Date: Thu, 30 Nov 2000 00:54:23 -0500 From: Jonathan Chen To: Terry Glanfield Cc: hardware@FreeBSD.ORG Subject: Re: ServerWorks SMbus Message-ID: <20001130005423.C50250@spock.org> References: <200011291716.RAA19113@program-products.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: telnet/1.1x In-Reply-To: <200011291716.RAA19113@program-products.co.uk>; from Terry.Glanfield@program-products.co.uk on Wed, Nov 29, 2000 at 05:16:16PM +0000 Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Nov 29, 2000 at 05:16:16PM +0000, Terry Glanfield wrote: > Has anyone done any work to support the SMbus on the ServerWorks > ServerSet III chipset? I poked around a bit trying to get /dev/smb0 working for reading system temperature and stuff, and couldn't get it to work for some reason. The board in question is a ServerSet II LE (SuperMicro 370DLE, dual proc) on -STABLE. I had the proper kernel options and compiled consolehm from ports. When consolehm is ran, ENODEV is returned after using ioctl()'s on /dev/smb0. Tracing through the kernel reveals pcf_wait_byte() in sys/i386/pcf.c was failing. Each PCF_GET_S1() would return 0xff. I have no clue how iic or smb works, perhaps someone with more clue can take a crack at this? The call stack is something like: pcf_wait_byte(...) [ in i386/isa/pcf.c ] pcfstart(...) [ in i386/isa/pcf.c ] iicsmb_readb(...) [ in dev/iicbus/iicsmb.c ] smbioctl(?, SMB_READB, ...) [ in dev/smbus/smb.c ] The relavent portions of dmesg is below: FreeBSD 4.2-RELEASE #0: Tue Nov 21 03:10:05 GMT 2000 [...] pcib0: on motherboard [...] isab0: at device 15.0 on pci0 [...] pcf0: at port 0x320-0x321 irq 5 on isa0 iicbus0: on pcf0 addr 0xaa iicsmb0: on iicbus0 smbus0: on iicsmb0 smb0: on smbus0 iic0: on iicbus0 BTW, nothing else should be on the same ioport/irq as pcf or iicbus. -- (o_ 1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2 _o) \\\_\ Jonathan Chen jon@spock.org /_/// <____) No electrons were harmed during production of this message (____> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message