From: Greg KH <greg@kroah.com>
To: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: Pavel Machek <pavel@ucw.cz>,
kernel list <linux-kernel@vger.kernel.org>,
Ben Skeggs <bskeggs@redhat.com>,
Alexandre Courbot <acourbot@nvidia.com>,
David Airlie <airlied@linux.ie>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>
Subject: Re: unparseable, undocumented /sys/class/drm/.../pstate
Date: Mon, 23 Jun 2014 16:26:15 -0400 [thread overview]
Message-ID: <20140623202615.GA29199@kroah.com> (raw)
In-Reply-To: <CAKb7UvjU+MvW+rXi8488GE64Exuxj3+H5V+E8fzfL5fTb1CGMA@mail.gmail.com>
On Mon, Jun 23, 2014 at 04:18:39PM -0400, Ilia Mirkin wrote:
> On Mon, Jun 23, 2014 at 4:15 PM, Pavel Machek <pavel@ucw.cz> wrote:
> > Hi!
> >
> >> >> >> > I guess better interface would be something like
> >> >> >> >
> >> >> >> > pstate/07/core_clock_min
> >> >> >> > core_clock_max
> >> >> >> > memory_clock_min
> >> >> >> > memory_clock_max
> >> >> >> >
> >> >> >> > and then pstate/active containing just the number of active state?
> >> >
> >> >> Could we just say that the format of this file is one-per-line of
> >> >>
> >> >> level: information-for-the-user
> >> >
> >> > But it is not.
> >>
> >> But it is...
> >>
> >> > Management tools will want to parse it, sooner or
> >> > later. What is wrong with solution described above?
> >>
> >> It is complex and annoying to the people that will actually use it.
> >
> > grep -r . pstate/ is actually not that bad...
>
> While that's a clever trick that anyone who's done a bunch of stuff
> with sysfs knows, I doubt the average linux user could come up with
> that on their own. I know I didn't.
That's fine, why would an "average" Linux user ever need to poke around
in sysfs? Again, please describe what you are wanting to have exported
to userspace, and what userspace is supposed to do with that
information, before worrying about the actual sysfs file layout.
greg k-h
next prev parent reply other threads:[~2014-06-23 20:26 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-21 18:02 unparseable, undocumented /sys/class/drm/.../pstate Pavel Machek
2014-06-21 18:22 ` Ilia Mirkin
2014-06-21 18:50 ` Pavel Machek
2014-06-21 19:34 ` Ilia Mirkin
2014-06-21 19:45 ` Greg KH
2014-06-23 2:12 ` Ilia Mirkin
2014-06-23 13:02 ` Pavel Machek
2014-06-23 13:29 ` Ilia Mirkin
2014-06-23 20:15 ` Pavel Machek
2014-06-23 20:18 ` Ilia Mirkin
2014-06-23 20:26 ` Greg KH [this message]
2014-06-23 20:32 ` Ilia Mirkin
2014-06-24 0:06 ` Ben Skeggs
2014-06-24 16:00 ` Greg KH
2014-06-23 16:07 ` Greg KH
2014-06-23 16:18 ` Ilia Mirkin
2014-06-23 16:36 ` Greg KH
2014-06-23 16:40 ` Ilia Mirkin
2014-06-23 17:46 ` Martin Peres
2014-06-23 17:56 ` Ilia Mirkin
2014-06-23 18:00 ` Martin Peres
2014-06-23 18:05 ` Ilia Mirkin
2014-06-23 18:09 ` Greg KH
2014-06-23 18:08 ` Greg KH
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=20140623202615.GA29199@kroah.com \
--to=greg@kroah.com \
--cc=acourbot@nvidia.com \
--cc=airlied@linux.ie \
--cc=bskeggs@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=imirkin@alum.mit.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
/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