From owner-freebsd-doc@FreeBSD.ORG Mon Jun 14 13:50:05 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84707106566C for ; Mon, 14 Jun 2010 13:50:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5788FC0C for ; Mon, 14 Jun 2010 13:50:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5EDo56F020723 for ; Mon, 14 Jun 2010 13:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5EDo5UG020722; Mon, 14 Jun 2010 13:50:05 GMT (envelope-from gnats) Date: Mon, 14 Jun 2010 13:50:05 GMT Message-Id: <201006141350.o5EDo5UG020722@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: John Baldwin Cc: Subject: Re: docs/147796: [patch] device smbus missing from ipmi(4) synopsys section X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 13:50:05 -0000 The following reply was made to PR docs/147796; it has been noted by GNATS. From: John Baldwin To: freebsd-doc@freebsd.org Cc: Garrett Cooper , freebsd-gnats-submit@freebsd.org Subject: Re: docs/147796: [patch] device smbus missing from ipmi(4) synopsys section Date: Mon, 14 Jun 2010 08:41:38 -0400 On Friday 11 June 2010 3:40:04 pm Garrett Cooper wrote: > > >Number: 147796 > >Category: docs > >Synopsis: [patch] device smbus missing from ipmi(4) synopsys section > >Confidential: no > >Severity: non-critical > >Priority: medium > >Responsible: freebsd-doc > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Fri Jun 11 19:50:01 UTC 2010 > >Closed-Date: > >Last-Modified: > >Originator: Garrett Cooper > >Release: 9-CURRENT > >Organization: > Cisco Systems, Inc. > >Environment: > >Description: > Tried kldload(8)'ing ipmi(4) and it failed siting this in the dmesg: > > KLD ipmi.ko: depends on smbus - not available or version mismatch > linker_load_file: Unsupported file type > > I build and installed the i2c/smbus module and voila: > > $ kldstat -v | grep ipmi > 8 1 0xffffffff80e17000 2cc ipmi_linux.ko (/boot/TAMESHI_CURRENT.r206173/ipmi_linux.ko) > 229 ipmi_linux > 9 1 0xffffffff80e18000 6dc4 ipmi.ko (/boot/TAMESHI_CURRENT.r206173/ipmi.ko) > 234 smbus/ipmi_smbus > 233 pci/ipmi_pci > 232 pci/ipmi2_pci > 231 isa/ipmi_isa > 230 acpi/ipmi_acpi > >How-To-Repeat: > Don't build kernel with smbus(4), but build with ipmi(4) support. If built via modules, then ipmi will fail to load. Actually, if you have an smbus.ko around (which you do by default unless you use NO_MODULES=yes or MODULES_OVERRIDE), it will autoload smbus.ko and work fine. Also, if you use 'device ipmi' without 'device smbus' in your config, it will build fine (it just won't support IPMI SSIF devices that use smbus). For that reason, I don't think this patch is needed (and is in fact wrong as you can support 90+% of IPMI BMC's without 'device smbus'). -- John Baldwin