diff options
| author | Chris Wilson <[email protected]> | 2017-01-12 13:04:31 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2017-01-12 16:47:04 +0000 |
| commit | fcd46e53449c4d659ffbedcd2823ea2f73e39927 (patch) | |
| tree | dd25d4584f71b38b204ca7a81c85414f5fe9ccd5 /include | |
| parent | 7c3f86b6dc51b38ee30aaac00cdf39d20b2e7b38 (diff) | |
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 <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Joonas Lahtinen <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions