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
..
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2020-08-06 14:27:31 -07:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-01 08:03:45 +02:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-01-04 12:59:33 +01:00
2021-03-16 17:08:46 +10:00
2020-09-21 10:45:08 +02:00
2021-01-07 13:40:20 +01:00
2020-08-11 11:58:31 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-03-16 17:08:46 +10:00
2021-02-25 13:19:04 +01:00