DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: "Kearney, Tadhg" <tadhg.kearney@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	"Burakov, Anatoly" <anatoly.burakov@intel.com>,
	"Pattan, Reshma" <reshma.pattan@intel.com>,
	"Hunt, David" <david.hunt@intel.com>
Subject: Re: [PATCH v1 1/4] power: add uncore api to power library
Date: Thu, 14 Jul 2022 09:03:11 -0700	[thread overview]
Message-ID: <20220714090311.710c6f99@hermes.local> (raw)
In-Reply-To: <SN6PR11MB3119DE990DD20DCCBE33C4ABF0889@SN6PR11MB3119.namprd11.prod.outlook.com>

On Thu, 14 Jul 2022 14:56:29 +0000
"Kearney, Tadhg" <tadhg.kearney@intel.com> wrote:

> > -----Original Message-----
> > From: Stephen Hemminger <stephen@networkplumber.org>
> > Sent: Monday 11 July 2022 17:37
> > To: Kearney, Tadhg <tadhg.kearney@intel.com>
> > Cc: dev@dpdk.org; dave.hunt@intel.com; Burakov, Anatoly
> > <anatoly.burakov@intel.com>; Pattan, Reshma <reshma.pattan@intel.com>
> > Subject: Re: [PATCH v1 1/4] power: add uncore api to power library
> > 
> > On Mon, 11 Jul 2022 16:22:57 +0000
> > tadhgkearney <tadhg.kearney@intel.com> wrote:
> >   
> > > +    FILE *f_cur_min;                     /**< FD of scaling_min */
> > > +    FILE *f_cur_max;                     /**< FD of scaling_max */
> > > +    FILE *f_base_min;                    /**< FD of initial min */
> > > +    FILE *f_base_max;                    /**< FD of initial max */  
> > 
> > Do you need to hold these extra FD's open?
> > Also wasteful to use stdio for simple control sysfs like this.  
> 
> Hi Stephen,
> No these extra FD's don't need to be kept open, will remove their usage for v3.
> What do you mean exactly by using stdio; are you suggesting to not make use of flush() calls,
> or more broadly avoid stdio altogether?
> Thanks,
> Tadhg

See eal_parse_sysfs_value.

  reply	other threads:[~2022-07-14 16:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-11 16:22 [PATCH v1 0/4] add uncore api to be called through l3fwd-power tadhgkearney
2022-07-11 16:22 ` [PATCH v1 1/4] power: add uncore api to power library tadhgkearney
2022-07-11 16:36   ` Stephen Hemminger
2022-07-14 14:56     ` Kearney, Tadhg
2022-07-14 16:03       ` Stephen Hemminger [this message]
2022-07-11 16:22 ` [PATCH v1 2/4] l3fwd-power: add option to call uncore api tadhgkearney
2022-07-11 16:22 ` [PATCH v1 3/4] test/power: add unit tests for " tadhgkearney
2022-07-11 16:23 ` [PATCH v1 4/4] config: add uncore defines for x86 tadhgkearney
2022-07-11 16:56 ` [PATCH v1 0/4] add uncore api to be called through l3fwd-power Pattan, Reshma

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=20220714090311.710c6f99@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=anatoly.burakov@intel.com \
    --cc=david.hunt@intel.com \
    --cc=dev@dpdk.org \
    --cc=reshma.pattan@intel.com \
    --cc=tadhg.kearney@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).