All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sagar Arun Kamble <sagar.a.kamble@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>,
	Michal Wajdeczko <michal.wajdeczko@intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v3 4/6] drm/i915/guc: Update name and prototype of i915_guc_log_control
Date: Wed, 24 Jan 2018 16:23:36 +0530	[thread overview]
Message-ID: <b4d04ac8-0998-9c7f-14c4-f0be5dbfd980@intel.com> (raw)
In-Reply-To: <151678868019.13096.7707540084313696717@mail.alporthouse.com>



On 1/24/2018 3:41 PM, Chris Wilson wrote:
> Quoting Michal Wajdeczko (2018-01-24 10:07:12)
>> On Wed, 24 Jan 2018 05:09:10 +0100, Sagar Arun Kamble
>> <sagar.a.kamble@intel.com> wrote:
>>
>>> i915_guc_log_control is GuC interface and GuC APIs that are not user
>>> facing should be named with "intel_guc" prefix hence we change name to
>>> intel_guc_log_control. Also changed the parameter to intel_guc struct.
>>>
>>> Suggested-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
>>> Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
>>> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
>>> Cc: Chris Wilson <chris@chris-wilson.co.uk>
>>> ---
>> Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
>>
>> with small bikeshed below
>>
>>>   drivers/gpu/drm/i915/i915_debugfs.c  | 5 +++--
>>>   drivers/gpu/drm/i915/intel_guc_log.c | 4 ++--
>>>   drivers/gpu/drm/i915/intel_guc_log.h | 2 +-
>>>   3 files changed, 6 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
>>> b/drivers/gpu/drm/i915/i915_debugfs.c
>>> index b45be0d..c10a9e8 100644
>>> --- a/drivers/gpu/drm/i915/i915_debugfs.c
>>> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
>>> @@ -2467,14 +2467,15 @@ static int i915_guc_log_control_get(void *data,
>>> u64 *val)
>>>   static int i915_guc_log_control_set(void *data, u64 val)
>>>   {
>>>        struct drm_i915_private *dev_priv = data;
>>> +     struct intel_guc *guc = &dev_priv->guc;
>>>        if (!HAS_GUC(dev_priv))
>>>                return -ENODEV;
>>> -     if (!dev_priv->guc.log.vma)
>>> +     if (!guc->log.vma)
>>>                return -EINVAL;
>> Hmm, as this looks like internal check, maybe better to move
>> it into intel_guc_log_control() ?
>>
>> Also, I'm not sure that lack of internal vma should be reported
>> as -EINVAL
> Right, it's not reporting that the user's parameter was wrong, just that
> the device wasn't initialised, so ENODEV seems appropriate.
Thanks for the review and inputs.
> -Chris

-- 
Thanks,
Sagar

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

  reply	other threads:[~2018-01-24 10:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24  4:09 [PATCH v3 1/6] drm/i915/guc: Grab RPM wakelock while disabling GuC interrupts Sagar Arun Kamble
2018-01-24  4:09 ` [PATCH v3 2/6] drm/i915/guc: Enable interrupts before resuming GuC during runtime resume Sagar Arun Kamble
2018-01-24  4:09 ` [PATCH v3 3/6] drm/i915/guc: Fix lockdep due to log relay channel handling under struct_mutex Sagar Arun Kamble
2018-01-24 10:18   ` Chris Wilson
2018-01-24 10:52     ` Sagar Arun Kamble
2018-01-24 11:05       ` Chris Wilson
2018-01-24  4:09 ` [PATCH v3 4/6] drm/i915/guc: Update name and prototype of i915_guc_log_control Sagar Arun Kamble
2018-01-24 10:07   ` Michal Wajdeczko
2018-01-24 10:11     ` Chris Wilson
2018-01-24 10:53       ` Sagar Arun Kamble [this message]
2018-01-24  4:09 ` [PATCH v3 5/6] drm/i915/guc: Fix comments style in intel_guc_log.c Sagar Arun Kamble
2018-01-24  9:49   ` Chris Wilson
2018-01-24  9:50     ` Michal Wajdeczko
2018-01-24 10:05       ` Sagar Arun Kamble
2018-01-24  4:09 ` [PATCH v3 6/6] [HAX] Revert "drm/i915/guc: Keep GuC log disabled by default" Sagar Arun Kamble
2018-01-24  4:26 ` ✓ Fi.CI.BAT: success for series starting with [v3,1/6] drm/i915/guc: Grab RPM wakelock while disabling GuC interrupts Patchwork
2018-01-24  9:42 ` ✓ Fi.CI.IGT: " 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=b4d04ac8-0998-9c7f-14c4-f0be5dbfd980@intel.com \
    --to=sagar.a.kamble@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=michal.wajdeczko@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.