Re: [Intel-gfx] [PATCH 2/2] drm/i915: consolidate 2big error checking for object sizes

2021-01-22 Thread Chris Wilson
Quoting Matthew Auld (2021-01-22 18:15:14) > 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 > Signed-off-by: Matthew Auld Reviewed-by: Chris Wi

[Intel-gfx] [PATCH 2/2] drm/i915: consolidate 2big error checking for object sizes

2021-01-22 Thread Matthew Auld
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 Signed-off-by: Matthew Auld --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 9 +-- drivers/gpu/d

Re: [Intel-gfx] [PATCH 2/2] drm/i915: consolidate 2big error checking for object sizes

2021-01-22 Thread Chris Wilson
Quoting Matthew Auld (2021-01-22 17:54:16) > On Fri, 22 Jan 2021 at 17:43, Chris Wilson wrote: > > > > Quoting Matthew Auld (2021-01-22 17:35:46) > > > 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

Re: [Intel-gfx] [PATCH 2/2] drm/i915: consolidate 2big error checking for object sizes

2021-01-22 Thread Matthew Auld
On Fri, 22 Jan 2021 at 17:43, Chris Wilson wrote: > > Quoting Matthew Auld (2021-01-22 17:35:46) > > 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: Ch

Re: [Intel-gfx] [PATCH 2/2] drm/i915: consolidate 2big error checking for object sizes

2021-01-22 Thread Chris Wilson
Quoting Matthew Auld (2021-01-22 17:35:46) > 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 > Signed-off-by: Matthew Auld > --- > drivers/gpu/

[Intel-gfx] [PATCH 2/2] drm/i915: consolidate 2big error checking for object sizes

2021-01-22 Thread Matthew Auld
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 Signed-off-by: Matthew Auld --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 9 +-- drivers/gpu/d