From owner-freebsd-arch@FreeBSD.ORG Mon Jul 7 05:54:28 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 16AE0175; Mon, 7 Jul 2014 05:54:28 +0000 (UTC) Received: from hergotha.csail.mit.edu (wollman-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:ccb::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB2452C7A; Mon, 7 Jul 2014 05:54:27 +0000 (UTC) Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.14.7/8.14.7) with ESMTP id s675sO2A051034; Mon, 7 Jul 2014 01:54:24 -0400 (EDT) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.14.7/8.14.4/Submit) id s675sOdQ051033; Mon, 7 Jul 2014 01:54:24 -0400 (EDT) (envelope-from wollman) Date: Mon, 7 Jul 2014 01:54:24 -0400 (EDT) From: Garrett Wollman Message-Id: <201407070554.s675sOdQ051033@hergotha.csail.mit.edu> To: adrian@freebsd.org Subject: Re: [patch] axe RF_TIMESHARE? X-Newsgroups: mit.lcs.mail.freebsd-arch In-Reply-To: References: <201407070047.s670lWUv022054@gw.catspoiler.org> Organization: none X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (hergotha.csail.mit.edu [127.0.0.1]); Mon, 07 Jul 2014 01:54:24 -0400 (EDT) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on hergotha.csail.mit.edu Cc: freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2014 05:54:28 -0000 In article , adrian@freebsd.org writes: >On 6 July 2014 17:47, Don Lewis wrote: >> On 6 Jul, Adrian Chadd wrote: >>> Hi, >>> >>> What's it supposed to be used for? >> >> My understanding it that it is supposed to be used to allow two more >> devices to claim the same resource, such as an I/O port range, but only >> one device can be active at a time. > >Interesting. I wonder what kinds of things would want to do this. Well, when I included it the original rman implementation, I had a few applications in mind: - shared interrupts on the ISA bus - some weird stuff that people were doing on parallel ports - if you had some device with a really big shared-memory region that you might want to be able to turn on and off to allow other devices to use that address space It's been more than a decade since I wrote that code, and I think pretty much every conceivable use for it has long since been overtaken by events. In any modern situation where you might want to use this, you probably need the cooperation of higher-level code to make it work anyway, so you might as well implement it at that layer instead. So yes, please, do make it go away. Simpler and easier to understand is better. -GAWollman