From owner-freebsd-stable@FreeBSD.ORG Tue Aug 12 07:53:16 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9224937B401 for ; Tue, 12 Aug 2003 07:53:16 -0700 (PDT) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78B0343F75 for ; Tue, 12 Aug 2003 07:53:15 -0700 (PDT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.9/8.12.9) with ESMTP id h7CEs9Kj030520; Tue, 12 Aug 2003 16:54:09 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.9/8.12.9/Submit) id h7CEs9Ll030519; Tue, 12 Aug 2003 16:54:09 +0200 (CEST) Date: Tue, 12 Aug 2003 16:54:09 +0200 From: Stijn Hoop To: Igor Pokrovsky , Don Bowman , freebsd-stable@freebsd.org Message-ID: <20030812145409.GC59732@pcwin002.win.tue.nl> References: <20030812134634.GA3783@exmatis1.cnrm.meteo.fr> <20030812140550.GZ59732@pcwin002.win.tue.nl> <20030812141318.GA59732@pcwin002.win.tue.nl> <20030812144000.GA4013@exmatis1.cnrm.meteo.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="keoAwTxaagou87Dg" Content-Disposition: inline In-Reply-To: <20030812144000.GA4013@exmatis1.cnrm.meteo.fr> User-Agent: Mutt/1.4.1i X-Bright-Idea: Let's abolish HTML mail! Subject: Re: support of SMBus on ICH3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2003 14:53:16 -0000 --keoAwTxaagou87Dg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 12, 2003 at 04:40:00PM +0200, Igor Pokrovsky wrote: > On Tue, Aug 12, 2003 at 04:13:18PM +0200, Stijn Hoop wrote: > > On Tue, Aug 12, 2003 at 04:05:50PM +0200, Stijn Hoop wrote: > > > 1000011000001001 > > >=20 > > > which shows that bit 3 is not set counting either way :( > >=20 > > Doh. I need more coffee. Obviously bit 3 _is_ set. > >=20 > > The question remains then: > >=20 > > > So how do I set this permanently? What determines the initial value > > > of this register? It doesn't survive a reboot :( Admittedly I'm in > > > above my head now. >=20 > So, 0 and 3 bits are set by default? Right? > What prevents us from detecting SMBus then? The fact that those bits are set by default on boot. From the manual: bit name =09 3 D31_F3_Disable R/W. Software sets this bit to disable the SMBus Host Controller function. BIOS must not enable I/O or memory address space decode, interrupt generation, or any other functionality of functions that are to be disabled. 0 =3D SMBus controller is enabled. 1 =3D SMBus controller is disabled. 0 SMB_FOR_BIOS R/W. This bit is used in conjunction with bit 3 in this register. 0 =3D No effect. 1 =3D Allows the SMBus I/O space to be accessible by software when bit 3 in this register is set. The PCI configuration space is hidden in this case. Note that if bit 3 is set alone, the decode of both SMBus PCI configuration and I/O space will be disabled. Both bits are set, so 'the SMBus I/O space' is accessible (whatever that means). I suspect Don is right, and the motherboard disables the SMBus controller becase there are no slave devices wired to it. Dell (the brand of my laptop) uses ACPI and a proprietary method to determine thermal values, so they must have disabled SMBus to avoid implementing yet another way to read those. If there was an ichsmb kernel module, you could theoretically clear the above bits, and _then_ load the module -- it should attach. I didn't see any method through adding quirks to always do this on boot though. --Stijn --=20 Nostalgia ain't what it used to be. --keoAwTxaagou87Dg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/OP+RY3r/tLQmfWcRAnXbAKCbCtg8Q+EsmdbtPo9PE2XZXisNbwCfbQ8W b9lTJd9t8939dqAmyS6JG2Q= =pJ95 -----END PGP SIGNATURE----- --keoAwTxaagou87Dg--