public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Dave Gordon <david.s.gordon@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/i915/guc: prefer 'dev_priv' to 'dev' for static functions
Date: Tue, 14 Jun 2016 14:11:31 +0100	[thread overview]
Message-ID: <57600283.60201@intel.com> (raw)
In-Reply-To: <575E794B.5050401@linux.intel.com>

On 13/06/16 10:13, Tvrtko Ursulin wrote:
>
> On 10/06/16 18:29, Dave Gordon wrote:
>> Convert all static functions in i915_guc_submission.c that currently
>> take a 'dev' pointer to take 'dev_priv' instead (there are three,
>> guc_client_alloc(), guc_client_free(), and gem_allocate_guc_obj().
>>
>> Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
>> ---
>>   drivers/gpu/drm/i915/i915_guc_submission.c | 39
>> +++++++++++++++---------------
>>   1 file changed, 19 insertions(+), 20 deletions(-)

[snip]

> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>
> And you can keep the r-b if you rename gem_allocate_guc_obj as Chris has
> suggested.
>
> Regards,
> Tvrtko

I was thinking more of doing a bulk-renaming patch later to make all the 
GuC functions use a more consistent naming scheme, probably along the 
lines of "<prefix><topic>_<object>_<operation>", where <prefix> is empty 
for local functions or intel_/i915_ for externally-visible ones, <topic> 
is probably "guc" for all the functions in the loader and submission 
code, <object> is the class we're manipulating (if it's not the GuC 
itself) and <operation> is what we're doing to it. Fairly standard 
object-based RPN naming, in fact.

Many functions are already named this way, but there's still some legacy 
of Alex's original style which is more topic-verb-object.

So gem_allocate_guc_obj() would become guc_gem_object_alloc(). But I 
probably won't do it until I've finished all the other GuC enhancements ;)

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

      reply	other threads:[~2016-06-14 13:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-10 17:29 [PATCH 1/2] drm/i915/guc: prefer 'dev_priv' to 'dev' for static functions Dave Gordon
2016-06-10 17:29 ` [PATCH 2/2] drm/i915/guc: prefer 'dev_priv' to 'dev' for intra-module functions Dave Gordon
2016-06-13  9:15   ` Tvrtko Ursulin
2016-06-10 19:57 ` [PATCH 1/2] drm/i915/guc: prefer 'dev_priv' to 'dev' for static functions Chris Wilson
2016-06-11  5:50 ` ✗ Ro.CI.BAT: warning for series starting with [1/2] " Patchwork
2016-06-13 15:42   ` Dave Gordon
2016-06-13 15:51     ` Tvrtko Ursulin
2016-06-13  9:13 ` [PATCH 1/2] " Tvrtko Ursulin
2016-06-14 13:11   ` Dave Gordon [this message]

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=57600283.60201@intel.com \
    --to=david.s.gordon@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=tvrtko.ursulin@linux.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