All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: Stop lying about the WOPCM size
@ 2018-07-17 12:53 Ville Syrjala
  2018-07-17 12:53 ` [PATCH 2/2] drm/i915: Sanitize enable_guc properly on non-guc platforms Ville Syrjala
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Ville Syrjala @ 2018-07-17 12:53 UTC (permalink / raw)
  To: intel-gfx

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Most plattforms don't have a fixed 1MiB WOPCM so stop saying that they
do.

Also toss in a FIXME about actually using the WOPCM size we probed from
the hardware instead of assuming the fixed 1MiB size.

Cc: Jackie Li <yaodong.li@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_wopcm.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_wopcm.c b/drivers/gpu/drm/i915/intel_wopcm.c
index 74bf76f3fddc..75c7a2b0c869 100644
--- a/drivers/gpu/drm/i915/intel_wopcm.c
+++ b/drivers/gpu/drm/i915/intel_wopcm.c
@@ -71,6 +71,12 @@
  */
 void intel_wopcm_init_early(struct intel_wopcm *wopcm)
 {
+	struct drm_i915_private *i915 = wopcm_to_i915(wopcm);
+
+	if (!HAS_GUC(i915))
+		return;
+
+	/* FIXME use the size we actually probed from the hardware */
 	wopcm->size = GEN9_WOPCM_SIZE;
 
 	DRM_DEBUG_DRIVER("WOPCM size: %uKiB\n", wopcm->size / 1024);
@@ -163,7 +169,8 @@ int intel_wopcm_init(struct intel_wopcm *wopcm)
 	u32 guc_wopcm_rsvd;
 	int err;
 
-	GEM_BUG_ON(!wopcm->size);
+	if (!wopcm->size)
+		return 0;
 
 	if (guc_fw_size >= wopcm->size) {
 		DRM_ERROR("GuC FW (%uKiB) is too big to fit in WOPCM.",
-- 
2.16.4

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

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-07-17 18:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-17 12:53 [PATCH 1/2] drm/i915: Stop lying about the WOPCM size Ville Syrjala
2018-07-17 12:53 ` [PATCH 2/2] drm/i915: Sanitize enable_guc properly on non-guc platforms Ville Syrjala
2018-07-17 13:09   ` Chris Wilson
2018-07-17 13:26   ` Michal Wajdeczko
2018-07-17 14:22     ` Ville Syrjälä
2018-07-17 15:30       ` Michal Wajdeczko
2018-07-17 13:06 ` [PATCH 1/2] drm/i915: Stop lying about the WOPCM size Chris Wilson
2018-07-17 13:37 ` Michal Wajdeczko
2018-07-17 13:52 ` Michał Winiarski
2018-07-17 15:44   ` Michał Winiarski
2018-07-17 15:11 ` ✓ Fi.CI.BAT: success for series starting with [1/2] " Patchwork
2018-07-17 17:03 ` [PATCH 1/2] " Jackie Li
2018-07-17 18:58 ` ✓ Fi.CI.IGT: success for series starting with [1/2] " Patchwork

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.