From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 18 07:23:42 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9447C37B407 for ; Mon, 18 Aug 2003 07:23:42 -0700 (PDT) Received: from cadillac.meteo.fr (cadillac.meteo.fr [137.129.1.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D5FD43F75 for ; Mon, 18 Aug 2003 07:23:40 -0700 (PDT) (envelope-from igor.pokrovsky@cnrm.meteo.fr) Received: from cti825.cnrm.meteo.fr (localhost.meteo.fr [127.0.0.1]) OAA08209 for ; Mon, 18 Aug 2003 14:23:37 GMT Received: from xdata.cnrm.meteo.fr (xdata.cnrm.meteo.fr [137.129.150.2]) QAA14884; Mon, 18 Aug 2003 16:23:35 +0200 (METDST) Received: from exmatis1.cnrm.meteo.fr (exmatis1.cnrm.meteo.fr [137.129.157.46]) by xdata.cnrm.meteo.fr with ESMTP (8.9.3 (PHNE_24419)/8.7.1) id QAA29992; Mon, 18 Aug 2003 16:24:30 +0200 (METDST) Received: from exmatis1.cnrm.meteo.fr (localhost [127.0.0.1]) h7IEIqb6040602; Mon, 18 Aug 2003 16:18:52 +0200 (CEST) (envelope-from pokrovsi@exmatis1.cnrm.meteo.fr) Received: (from pokrovsi@localhost) by exmatis1.cnrm.meteo.fr (8.12.9/8.12.9/Submit) id h7IEIqL1040601; Mon, 18 Aug 2003 16:18:52 +0200 (CEST) Date: Mon, 18 Aug 2003 16:18:52 +0200 From: Igor Pokrovsky To: Bruce M Simpson , Igor Pokrovsky , freebsd-hackers@freebsd.org Message-ID: <20030818141852.GA40572@exmatis1.cnrm.meteo.fr> Mail-Followup-To: Igor Pokrovsky , Bruce M Simpson , freebsd-hackers@freebsd.org References: <20030818124841.GA35843@exmatis1.cnrm.meteo.fr> <20030818141217.GD21219@spc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030818141217.GD21219@spc.org> User-Agent: Mutt/1.4.1i X-Accept-Language: ru X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (cti825/CNRM) Organization: METEO FRANCE(CNRM) Subject: Re: PCI quirk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Igor Pokrovsky List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2003 14:23:42 -0000 On Mon, Aug 18, 2003 at 03:12:17PM +0100, Bruce M Simpson wrote: > On Mon, Aug 18, 2003 at 02:48:41PM +0200, Igor Pokrovsky wrote: > > Hello all, > > > > I'd like to add a PCI quirk, which will enable SMBus on boot > > (it gets disabled by BIOS). What is the best place in kernel > > to do this? I looked through PCI sources, but haven't found > > any suitable place for that (not like in USB case). > > This sounds like perhaps you need to add a patch tied to your southbridge. > > Generally the SMBus interface hangs off the southbridge or a power management > controller. But you haven't told us which one, so any advice we may be able > to give you is largely academic. > > Do you know the PCI ID of the *function* that implements the SMBus interface > in your system? If so, grep through the kernel source and find which driver > is attached to it, if any. If not, pciconf -lv is a good place to start. Yes, I have all information. I need to do the similar thing in kernel: pciconf -w -h pci0:31:0 0xf2 0 Generally according to datashit I have to turn off zero and third bits of 0xf2, but in fact zeroing whole 2 bytes of 0xf2 works also. And I'm searching for a right place to add this. -ip -- Write-Protect Tab, n.: A small sticker created to cover the unsightly notch carelessly left by disk manufacturers. The use of the tab creates an error message once in a while, but its aesthetic value far outweighs the momentary inconvenience. -- Robb Russon