From owner-freebsd-hackers Mon Dec 28 14:38:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA04078 for freebsd-hackers-outgoing; Mon, 28 Dec 1998 14:38:13 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from reliam.teaser.fr (reliam.teaser.fr [194.51.80.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA04069 for ; Mon, 28 Dec 1998 14:38:09 -0800 (PST) (envelope-from son@teaser.fr) Received: from teaser.fr (ppp1087-ft.teaser.fr [194.206.156.40]) by reliam.teaser.fr (8.9.1a/8.9.1a) with ESMTP id XAA25465; Mon, 28 Dec 1998 23:37:31 +0100 (MET) Received: (from son@localhost) by teaser.fr (8.9.1/8.9.1) id AAA03317; Tue, 29 Dec 1998 00:24:31 GMT (envelope-from son) Message-ID: <19981229002431.23735@breizh.prism.uvsq.fr> Date: Tue, 29 Dec 1998 00:24:31 +0000 From: Nicolas Souchu To: Drew Baxter Cc: takawata@shidahara1.planet.sci.kobe-u.ac.jp, hackers@FreeBSD.ORG Subject: Re: Please test my code for Intel onboard SMBus function. References: <199812270458.NAA04526@libr.scitec.kobe-u.ac.jp> <4.1.19981226140415.00c2a8b0@genesis.ispace.com> <199812270458.NAA04526@libr.scitec.kobe-u.ac.jp> <19981228203456.48462@breizh.prism.uvsq.fr> <4.1.19981228133327.00a14ee0@genesis.ispace.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <4.1.19981228133327.00a14ee0@genesis.ispace.com>; from Drew Baxter on Mon, Dec 28, 1998 at 01:35:04PM -0500 X-Operating-System: FreeBSD breizh 3.0-CURRENT FreeBSD 3.0-CURRENT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Dec 28, 1998 at 01:35:04PM -0500, Drew Baxter wrote: >>Last smbus/iicbus commit breaks this code, sorry. But it now handles >>properly the addressing scheme. e.g you may give the slave address to >>each ioctl. >> >>Which errors should be reported Takanori? >> > >I got most of my bugs fixed when I built for CURRENT-1226.. I usually make >world every two weeks or so.. sometimes more.. However as I said, just to >result in crashing my machine :).. > >Eh I'm getting better, we had 3 months on it.. > >Am I supposed to point this thing as SMB0, which it says in my >/var/log/messages is LM78... or am I supposed to point it at SMB1-5 which >it says is a DIMM socket? Hey! Takanori's code is working well! Cool, I cannot test it here yet. I did not put detection code in the last commit. So your hardware won't be detected. This should be done by user-level code (at monitoring daemon initialization and so on). Only /dev/smb0 now addresses your SMBus and spd.c should give the address of the SMB device it accesses for each SMB command instead of using /dev/smb1-5. Detection at boot is wrong since more than one I2C/SMB device may use the same address on the bus. multimedia's solution with bt848 based boards is to compute a signature with the list of device's address present on the bus, then detect the board according to the signature. This works pretty well, but some devices do not love random read/write for the detection. With user-level code, we'll be able to specify exactly the underlying hardware with no effort, and avoid all this complexity. But if you have ideas... > > >--- >Drew "Droobie" Baxter >Network Admin/Professional Computer Nerd(TM) >OneEX: The OneNetwork Exchange, Bangor Maine USA >http://www.droo.orland.me.us > >PGP ID: 409A1F7D > > -- nsouch@teaser.fr / nsouch@freebsd.org FreeBSD - Turning PCs into workstations - http://www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message