All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Deucher, Alexander" <Alexander.Deucher-5C7GfCeVMHo@public.gmane.org>
To: "Kuehling, Felix" <Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>,
	"amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: RE: [PATCH] drm/amdgpu: Add sysfs file for VBIOS
Date: Fri, 25 Aug 2017 19:40:52 +0000	[thread overview]
Message-ID: <BN6PR12MB165282855F85ABA5587C99BDF79B0@BN6PR12MB1652.namprd12.prod.outlook.com> (raw)
In-Reply-To: <88a3901d-d05b-15c2-919a-03a5c90961ac-5C7GfCeVMHo@public.gmane.org>

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf
> Of Felix Kuehling
> Sent: Friday, August 25, 2017 3:34 PM
> To: amd-gfx@lists.freedesktop.org
> Subject: Re: [PATCH] drm/amdgpu: Add sysfs file for VBIOS
> 
> I think the power measurement is a bit of a hack right now. It requires
> pinging the SMU twice to start and stop the measurement, and waiting for
> some time (but not too long) in between. I think if we want to expose
> this via hwmon, we'll need to have some kind of timer that polls it in
> regular intervals in the background and updates a value that can be
> queried through HWMon without delay.

I don't know that hwmon has any requirements with respect to delay.  I think a slight delay in reading it back through hwmon is preferable to a background thread polling it. Regular polling may also have negative impacts on performance or stability, depending on how it was validated.

Alex

> 
> Regards,
>   Felix
> 
> 
> On 2017-08-25 11:56 AM, Deucher, Alexander wrote:
> >> -----Original Message-----
> >> From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On
> Behalf
> >> Of Russell, Kent
> >> Sent: Friday, August 25, 2017 9:00 AM
> >> To: StDenis, Tom; Christian König; amd-gfx@lists.freedesktop.org
> >> Subject: RE: [PATCH] drm/amdgpu: Add sysfs file for VBIOS
> >>
> >> There is GPU Power usage reported through amdgpu_pm_info, which
> also
> >> has some other information as well. I'd like that in sysfs, but I am unsure if
> >> we are  allowed to due to the other information reported there.
> > For power and voltage, I believe there are standard hwmon interfaces.  It
> would probably be best to expose it via those.  For clocks/pcie, I think you
> can already determine them via the existing pp sysfs interfaces.
> >
> > Alex
> >
> >>  Kent
> >>
> >> -----Original Message-----
> >> From: StDenis, Tom
> >> Sent: Friday, August 25, 2017 8:58 AM
> >> To: Christian König; Russell, Kent; amd-gfx@lists.freedesktop.org
> >> Subject: Re: [PATCH] drm/amdgpu: Add sysfs file for VBIOS
> >>
> >> On 25/08/17 08:56 AM, Christian König wrote:
> >>> Hi Kent,
> >>>
> >>> agree on the VBIOS dump file, that clearly belongs to debugsf.
> >>>
> >>> The power usage stuff I can't say much about cause I'm not deeply into
> >>> this, but keep in mind the restriction for sysfs:
> >>> 1. It's a stable interface. So it must be very well designed.
> >>> 2. Only one value per file. I think the power stuff doesn't fulfill
> >>> that requirement at the moment.
> >> What "power" stuff are we talking about?  The sensors interface or the
> >> pm_info or something else?
> >>
> >> Keep in mind umr uses the sensors debugfs file in --top mode.
> >>
> >> Tom
> >> _______________________________________________
> >> amd-gfx mailing list
> >> amd-gfx@lists.freedesktop.org
> >> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
> > _______________________________________________
> > amd-gfx mailing list
> > amd-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/amd-gfx
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-08-25 19:40 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-23 18:12 [PATCH] drm/amdgpu: Add sysfs file for VBIOS Kent Russell
     [not found] ` <1503511940-645-1-git-send-email-kent.russell-5C7GfCeVMHo@public.gmane.org>
2017-08-24  1:21   ` Michel Dänzer
2017-08-24  6:21   ` Christian König
     [not found]     ` <1e64a642-411e-ea58-1639-390e4c3cd75d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-24  9:58       ` Russell, Kent
     [not found]         ` <BN6PR1201MB01801A32C06AE0DA6634F440859A0-6iU6OBHu2P/H0AMcJMwsYmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-24 12:55           ` Alex Deucher
     [not found]             ` <CADnq5_PD3s8HHPtr49ZJ3DXPVXgP5xyvFZj_YTzsGCi=cnOUKA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-24 13:06               ` Russell, Kent
     [not found]                 ` <BN6PR1201MB018010027CA78E203F629BA7859A0-6iU6OBHu2P/H0AMcJMwsYmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-24 15:35                   ` Kuehling, Felix
     [not found]                     ` <DM5PR1201MB023503F29269CEC80DC7DAD8929A0-grEf7a3NxMBd8L2jMOIKKmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-24 15:39                       ` Alex Deucher
     [not found]                         ` <CADnq5_Piyp7mtHi+4GZ0pUw1kMNT68ZVyA6jp1TR4VhbCjWAOA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-24 16:37                           ` Russell, Kent
     [not found]                             ` <BN6PR1201MB01804846B5629D28766FDFA0859A0-6iU6OBHu2P/H0AMcJMwsYmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-24 18:10                               ` Christian König
     [not found]                                 ` <fa2dddb4-5ceb-87f3-6305-fb5f6e6e5c2d-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-24 21:30                                   ` Russell, Kent
     [not found]                                     ` <BN6PR1201MB0180502DC4720A3C33D642DB859A0-6iU6OBHu2P/H0AMcJMwsYmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-25 12:36                                       ` Tom St Denis
     [not found]                                         ` <4cec0dad-502e-68f2-68c9-b5d0103d7093-5C7GfCeVMHo@public.gmane.org>
2017-08-25 12:40                                           ` Russell, Kent
     [not found]                                             ` <BN6PR1201MB01803DD5EBD0049397F4E9F0859B0-6iU6OBHu2P/H0AMcJMwsYmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-25 12:56                                               ` Christian König
     [not found]                                                 ` <0a3d4d07-e3cd-6216-466b-30bc60c8a26a-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-25 12:57                                                   ` Tom St Denis
     [not found]                                                     ` <22c4b9e2-67e2-bd0a-1147-6e896843783e-5C7GfCeVMHo@public.gmane.org>
2017-08-25 12:59                                                       ` Russell, Kent
     [not found]                                                         ` <BN6PR1201MB01806ACF078801D91460C110859B0-6iU6OBHu2P/H0AMcJMwsYmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-25 13:05                                                           ` Tom St Denis
     [not found]                                                             ` <ebeb7962-c55c-9ba3-6969-6f7cf9934a5b-5C7GfCeVMHo@public.gmane.org>
2017-08-25 13:32                                                               ` Tom St Denis
2017-08-25 13:34                                                               ` Tom St Denis
     [not found]                                                                 ` <cc70864c-1106-1668-d80f-49cfbb6a6325-5C7GfCeVMHo@public.gmane.org>
2017-08-25 13:36                                                                   ` Russell, Kent
2017-08-25 14:36                                                           ` Alex Deucher
2017-08-25 15:56                                                           ` Deucher, Alexander
     [not found]                                                             ` <BN6PR12MB16526CDFB29BC696816F2326F79B0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-08-25 15:58                                                               ` Russell, Kent
2017-08-25 19:33                                                               ` Felix Kuehling
     [not found]                                                                 ` <88a3901d-d05b-15c2-919a-03a5c90961ac-5C7GfCeVMHo@public.gmane.org>
2017-08-25 19:36                                                                   ` Tom St Denis
2017-08-25 19:40                                                                   ` Deucher, Alexander [this message]
     [not found]                                                                     ` <BN6PR12MB165282855F85ABA5587C99BDF79B0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-08-25 19:59                                                                       ` Felix Kuehling
     [not found]                                                                         ` <863e1868-5a14-0748-cffe-81ff88c144ec-5C7GfCeVMHo@public.gmane.org>
2017-08-25 20:06                                                                           ` Deucher, Alexander
     [not found]                                                                             ` <BN6PR12MB1652B766212C3249B22FC286F79B0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-08-25 20:14                                                                               ` Deucher, Alexander

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=BN6PR12MB165282855F85ABA5587C99BDF79B0@BN6PR12MB1652.namprd12.prod.outlook.com \
    --to=alexander.deucher-5c7gfcevmho@public.gmane.org \
    --cc=Felix.Kuehling-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.