Re: [Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-10-09 Thread Joonas Lahtinen
On Fri, 2017-10-06 at 15:50 +0100, Matthew Auld wrote: > In preparation for supporting huge gtt pages for the ppgtt, we introduce > page size members for gem objects. We fill in the page sizes by > scanning the sg table. > > v2: pass the sg_mask to set_pages > > v3: calculate the sg_mask inline

[Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-10-06 Thread Matthew Auld
In preparation for supporting huge gtt pages for the ppgtt, we introduce page size members for gem objects. We fill in the page sizes by scanning the sg table. v2: pass the sg_mask to set_pages v3: calculate the sg_mask inline with populating the sg_table where possible, and pass to set_pages al

Re: [Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-10-06 Thread Chris Wilson
Quoting Chris Wilson (2017-10-05 17:12:25) > Quoting Matthew Auld (2017-10-05 16:19:00) > > static inline unsigned int i915_sg_segment_size(void) > > { > > unsigned int size = swiotlb_max_segment(); > > @@ -3101,6 +3116,8 @@ intel_info(const struct drm_i915_private *dev_priv) > > #define

Re: [Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-10-05 Thread Chris Wilson
Quoting Matthew Auld (2017-10-05 16:19:00) > static inline unsigned int i915_sg_segment_size(void) > { > unsigned int size = swiotlb_max_segment(); > @@ -3101,6 +3116,8 @@ intel_info(const struct drm_i915_private *dev_priv) > #define USES_PPGTT(dev_priv) (i915_modparams.enable_

[Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-10-05 Thread Matthew Auld
In preparation for supporting huge gtt pages for the ppgtt, we introduce page size members for gem objects. We fill in the page sizes by scanning the sg table. v2: pass the sg_mask to set_pages v3: calculate the sg_mask inline with populating the sg_table where possible, and pass to set_pages al

Re: [Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-10-03 Thread Chris Wilson
Quoting Chris Wilson (2017-09-29 22:31:27) > Quoting Matthew Auld (2017-09-29 17:10:17) > > diff --git a/drivers/gpu/drm/i915/i915_gem_userptr.c > > b/drivers/gpu/drm/i915/i915_gem_userptr.c > > index 70ad7489827d..ad5abca1f794 100644 > > --- a/drivers/gpu/drm/i915/i915_gem_userptr.c > > +++ b/dri

Re: [Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-09-29 Thread Chris Wilson
Quoting Matthew Auld (2017-09-29 17:10:17) > diff --git a/drivers/gpu/drm/i915/i915_gem_userptr.c > b/drivers/gpu/drm/i915/i915_gem_userptr.c > index 70ad7489827d..ad5abca1f794 100644 > --- a/drivers/gpu/drm/i915/i915_gem_userptr.c > +++ b/drivers/gpu/drm/i915/i915_gem_userptr.c > @@ -405,6 +405,9

[Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-09-29 Thread Matthew Auld
In preparation for supporting huge gtt pages for the ppgtt, we introduce page size members for gem objects. We fill in the page sizes by scanning the sg table. v2: pass the sg_mask to set_pages v3: calculate the sg_mask inline with populating the sg_table where possible, and pass to set_pages al

Re: [Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-09-23 Thread Chris Wilson
Quoting Matthew Auld (2017-09-22 18:32:37) > In preparation for supporting huge gtt pages for the ppgtt, we introduce > page size members for gem objects. We fill in the page sizes by > scanning the sg table. > > v2: pass the sg_mask to set_pages > > v3: calculate the sg_mask inline with populat

[Intel-gfx] [PATCH 06/21] drm/i915: introduce page_size members

2017-09-22 Thread Matthew Auld
In preparation for supporting huge gtt pages for the ppgtt, we introduce page size members for gem objects. We fill in the page sizes by scanning the sg table. v2: pass the sg_mask to set_pages v3: calculate the sg_mask inline with populating the sg_table where possible, and pass to set_pages al