intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: "Jakub Bartmiński" <jakub.bartminski@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH v5 4/5] drm/i915: Add a fault injection point to WOPCM init
Date: Wed, 25 Jul 2018 12:56:55 +0200	[thread overview]
Message-ID: <20180725105656.13348-4-jakub.bartminski@intel.com> (raw)
In-Reply-To: <20180725105656.13348-1-jakub.bartminski@intel.com>

v4:
Move the injection inside the WOPCM init.

Signed-off-by: Jakub Bartmiński <jakub.bartminski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
---
 drivers/gpu/drm/i915/intel_wopcm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_wopcm.c b/drivers/gpu/drm/i915/intel_wopcm.c
index 74bf76f3fddc..86c38b072926 100644
--- a/drivers/gpu/drm/i915/intel_wopcm.c
+++ b/drivers/gpu/drm/i915/intel_wopcm.c
@@ -165,6 +165,9 @@ int intel_wopcm_init(struct intel_wopcm *wopcm)
 
 	GEM_BUG_ON(!wopcm->size);
 
+	if (i915_inject_load_failure())
+		return -E2BIG;
+
 	if (guc_fw_size >= wopcm->size) {
 		DRM_ERROR("GuC FW (%uKiB) is too big to fit in WOPCM.",
 			  guc_fw_size / 1024);
-- 
2.17.1

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

  parent reply	other threads:[~2018-07-25 10:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-25 10:56 [PATCH v5 1/5] drm/i915/guc: Avoid wasting memory on incorrect GuC pin bias Jakub Bartmiński
2018-07-25 10:56 ` [PATCH v5 2/5] drm/i915/guc: Move the pin bias value from GuC to GGTT Jakub Bartmiński
2018-07-25 17:45   ` Michal Wajdeczko
2018-07-25 10:56 ` [PATCH v5 3/5] drm/i915: Remove unnecessary ggtt_offset_bias from i915_gem_context Jakub Bartmiński
2018-07-25 17:55   ` Michal Wajdeczko
2018-07-25 10:56 ` Jakub Bartmiński [this message]
2018-07-25 17:58   ` [PATCH v5 4/5] drm/i915: Add a fault injection point to WOPCM init Michal Wajdeczko
2018-07-25 10:56 ` [PATCH v5 5/5] HAX enable GuC for CI Jakub Bartmiński
2018-07-25 11:13 ` ✗ Fi.CI.SPARSE: warning for series starting with [v5,1/5] drm/i915/guc: Avoid wasting memory on incorrect GuC pin bias Patchwork
2018-07-25 11:34 ` ✗ Fi.CI.BAT: failure " Patchwork
2018-07-26 16:25 ` 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=20180725105656.13348-4-jakub.bartminski@intel.com \
    --to=jakub.bartminski@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).