All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	igt-dev@lists.freedesktop.org,
	Ashutosh Dixit <ashutosh.dixit@intel.com>,
	Andi Shyti <andi.shyti@intel.com>,
	Tvrtko Ursulin <tvrtko.ursulin@intel.com>,
	Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>,
	Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] lib/igt_sysfs: Add helpers to iterate over gts
Date: Tue, 19 Apr 2022 22:05:39 -0700	[thread overview]
Message-ID: <87zgkgwdi4.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <Ylg7YRF+9M6oQDk9@kamilkon-DESK1>

On Thu, 14 Apr 2022 08:18:57 -0700, Kamil Konieczny wrote:
>
> Hi Ashutosh,

Hi Kamil,

> may you change last word in subject from "gts" into "GTs" ?

Done in v2.

> > +static const char *i915_attr_name[SYSFS_NUM_TYPES][SYSFS_NUM_ATTR] = {
> > +	{
> > +		"gt_act_freq_mhz",
> > +		"gt_cur_freq_mhz",
> > +		"gt_min_freq_mhz",
> > +		"gt_max_freq_mhz",
> > +		"gt_RP0_freq_mhz",
> > +		"gt_RP1_freq_mhz",
> > +		"gt_RPn_freq_mhz",
> ------------------- ^ ------ ^
> I suppose it is too late now, but mixing capitals with small
> letters is bad, it should either be all small or proper names,
> so either rpn and mhz or RPn and MHz (MHz for Mega Hertz).

So these are names of sysfs files exposed by the kernel, so these cannot be
changed even in the kernel, they are already uapi.

> These two functions below have no descriptions in c file.
>
> > +const char *igt_sysfs_dir_id_to_name(int dir, enum i915_attr_id id);
> > +const char *igt_sysfs_path_id_to_name(const char *path, enum i915_attr_id id);

I have added these descriptions in v2. Also made some minor changes to
these two functions since what we had was not entirely correct. Please
review.

Also I have separated out the RPS related changes (including the functions
above) into a separate patch since the original patch commit message only
referred to the per-gt sysfs parsing. So now there are two patches:

 - lib/igt_sysfs: Add helpers to iterate over GTs
 - lib/igt_sysfs: Add RPS sysfs helpers

Thanks for reviewing!
--
Ashutosh

  reply	other threads:[~2022-04-20  5:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-13 17:27 [igt-dev] [PATCH i-g-t 1/2] lib/igt_sysfs: Add helpers to iterate over gts Ashutosh Dixit
2022-04-13 17:27 ` [igt-dev] [PATCH i-g-t 2/2] tests/i915_pm_disag_freq: New test for media freq factor Ashutosh Dixit
2022-04-14 15:40   ` Kamil Konieczny
2022-04-20  5:07     ` Dixit, Ashutosh
2022-04-13 17:46 ` [igt-dev] ✗ GitLab.Pipeline: warning for series starting with [i-g-t,1/2] lib/igt_sysfs: Add helpers to iterate over gts Patchwork
2022-04-13 18:10 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2022-04-13 20:09 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-04-14 15:18 ` [igt-dev] [PATCH i-g-t 1/2] " Kamil Konieczny
2022-04-20  5:05   ` Dixit, Ashutosh [this message]
2022-04-20  5:02 ` [igt-dev] [PATCH i-g-t 1/3] lib/igt_sysfs: Add helpers to iterate over GTs Ashutosh Dixit
2022-04-20  5:02 ` [igt-dev] [PATCH i-g-t 2/3] lib/igt_sysfs: Add RPS sysfs helpers Ashutosh Dixit
2022-04-20  5:02 ` [igt-dev] [PATCH i-g-t 3/3] tests/i915_pm_disag_freq: New test for media freq factor Ashutosh Dixit
2022-04-20  5:59 ` [igt-dev] ✗ Fi.CI.BUILD: failure for series starting with [i-g-t,1/3] lib/igt_sysfs: Add helpers to iterate over GTs (rev2) Patchwork

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=87zgkgwdi4.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=andi.shyti@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=sujaritha.sundaresan@intel.com \
    --cc=tvrtko.ursulin@intel.com \
    --cc=umesh.nerlige.ramappa@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 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.