Date: Mon, 14 Jun 2010 08:41:38 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-doc@freebsd.org Cc: freebsd-gnats-submit@freebsd.org, Garrett Cooper <gcooper@freebsd.org> Subject: Re: docs/147796: [patch] device smbus missing from ipmi(4) synopsys section Message-ID: <201006140841.39033.jhb@freebsd.org> In-Reply-To: <201006111940.o5BJe40g078179@www.freebsd.org> References: <201006111940.o5BJe40g078179@www.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006140841.39033.jhb>