From: Chris Metcalf <cmetcalf@tilera.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org
Subject: Re: [PATCH] arch/tile: add /proc/tile, /proc/sys/tile, and a sysfs cpu attribute
Date: Fri, 20 May 2011 10:26:57 -0400 [thread overview]
Message-ID: <4DD67A31.90802__37544.289409607$1305901761$gmane$org@tilera.com> (raw)
In-Reply-To: <201105191722.17685.arnd@arndb.de>
On 5/19/2011 11:22 AM, Arnd Bergmann wrote:
> On Thursday 19 May 2011, Chris Metcalf wrote:
>>>> /proc/tile/board
>>>> Information on part numbers, serial numbers, etc., of the
>>>> hardware that the kernel is executing on
>>>>
>>>> /proc/tile/switch
>>>> The type of control path for the onboard network switch, if any.
>> These two report information about the hardware, not the hypervisor. For
>> example:
>>
>> # cat /proc/tile/board
>> board_part: 402-00002-05
>> board_serial: NBS-5002-00012
>> chip_serial: P62338.01.110
>> chip_revision: A0
>> board_revision: 2.2
>> board_description: Tilera TILExpressPro-64, TILEPro64 processor (866 MHz-capable), 1 10GbE, 6 1GbE
>> # cat /proc/tile/switch
>> control: mdio gbe/0
> I think it's ok to have it below /sys/hypervisor, because the information
> is provided through a hypervisor ABI, even though it describes something
> else. This is more like /sys/firmware, but the boundaries between that
> and /sys/hypervisor are not clearly defined when running virtualized anyway.
I'll create a /sys/hypervisor/board/ and report the attributes there.
>>>> /proc/tile/hardwall
>>>> Information on the set of currently active hardwalls (note that
>>>> the implementation is already present in arch/tile/kernel/hardwall.c;
>>>> this change just enables it)
>> This one is not a hypervisor-related file. It just lists information about
>> the set of Linux hardwalls currently active. Again, it's not primarily
>> intended for programmatic use, but as a diagnostic tool.
> same here, I'd still put it into the hypervisor structure.
Since /proc/tile/hardwall has no connection to the hypervisor whatsoever,
I'm reluctant to put it under /sys/hypervisor.
Perhaps in this case it would be reasonable to just have the hardwall
subsystem put the file in /proc/driver/hardwall, or even /proc/hardwall?
Or I could make the /dev/hardwall char device dump out the ASCII text that
we currently get from /proc/hardwall if you read from it, which is a little
weird but not inconceivable. For example it currently shows things like this:
# cat /proc/tile/hardwall
2x2 1,1 pids: 484@2,1 479@1,1
2x2 0,3 pids:
In this example "2x2 1,1" is a 2x2 grid of cpus starting at grid (x,y)
position (1,1), with task 484 bound to the cpu at (x,y) position (2,1).
--
Chris Metcalf, Tilera Corp.
http://www.tilera.com
next prev parent reply other threads:[~2011-05-20 14:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201105181807.p4II7C5g015224@farm-0002.internal.tilera.com>
[not found] ` <201105191541.11939.arnd@arndb.de>
[not found] ` <4DD5334D.4060800@tilera.com>
2011-05-19 15:22 ` [PATCH] arch/tile: add /proc/tile, /proc/sys/tile, and a sysfs cpu attribute Arnd Bergmann
[not found] ` <201105191722.17685.arnd@arndb.de>
2011-05-20 14:26 ` Chris Metcalf [this message]
[not found] ` <4DD67A31.90802@tilera.com>
2011-05-20 14:37 ` Arnd Bergmann
[not found] ` <201105201637.20925.arnd@arndb.de>
2011-05-20 15:00 ` Chris Metcalf
[not found] ` <4DD6821F.6060707@tilera.com>
2011-05-20 15:13 ` Arnd Bergmann
[not found] ` <201105201713.25364.arnd@arndb.de>
2011-05-20 19:59 ` Arnd Bergmann
[not found] ` <201105202159.50780.arnd@arndb.de>
2011-05-25 19:09 ` Chris Metcalf
2011-05-25 19:17 ` Chris Metcalf
2011-05-25 19:18 ` Chris Metcalf
[not found] ` <4DDD55ED.2080607@tilera.com>
2011-05-25 20:20 ` Arnd Bergmann
[not found] ` <201105252220.23948.arnd@arndb.de>
2011-05-25 20:31 ` Chris Metcalf
[not found] ` <4DDD6729.7070201@tilera.com>
2011-05-25 20:34 ` Arnd Bergmann
[not found] ` <201105261648.p4QGmNKf001636@farm-0023.internal.tilera.com>
2011-05-27 14:23 ` [PATCH v2] arch/tile: more /proc and /sys file support Arnd Bergmann
2011-05-24 15:38 ` [PATCH] arch/tile: add /proc/tile, /proc/sys/tile, and a sysfs cpu attribute Arnd Bergmann
2011-05-26 16:40 ` [PATCH v2] arch/tile: more /proc and /sys file support Chris Metcalf
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='4DD67A31.90802__37544.289409607$1305901761$gmane$org@tilera.com' \
--to=cmetcalf@tilera.com \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=virtualization@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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