From owner-cvs-src@FreeBSD.ORG Fri Sep 22 22:11:33 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A79C416A416; Fri, 22 Sep 2006 22:11:33 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C7AD43D6B; Fri, 22 Sep 2006 22:11:30 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k8MMBUP5069800; Fri, 22 Sep 2006 22:11:30 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k8MMBUJI069799; Fri, 22 Sep 2006 22:11:30 GMT (envelope-from jhb) Message-Id: <200609222211.k8MMBUJI069799@repoman.freebsd.org> From: John Baldwin Date: Fri, 22 Sep 2006 22:11:29 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/amd64/conf NOTES src/sys/conf files.amd64 files.i386 src/sys/dev/ipmi ipmi.c ipmi_acpi.c ipmi_isa.c ipmi_kcs.c ipmi_pci.c ipmi_smbios.c ipmi_smbus.c ipmi_smic.c ipmi_ssif.c ipmivars.h src/sys/i386/conf NOTES ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 22:11:33 -0000 jhb 2006-09-22 22:11:29 UTC FreeBSD src repository Modified files: sys/amd64/conf NOTES sys/conf files.amd64 files.i386 sys/dev/ipmi ipmi.c ipmi_pci.c ipmi_smbios.c ipmivars.h sys/i386/conf NOTES sys/modules/ipmi Makefile sys/sys ipmi.h Added files: sys/dev/ipmi ipmi_acpi.c ipmi_isa.c ipmi_kcs.c ipmi_smbus.c ipmi_smic.c ipmi_ssif.c Log: Update the ipmi(4) driver: - Split out the communication protocols into their own files and use a couple of function pointers in the softc that the commuication protocols setup in their own attach routine. - Add support for the SSIF interface (talking to IPMI over SMBus). - Add an ACPI attachment. - Add a PCI attachment that attaches to devices with the IPMI interface subclass. - Split the ISA attachment out into its own file: ipmi_isa.c. - Change the code to probe the SMBIOS table for an IPMI entry to just use pmap_mapbios() to map the table in rather than trying to setup a fake resource on an isa device and then activating the resource to map in the table. - Make bus attachments leaner by adding attach functions for each communication interface (ipmi_kcs_attach(), ipmi_smic_attach(), etc.) that setup per-interface data. - Formalize the model used by the driver to handle requests by adding an explicit struct ipmi_request object that holds the state of a given request and reply for the entire lifetime of the request. By bundling the request into an object, it is easier to add retry logic to the various communication backends (as well as eventually support BT mode which uses a slightly different message format than KCS, SMIC, and SSIF). - Add a per-softc lock and remove D_NEEDGIANT as the driver is now MPSAFE. - Add 32-bit compatibility ioctl shims so you can use a 32-bit ipmitool on FreeBSD/amd64. - Add ipmi(4) to i386 and amd64 NOTES. Submitted by: ambrisko (large portions of 2 and 3) Sponsored by: IronPort Systems, Yahoo! MFC after: 6 days Revision Changes Path 1.59 +2 -0 src/sys/amd64/conf/NOTES 1.94 +7 -1 src/sys/conf/files.amd64 1.566 +7 -1 src/sys/conf/files.i386 1.4 +674 -773 src/sys/dev/ipmi/ipmi.c 1.1 +210 -0 src/sys/dev/ipmi/ipmi_acpi.c (new) 1.1 +209 -0 src/sys/dev/ipmi/ipmi_isa.c (new) 1.1 +607 -0 src/sys/dev/ipmi/ipmi_kcs.c (new) 1.2 +203 -217 src/sys/dev/ipmi/ipmi_pci.c 1.2 +138 -367 src/sys/dev/ipmi/ipmi_smbios.c 1.1 +131 -0 src/sys/dev/ipmi/ipmi_smbus.c (new) 1.1 +361 -0 src/sys/dev/ipmi/ipmi_smic.c (new) 1.1 +375 -0 src/sys/dev/ipmi/ipmi_ssif.c (new) 1.2 +170 -42 src/sys/dev/ipmi/ipmivars.h 1.1232 +2 -0 src/sys/i386/conf/NOTES 1.2 +6 -2 src/sys/modules/ipmi/Makefile 1.2 +36 -0 src/sys/sys/ipmi.h