From owner-cvs-all@FreeBSD.ORG Sun Mar 16 23:10:26 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 6A0201065671; Sun, 16 Mar 2008 23:10:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 16EAA8FC14; Sun, 16 Mar 2008 23:10:25 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m2GN8xjA049341; Sun, 16 Mar 2008 17:08:59 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 16 Mar 2008 17:09:35 -0600 (MDT) Message-Id: <20080316.170935.-713546699.imp@bsdimp.com> To: sam@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <47DD7188.8000109@freebsd.org> References: <200803141941.m2EJfmL2020579@repoman.freebsd.org> <20080316145259.A37148@grasshopper.cs.duke.edu> <47DD7188.8000109@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: cvs-all@FreeBSD.org, cvs-src@FreeBSD.org, src-committers@FreeBSD.org, gallatin@cs.duke.edu, jhb@FreeBSD.org 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 23:10:26 -0000 In message: <47DD7188.8000109@freebsd.org> Sam Leffler writes: : 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). I've wanted to maek devctl grow this sort of thing for a long time, but never had time to implement this. It wouldn't be hard, just a bit tedious. Also, there's two types of requests that would need to be handled. One is where you tell a device to do something directly. The other is where you tell its parent to do it to the child (and maybe do some cleanup afterwards). Warner