[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46583323.40100@genesi-usa.com>
Date: Sat, 26 May 2007 14:16:19 +0100
From: Matt Sealey <matt@...esi-usa.com>
To: crn@...unix.com
CC: Linus Torvalds <torvalds@...ux-foundation.org>,
"Cherwin R. Nooitmeer" <cherwin@...il.com>,
Kristian H?gsberg <krh@...planet.net>,
Mikael Pettersson <mikpe@...uu.se>,
Pavel Machek <pavel@....cz>, sparclinux@...r.kernel.org,
linux1394-devel@...ts.sourceforge.net,
linux-usb-devel@...ts.sourceforge.net, Alan Cox <alan@...hat.com>,
linux-pm@...ts.linux-foundation.org,
Christoph Lameter <clameter@....com>,
Robert de Rooy <robert.de.rooy@...il.com>,
Tejun Heo <htejun@...il.com>,
Michal Piotrowski <michal.k.k.piotrowski@...il.com>,
linux-pcmcia@...ts.infradead.org, Marcus Better <marcus@...ter.se>,
Ingo Molnar <mingo@...e.hu>,
Greg Kroah-Hartman <gregkh@...e.de>,
LKML <linux-kernel@...r.kernel.org>,
Stefan Richter <stefanr@...6.in-berlin.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Andrey Borzenkov <arvidjaar@...l.ru>,
David Miller <davem@...emloft.net>
Subject: Re: [linux-pm] Re: [2/3] 2.6.22-rc2: known regressions v2
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 <matt@...esi-usa.com>
Genesi, Manager, Developer Relations
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists