diff options
author | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2021-07-27 07:02:28 +0530 |
---|---|---|
committer | Kunal Joshi <kunal1.joshi@intel.com> | 2021-07-27 10:08:00 +0530 |
commit | a5dffe7499a2f7189718ddf1ccf49060b7c1529d (patch) | |
tree | 4e0e14462ed0cc2964339f553c0127de362e3402 /lib/intel_allocator_simple.c | |
parent | 2602325df9f1e73dab5c1605c384944446ea59a2 (diff) |
lib/i915: Handle QUERY_MEMORY_REGIONS on older kernels
While checking for LMEM support on older kernels with the
DRM_I915_QUERY_MEMORY_REGIONS, it may fail with EINVAL.
Instead of abort/asserting the test, make sure gem_has_lmem
remains functional.
V2:
* Rebase
V3:
* Update commit message (Ashutosh)
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Vidya Srinivas <vidya.srinivas@intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'lib/intel_allocator_simple.c')
0 files changed, 0 insertions, 0 deletions