Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm
Chris Wilson fcd46e5344 drm/i915: Declare i915_gem_object_create_internal() as taking phys_addr_t size
The internal object is a collection of struct pages and so is
intrinsically linked to the available physical memory on the machine,
and not an arbitrary type from the uabi. Use phys_addr_t so the link
between size and memory consumption is clear, and then double check that
we don't overflow the maximum object size.

v2: Also assert that size is not zero - a mistake I made a few times
while writing selftests.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170112130431.1844-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
2017-01-12 16:47:04 +00:00
..
2016-12-15 14:55:34 +02:00
2016-12-15 14:55:34 +02:00
2016-12-15 14:55:34 +02:00
2016-12-30 12:08:28 +01:00
2017-01-02 15:06:39 +02:00
2016-12-30 12:53:51 +01:00
2016-12-30 11:43:40 +01:00