mirror_ubuntu-kernels/drivers/gpu/drm/i915/gem
Matthew Auld ae2fb480f3 drm/i915/gem: consolidate 2big error checking for object sizes
Throw it into a simple helper, and throw a warning if we encounter an
object which has been initialised with an object size that exceeds our
limit of INT_MAX pages.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20210122181514.541436-2-matthew.auld@intel.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
2021-03-24 19:30:35 +01:00
..
selftests drm/i915: Remove I915_USER_PRIORITY_SHIFT 2021-03-24 19:30:34 +01:00
i915_gem_busy.c drm/i915: Align engine->uabi_class/instance with i915_drm.h 2020-01-20 09:13:01 +00:00
i915_gem_clflush.c drm/i915: Replace the hardcoded I915_FENCE_TIMEOUT 2020-05-09 12:57:57 +01:00
i915_gem_clflush.h
i915_gem_client_blt.c drm/i915/gem: Perform all asynchronous waits prior to marking payload start 2020-11-03 15:00:06 +00:00
i915_gem_client_blt.h
i915_gem_context_types.h drm/i915/gem: Drop free_work for GEM contexts 2020-12-16 15:14:09 +00:00
i915_gem_context.c drm/i915: Remove I915_USER_PRIORITY_SHIFT 2021-03-24 19:30:34 +01:00
i915_gem_context.h drm/i915/gem: Drop free_work for GEM contexts 2020-12-16 15:14:09 +00:00
i915_gem_create.c drm/i915/gem: sanity check object size in gem_create 2021-01-15 08:00:03 +00:00
i915_gem_dmabuf.c drm/i915/gem: consolidate 2big error checking for object sizes 2021-03-24 19:30:35 +01:00
i915_gem_domain.c drm/i915/gem: Drop lru bumping on display unpinning 2021-01-20 21:05:12 +00:00
i915_gem_execbuffer.c drm/i915/pool: constrain pool objects by mapping type 2021-01-19 20:36:28 +00:00
i915_gem_fence.c drm/i915: Replace the hardcoded I915_FENCE_TIMEOUT 2020-05-09 12:57:57 +01:00
i915_gem_internal.c drm/i915/gem: Give each object class a friendly name 2020-05-29 23:38:29 +01:00
i915_gem_ioctls.h
i915_gem_lmem.c drm/i915/region: convert object_create into object_init 2021-01-15 08:00:03 +00:00
i915_gem_lmem.h drm/i915/region: convert object_create into object_init 2021-01-15 08:00:03 +00:00
i915_gem_mman.c mm: introduce vma_set_file function v5 2020-11-19 10:36:36 +01:00
i915_gem_mman.h drm/i915/gem: Only revoke mmap handlers if active 2020-07-02 20:46:08 +01:00
i915_gem_object_blt.c drm/i915/pool: constrain pool objects by mapping type 2021-01-19 20:36:28 +00:00
i915_gem_object_blt.h drm/i915: Convert i915_gem_object/client_blt.c to use ww locking as well, v2. 2020-09-07 14:31:22 +03:00
i915_gem_object_types.h drm/i915/gem: Use shrinkable status for unknown swizzle quirks 2021-01-20 21:01:33 +00:00
i915_gem_object.c - HDCP 2.2 and HDCP 1.4 Gen12 DP MST support (Anshuman) 2021-01-29 17:05:15 +10:00
i915_gem_object.h drm/i915/gem: consolidate 2big error checking for object sizes 2021-03-24 19:30:35 +01:00
i915_gem_pages.c drm/i915/gem: Use shrinkable status for unknown swizzle quirks 2021-01-20 21:01:33 +00:00
i915_gem_phys.c Merge drm/drm-next into drm-intel-next 2021-03-11 08:52:53 +02:00
i915_gem_pm.c drm/i915/gem: Move freeze/freeze_late next to suspend/suspend_late 2021-02-08 16:56:49 -05:00
i915_gem_pm.h drm/i915/gem: Move freeze/freeze_late next to suspend/suspend_late 2021-02-08 16:56:49 -05:00
i915_gem_region.c drm/i915/gem: consolidate 2big error checking for object sizes 2021-03-24 19:30:35 +01:00
i915_gem_region.h
i915_gem_shmem.c Merge drm/drm-next into drm-intel-next 2021-03-11 08:52:53 +02:00
i915_gem_shrinker.c drm/i915/gem: Optimistically prune dma-resv from the shrinker. 2020-12-23 21:58:00 +00:00
i915_gem_shrinker.h
i915_gem_stolen.c drm/i915/gem: Fix oops in error handling code 2021-02-08 16:56:45 -05:00
i915_gem_stolen.h drm/i915/gem: Move stolen node into GEM object union 2021-01-20 20:46:36 +00:00
i915_gem_throttle.c drm/i915/gem: Remove disordered per-file request list for throttling 2020-09-07 13:13:50 +03:00
i915_gem_tiling.c drm/i915/gem: Use shrinkable status for unknown swizzle quirks 2021-01-20 21:01:33 +00:00
i915_gem_userptr.c drm/i915/gem: consolidate 2big error checking for object sizes 2021-03-24 19:30:35 +01:00
i915_gem_wait.c drm/i915/display: Apply interactive priority to explicit flip fences 2021-01-19 23:22:33 +00:00
i915_gemfs.c
i915_gemfs.h