Matthew Auld 24860ad748 drm/i915/userptr: add user_size limit check
Don't allow a mismatch between obj->base.size/vma->size and the actual
number of pages for the backing store, which is limited to INT_MAX
pages.

v2: document what are missing before we can safely drop the limit check

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
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/20200117132413.1170563-1-matthew.auld@intel.com
2020-01-17 19:14:03 +00:00
..
2019-12-27 15:25:04 +10:00
2019-12-03 13:58:22 -08:00
2019-12-17 13:57:54 +01:00
2019-12-15 12:24:44 -08:00
2019-12-06 10:28:09 -08:00
2019-12-05 11:38:40 -08:00
2019-12-01 18:43:25 -08:00
2019-11-22 11:16:26 +05:30
2020-01-03 11:43:44 +10:00
2019-12-17 13:57:54 +01:00
2019-12-10 23:15:09 +01:00
2019-12-15 14:58:13 -08:00
2019-12-03 13:58:22 -08:00
2019-12-03 13:58:22 -08:00
2019-11-30 14:35:43 -08:00
2019-12-01 18:42:02 -08:00
2019-12-13 14:27:19 -08:00
2019-12-17 13:57:54 +01:00
2019-12-06 08:28:51 -08:00
2019-12-03 13:58:22 -08:00
2019-12-17 13:57:54 +01:00
2019-11-27 11:06:20 -08:00
2019-12-03 14:09:14 -08:00
2019-12-09 10:36:44 -08:00
2019-12-01 18:43:25 -08:00
2019-12-13 14:27:19 -08:00
2019-12-05 11:43:31 -08:00
2019-11-25 19:40:40 -08:00
2019-12-05 11:43:31 -08:00
2019-12-03 14:37:12 -08:00
2019-12-05 11:28:14 -08:00
2019-12-05 11:43:31 -08:00
2019-12-01 18:39:24 -08:00
2019-12-03 13:31:08 -08:00
2019-12-09 10:36:44 -08:00
2019-12-14 12:51:57 -08:00
2019-12-06 14:19:37 -08:00
2019-11-22 19:56:35 +00:00
2019-12-17 13:57:54 +01:00
2019-12-09 10:36:44 -08:00
2019-12-17 13:57:54 +01:00
2019-12-03 14:09:14 -08:00
2019-12-14 12:40:39 -08:00
2019-12-07 14:51:04 -08:00
2019-11-14 13:06:33 +08:00
2019-12-01 18:01:03 -08:00
2019-12-17 13:57:54 +01:00