All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arvind Yadav <arvind.yadav.cs@gmail.com>
To: Lionel Landwerlin <lionel.g.landwerlin@intel.com>,
	daniel.vetter@intel.com, jani.nikula@linux.intel.com,
	airlied@linux.ie
Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 00/11] constify i915 attribute_group structures.
Date: Fri, 4 Aug 2017 16:09:41 +0530	[thread overview]
Message-ID: <2a606fe4-a74c-489a-5783-240be704bdb6@gmail.com> (raw)
In-Reply-To: <99e06ee3-ece3-90d6-fd54-ea6789d991f9@intel.com>


[-- Attachment #1.1: Type: text/plain, Size: 3986 bytes --]



On Friday 04 August 2017 04:04 PM, Lionel Landwerlin wrote:
> On 04/08/17 11:22, Arvind Yadav wrote:
>> Hi Lionel,
>>
>>
>> On Friday 04 August 2017 02:33 PM, Lionel Landwerlin wrote:
>>> Hi Arwind,
>>>
>>> These files were generated by a script maintained in this repository 
>>> : 
>>> https://github.com/rib/gputop/blob/master/scripts/i915-perf-kernelgen.py 
>>>
>>> It would best to update this script first to make sure future 
>>> platforms get the fixes too.
>>>
>>> Some changes have just been merged, deleted most configs but the 
>>> test ones.
>>> You'll need to update your series.
>>>
>> I have done the changes. Please review it. :) Shared patch is 
>> 0001-i915-perf-kernelgen.py-constify-attribute_group-stru.patch.
>
> Hm... Where is it? (I can't see it on the mailing list nor attached)
> The best would be to submit a PR on the github project directly.
>
I have push directly on github project. I have send patch to you. Is 
there  any different way to send mail.?
  Changes are looks like this.

---
  scripts/i915-perf-kernelgen.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/i915-perf-kernelgen.
py b/scripts/i915-perf-kernelgen.py
index 7178f47..7633624 100755
--- a/scripts/i915-perf-kernelgen.py
+++ b/scripts/i915-perf-kernelgen.py
@@ -382,7 +382,7 @@ def output_sysfs_code(sets):
          c("};")

          c("\n")
-        c("static struct attribute_group group_" + perf_name_lc + " = {")
+        c("static const struct attribute_group group_" + perf_name_lc + 
" = {")
          c.indent(8)
          c(".name = \"" + metric_set['guid'] + "\",")
          c(".attrs =  attrs_" + perf_name_lc + ",")

---
>>
>>> Otherwise it looks like a good change.
>>>
>>> Thanks,
>>>
>>> -
>>> Lionel
>>>
>>> On 04/08/17 06:03, Arvind Yadav wrote:
>>>> attribute_group are not supposed to change at runtime. All functions
>>>> working with attribute_group provided by <linux/sysfs.h> work with
>>>> const attribute_group. So mark the non-const structs as const.
>>>>
>>>> Arvind Yadav (11):
>>>>    [PATCH 01/11] drm: i915: i915_oa_kblgt2: constify 
>>>> attribute_group structures.
>>>>    [PATCH 02/11] drm: i915: i915_oa_bdw: constify attribute_group 
>>>> structures.
>>>>    [PATCH 03/11] drm: i915: i915_oa_bxt: constify attribute_group 
>>>> structures.
>>>>    [PATCH 04/11] drm: i915: i915_oa_chv: constify attribute_group 
>>>> structures.
>>>>    [PATCH 05/11] drm: i915: i915_oa_glk: constify attribute_group 
>>>> structures.
>>>>    [PATCH 06/11] drm: i915: i915_oa_hsw: constify attribute_group 
>>>> structures.
>>>>    [PATCH 07/11] drm: i915: i915_oa_kblgt3: constify 
>>>> attribute_group structures.
>>>>    [PATCH 08/11] drm: i915: i915_oa_sklgt2: constify 
>>>> attribute_group structures.
>>>>    [PATCH 09/11] drm: i915: i915_oa_sklgt3: constify 
>>>> attribute_group structures.
>>>>    [PATCH 10/11] drm: i915: i915_oa_sklgt4: constify 
>>>> attribute_group structures.
>>>>    [PATCH 11/11] drm: i915: i915_sysfs: constify attribute_group 
>>>> structures.
>>>>
>>>>   drivers/gpu/drm/i915/i915_oa_bdw.c    | 44 
>>>> +++++++++++++++++------------------
>>>>   drivers/gpu/drm/i915/i915_oa_bxt.c    | 30 ++++++++++++------------
>>>>   drivers/gpu/drm/i915/i915_oa_chv.c    | 28 +++++++++++-----------
>>>>   drivers/gpu/drm/i915/i915_oa_glk.c    | 30 ++++++++++++------------
>>>>   drivers/gpu/drm/i915/i915_oa_hsw.c    | 12 +++++-----
>>>>   drivers/gpu/drm/i915/i915_oa_kblgt2.c | 36 
>>>> ++++++++++++++--------------
>>>>   drivers/gpu/drm/i915/i915_oa_kblgt3.c | 36 
>>>> ++++++++++++++--------------
>>>>   drivers/gpu/drm/i915/i915_oa_sklgt2.c | 36 
>>>> ++++++++++++++--------------
>>>>   drivers/gpu/drm/i915/i915_oa_sklgt3.c | 36 
>>>> ++++++++++++++--------------
>>>>   drivers/gpu/drm/i915/i915_oa_sklgt4.c | 36 
>>>> ++++++++++++++--------------
>>>>   drivers/gpu/drm/i915/i915_sysfs.c     |  6 ++---
>>>>   11 files changed, 165 insertions(+), 165 deletions(-)
>>>>
>>>
>> ~arvind
>>
>


[-- Attachment #1.2: Type: text/html, Size: 6547 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2017-08-04 10:39 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-04  5:03 [PATCH 00/11] constify i915 attribute_group structures Arvind Yadav
2017-08-04  5:03 ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 01/11] drm: i915: i915_oa_kblgt2: constify " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 02/11] drm: i915: i915_oa_bdw: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 03/11] drm: i915: i915_oa_bxt: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 04/11] drm: i915: i915_oa_chv: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 05/11] drm: i915: i915_oa_glk: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 06/11] drm: i915: i915_oa_hsw: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 07/11] drm: i915: i915_oa_kblgt3: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 08/11] drm: i915: i915_oa_sklgt2: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 09/11] drm: i915: i915_oa_sklgt3: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 10/11] drm: i915: i915_oa_sklgt4: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  5:03 ` [PATCH 11/11] drm: i915: i915_sysfs: " Arvind Yadav
2017-08-04  5:03   ` Arvind Yadav
2017-08-04  9:03 ` [Intel-gfx] [PATCH 00/11] constify i915 " Lionel Landwerlin
2017-08-04 10:22   ` Arvind Yadav
2017-08-04 10:34     ` Lionel Landwerlin
2017-08-04 10:34       ` Lionel Landwerlin
2017-08-04 10:39       ` Arvind Yadav [this message]
2017-08-04 16:01         ` Lionel Landwerlin

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=2a606fe4-a74c-489a-5783-240be704bdb6@gmail.com \
    --to=arvind.yadav.cs@gmail.com \
    --cc=airlied@linux.ie \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lionel.g.landwerlin@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.