From owner-cvs-src@FreeBSD.ORG Mon Nov 13 22:24:06 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 AA23016A55F; Mon, 13 Nov 2006 22:24:06 +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 9372043DE9; Mon, 13 Nov 2006 22:23:34 +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 kADMNYjZ017935; Mon, 13 Nov 2006 22:23:34 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kADMNYk0017934; Mon, 13 Nov 2006 22:23:34 GMT (envelope-from jhb) Message-Id: <200611132223.kADMNYk0017934@repoman.freebsd.org> From: John Baldwin Date: Mon, 13 Nov 2006 22:23:34 +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/amd64 local_apic.c mptable_pci.c msi.c nexus.c src/sys/amd64/include apicvar.h intr_machdep.h src/sys/amd64/pci pci_bus.c src/sys/conf files.amd64 files.i386 src/sys/i386/i386 local_apic.c mptable_pci.c msi.c nexus.c ... 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: Mon, 13 Nov 2006 22:24:06 -0000 jhb 2006-11-13 22:23:34 UTC FreeBSD src repository Modified files: sys/amd64/amd64 local_apic.c mptable_pci.c nexus.c sys/amd64/include apicvar.h intr_machdep.h sys/amd64/pci pci_bus.c sys/conf files.amd64 files.i386 sys/i386/i386 local_apic.c mptable_pci.c nexus.c sys/i386/include apicvar.h intr_machdep.h sys/i386/pci pci_bus.c Added files: sys/amd64/amd64 msi.c sys/i386/i386 msi.c Log: MD support for PCI Message Signalled Interrupts on amd64 and i386: - Add a new apic_alloc_vectors() method to the local APIC support code to allocate N contiguous IDT vectors (aligned on a M >= N boundary). This function is used to allocate IDT vectors for a group of MSI messages. - Add MSI and MSI-X PICs. The PIC code here provides methods to manage edge-triggered MSI messages as x86 interrupt sources. In addition to the PIC methods, msi.c also includes methods to allocate and release MSI and MSI-X messages. For x86, we allow for up to 128 different MSI IRQs starting at IRQ 256 (IRQs 0-15 are reserved for ISA IRQs, 16-254 for APIC PCI IRQs, and IRQ 255 is reserved). - Add pcib_(alloc|release)_msi[x]() methods to the MD x86 PCI bridge drivers to bubble the request up to the nexus driver. - Add pcib_(alloc|release)_msi[x]() methods to the x86 nexus drivers that ask the MSI PIC code to allocate resources and IDT vectors. MFC after: 2 months Revision Changes Path 1.33 +62 -0 src/sys/amd64/amd64/local_apic.c 1.5 +8 -0 src/sys/amd64/amd64/mptable_pci.c 1.1 +511 -0 src/sys/amd64/amd64/msi.c (new) 1.70 +53 -0 src/sys/amd64/amd64/nexus.c 1.20 +1 -0 src/sys/amd64/include/apicvar.h 1.12 +17 -4 src/sys/amd64/include/intr_machdep.h 1.118 +4 -0 src/sys/amd64/pci/pci_bus.c 1.99 +1 -0 src/sys/conf/files.amd64 1.571 +1 -0 src/sys/conf/files.i386 1.35 +62 -0 src/sys/i386/i386/local_apic.c 1.5 +8 -0 src/sys/i386/i386/mptable_pci.c 1.1 +511 -0 src/sys/i386/i386/msi.c (new) 1.65 +62 -0 src/sys/i386/i386/nexus.c 1.20 +1 -0 src/sys/i386/include/apicvar.h 1.14 +17 -4 src/sys/i386/include/intr_machdep.h 1.124 +8 -0 src/sys/i386/pci/pci_bus.c