diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-19 22:04:00 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-20 10:28:47 +0100 |
commit | 94f5da75db59d1337da27bcc8a219ca7de69b913 (patch) | |
tree | 8704f3702fcb092dbcc32c2c6d9be68eae6e5ee2 /lib | |
parent | e79462659e0f45cd3f4f766f58cb792303c6bf9b (diff) |
lib/i915: Assume unknown hardware just works
If we don't recognise the hardware, then it can't be any of the known
broken HW where MI_STORE_DWORD_IMM either uses physical addressing or
simply fails catastrophically. As it's not known to be broken, assume
it just works.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_gt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 10162797..3e5eb47d 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -565,6 +565,9 @@ bool gem_class_can_store_dword(int fd, int class) const struct intel_device_info *info = intel_get_device_info(devid); const int gen = ffs(info->gen); + if (info->gen == 0) /* unknown, assume it just works */ + return true; + if (gen <= 2) /* requires physical addresses */ return false; @@ -572,7 +575,7 @@ bool gem_class_can_store_dword(int fd, int class) return false; /* only supports physical addresses */ if (gen == 6 && class == I915_ENGINE_CLASS_VIDEO) - return false; + return false; /* broken, unbelievably broken */ if (info->is_broadwater) return false; /* Not sure yet... */ |