Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760031AbXEZNQk (ORCPT ); Sat, 26 May 2007 09:16:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753449AbXEZNQe (ORCPT ); Sat, 26 May 2007 09:16:34 -0400 Received: from mithrandir.softwarenexus.net ([66.98.186.96]:2714 "EHLO mail.genesi-usa.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911AbXEZNQd (ORCPT ); Sat, 26 May 2007 09:16:33 -0400 Message-ID: <46583323.40100@genesi-usa.com> Date: Sat, 26 May 2007 14:16:19 +0100 From: Matt Sealey User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: crn@netunix.com CC: Linus Torvalds , "Cherwin R. Nooitmeer" , Kristian H?gsberg , Mikael Pettersson , Pavel Machek , sparclinux@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-usb-devel@lists.sourceforge.net, Alan Cox , linux-pm@lists.linux-foundation.org, Christoph Lameter , Robert de Rooy , Tejun Heo , Michal Piotrowski , linux-pcmcia@lists.infradead.org, Marcus Better , Ingo Molnar , Greg Kroah-Hartman , LKML , Stefan Richter , Andrew Morton , Andrey Borzenkov , David Miller Subject: Re: [linux-pm] Re: [2/3] 2.6.22-rc2: known regressions v2 References: <46558708.2040803@googlemail.com> <46559B54.80106@googlemail.com> <20070524193740.GA6787@elte.hu> <20070525101105.GA9268@elte.hu> <4656CE39.8050800@netunix.com> <46572507.6010800@netunix.com> In-Reply-To: <46572507.6010800@netunix.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2196 Lines: 55 Chris Newport wrote: > > Sorry, I did not make myself clear. > > Linus Torvalds wrote: > >> On Fri, 25 May 2007, Chris Newport wrote: >> >> >>> Maybe we should take a hint from Solaris. >>> >> >> No. Solaris is shit. They make their decisions based on "we control >> the hardware" kind of setup. >> >> > Not really a Solaris feature. This is a feature of the Openboot PROM > which is also used by several other vendors. > The Openboot PROM knows how to write to disk. The same should > apply on Apple hardware and others which use the openboot > convention. It doesn't, though. It is not part of any specification of Open Firmware that you MUST be able to write to any exposed disk. In fact, I know of one firmware implementation (ours) where we don't allow it. Apart from being a bitch to implement safely (i.e. for people's data) it is also quite a security problem to allow the firmware interface to write to the disk. You can't make the differentiation between "at the firmware console" and "inside a booted OS" unfortunately. The 'solution' in Solaris is actually that the filesystem and disk write handling is done by the OS bootloader and not the PROM. All the PROM knows how to do is read off the bootloader (in a special partition in a special filesystem format) and execute it after probing the hardware and providing the device tree. The first stage boot loader then knows how to read UFS filesystems so it can grab the kernel and load kernel modules, and write back a kernel dump if it needs to. That, and Linux drops OF support like a lead weight very early in boot. About all you can rely on is the device tree listing all your disks present, and even then, Linux will redetect all of these with native drivers and give them new names anyway. In fact, Solaris does the same (but it is better about associating the device tree entries than Linux) -- Matt Sealey Genesi, Manager, Developer Relations - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/