From: Geoff Levand <geoffrey.levand@am•sony.com>
To: Nathan Lynch <ntl@pobox•com>
Cc: paulus@samba•org, linuxppc-dev@ozlabs•org
Subject: Re: [PATCH 10/14] ps3: get firmware version
Date: Fri, 26 Jan 2007 15:27:55 -0800 [thread overview]
Message-ID: <45BA8E7B.6010503@am.sony.com> (raw)
In-Reply-To: <45BA8ADA.8000108@am.sony.com>
Geoff Levand wrote:
> Nathan Lynch wrote:
>> Benjamin Herrenschmidt wrote:
>>
>>> > Anyway, that is the need, the question is where to make it
>>> > available. I thought /proc/cpuinfo already has the platform type
>>> > (coming from the generic powerpc code), so it would be convenient
>>> > for utilities to have the firmware version there too. I don't
>>> > think parsing the dmsg is an option for minimal configs like
>>> > bootloaders and distro installers, as they may not keep the boot
>>> > messages around, and in general doesn't seem a reliable way. If
>>> > you can make a suggestion, I'd like to hear it.
>>>
>>> Yeah, /proc/cpuinfo is actually a fairly convenient place for that...
>>
>> Other firmwares provide a property in the device tree with version
>> information, for example on Power5:
>
> But this firmware does not. The kernel must do it sometime after
> startup. I don't see any reason why the kernel should try to
> emulate the behavior of firmware on some other platform.
Actually, now that I think about it, your suggestion seems like the best
way to do it :-)
Since /proc/device-tree/model gives the model, and I can arrange for
/proc/device-tree/firmware to give a firmware version. I'll just need to
add a property to the tree after bootup.
-Geoff
next prev parent reply other threads:[~2007-01-26 23:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-25 2:40 [PATCH 10/14] ps3: get firmware version Geoff Levand
2007-01-25 3:56 ` Benjamin Herrenschmidt
2007-01-25 6:23 ` Arnd Bergmann
2007-01-26 2:59 ` Christoph Hellwig
2007-01-26 18:52 ` Geoff Levand
2007-01-26 20:25 ` Benjamin Herrenschmidt
2007-01-26 20:37 ` Nathan Lynch
2007-01-26 23:12 ` Geoff Levand
2007-01-26 23:27 ` Geoff Levand [this message]
2007-01-27 4:34 ` Benjamin Herrenschmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45BA8E7B.6010503@am.sony.com \
--to=geoffrey.levand@am$(echo .)sony.com \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=ntl@pobox$(echo .)com \
--cc=paulus@samba$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox