From owner-freebsd-stable@FreeBSD.ORG Wed Jun 14 13:17:38 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org 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 A841C16A41A for ; Wed, 14 Jun 2006 13:17:38 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from aaron.protected-networks.net (aaron.protected-networks.net [202.12.127.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 247C043D46 for ; Wed, 14 Jun 2006 13:17:37 +0000 (GMT) (envelope-from imb@protected-networks.net) Received: from localhost (localhost [127.0.0.1]) by aaron.protected-networks.net (Postfix) with ESMTP id BD672C586 for ; Wed, 14 Jun 2006 09:17:36 -0400 (EDT) Received: from aaron.protected-networks.net (localhost [127.0.0.1]) by aaron.protected-networks.net (Postfix) with ESMTP id 07121C579 for ; Wed, 14 Jun 2006 09:17:32 -0400 (EDT) Authentication-Results: aaron.protected-networks.net from=imb@protected-networks.net; domainkey=pass Received: from aaron.protected-networks.net (localhost [127.0.0.1]) by aaron.protected-networks.net (Postfix) with ESMTP id C0F9EC504 for ; Wed, 14 Jun 2006 09:17:31 -0400 (EDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=200509; d=protected-networks.net; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=GDCW2EPdISFgd812H5Cu9oeBMbicwur5VBOVG2IjHjB8iPizU31cWVgiYpBduZWffHa5zfyK+bNNqnbDWjU7IwyLxNb4TC/wETLHoI4hPWdVQHAxZ8GSjXytjq/0VVz2; Received: from [192.168.1.11] (c-24-218-147-31.hsd1.ma.comcast.net [24.218.147.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Iain Michael Butler", Issuer "Protected Networks Certificate Authority" (verified OK)) by aaron.protected-networks.net (Postfix) with ESMTP id A14F0C4EA for ; Wed, 14 Jun 2006 09:17:31 -0400 (EDT) Message-ID: <44900C6A.8080400@protected-networks.net> Date: Wed, 14 Jun 2006 09:17:30 -0400 From: Michael Butler User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: /dev/smb issue? 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: Wed, 14 Jun 2006 13:17:38 -0000 Recently, I made some changes to two of my (ancient Intel TR-440BX) ISP-1100 servers, added RAM in one, upgraded BIOS on both. Strangely, only the one with the upgraded RAM is now giving problems with the SMB (i.e. PIIX4) interface while attempting to monitor the on-board Heceta-II device (volts, fans, temps). With a slightly rewritten 'testsmb' command from the xmbmon sources, I can tell that the bus is getting written to even though the process using the SMB interface has long since died. Only some part of the kernel can be doing this .. imb@aaron:/home/imb/xmbmon205# ./testsmb bus=0x00:dev=0x07:fun=0x03 ---> chip=0x71138086 [0x90] SMBase=0x00000441 SMBHSTSTS: 0x01 < busy SMBHSTCNT: 0x09 < byte read or write, irq enable imb@aaron:/home/imb/xmbmon205# ./testsmb bus=0x00:dev=0x07:fun=0x03 ---> chip=0x71138086 [0x90] SMBase=0x00000441 SMBHSTSTS: 0x14 < not busy, command failed, device error SMBHSTCNT: 0x08 < byte read or write imb@aaron:/home/imb/xmbmon205# ./testsmb bus=0x00:dev=0x07:fun=0x03 ---> chip=0x71138086 [0x90] SMBase=0x00000441 SMBHSTSTS: 0x01 < busy SMBHSTCNT: 0x08 < byte read or write So .. my question is .. if a write to /dev/smbX fails, is there a time-out mechanism on the transaction (I can find a kernel code path that would :-() or do I have to power-cycle the box? :-( :-( Is there a mechanism by which I can reset the devices on /dev/smb0 (only PIIX4 and Heceta-II in this case) without power-cycling the machine? Speculation: there may still be an obscure race condition that caused an interrupt to be asserted by the PIIX4 prior to the SMB interface completing the command it was given .. as the Intel AppNotes mention .. but I have yet to prove that .. -- Michael Butler, CISSP Security Architect Protected Networks http://www.protected-networks.net