public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH igt] lib: Disable MI_STORE_DATA_IMM for gen3 (i915g and i915gm)
@ 2017-09-06 14:36 Chris Wilson
  2017-09-06 14:45 ` Ville Syrjälä
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2017-09-06 14:36 UTC (permalink / raw)
  To: intel-gfx

The early gen3 machines inherited the MI block and restrictions from
gen2, and may only use physical addresses in conjunction with
MI_STORE_DATA_IMM -- that makes it unusable for us from userspace, where
we can only use virtual offsets.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 lib/igt_gt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index d5e8b557..b3f3b380 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -557,6 +557,9 @@ bool gem_can_store_dword(int fd, unsigned int engine)
 	if (gen <= 2) /* requires physical addresses */
 		return false;
 
+	if (gen == 3 && (info->is_grantsdale || info->is_alviso))
+		return false; /* only supports physical addresses */
+
 	if (gen == 6 && (engine & ~(3<<13)) == I915_EXEC_BSD)
 		return false; /* kills the machine! */
 
-- 
2.14.1

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

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

end of thread, other threads:[~2017-09-06 16:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-06 14:36 [PATCH igt] lib: Disable MI_STORE_DATA_IMM for gen3 (i915g and i915gm) Chris Wilson
2017-09-06 14:45 ` Ville Syrjälä
2017-09-06 14:56 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-09-06 16:58 ` ✗ Fi.CI.IGT: warning " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox