From owner-cvs-all@FreeBSD.ORG Wed Aug 15 21:12:08 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4CBB16A417; Wed, 15 Aug 2007 21:12:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A20C813C46C; Wed, 15 Aug 2007 21:12:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l7FLC89Y047224; Wed, 15 Aug 2007 21:12:08 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l7FLC86N047223; Wed, 15 Aug 2007 21:12:08 GMT (envelope-from jhb) Message-Id: <200708152112.l7FLC86N047223@repoman.freebsd.org> From: John Baldwin Date: Wed, 15 Aug 2007 21:12:08 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/amd64/amd64 msi.c nexus.c src/sys/amd64/include intr_machdep.h src/sys/i386/i386 msi.c nexus.c src/sys/i386/include intr_machdep.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2007 21:12:08 -0000 jhb 2007-08-15 21:12:08 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/amd64/amd64 msi.c nexus.c sys/amd64/include intr_machdep.h sys/i386/i386 msi.c nexus.c sys/i386/include intr_machdep.h Log: MFC: Partial MFC of earlier minor fixes and tweaks to x86 interrupt code: - Add a new nexus hook: nexus_add_irq() to ask the nexus driver to add an IRQ to its irq_rman. The MSI code uses this when it creates new interrupt sources to let the nexus know about newly valid IRQs. Previously the msi_alloc() and msix_alloc() passed some extra stuff back to the nexus methods which then added the IRQs. This approach is a bit cleaner. - Change the MSI sx lock to a mutex. If we need to create new sources, drop the lock, create the required number of sources, then get the lock and try the allocation again. Revision Changes Path 1.4.2.3 +55 -48 src/sys/amd64/amd64/msi.c 1.66.2.4 +11 -15 src/sys/amd64/amd64/nexus.c 1.5.2.8 +3 -3 src/sys/amd64/include/intr_machdep.h 1.4.2.3 +55 -48 src/sys/i386/i386/msi.c 1.62.2.4 +11 -15 src/sys/i386/i386/nexus.c 1.7.2.8 +3 -3 src/sys/i386/include/intr_machdep.h