All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Subject: [PATCH v9 5/8] drm/i915/guc : GEM_BUG_ON for GuC reset function
Date: Fri, 10 Nov 2017 16:06:35 -0800	[thread overview]
Message-ID: <1510358798-21566-6-git-send-email-sujaritha.sundaresan@intel.com> (raw)
In-Reply-To: <1510358798-21566-1-git-send-email-sujaritha.sundaresan@intel.com>

Including GEM_BUG_ON for GuC reset function in intel_uncore.

Signed-off-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Oscar Mateo <oscar.mateo@intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
---
 drivers/gpu/drm/i915/intel_uncore.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c
index 211acee7..653ef4e 100644
--- a/drivers/gpu/drm/i915/intel_uncore.c
+++ b/drivers/gpu/drm/i915/intel_uncore.c
@@ -1928,8 +1928,7 @@ int intel_reset_guc(struct drm_i915_private *dev_priv)
 {
 	int ret;
 
-	if (!HAS_GUC(dev_priv))
-		return -EINVAL;
+	GEM_BUG_ON(!HAS_GUC(dev_priv));
 
 	intel_uncore_forcewake_get(dev_priv, FORCEWAKE_ALL);
 	ret = gen6_hw_domain_reset(dev_priv, GEN9_GRDOM_GUC);
-- 
1.9.1

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

  parent reply	other threads:[~2017-11-11  0:10 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-11  0:06 [PATCH v9 0/8] drm/i915/guc : Removing enable_guc_loading module and Decoupling logs and ADS from submission Sujaritha Sundaresan
2017-11-11  0:06 ` [PATCH v9 1/8] drm/i915 : Unifying seq_puts messages for feature support Sujaritha Sundaresan
2017-11-11  1:04   ` Chris Wilson
2017-11-12 16:18   ` Michal Wajdeczko
2017-11-14 18:44     ` Sujaritha
2017-11-11  0:06 ` [PATCH v9 2/8] drm/i915/guc : Removing i915_modparams.enable_guc_loading module parameter Sujaritha Sundaresan
2017-11-12 16:21   ` Michal Wajdeczko
2017-11-11  0:06 ` [PATCH v9 3/8] drm/i915/guc : Updating GuC and HuC firmware select function Sujaritha Sundaresan
2017-11-12 16:25   ` Michal Wajdeczko
2017-11-22 21:51     ` Sujaritha
2017-11-11  0:06 ` [PATCH v9 4/8] drm/i915/guc : Updating GuC logs to remove enable_guc_submission parameter Sujaritha Sundaresan
2017-11-12 16:29   ` Michal Wajdeczko
2017-11-22 21:53     ` Sujaritha
2017-11-11  0:06 ` Sujaritha Sundaresan [this message]
2017-11-11  0:06 ` [PATCH v9 6/8] drm/i915/guc : Introducing enable_guc module parameter Sujaritha Sundaresan
2017-11-12 16:52   ` Michal Wajdeczko
2017-11-22 21:54     ` Sujaritha
2017-11-11  0:06 ` [PATCH v9 7/8] drm/i915/guc : Decouple logs and ADS from submission Sujaritha Sundaresan
2017-11-12 17:12   ` Michal Wajdeczko
2017-11-11  0:06 ` [PATCH v9 8/8] drm/i915/guc : Calling intel_guc_init in i915_gem_init Sujaritha Sundaresan
2017-11-12 17:22   ` Michal Wajdeczko
2017-11-13 16:42     ` Sujaritha

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=1510358798-21566-6-git-send-email-sujaritha.sundaresan@intel.com \
    --to=sujaritha.sundaresan@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /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.