From owner-cvs-all@FreeBSD.ORG Sun Mar 16 19:37:07 2008 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 E6A5E1065679; Sun, 16 Mar 2008 19:37:07 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id B65A68FC28; Sun, 16 Mar 2008 19:37:07 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m2GJEGHr073690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Mar 2008 12:14:17 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <47DD7188.8000109@freebsd.org> Date: Sun, 16 Mar 2008 12:14:16 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Andrew Gallatin References: <200803141941.m2EJfmL2020579@repoman.freebsd.org> <20080316145259.A37148@grasshopper.cs.duke.edu> In-Reply-To: <20080316145259.A37148@grasshopper.cs.duke.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org, John Baldwin Subject: Re: cvs commit: src/sys/amd64/amd64 intr_machdep.c src/sys/amd64/include intr_machdep.h src/sys/arm/arm intr.c src/sys/i386/i386 intr_machdep.c src/sys/i386/include intr_machdep.h src/sys/ia64/ia64 interrupt.c src/sys/kern kern_intr.c ... 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: Sun, 16 Mar 2008 19:37:08 -0000 Andrew Gallatin wrote: > John Baldwin [jhb@FreeBSD.org] wrote: > > >> MI code can currently (ab)use this by doing: >> >> intr_bind(rman_get_start(irq_res), cpu); >> >> however, I plan to add a truly MI interface (probably a bus_bind_intr(9)) >> > > Thank you very much for this! > > Do you plan to add a generic adminstrative interface to bind > interrupts, or may I add a driver specific sysctl to bind mxge's > interrupts in mxge? If you plan to add a generic administrative > interface, I think we also need to add a way for drivers to label > their interrupts so that an administrator can differentiate between > the different MSI-X vectors. > Any idea where this should go? Might be time to grow a tool that grok's the newbus hierarchy and pushes requests to devices. I've wanted functionality like netbsd has recently added to control power to devices and this would be seem to be similar. Not sure if we can do something that'd unify programs like atacontrol and camcontrol (or whether this is a good idea). Sam