From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2.shareable.org (mail2.shareable.org [80.68.89.115]) by ozlabs.org (Postfix) with ESMTP id 49511B7D86 for ; Tue, 15 Jun 2010 00:46:46 +1000 (EST) Date: Mon, 14 Jun 2010 15:29:58 +0100 From: Jamie Lokier To: Russell King - ARM Linux Subject: Re: Request review of device tree documentation Message-ID: <20100614142958.GA9550@shareable.org> References: <1276383132.1962.195.camel@pasglop> <4C146F18.9030008@firmworks.com> <1276408773.1962.574.camel@pasglop> <20100614073828.GA6095@n2100.arm.linux.org.uk> <4C15DE2E.1050905@firmworks.com> <20100614092559.GA7881@n2100.arm.linux.org.uk> <1276508170.2552.43.camel@pasglop> <20100614094740.GB7881@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20100614094740.GB7881@n2100.arm.linux.org.uk> Cc: Mitch Bradley , Nicolas Pitre , devicetree-discuss , linuxppc-dev , microblaze-uclinux@itee.uq.edu.au, Olof Johansson , Dan Malek , Jeremy Kerr , linux-arm-kernel@lists.infradead.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Russell King - ARM Linux wrote: > On Mon, Jun 14, 2010 at 07:36:10PM +1000, Benjamin Herrenschmidt wrote: > > However, there's a lot of room for abuse here and I'm worried that if it > > becomes widespread, we'll start seeing vendors use that as a way to do > > some kind of HAL and hide various platform methods in there (clock > > control, nvram, etc...). > > This is what I'm worried about too. > > As I said in my first reply in this thread, calling out from the kernel > will kill performance due to the time taken to shut down the caches and > MMU, which can only be done safely with all exceptions turned off. Some applications use ARM (or other "embedded"-ish CPU) as opposed to x86 PCs, to get predictable and reasonable interrupt latency. x86 PCs sometimes have unpredictable interrupt latency due to those mystery interrupts that the BIOS handles and the OS can't see or block. It's a different cause, but let's not duplicate the symptom where it isn't wanted. Even if opaque firmware callouts were fast, it would be an issue with real-time kernels if they couldn't depend on that as an auditable fact. -- Jamie